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.
35 lines
1.2 KiB
35 lines
1.2 KiB
1 year ago
|
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||
|
#pragma warning disable
|
||
|
using System;
|
||
|
using System.IO;
|
||
|
|
||
|
namespace BestHTTP.SecureProtocol.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);
|
||
|
}
|
||
|
}
|
||
|
#pragma warning restore
|
||
|
#endif
|