You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.0 KiB
30 lines
1.0 KiB
using System;
|
|
using System.IO;
|
|
|
|
namespace Org.BouncyCastle.Crypto
|
|
{
|
|
/// <summary>
|
|
/// Base interface for cipher builders.
|
|
/// </summary>
|
|
public interface ICipherBuilder
|
|
{
|
|
/// <summary>
|
|
/// Return the algorithm and parameter details associated with any cipher built.
|
|
/// </summary>
|
|
object AlgorithmDetails { get; }
|
|
|
|
/// <summary>
|
|
/// Return the maximum output size that a given input will produce.
|
|
/// </summary>
|
|
/// <param name="inputLen">the length of the expected input.</param>
|
|
/// <returns>The maximum possible output size that can produced for the expected input length.</returns>
|
|
int GetMaxOutputSize(int inputLen);
|
|
|
|
/// <summary>
|
|
/// Build a cipher that operates on the passed in stream.
|
|
/// </summary>
|
|
/// <param name="stream">The stream to write/read any encrypted/decrypted data.</param>
|
|
/// <returns>A cipher based around the given stream.</returns>
|
|
ICipher BuildCipher(Stream stream);
|
|
}
|
|
}
|
|
|