public class BouncyCastleCrypto extends java.lang.Object implements Cryptography
| 构造器和说明 |
|---|
BouncyCastleCrypto() |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
createNewPrivateKey() |
byte[] |
getPrivateKeyAtOffset(byte[] privateKey,
byte[] offset) |
byte[] |
getPublicFor(byte[] privateKey) |
byte[] |
getPublicKeyAtOffset(byte[] publicKey,
byte[] offset) |
org.bouncycastle.crypto.params.AsymmetricKeyParameter |
loadECPublicKey(java.io.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(java.io.InputStream stream)
throws java.io.IOException
loadECPublicKey 在接口中 Cryptographyjava.io.IOExceptionpublic byte[] createNewPrivateKey()
createNewPrivateKey 在接口中 Cryptographypublic byte[] getPublicFor(byte[] privateKey)
getPublicFor 在接口中 Cryptographypublic byte[] getPrivateKeyAtOffset(byte[] privateKey,
byte[] offset)
getPrivateKeyAtOffset 在接口中 Cryptographypublic byte[] uncompressPoint(byte[] compressed)
uncompressPoint 在接口中 Cryptographypublic byte[] getPublicKeyAtOffset(byte[] publicKey,
byte[] offset)
getPublicKeyAtOffset 在接口中 Cryptographypublic byte[] sign(byte[] hash,
byte[] privateKey)
sign 在接口中 Cryptographypublic boolean verify(byte[] hash,
byte[] signature,
byte[] publicKey)
verify 在接口中 CryptographyCopyright © 2018. All Rights Reserved.