How to create a Sha1 Signature?
thep0y opened this issue · 1 comments
thep0y commented
Currently only Sha2 implements the AssociatedOid trait?
let signature = Pkcs1v15Sign::new::<Sha256>(); // => OK
let signature = Pkcs1v15Sign::new::<Sha1>(); // => the trait bound `Sha1Core: AssociatedOid` is not satisfied
tarcieri commented
You either need to enable the sha1
feature of rsa
and import it as rsa::sha1::Sha1
or you need to enable the oid
feature of the sha1
crate if you're importing it that way.
This will hopefully be a bit more automatic in the next release of sha1
/sha2
.