File tree Expand file tree Collapse file tree
attestation-agent/deps/crypto Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ rand.workspace = true
2121
2222# This is for API compability of p256 who is using the old version of `rand`
2323rand_08 = { package = " rand" , version = " 0.8" , optional = true }
24- rsa = { workspace = true , optional = true }
24+ rsa = { workspace = true , optional = true , features = [ " sha2 " ] }
2525serde.workspace = true
2626serde_json.workspace = true
2727sha2.workspace = true
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ impl RSAKeyPair {
3939 match mode {
4040 PaddingMode :: OAEP => self
4141 . private_key
42- . decrypt ( Oaep :: new :: < sha2:: Sha256 > ( ) , & cipher_text)
42+ . decrypt ( Oaep :: new :: < rsa :: sha2:: Sha256 > ( ) , & cipher_text)
4343 . map_err ( |e| anyhow ! ( "RSA key decrypt OAEP failed: {:?}" , e) ) ,
4444 #[ allow( deprecated) ]
4545 PaddingMode :: PKCS1v15 => self
You can’t perform that action at this time.
0 commit comments