1# Copyright (c) 2019, Vigil Security, LLC 2# License: http://snmplabs.com/pyasn1/license.html 3# 4# Use of the Advanced Encryption Standard (AES) Encryption 5# Algorithm in the Cryptographic Message Syntax (CMS) 6# 7# ASN.1 source from: 8# https://www.rfc-editor.org/rfc/rfc3565.txt 9 10from pyasn1.type import constraint 11from pyasn1.type import univ 12 13from pyasn1_modules import rfc5280 14 15 16class AlgorithmIdentifier(rfc5280.AlgorithmIdentifier): 17 pass 18 19 20class AES_IV(univ.OctetString): 21 pass 22 23 24AES_IV.subtypeSpec = constraint.ValueSizeConstraint(16, 16) 25 26id_aes128_CBC = univ.ObjectIdentifier('2.16.840.1.101.3.4.1.2') 27 28id_aes192_CBC = univ.ObjectIdentifier('2.16.840.1.101.3.4.1.22') 29 30id_aes256_CBC = univ.ObjectIdentifier('2.16.840.1.101.3.4.1.42') 31 32id_aes128_wrap = univ.ObjectIdentifier('2.16.840.1.101.3.4.1.5') 33 34id_aes192_wrap = univ.ObjectIdentifier('2.16.840.1.101.3.4.1.25') 35 36id_aes256_wrap = univ.ObjectIdentifier('2.16.840.1.101.3.4.1.45') 37