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>, and http://csrc.nist.gov/encryption/kms/key-wrap.pdf.
Constructors
Rfc3394WrapEngine(IBlockCipher)
public Rfc3394WrapEngine(IBlockCipher engine)
Parameters
engineIBlockCipher
Rfc3394WrapEngine(IBlockCipher, bool)
public Rfc3394WrapEngine(IBlockCipher engine, bool useReverseDirection)
Parameters
engineIBlockCipheruseReverseDirectionbool
Properties
AlgorithmName
The name of the algorithm this cipher implements.
public virtual string AlgorithmName { get; }
Property Value
Methods
Init(bool, ICipherParameters)
public virtual void Init(bool forWrapping, ICipherParameters parameters)
Parameters
forWrappingboolparametersICipherParameters
Unwrap(byte[], int, int)
public virtual byte[] Unwrap(byte[] input, int inOff, int inLen)
Parameters
Returns
- byte[]
Wrap(byte[], int, int)
public virtual byte[] Wrap(byte[] input, int inOff, int inLen)
Parameters
Returns
- byte[]