Returns a signature of the data.

Overload List

  NameDescription
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.

Remarks

This is the Signature Generation Operation of IEEE P1363 scheme ECSSA: Elliptic Curve Signature Scheme with Appendix.

See Also