Package org.bouncycastle.pqc.crypto
Interface Wrapper
- All Known Implementing Classes:
RFC3394WrapEngine,RFC5649WrapEngine
public interface Wrapper
-
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)
-
Method Details
-
init
-
getAlgorithmName
String getAlgorithmName()Return the name of the algorithm the wrapper implements.- Returns:
- the name of the algorithm the wrapper implements.
-
wrap
byte[] wrap(byte[] in, int inOff, int inLen) -
unwrap
byte[] unwrap(byte[] in, int inOff, int inLen) throws org.bouncycastle.crypto.InvalidCipherTextException - Throws:
org.bouncycastle.crypto.InvalidCipherTextException
-