public class ASymMixCipherRSAOAEP extends ASymMixCipherPlainRSA
| Constructor and Description |
|---|
ASymMixCipherRSAOAEP() |
| Modifier and Type | Method and Description |
|---|---|
int |
decrypt(byte[] from,
int ifrom,
byte[] to,
int ito) |
int |
encrypt(byte[] from,
int ifrom,
byte[] to,
int ito)
Encrypts one block of data using an asymmetric encryption algorithm.
|
int |
getInputBlockSize()
Returns the necessary input block size of the asymmetric mix cipher.
|
int |
getPaddingSize()
Returns the padding size used by the asymmetric mix cipher in bytes.
|
getOutputBlockSize, getPublicKey, setPrivateKey, setPrivateKey, setPublicKey, setPublicKeypublic int encrypt(byte[] from,
int ifrom,
byte[] to,
int ito)
IASymMixCipherencrypt in interface IASymMixCipherencrypt in class ASymMixCipherPlainRSAfrom - Byte buffer to take the plain text from.ifrom - Offset in the plain text.to - Byte buffer to write the cipher text to.ito - Offset in the target buffer.public int decrypt(byte[] from,
int ifrom,
byte[] to,
int ito)
public int getPaddingSize()
IASymMixCiphergetPaddingSize in interface IASymMixCiphergetPaddingSize in class ASymMixCipherPlainRSApublic int getInputBlockSize()
IASymMixCiphergetInputBlockSize in interface IASymMixCiphergetInputBlockSize in class ASymMixCipherPlainRSACopyright © 2023. All rights reserved.