Expand description
§RustCrypto: hash2curve
Used by RustCrypto to implement hash2curve, RFC9380, for elliptic curves.
§License
All crates licensed under either of:
at your option.
§Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Structs§
- Expand
MsgXmd - Implements
expand_message_xofvia theExpandMsgtrait: https://www.rfc-editor.org/rfc/rfc9380.html#name-expand_message_xmd - Expand
MsgXof - Implements
expand_message_xofvia theExpandMsgtrait: https://www.rfc-editor.org/rfc/rfc9380.html#name-expand_message_xof - Expander
Xmd Expandertype forExpandMsgXmd.
Enums§
- Expand
MsgXmd Error - Error type for
ExpandMsgXmd. - Expand
MsgXof Error - Error type for
ExpandMsgXof.
Traits§
- Expand
Msg - Trait for types implementing expand_message interface for
hash_to_field. - Expander
- Expander that, call
readuntil enough bytes have been consumed. - Group
Digest - Hash arbitrary byte sequences to a valid group element.
- MapTo
Curve - Trait for converting field elements into a point via a mapping method like Simplified Shallue-van de Woestijne-Ulas or Elligator.
- Oprf
Parameters - Elliptic curve parameters used by OPRF.
Functions§
- encode_
from_ bytes - Computes the encode to curve routine.
See
GroupDigest::encode_from_bytes()for more details. - hash_
from_ bytes - Computes the hash to curve routine.
See
GroupDigest::hash_from_bytes()for more details. - hash_
to_ scalar - Computes the hash to field routine according to https://www.rfc-editor.org/rfc/rfc9380.html#section-5-4 and returns a scalar.