|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xml.security.algorithms.encryption.helper.PKCS15Cipher
org.bouncycastle.crypto.encodings.PKCS1Encoding
Constructor Summary | |
PKCS15Cipher(javax.crypto.Cipher rsaCipher)
Constructor PKCS15Cipher |
Method Summary | |
byte[] |
decodeBlock(byte[] in,
int inOff,
int inLen)
|
byte[] |
encodeBlock(byte[] in,
int inOff,
int inLen)
Method encodeBlock |
int |
getInputBlockSize()
Method getInputBlockSize |
int |
getOutputBlockSize()
Method getOutputBlockSize |
void |
init(int mode,
java.security.Key key,
java.security.SecureRandom secureRandom)
Method init |
byte[] |
processBlock(byte[] in,
int inOff,
int inLen)
Method processBlock |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PKCS15Cipher(javax.crypto.Cipher rsaCipher)
rsaCipher
- Method Detail |
public void init(int mode, java.security.Key key, java.security.SecureRandom secureRandom) throws java.security.InvalidKeyException
mode
- key
- secureRandom
-
java.security.InvalidKeyException
public int getInputBlockSize()
public int getOutputBlockSize()
public byte[] processBlock(byte[] in, int inOff, int inLen) throws InvalidCipherTextException, javax.crypto.IllegalBlockSizeException, javax.crypto.BadPaddingException
in
- inOff
- inLen
-
javax.crypto.BadPaddingException
javax.crypto.IllegalBlockSizeException
InvalidCipherTextException
public byte[] encodeBlock(byte[] in, int inOff, int inLen) throws InvalidCipherTextException, javax.crypto.IllegalBlockSizeException, javax.crypto.BadPaddingException
in
- inOff
- inLen
-
javax.crypto.BadPaddingException
javax.crypto.IllegalBlockSizeException
InvalidCipherTextException
public byte[] decodeBlock(byte[] in, int inOff, int inLen) throws InvalidCipherTextException, javax.crypto.IllegalBlockSizeException, javax.crypto.BadPaddingException
in
- inOff
- inLen
-
javax.crypto.BadPaddingException
javax.crypto.IllegalBlockSizeException
InvalidCipherTextException
- if the decrypted block is not in PKCS1 format.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |