public abstract class AbstractRSACryptor extends Cryptor
| 构造器和说明 |
|---|
AbstractRSACryptor(boolean isPadding) |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
decrypt(byte[] input,
Key dk)
decrypt the cipher use decrypt key
|
void |
decrypt(InputStream input,
Key dk,
OutputStream output) |
byte[] |
encrypt(byte[] input,
int length,
Key ek)
encrypt original data in length byte
|
void |
encrypt(InputStream input,
Key ek,
OutputStream output) |
Key |
generateKey()
This method generates a new key for the crypto.
|
Key |
generateKey(int keySize) |
int |
getCipherBlockSize(RSAKey rsaKey) |
BigInteger |
getExponent(RSAKey rsaKey) |
int |
getOriginBlockSize(RSAKey rsaKey) |
String |
toString() |
public int getOriginBlockSize(RSAKey rsaKey)
public int getCipherBlockSize(RSAKey rsaKey)
public byte[] encrypt(byte[] input,
int length,
Key ek)
Cryptorpublic byte[] decrypt(byte[] input,
Key dk)
Cryptorpublic void encrypt(InputStream input, Key ek, OutputStream output)
public void decrypt(InputStream input, Key dk, OutputStream output)
public final BigInteger getExponent(RSAKey rsaKey)
public final Key generateKey()
generateKey 在类中 Cryptorpublic final Key generateKey(int keySize)
Copyright © 2023. All rights reserved.