Package org.bouncycastle.crypto.engines
Class RFC3211WrapEngine
java.lang.Object
org.bouncycastle.crypto.engines.RFC3211WrapEngine
- All Implemented Interfaces:
Wrapper
an implementation of the RFC 3211 Key Wrap
Specification.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the name of the algorithm the wrapper implements.voidinit(boolean forWrapping, CipherParameters param) byte[]unwrap(byte[] in, int inOff, int inLen) byte[]wrap(byte[] in, int inOff, int inLen)
-
Constructor Details
-
RFC3211WrapEngine
-
-
Method Details
-
init
-
getAlgorithmName
Description copied from interface:WrapperReturn the name of the algorithm the wrapper implements.- Specified by:
getAlgorithmNamein interfaceWrapper- Returns:
- the name of the algorithm the wrapper implements.
-
wrap
public byte[] wrap(byte[] in, int inOff, int inLen) -
unwrap
- Specified by:
unwrapin interfaceWrapper- Throws:
InvalidCipherTextException
-