summary refs log tree commit diff
path: root/Crypto/src/math/ec/abc/ZTauElement.cs
diff options
context:
space:
mode:
authorOren Novotny <oren@novotny.org>2014-02-26 10:08:50 -0500
committerOren Novotny <oren@novotny.org>2014-02-26 10:08:50 -0500
commit176743ab5faec2dd275b5efd3a2dd62c610f237a (patch)
tree1d2e50c534a479d749c266d7c52434d8f17f86aa /Crypto/src/math/ec/abc/ZTauElement.cs
parentAdd git files (diff)
downloadBouncyCastle.NET-ed25519-654c26abd79e9451e5a9bd108f1358bc2849fdbf.tar.xz
Add BouncyCastle PCL files v1.7.0
Diffstat (limited to 'Crypto/src/math/ec/abc/ZTauElement.cs')
-rw-r--r--Crypto/src/math/ec/abc/ZTauElement.cs36
1 files changed, 36 insertions, 0 deletions
diff --git a/Crypto/src/math/ec/abc/ZTauElement.cs b/Crypto/src/math/ec/abc/ZTauElement.cs
new file mode 100644

index 000000000..4fcbf1bdf --- /dev/null +++ b/Crypto/src/math/ec/abc/ZTauElement.cs
@@ -0,0 +1,36 @@ +namespace Org.BouncyCastle.Math.EC.Abc +{ + /** + * Class representing an element of <code><b>Z</b>[&#964;]</code>. Let + * <code>&#955;</code> be an element of <code><b>Z</b>[&#964;]</code>. Then + * <code>&#955;</code> is given as <code>&#955; = u + v&#964;</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 &quot;real&quot; part of <code>&#955;</code>. + */ + public readonly BigInteger u; + + /** + * The &quot;<code>&#964;</code>-adic&quot; part of <code>&#955;</code>. + */ + public readonly BigInteger v; + + /** + * Constructor for an element <code>&#955;</code> of + * <code><b>Z</b>[&#964;]</code>. + * @param u The &quot;real&quot; part of <code>&#955;</code>. + * @param v The &quot;<code>&#964;</code>-adic&quot; part of + * <code>&#955;</code>. + */ + public ZTauElement(BigInteger u, BigInteger v) + { + this.u = u; + this.v = v; + } + } +}