2using System.Collections.Generic;
22 public static byte[]
GetSharedKey(
byte[] LocalPrivateKey,
byte[] RemotePublicKey,
28 byte[] B = P.
X.ToByteArray();
Implements the Elliptic Curve Diffie-Hellman (ECDH) algorithm.
static byte[] GetSharedKey(byte[] LocalPrivateKey, byte[] RemotePublicKey, HashFunctionArray HashFunction, EllipticCurve Curve)
Gets a shared key using the Elliptic Curve Diffie-Hellman (ECDH) algorithm.
Abstract base class for elliptic curves.
virtual PointOnCurve Decode(byte[] Point)
Decodes an encoded point on the curve.
int OrderBytes
Number of bytes required to represent the order of the curve.
PointOnCurve ScalarMultiplication(BigInteger N, PointOnCurve P, bool Normalize)
Performs the scalar multiplication of N *P .
delegate byte[] HashFunctionArray(byte[] Data)
Delegate to hash function.
HashFunction
Hash method enumeration.
Represents a point on a curve.