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§
- Encoded
Point - 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-Stringencoding.
Traits§
- From
Encoded Point - Trait for deserializing a value from a SEC1 encoded curve point.
- ToCompact
Encoded Point - Trait for serializing a value to a SEC1 encoded curve point with compaction.
- ToEncoded
Point - Trait for serializing a value to a SEC1 encoded curve point.
- Validate
Public Key - Validate that the given
EncodedPointrepresents the encoded public key value of the given secret.
Type Aliases§
- Compressed
Point Size - Size of a compressed point for the given elliptic curve when encoded
using the SEC1
Elliptic-Curve-Point-to-Octet-Stringalgorithm (including leading0x02or0x03tag byte). - Uncompressed
Point Size - Size of an uncompressed point for the given elliptic curve when encoded
using the SEC1
Elliptic-Curve-Point-to-Octet-Stringalgorithm (including leading0x04tag byte). - Untagged
Point Size - Size of an untagged point for given elliptic curve.