| Modifier and Type | Field and Description |
|---|---|
static CryptoTrace |
trace |
| Constructor and Description |
|---|
CryptoBridge(CryptoSource cryptoSource) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] encryptedBytes)
Decrypt encrypted data using private key
|
byte[] |
encrypt(byte[] bytes)
Encrypt data using public key
|
byte[] |
makeHash(byte[] sourceBytes)
Generate hash
|
java.security.SecureRandom |
rnd()
Gives security random generator
|
byte[] |
sign(byte[] bytes)
Sign data
|
boolean |
verifySignature(byte[] bytes,
byte[] signature)
Verifies signature
|
public static CryptoTrace trace
public CryptoBridge(CryptoSource cryptoSource)
public byte[] encrypt(byte[] bytes)
Cryptopublic byte[] decrypt(byte[] encryptedBytes)
Cryptopublic byte[] sign(byte[] bytes)
Cryptopublic boolean verifySignature(byte[] bytes,
byte[] signature)
CryptoverifySignature in interface Cryptobytes - checking datasignature - verifying signaturetrue - verification is OK, otherwise - verification wrongpublic byte[] makeHash(byte[] sourceBytes)
Crypto