Module elliptic_curve::sec1
source ·
[−]Expand description
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):
Structs
SEC1 encoded curve point.
Enums
Enum representing the coordinates of either compressed or uncompressed SEC1-encoded elliptic curve points.
Tag byte used by the Elliptic-Curve-Point-to-Octet-String
encoding.
Traits
Trait for deserializing a value from a SEC1 encoded curve point.
Trait for serializing a value to a SEC1 encoded curve point.
Type Definitions
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).
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).
Size of an untagged point for given elliptic curve.