public class ASymMixCipherRSAOAEP extends ASymMixCipherPlainRSA
m_RSA
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, setPublicKey
public int encrypt(byte[] from, int ifrom, byte[] to, int ito)
IASymMixCipher
encrypt
in interface IASymMixCipher
encrypt
in class ASymMixCipherPlainRSA
from
- 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()
IASymMixCipher
getPaddingSize
in interface IASymMixCipher
getPaddingSize
in class ASymMixCipherPlainRSA
public int getInputBlockSize()
IASymMixCipher
getInputBlockSize
in interface IASymMixCipher
getInputBlockSize
in class ASymMixCipherPlainRSA
Copyright © 2023. All rights reserved.