Skip to content

Commit cf55513

Browse files
authored
Added OID for 3DES-EDE-CBC (#12349)
1 parent 535f134 commit cf55513

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/rust/cryptography-x509/src/common.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ pub enum AlgorithmParameters<'a> {
149149
#[defined_by(oid::AES_256_CBC_OID)]
150150
Aes256Cbc([u8; 16]),
151151

152+
#[defined_by(oid::DES_EDE3_CBC_OID)]
153+
DesEde3Cbc([u8; 8]),
154+
152155
#[defined_by(oid::PBES1_WITH_SHA_AND_3KEY_TRIPLEDES_CBC)]
153156
Pbes1WithShaAnd3KeyTripleDesCbc(PBES1Params),
154157

src/rust/cryptography-x509/src/oid.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,5 +159,7 @@ pub const AES_256_CBC_OID: asn1::ObjectIdentifier = asn1::oid!(2, 16, 840, 1, 10
159159
pub const AES_192_CBC_OID: asn1::ObjectIdentifier = asn1::oid!(2, 16, 840, 1, 101, 3, 4, 1, 22);
160160
pub const AES_128_CBC_OID: asn1::ObjectIdentifier = asn1::oid!(2, 16, 840, 1, 101, 3, 4, 1, 2);
161161

162+
pub const DES_EDE3_CBC_OID: asn1::ObjectIdentifier = asn1::oid!(1, 2, 840, 113549, 3, 7);
163+
162164
pub const HMAC_WITH_SHA1_OID: asn1::ObjectIdentifier = asn1::oid!(1, 2, 840, 113549, 2, 7);
163165
pub const HMAC_WITH_SHA256_OID: asn1::ObjectIdentifier = asn1::oid!(1, 2, 840, 113549, 2, 9);

0 commit comments

Comments
 (0)