Skip to content

Commit

Permalink
Merge pull request #499 from hug-dev/lower-hash
Browse files Browse the repository at this point in the history
Lower Hash algorithm
  • Loading branch information
hug-dev authored Aug 8, 2021
2 parents 80ab977 + c8813b1 commit c1ba7e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions e2e_tests/tests/per_provider/normal_tests/key_attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,10 @@ fn wrong_permitted_algorithm() {
}
let key_type = Type::RsaKeyPair;
// Do not permit RSA PKCS 1v15 signing algorithm with SHA-256.
#[allow(deprecated)]
let permitted_algorithm =
Algorithm::AsymmetricSignature(AsymmetricSignature::RsaPkcs1v15Sign {
hash_alg: Hash::Sha512.into(),
hash_alg: Hash::Sha1.into(),
});
let key_attributes = Attributes {
lifetime: Lifetime::Persistent,
Expand Down Expand Up @@ -210,7 +211,7 @@ fn no_usage_flag_set() {
let key_type = Type::RsaKeyPair;
let permitted_algorithm =
Algorithm::AsymmetricSignature(AsymmetricSignature::RsaPkcs1v15Sign {
hash_alg: Hash::Sha512.into(),
hash_alg: Hash::Sha256.into(),
});
let key_attributes = Attributes {
lifetime: Lifetime::Persistent,
Expand Down

0 comments on commit c1ba7e0

Please sign in to comment.