The ECp type exposes the following members.

Constructors

  NameDescription
Public methodECp
Default constructor

Methods

  NameDescription
Public methodCheckDomainParams
Check the selected curve.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGenerateKeyPair
Generates a private/public key pair.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHashAndSign(array<Byte>[]()[][], array<Byte>[]()[][])
Returns a signature of the data, using SignNR (Nyberg-Rueppel), the installed random number generator RNG and hash algorithm SHA-256.
Public methodHashAndSign(array<Byte>[]()[][], array<Byte>[]()[][], array<Byte>[]()[][])
Returns a signature of the data, using SignNR (Nyberg-Rueppel), provided random data and hash algorithm SHA-256. On entry, rand should be a random number as byte array with bit length this.BitLength + 4. E.g. for curve 1 is BitLength is 160 bit, thus random data length must be 164 bit or 21 bytes. Random bytes are used in msb first order.
Public methodHashAndVerify
Returns true if the signature is valid.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPackPublicKey
Pack a public key to reduce size.
Public methodPublicKey
Returns the public key for a given private key. Each key is a byte array.
Public methodSessionKey
Generates a 32-byte session key from the Key Derivation Parameters KDP and the given SharedSecret.
Public methodSetDomainParams(Int32)
Sets the domain parameters from curve number.
Public methodSetDomainParams(Stream)
Sets the domain parameters from file / stream.
Public methodSetDomainParams(array<Object>[]()[][])
Sets the domain parameters from index (int) or file (Stream) data.
Public methodSharedSecret
Generates the shared secret corresponding to the private key of one party and the public key of another party.
Public methodSign(array<Byte>[]()[][], array<Byte>[]()[][])
Returns a signature of the hash, using the installed random number generate RNG. This function uses Nyberg-Rueppel (NR) algorithm.
Public methodSign(array<Byte>[]()[][], array<Byte>[]()[][], array<Byte>[]()[][])
Returns a signature of the hash provide.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUnpackPublicKey
Unpack a public key to enhance performance.
Public methodVerify
Returns true if the signature is valid.

Properties

  NameDescription
Public propertyBitLength
Bit length of selected curve.
Public propertySignatureAlgorithm
Only Nyberg-Rueppel version is supported.

See Also