fiat_p256_i2
will mask out all but the lowest 2 bits, but it sure as hell isn't doing that.
sha256
crate should support every variant of those under the sun or not
Signer
is for arbitrary-length messages, and does whatever is appropriate to sign them. This fits with the auto-derive to DigestSigner
underneath.DigestSigner
is the "main" interface; for RSA we impl Digest for NoneDigest
to handle the directly-signed message case.RandomizedDigestSigner
is the interface for randomized signatures.BlindedDigestSigner
is an almost-identical interface (just trait method names are different) which is for deterministic signatures with blinding.Signer
is only intended for directly-signing messages, but my concern is that confuses users given that other impls of Signer
call through to DigestSigner
due to the derive.
DigestSigner
is trying to be a ROM trait for Fiat-Shamir
finalize()
method is working; still bugs elsewhere