up
This commit is contained in:
40
Assets/BestHTTP/SecureProtocol/math/ec/abc/ZTauElement.cs
Normal file
40
Assets/BestHTTP/SecureProtocol/math/ec/abc/ZTauElement.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||||
|
||||
namespace Org.BouncyCastle.Math.EC.Abc
|
||||
{
|
||||
/**
|
||||
* Class representing an element of <code><b>Z</b>[τ]</code>. Let
|
||||
* <code>λ</code> be an element of <code><b>Z</b>[τ]</code>. Then
|
||||
* <code>λ</code> is given as <code>λ = u + vτ</code>. The
|
||||
* components <code>u</code> and <code>v</code> may be used directly, there
|
||||
* are no accessor methods.
|
||||
* Immutable class.
|
||||
*/
|
||||
internal class ZTauElement
|
||||
{
|
||||
/**
|
||||
* The "real" part of <code>λ</code>.
|
||||
*/
|
||||
public readonly BigInteger u;
|
||||
|
||||
/**
|
||||
* The "<code>τ</code>-adic" part of <code>λ</code>.
|
||||
*/
|
||||
public readonly BigInteger v;
|
||||
|
||||
/**
|
||||
* Constructor for an element <code>λ</code> of
|
||||
* <code><b>Z</b>[τ]</code>.
|
||||
* @param u The "real" part of <code>λ</code>.
|
||||
* @param v The "<code>τ</code>-adic" part of
|
||||
* <code>λ</code>.
|
||||
*/
|
||||
public ZTauElement(BigInteger u, BigInteger v)
|
||||
{
|
||||
this.u = u;
|
||||
this.v = v;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user