Class Asn1CipherBuilderWithKey
- Namespace
- Org.BouncyCastle.Crypto.Operators
- Assembly
- BouncyCastle.Cryptography.dll
public class Asn1CipherBuilderWithKey : ICipherBuilderWithKey, ICipherBuilder
- Inheritance
-
Asn1CipherBuilderWithKey
- Implements
- Inherited Members
Constructors
Asn1CipherBuilderWithKey(DerObjectIdentifier, int, SecureRandom)
public Asn1CipherBuilderWithKey(DerObjectIdentifier encryptionOID, int keySize, SecureRandom random)
Parameters
encryptionOIDDerObjectIdentifierkeySizeintrandomSecureRandom
Properties
AlgorithmDetails
Return the algorithm and parameter details associated with any cipher built.
public object AlgorithmDetails { get; }
Property Value
Key
Return the key we were initialized with.
public ICipherParameters Key { get; }
Property Value
Methods
BuildCipher(Stream)
Build a cipher that operates on the passed in stream.
public ICipher BuildCipher(Stream stream)
Parameters
streamStreamThe stream to write/read any encrypted/decrypted data.
Returns
- ICipher
A cipher based around the given stream.
GetMaxOutputSize(int)
Return the maximum output size that a given input will produce.
public int GetMaxOutputSize(int inputLen)
Parameters
inputLenintthe length of the expected input.
Returns
- int
The maximum possible output size that can produced for the expected input length.