Table of Contents

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

encryptionOID DerObjectIdentifier
keySize int
random SecureRandom

Properties

AlgorithmDetails

Return the algorithm and parameter details associated with any cipher built.

public object AlgorithmDetails { get; }

Property Value

object

Key

Return the key we were initialized with.

public ICipherParameters Key { get; }

Property Value

ICipherParameters

Methods

BuildCipher(Stream)

Build a cipher that operates on the passed in stream.

public ICipher BuildCipher(Stream stream)

Parameters

stream Stream

The 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

inputLen int

the length of the expected input.

Returns

int

The maximum possible output size that can produced for the expected input length.