public class BouncyCastleCrypto extends Object implements Cryptography
| Constructor and Description |
|---|
BouncyCastleCrypto() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
createNewPrivateKey() |
byte[] |
getPrivateKeyAtOffset(byte[] privateKey,
byte[] offset) |
byte[] |
getPublicFor(byte[] privateKey) |
byte[] |
getPublicKeyAtOffset(byte[] publicKey,
byte[] offset) |
org.bouncycastle.crypto.params.AsymmetricKeyParameter |
loadECPublicKey(InputStream stream) |
byte[] |
sign(byte[] hash,
byte[] privateKey) |
byte[] |
uncompressPoint(byte[] compressed) |
boolean |
verify(byte[] hash,
byte[] signature,
byte[] publicKey) |
public org.bouncycastle.crypto.params.AsymmetricKeyParameter loadECPublicKey(InputStream stream) throws IOException
loadECPublicKey in interface CryptographyIOExceptionpublic byte[] createNewPrivateKey()
createNewPrivateKey in interface Cryptographypublic byte[] getPublicFor(byte[] privateKey)
getPublicFor in interface Cryptographypublic byte[] getPrivateKeyAtOffset(byte[] privateKey,
byte[] offset)
getPrivateKeyAtOffset in interface Cryptographypublic byte[] uncompressPoint(byte[] compressed)
uncompressPoint in interface Cryptographypublic byte[] getPublicKeyAtOffset(byte[] publicKey,
byte[] offset)
getPublicKeyAtOffset in interface Cryptographypublic byte[] sign(byte[] hash,
byte[] privateKey)
sign in interface Cryptographypublic boolean verify(byte[] hash,
byte[] signature,
byte[] publicKey)
verify in interface CryptographyCopyright © 2018. All rights reserved.