@@ -45,7 +45,7 @@ fn sign_verify() -> TestResult {
45
45
let mechanism = Mechanism :: RsaPkcsKeyPairGen ;
46
46
47
47
let public_exponent: Vec < u8 > = vec ! [ 0x01 , 0x00 , 0x01 ] ;
48
- let modulus_bits = 1024 ;
48
+ let modulus_bits = 2048 ;
49
49
50
50
// pub key template
51
51
let pub_key_template = vec ! [
@@ -231,7 +231,7 @@ fn sign_verify_multipart() -> TestResult {
231
231
232
232
// Define parameters for keypair
233
233
let public_exponent = vec ! [ 0x01 , 0x00 , 0x01 ] ;
234
- let modulus_bits = 1024 ;
234
+ let modulus_bits = 2048 ;
235
235
236
236
let pub_key_template = vec ! [
237
237
Attribute :: Token ( true ) ,
@@ -340,7 +340,7 @@ fn sign_verify_multipart_already_initialized() -> TestResult {
340
340
341
341
// Define parameters for keypair
342
342
let public_exponent = vec ! [ 0x01 , 0x00 , 0x01 ] ;
343
- let modulus_bits = 1024 ;
343
+ let modulus_bits = 2048 ;
344
344
345
345
let pub_key_template = vec ! [
346
346
Attribute :: Token ( true ) ,
@@ -405,7 +405,7 @@ fn encrypt_decrypt() -> TestResult {
405
405
let mechanism = Mechanism :: RsaPkcsKeyPairGen ;
406
406
407
407
let public_exponent: Vec < u8 > = vec ! [ 0x01 , 0x00 , 0x01 ] ;
408
- let modulus_bits = 1024 ;
408
+ let modulus_bits = 2048 ;
409
409
410
410
// pub key template
411
411
let pub_key_template = vec ! [
@@ -1025,7 +1025,7 @@ fn wrap_and_unwrap_key() {
1025
1025
Attribute :: Token ( true ) ,
1026
1026
Attribute :: Private ( true ) ,
1027
1027
Attribute :: PublicExponent ( vec![ 0x01 , 0x00 , 0x01 ] ) ,
1028
- Attribute :: ModulusBits ( 1024 . into( ) ) ,
1028
+ Attribute :: ModulusBits ( 2048 . into( ) ) ,
1029
1029
// key needs to have "wrap" attribute to wrap other keys
1030
1030
Attribute :: Wrap ( true ) ,
1031
1031
] ;
@@ -1044,7 +1044,7 @@ fn wrap_and_unwrap_key() {
1044
1044
let wrapped_key = session
1045
1045
. wrap_key ( & Mechanism :: RsaPkcs , wrapping_key, key_to_be_wrapped)
1046
1046
. unwrap ( ) ;
1047
- assert_eq ! ( wrapped_key. len( ) , 128 ) ;
1047
+ assert_eq ! ( wrapped_key. len( ) , 256 ) ;
1048
1048
1049
1049
let unwrapped_key = session
1050
1050
. unwrap_key (
@@ -1665,7 +1665,7 @@ fn update_attributes_key() -> TestResult {
1665
1665
Attribute :: Token ( true ) ,
1666
1666
Attribute :: Private ( true ) ,
1667
1667
Attribute :: PublicExponent ( vec![ 0x01 , 0x00 , 0x01 ] ) ,
1668
- Attribute :: ModulusBits ( 1024 . into( ) ) ,
1668
+ Attribute :: ModulusBits ( 2048 . into( ) ) ,
1669
1669
] ;
1670
1670
1671
1671
// priv key template
0 commit comments