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
algorithmDerObjectIdentifierparametersAsn1EncodablekeyICipherParameters
Asn1KeyWrapper(DerObjectIdentifier, Asn1Encodable, X509Certificate)
public Asn1KeyWrapper(DerObjectIdentifier algorithm, Asn1Encodable parameters, X509Certificate cert)
Parameters
algorithmDerObjectIdentifierparametersAsn1EncodablecertX509Certificate
Asn1KeyWrapper(DerObjectIdentifier, ICipherParameters)
public Asn1KeyWrapper(DerObjectIdentifier algorithm, ICipherParameters key)
Parameters
algorithmDerObjectIdentifierkeyICipherParameters
Asn1KeyWrapper(DerObjectIdentifier, X509Certificate)
public Asn1KeyWrapper(DerObjectIdentifier algorithm, X509Certificate cert)
Parameters
algorithmDerObjectIdentifiercertX509Certificate
Asn1KeyWrapper(AlgorithmIdentifier, ICipherParameters)
public Asn1KeyWrapper(AlgorithmIdentifier algorithm, ICipherParameters key)
Parameters
algorithmAlgorithmIdentifierkeyICipherParameters
Asn1KeyWrapper(AlgorithmIdentifier, X509Certificate)
public Asn1KeyWrapper(AlgorithmIdentifier algorithm, X509Certificate cert)
Parameters
algorithmAlgorithmIdentifiercertX509Certificate
Asn1KeyWrapper(string, ICipherParameters)
public Asn1KeyWrapper(string algorithm, ICipherParameters key)
Parameters
algorithmstringkeyICipherParameters
Asn1KeyWrapper(string, X509Certificate)
public Asn1KeyWrapper(string algorithm, X509Certificate cert)
Parameters
algorithmstringcertX509Certificate
Properties
AlgorithmDetails
The parameter set used to configure this key wrapper.
public object AlgorithmDetails { get; }
Property Value
Methods
Wrap(byte[])
Wrap the passed in key data.
public IBlockResult Wrap(byte[] keyData)
Parameters
keyDatabyte[]The key data to be wrapped.
Returns
- IBlockResult
an IBlockResult containing the wrapped key data.