|
||||||||||
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.OAEPCipher
org.bouncycastle.crypto.encodings.OAEPEncoding
Constructor Summary | |
OAEPCipher(javax.crypto.Cipher cipher,
java.security.MessageDigest digest,
byte[] encodingParams)
Constructor OAEPCipher |
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 |
static void |
main(java.lang.String[] args)
Method main |
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 OAEPCipher(javax.crypto.Cipher cipher, java.security.MessageDigest digest, byte[] encodingParams)
cipher
- digest
- encodingParams
- 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 decryypted block turns out to
be badly formatted.public static void main(java.lang.String[] args) throws java.lang.Exception
args
-
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |