aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public_key/asn1/CMSAesRsaesOaep.asn1
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2019-05-28 19:39:47 +0200
committerIngela Anderton Andin <[email protected]>2019-06-17 11:23:19 +0200
commit1a58ece4788ce6ff89827019d085f62a47d9726d (patch)
treecdacc65421a883ad5ce25849892a2c88466dee56 /lib/public_key/asn1/CMSAesRsaesOaep.asn1
parent9127de8d0204755a7a95b674e77c6aa0583efce0 (diff)
downloadotp-1a58ece4788ce6ff89827019d085f62a47d9726d.tar.gz
otp-1a58ece4788ce6ff89827019d085f62a47d9726d.tar.bz2
otp-1a58ece4788ce6ff89827019d085f62a47d9726d.zip
public_key: Add AES to PBE2
Diffstat (limited to 'lib/public_key/asn1/CMSAesRsaesOaep.asn1')
-rw-r--r--lib/public_key/asn1/CMSAesRsaesOaep.asn139
1 files changed, 39 insertions, 0 deletions
diff --git a/lib/public_key/asn1/CMSAesRsaesOaep.asn1 b/lib/public_key/asn1/CMSAesRsaesOaep.asn1
new file mode 100644
index 0000000000..ca8c7b7f92
--- /dev/null
+++ b/lib/public_key/asn1/CMSAesRsaesOaep.asn1
@@ -0,0 +1,39 @@
+CMSAesRsaesOaep {iso(1) member-body(2) us(840) rsadsi(113549)
+ pkcs(1) pkcs-9(9) smime(16) modules(0) id-mod-cms-aes(19) }
+
+
+DEFINITIONS IMPLICIT TAGS ::=
+BEGIN
+
+-- EXPORTS ALL --
+IMPORTS
+ -- PKIX
+ AlgorithmIdentifier
+ FROM PKIX1Explicit88 {iso(1) identified-organization(3) dod(6)
+ internet(1) security(5) mechanisms(5) pkix(7) id-mod(0)
+ id-pkix1-explicit(18)};
+
+-- AES information object identifiers --
+
+aes OBJECT IDENTIFIER ::= { joint-iso-itu-t(2) country(16) us(840)
+ organization(1) gov(101) csor(3) nistAlgorithms(4) 1 }
+
+-- AES using CBC-chaining mode for key sizes of 128, 192, 256
+
+id-aes128-CBC OBJECT IDENTIFIER ::= { aes 2 }
+id-aes192-CBC OBJECT IDENTIFIER ::= { aes 22 }
+id-aes256-CBC OBJECT IDENTIFIER ::= { aes 42 }
+
+-- AES-IV is a the parameter for all the above object identifiers.
+
+AES-IV ::= OCTET STRING (SIZE(16))
+
+
+-- AES Key Wrap Algorithm Identifiers - Parameter is absent
+
+id-aes128-wrap OBJECT IDENTIFIER ::= { aes 5 }
+id-aes192-wrap OBJECT IDENTIFIER ::= { aes 25 }
+id-aes256-wrap OBJECT IDENTIFIER ::= { aes 45 }
+
+
+END