org.bouncycastle.crypto.engines

Class RFC3394WrapEngine

public class RFC3394WrapEngine extends Object implements Wrapper

an implementation of the AES Key Wrapper from the NIST Key Wrap Specification as described in RFC 3394.

For further details see: http://www.ietf.org/rfc/rfc3394.txt and http://csrc.nist.gov/encryption/kms/key-wrap.pdf.

Constructor Summary
RFC3394WrapEngine(BlockCipher engine)
Method Summary
StringgetAlgorithmName()
voidinit(boolean forWrapping, CipherParameters param)
byte[]unwrap(byte[] in, int inOff, int inLen)
byte[]wrap(byte[] in, int inOff, int inLen)

Constructor Detail

RFC3394WrapEngine

public RFC3394WrapEngine(BlockCipher engine)

Method Detail

getAlgorithmName

public String getAlgorithmName()

init

public void init(boolean forWrapping, CipherParameters param)

unwrap

public byte[] unwrap(byte[] in, int inOff, int inLen)

wrap

public byte[] wrap(byte[] in, int inOff, int inLen)