public class BCRSACoder extends BaseECCCoder
Title: BCRSACoder.java
Description:
bboss workgroup
Copyright (c) 2008
ECPublicKeyIndex, ECPublicKeyPairIndex, PrivateKeyIndex, PrivateKeyPairIndex| Constructor and Description |
|---|
BCRSACoder() |
| Modifier and Type | Method and Description |
|---|---|
java.security.PrivateKey |
_evalECPrivateKey(byte[] privateKey) |
java.security.PublicKey |
_evalECPublicKey(byte[] publicKey) |
java.security.KeyPair |
_genECKeyPair() |
byte[] |
decrypt(byte[] data,
java.security.PrivateKey priKey_)
解密
用私钥解密 |
byte[] |
encrypt(byte[] data,
java.security.PublicKey pubKey_)
加密
用公钥加密 |
decrypt, decrypt, decrypt, encrypt, encrypt, encrypt, evalECPrivateKey, evalECPublicKey, genECKeyPair, randomTokenpublic java.security.PrivateKey _evalECPrivateKey(byte[] privateKey)
_evalECPrivateKey in class BaseECCCoderpublic java.security.PublicKey _evalECPublicKey(byte[] publicKey)
_evalECPublicKey in class BaseECCCoderpublic byte[] decrypt(byte[] data,
java.security.PrivateKey priKey_)
throws java.lang.Exception
ECCCoderInfjava.lang.Exceptionpublic byte[] encrypt(byte[] data,
java.security.PublicKey pubKey_)
throws java.lang.Exception
ECCCoderInfjava.lang.Exceptionpublic java.security.KeyPair _genECKeyPair()
throws java.lang.Exception
_genECKeyPair in class BaseECCCoderjava.lang.Exception