public interface IASymMixCipher
Modifier and Type | Method and Description |
---|---|
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 |
getOutputBlockSize()
Returns the output block size of the asymmetric mix cipher.
|
int |
getPaddingSize()
Returns the padding size used by the asymmetric mix cipher in bytes.
|
MyRSAPublicKey |
getPublicKey() |
int |
setPublicKey(java.math.BigInteger modulus,
java.math.BigInteger exponent) |
int |
setPublicKey(org.w3c.dom.Element xmlKey) |
int encrypt(byte[] from, int ifrom, byte[] to, int ito)
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.int getOutputBlockSize()
int getInputBlockSize()
int getPaddingSize()
int setPublicKey(java.math.BigInteger modulus, java.math.BigInteger exponent)
int setPublicKey(org.w3c.dom.Element xmlKey)
MyRSAPublicKey getPublicKey()
Copyright © 2023. All rights reserved.