Table of Contents

Class Asn1KeyWrapper

Namespace
Org.BouncyCastle.Crypto.Operators
Assembly
BouncyCastle.Cryptography.dll
public class Asn1KeyWrapper : IKeyWrapper
Inheritance
Asn1KeyWrapper
Implements
Inherited Members

Constructors

Asn1KeyWrapper(DerObjectIdentifier, Asn1Encodable, ICipherParameters)

public Asn1KeyWrapper(DerObjectIdentifier algorithm, Asn1Encodable parameters, ICipherParameters key)

Parameters

algorithm DerObjectIdentifier
parameters Asn1Encodable
key ICipherParameters

Asn1KeyWrapper(DerObjectIdentifier, Asn1Encodable, X509Certificate)

public Asn1KeyWrapper(DerObjectIdentifier algorithm, Asn1Encodable parameters, X509Certificate cert)

Parameters

algorithm DerObjectIdentifier
parameters Asn1Encodable
cert X509Certificate

Asn1KeyWrapper(DerObjectIdentifier, ICipherParameters)

public Asn1KeyWrapper(DerObjectIdentifier algorithm, ICipherParameters key)

Parameters

algorithm DerObjectIdentifier
key ICipherParameters

Asn1KeyWrapper(DerObjectIdentifier, X509Certificate)

public Asn1KeyWrapper(DerObjectIdentifier algorithm, X509Certificate cert)

Parameters

algorithm DerObjectIdentifier
cert X509Certificate

Asn1KeyWrapper(AlgorithmIdentifier, ICipherParameters)

public Asn1KeyWrapper(AlgorithmIdentifier algorithm, ICipherParameters key)

Parameters

algorithm AlgorithmIdentifier
key ICipherParameters

Asn1KeyWrapper(AlgorithmIdentifier, X509Certificate)

public Asn1KeyWrapper(AlgorithmIdentifier algorithm, X509Certificate cert)

Parameters

algorithm AlgorithmIdentifier
cert X509Certificate

Asn1KeyWrapper(string, ICipherParameters)

public Asn1KeyWrapper(string algorithm, ICipherParameters key)

Parameters

algorithm string
key ICipherParameters

Asn1KeyWrapper(string, X509Certificate)

public Asn1KeyWrapper(string algorithm, X509Certificate cert)

Parameters

algorithm string
cert X509Certificate

Properties

AlgorithmDetails

The parameter set used to configure this key wrapper.

public object AlgorithmDetails { get; }

Property Value

object

Methods

Wrap(byte[])

Wrap the passed in key data.

public IBlockResult Wrap(byte[] keyData)

Parameters

keyData byte[]

The key data to be wrapped.

Returns

IBlockResult

an IBlockResult containing the wrapped key data.