- Initial commit
This commit is contained in:
21
Runtime/3rdParty/BouncyCastle/tls/crypto/TlsEncryptor.cs
vendored
Normal file
21
Runtime/3rdParty/BouncyCastle/tls/crypto/TlsEncryptor.cs
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||||
#pragma warning disable
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace Best.HTTP.SecureProtocol.Org.BouncyCastle.Tls.Crypto
|
||||
{
|
||||
/// <summary>Base interface for an encryptor.</summary>
|
||||
public interface TlsEncryptor
|
||||
{
|
||||
/// <summary>Encrypt data from the passed in input array.</summary>
|
||||
/// <param name="input">byte array containing the input data.</param>
|
||||
/// <param name="inOff">offset into input where the data starts.</param>
|
||||
/// <param name="length">the length of the data to encrypt.</param>
|
||||
/// <returns>the encrypted data.</returns>
|
||||
/// <exception cref="IOException"/>
|
||||
byte[] Encrypt(byte[] input, int inOff, int length);
|
||||
}
|
||||
}
|
||||
#pragma warning restore
|
||||
#endif
|
||||
Reference in New Issue
Block a user