[][src]Trait signatory::ecdsa::curve::WeierstrassCurve

Elliptic curve in short Weierstrass form suitable for use with ECDSA

Associated Types

Size of an integer modulo p (i.e. the curve's order) when serialized as octets (i.e. bytes). This also describes the size of an ECDSA private key, as well as half the size of a fixed-width signature.

Size of a compressed point for this curve in bytes when serialized using Elliptic-Curve-Point-to-Octet-String encoding defined in section 2.3.3 of SEC 1: Elliptic Curve Cryptography (Version 2.0):

http://www.secg.org/sec1-v2.pdf

Size of a raw uncompressed elliptic curve point sans the 0x04 tag byte added in the UncompressedPointSize value.

Size of an uncompressed elliptic curve point serialized using the Elliptic-Curve-Point-to-Octet-String encoding (including the 0x04 tag)

Maximum size of an ASN.1 DER encoded ECDSA signature using this curve

Size of a compact, fixed-sized ECDSA signature using this curve

Associated Constants

Elliptic curve kind

Implementors

impl WeierstrassCurve for NistP256
[src]

Elliptic curve kind

Random 256-bit (32-byte) private scalar

Size of a compressed elliptic curve point serialized using Elliptic-Curve-Point-to-Octet-String encoding

Size of a raw uncompressed elliptic curve point sans the 0x04 tag byte added in the UncompressedPointSize value.

Size of an uncompressed elliptic curve point serialized using the Elliptic-Curve-Point-to-Octet-String encoding (including the 0x04 tag)

Maximum size of an ASN.1 DER encoded signature

Concatenated r || s values (32-bytes each)

impl WeierstrassCurve for NistP384
[src]

Elliptic curve kind

Random 384-bit (48-byte) private scalar

Size of a compressed elliptic curve point serialized using Elliptic-Curve-Point-to-Octet-String encoding

Size of a raw uncompressed elliptic curve point sans the 0x04 tag byte added in the UncompressedPointSize value.

Size of an uncompressed elliptic curve point serialized using the Elliptic-Curve-Point-to-Octet-String encoding (including the 0x04 tag)

Maximum size of an ASN.1 DER encoded signature

Concatenated r || s values (48-bytes each)

impl WeierstrassCurve for Secp256k1
[src]

Elliptic curve kind

Random 256-bit (32-byte) private scalar

Size of a compressed elliptic curve point serialized using Elliptic-Curve-Point-to-Octet-String encoding

Size of a raw uncompressed elliptic curve point sans the 0x04 tag byte added in the UncompressedPointSize value.

Size of a raw uncompressed elliptic curve point (i.e sans the 0x04 tag added by Elliptic-Curve-Point-to-Octet-String encoding)

Maximum size of an ASN.1 DER encoded signature

Concatenated r || s values (32-bytes each)