Table of Contents

Class Rfc5649WrapEngine

Namespace
Org.BouncyCastle.Crypto.Engines
Assembly
BouncyCastle.Cryptography.dll

An implementation of the AES Key Wrap with Padding specification as described in RFC 5649.

public class Rfc5649WrapEngine : IWrapper
Inheritance
Rfc5649WrapEngine
Implements
Derived
Inherited Members

Remarks

For further details see: Housley, R. and M. Dworkin, "Advanced Encryption Standard (AES) Key Wrap with Padding Algorithm", RFC 5649, DOI 10.17487/RFC5649, September 2009, <https://www.rfc-editor.org/info/rfc5649>, and http://csrc.nist.gov/encryption/kms/key-wrap.pdf.

Constructors

Rfc5649WrapEngine(IBlockCipher)

public Rfc5649WrapEngine(IBlockCipher engine)

Parameters

engine IBlockCipher

Properties

AlgorithmName

The name of the algorithm this cipher implements.

public virtual string AlgorithmName { get; }

Property Value

string

Methods

Init(bool, ICipherParameters)

public virtual void Init(bool forWrapping, ICipherParameters parameters)

Parameters

forWrapping bool
parameters ICipherParameters

Unwrap(byte[], int, int)

public virtual byte[] Unwrap(byte[] input, int inOff, int length)

Parameters

input byte[]
inOff int
length int

Returns

byte[]

Wrap(byte[], int, int)

public virtual byte[] Wrap(byte[] input, int inOff, int length)

Parameters

input byte[]
inOff int
length int

Returns

byte[]