up
This commit is contained in:
22
Assets/BestHTTP/SecureProtocol/crypto/IWrapper.cs
Normal file
22
Assets/BestHTTP/SecureProtocol/crypto/IWrapper.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||||
|
||||
using System;
|
||||
|
||||
using Org.BouncyCastle.Security;
|
||||
|
||||
namespace Org.BouncyCastle.Crypto
|
||||
{
|
||||
public interface IWrapper
|
||||
{
|
||||
/// <summary>The name of the algorithm this cipher implements.</summary>
|
||||
string AlgorithmName { get; }
|
||||
|
||||
void Init(bool forWrapping, ICipherParameters parameters);
|
||||
|
||||
byte[] Wrap(byte[] input, int inOff, int length);
|
||||
|
||||
byte[] Unwrap(byte[] input, int inOff, int length);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user