@@ -823,7 +823,7 @@ impl COSERSAKey {
823
823
// algorithm: AlgorithmIdentifier
824
824
& der:: sequence ( & [
825
825
// algorithm
826
- & der:: object_id ( der:: OID_RS256_BYTES ) ?,
826
+ & der:: object_id ( der:: OID_RSA_ENCRYPTION_BYTES ) ?,
827
827
// parameters
828
828
& der:: null ( ) ?,
829
829
] ) ?,
@@ -1246,8 +1246,8 @@ mod test {
1246
1246
// $ ascii2der | xxd -i
1247
1247
// SEQUENCE {
1248
1248
// SEQUENCE {
1249
- // # sha256WithRSAEncryption
1250
- // OBJECT_IDENTIFIER { 1.2.840.113549.1.1.11 }
1249
+ // # rsaEncryption
1250
+ // OBJECT_IDENTIFIER { 1.2.840.113549.1.1.1 }
1251
1251
// NULL {}
1252
1252
// }
1253
1253
// BIT_STRING {
@@ -1260,7 +1260,7 @@ mod test {
1260
1260
// }
1261
1261
let expected: & [ u8 ] = & [
1262
1262
0x30 , 0x82 , 0x01 , 0x22 , 0x30 , 0x0d , 0x06 , 0x09 , 0x2a , 0x86 , 0x48 , 0x86 , 0xf7 , 0x0d ,
1263
- 0x01 , 0x01 , 0x0b , 0x05 , 0x00 , 0x03 , 0x82 , 0x01 , 0x0f , 0x00 , 0x30 , 0x82 , 0x01 , 0x0a ,
1263
+ 0x01 , 0x01 , 0x01 , 0x05 , 0x00 , 0x03 , 0x82 , 0x01 , 0x0f , 0x00 , 0x30 , 0x82 , 0x01 , 0x0a ,
1264
1264
0x02 , 0x82 , 0x01 , 0x01 , 0x00 , 0xd4 , 0xd2 , 0x53 , 0xed , 0x7a , 0x69 , 0xb1 , 0x84 , 0xc9 ,
1265
1265
0xfb , 0x70 , 0x30 , 0x0c , 0x51 , 0xb1 , 0x8f , 0x89 , 0x6c , 0xb1 , 0x31 , 0x6d , 0x87 , 0xbe ,
1266
1266
0xe1 , 0xc7 , 0xf7 , 0xb0 , 0x4f , 0xe7 , 0x27 , 0xa7 , 0xb7 , 0x7c , 0x55 , 0x20 , 0x37 , 0xa8 ,
0 commit comments