org.bouncycastle.crypto.engines

Class AESWrapEngine

Implemented Interfaces:
Wrapper

public class AESWrapEngine
extends java.lang.Object
implements Wrapper

an implementation of the AES Key Wrapper from the NIST Key Wrap Specification.

For further details see: http://csrc.nist.gov/encryption/kms/key-wrap.pdf.

Method Summary

String
getAlgorithmName()
void
init(boolean forWrapping, CipherParameters param)
byte[]
unwrap(byte[] in, int inOff, int inLen)
byte[]
wrap(byte[] in, int inOff, int inLen)

Method Details

getAlgorithmName

public String getAlgorithmName()
Specified by:
getAlgorithmName in interface Wrapper


init

public void init(boolean forWrapping,
                 CipherParameters param)
Specified by:
init in interface Wrapper


unwrap

public byte[] unwrap(byte[] in,
                     int inOff,
                     int inLen)
            throws InvalidCipherTextException
Specified by:
unwrap in interface Wrapper


wrap

public byte[] wrap(byte[] in,
                   int inOff,
                   int inLen)
Specified by:
wrap in interface Wrapper