Skip to main content

Module sec1

Module 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):

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.
ToCompactEncodedPoint
Trait for serializing a value to a SEC1 encoded curve point with compaction.
ToEncodedPoint
Trait for serializing a value to a SEC1 encoded curve point.
ValidatePublicKey
Validate that the given EncodedPoint represents the encoded public key value of the given secret.

Type Aliases§

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.