add all
This commit is contained in:
33
Packages/com.tivadar.best.http/Runtime/3rdParty/BouncyCastle/crypto/IBasicAgreement.cs
vendored
Normal file
33
Packages/com.tivadar.best.http/Runtime/3rdParty/BouncyCastle/crypto/IBasicAgreement.cs
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||||
#pragma warning disable
|
||||
using System;
|
||||
using Best.HTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
|
||||
namespace Best.HTTP.SecureProtocol.Org.BouncyCastle.Crypto
|
||||
{
|
||||
/**
|
||||
* The basic interface that basic Diffie-Hellman implementations
|
||||
* conforms to.
|
||||
*/
|
||||
public interface IBasicAgreement
|
||||
{
|
||||
/**
|
||||
* initialise the agreement engine.
|
||||
*/
|
||||
void Init(ICipherParameters parameters);
|
||||
|
||||
/**
|
||||
* return the field size for the agreement algorithm in bytes.
|
||||
*/
|
||||
int GetFieldSize();
|
||||
|
||||
/**
|
||||
* given a public key from a given party calculate the next
|
||||
* message in the agreement sequence.
|
||||
*/
|
||||
BigInteger CalculateAgreement(ICipherParameters pubKey);
|
||||
}
|
||||
|
||||
}
|
||||
#pragma warning restore
|
||||
#endif
|
||||
Reference in New Issue
Block a user