File tree 1 file changed +3
-2
lines changed
e2e_tests/tests/per_provider/normal_tests
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -160,9 +160,10 @@ fn wrong_permitted_algorithm() {
160
160
}
161
161
let key_type = Type :: RsaKeyPair ;
162
162
// Do not permit RSA PKCS 1v15 signing algorithm with SHA-256.
163
+ #[ allow( deprecated) ]
163
164
let permitted_algorithm =
164
165
Algorithm :: AsymmetricSignature ( AsymmetricSignature :: RsaPkcs1v15Sign {
165
- hash_alg : Hash :: Sha512 . into ( ) ,
166
+ hash_alg : Hash :: Sha1 . into ( ) ,
166
167
} ) ;
167
168
let key_attributes = Attributes {
168
169
lifetime : Lifetime :: Persistent ,
@@ -210,7 +211,7 @@ fn no_usage_flag_set() {
210
211
let key_type = Type :: RsaKeyPair ;
211
212
let permitted_algorithm =
212
213
Algorithm :: AsymmetricSignature ( AsymmetricSignature :: RsaPkcs1v15Sign {
213
- hash_alg : Hash :: Sha512 . into ( ) ,
214
+ hash_alg : Hash :: Sha256 . into ( ) ,
214
215
} ) ;
215
216
let key_attributes = Attributes {
216
217
lifetime : Lifetime :: Persistent ,
You can’t perform that action at this time.
0 commit comments