Table of Contents

Interface ICipherBuilder

Namespace
Org.BouncyCastle.Crypto
Assembly
BouncyCastle.Cryptography.dll

Base interface for cipher builders.

public interface ICipherBuilder

Properties

AlgorithmDetails

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

object AlgorithmDetails { get; }

Property Value

object

Methods

BuildCipher(Stream)

Build a cipher that operates on the passed in stream.

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.

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.