Function oprf::p256_sha256::hash_to_scalar
source · pub fn hash_to_scalar(
bytes: &[u8],
context_string: &[u8]
) -> Result<P256Scalar, Error>
Expand description
HashToScalar(): Use hash_to_field from [I-D.irtf-cfrg-hash-to-curve] using L = 48, expand_message_xmd with SHA-256, DST = “HashToScalar-” || contextString, and prime modulus equal to Group.Order().