Table of Contents

Class Rfc3394WrapEngine

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

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

public class Rfc3394WrapEngine : IWrapper
Inheritance
Rfc3394WrapEngine
Implements
Derived
Inherited Members

Remarks

For further details see: Schaad, J. and R. Housley, "Advanced Encryption Standard (AES) Key Wrap Algorithm", RFC 3394, DOI 10.17487/RFC3394, September 2002, <https://www.rfc-editor.org/info/rfc3394&gt;, and http://csrc.nist.gov/encryption/kms/key-wrap.pdf.

Constructors

Rfc3394WrapEngine(IBlockCipher)

public Rfc3394WrapEngine(IBlockCipher engine)

Parameters

engine IBlockCipher

Rfc3394WrapEngine(IBlockCipher, bool)

public Rfc3394WrapEngine(IBlockCipher engine, bool useReverseDirection)

Parameters

engine IBlockCipher
useReverseDirection bool

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 inLen)

Parameters

input byte[]
inOff int
inLen int

Returns

byte[]

Wrap(byte[], int, int)

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

Parameters

input byte[]
inOff int
inLen int

Returns

byte[]