public class SpongyCryptography
extends ch.dissem.bitmessage.ports.AbstractCryptography
| Constructor and Description |
|---|
SpongyCryptography() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
createPoint(byte[] x,
byte[] y) |
byte[] |
createPublicKey(byte[] privateKey) |
byte[] |
crypt(boolean encrypt,
byte[] data,
byte[] key_e,
byte[] initializationVector) |
byte[] |
getSignature(byte[] data,
ch.dissem.bitmessage.entity.valueobject.PrivateKey privateKey) |
boolean |
isSignatureValid(byte[] data,
byte[] signature,
ch.dissem.bitmessage.entity.payload.Pubkey pubkey) |
byte[] |
multiply(byte[] K,
byte[] r) |
public byte[] crypt(boolean encrypt,
byte[] data,
byte[] key_e,
byte[] initializationVector)
public byte[] createPublicKey(byte[] privateKey)
public boolean isSignatureValid(byte[] data,
byte[] signature,
ch.dissem.bitmessage.entity.payload.Pubkey pubkey)
public byte[] getSignature(byte[] data,
ch.dissem.bitmessage.entity.valueobject.PrivateKey privateKey)
public byte[] multiply(byte[] K,
byte[] r)
public byte[] createPoint(byte[] x,
byte[] y)