- Initial commit

This commit is contained in:
Timur Kozanov
2026-07-03 05:02:26 +03:00
commit 374ff1e689
4080 changed files with 388870 additions and 0 deletions

View File

@ -0,0 +1,40 @@
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
namespace Best.HTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
{
public class MqvPublicParameters
: ICipherParameters
{
private readonly ECPublicKeyParameters staticPublicKey;
private readonly ECPublicKeyParameters ephemeralPublicKey;
public MqvPublicParameters(
ECPublicKeyParameters staticPublicKey,
ECPublicKeyParameters ephemeralPublicKey)
{
if (staticPublicKey == null)
throw new ArgumentNullException("staticPublicKey");
if (ephemeralPublicKey == null)
throw new ArgumentNullException("ephemeralPublicKey");
if (!staticPublicKey.Parameters.Equals(ephemeralPublicKey.Parameters))
throw new ArgumentException("Static and ephemeral public keys have different domain parameters");
this.staticPublicKey = staticPublicKey;
this.ephemeralPublicKey = ephemeralPublicKey;
}
public virtual ECPublicKeyParameters StaticPublicKey
{
get { return staticPublicKey; }
}
public virtual ECPublicKeyParameters EphemeralPublicKey
{
get { return ephemeralPublicKey; }
}
}
}
#pragma warning restore
#endif