[][src]Module elliptic_curve::sec1

SEC1 encoding support.

Support for the Elliptic-Curve-Point-to-Octet-String encoding described in SEC1: Elliptic Curve Cryptography (Version 2.0) section 2.3.3 (p.10):

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

Structs

EncodedPoint

SEC1 encoded curve point.

Enums

Coordinates

Enum representing the coordinates of either compressed or uncompressed SEC1-encoded elliptic curve points.

Tag

Tag byte used by the Elliptic-Curve-Point-to-Octet-String encoding.

Traits

FromEncodedPoint

Trait for deserializing a value from a SEC1 encoded curve point.

ToEncodedPoint

Trait for serializing a value to a SEC1 encoded curve point.

Type Definitions

CompressedPointSize

Size of a compressed point for the given elliptic curve when encoded using the SEC1 Elliptic-Curve-Point-to-Octet-String algorithm (including leading 0x02 or 0x03 tag byte).

UncompressedPointSize

Size of an uncompressed point for the given elliptic curve when encoded using the SEC1 Elliptic-Curve-Point-to-Octet-String algorithm (including leading 0x04 tag byte).

UntaggedPointSize

Size of an untagged point for given elliptic curve.