The ECp type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | ECp |
Default constructor
|
Methods
Name | Description | |
---|---|---|
![]() | CheckDomainParams |
Check the selected curve.
|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GenerateKeyPair |
Generates a private/public key pair.
|
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | HashAndSign(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.
|
![]() | HashAndSign(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.
|
![]() | HashAndVerify |
Returns true if the signature is valid.
|
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | PackPublicKey |
Pack a public key to reduce size.
|
![]() | PublicKey |
Returns the public key for a given private key.
Each key is a byte array.
|
![]() | SessionKey |
Generates a 32-byte session key from the Key Derivation Parameters KDP
and the given SharedSecret.
|
![]() | SetDomainParams(Int32) |
Sets the domain parameters from curve number.
|
![]() | SetDomainParams(Stream) |
Sets the domain parameters from file / stream.
|
![]() | SetDomainParams(array<Object>[]()[][]) |
Sets the domain parameters from index (int) or file (Stream) data.
|
![]() | SharedSecret |
Generates the shared secret corresponding to the private key of
one party and the public key of another party.
|
![]() | Sign(array<Byte>[]()[][], array<Byte>[]()[][]) |
Returns a signature of the hash, using the
installed random number generate RNG. This function uses
Nyberg-Rueppel (NR) algorithm.
|
![]() | Sign(array<Byte>[]()[][], array<Byte>[]()[][], array<Byte>[]()[][]) |
Returns a signature of the hash provide.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | UnpackPublicKey |
Unpack a public key to enhance performance.
|
![]() | Verify |
Returns true if the signature is valid.
|
Properties
Name | Description | |
---|---|---|
![]() | BitLength |
Bit length of selected curve.
|
![]() | SignatureAlgorithm |
Only Nyberg-Rueppel version is supported.
|