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.
34 lines
855 B
34 lines
855 B
1 year ago
|
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||
|
#pragma warning disable
|
||
|
using System;
|
||
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||
|
|
||
|
namespace BestHTTP.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
|