Function ed25519_dalek::hazmat::raw_verify_prehashed
source · pub fn raw_verify_prehashed<CtxDigest, MsgDigest>(
vk: &VerifyingKey,
prehashed_message: MsgDigest,
context: Option<&[u8]>,
signature: &Signature
) -> Result<(), SignatureError>
Available on crate features
hazmat
and digest
only.Expand description
The batched Ed25519 verification check, rejecting non-canonical R values. MsgDigest
is the
digest used to hash the signed message. CtxDigest
is the digest used to calculate the
pseudorandomness needed for signing. According to the Ed25519 spec, MsgDigest = CtxDigest = Sha512
.