add all
This commit is contained in:
34
Packages/com.tivadar.best.http/Runtime/3rdParty/BouncyCastle/crypto/ICipherBuilder.cs
vendored
Normal file
34
Packages/com.tivadar.best.http/Runtime/3rdParty/BouncyCastle/crypto/ICipherBuilder.cs
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||||
#pragma warning disable
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace Best.HTTP.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
|
||||
Reference in New Issue
Block a user