Crate p256_cm4

Crate p256_cm4 

Source

Structs§

SignPrecomp
Sign precomputation state.

Functions§

check_range_n
Checks that the argument, as little-endian integer, is a reduced non-zero element of the scalar field.
check_range_p
Checks that the argument, as little-endian integer, is a reduced element of the base field.
convert_endianness
Converts endianness by reversing the input value.
ecdh_calc_shared_secret
Generates the shared secret according to the ECDH standard.
keygen
Calculates the public key from a given private key for use by either ECDSA or ECDH.
octet_string_to_point
Decodes a point according to the three encodings above.
point_to_octet_string_compressed
Compressed encoding
point_to_octet_string_hybrid
Hybrid encoding
point_to_octet_string_uncompressed
Uncompressed encoding
scalarmult_base
Raw scalar multiplication by the base point of the elliptic curve.
scalarmult_generic
Raw scalar multiplication by any point on the elliptic curve.
sign
Creates an ECDSA signature.
sign_step1
Creates an ECDSA signature, using a two-step procedure.
sign_step2
Second step of creating an ECDSA signature, using a two-step procedure.
verify
Verifies an ECDSA signature.