Function hacl::hazmat::p256::validate_scalar

source ยท
pub fn validate_scalar(scalar: &[u8; 32]) -> Result<(), Error>
Expand description

Validate a P256 secret key (scalar).

Returns Error::InvalidScalar if the scalar is not valid.