codekingpro/portable-devtools
114k
1#2# This file is part of pyasn1-modules software.3#4# Created by Russ Housley.5#6# Copyright (c) 2019, Vigil Security, LLC7# License: http://snmplabs.com/pyasn1/license.html8#9# SEED Encryption Algorithm in CMS10#11# ASN.1 source from:12# https://www.rfc-editor.org/rfc/rfc4010.txt13#14 15from pyasn1.type import constraint16from pyasn1.type import univ17 18from pyasn1_modules import rfc528019 20 21id_alg_HMACwith3DESwrap = univ.ObjectIdentifier('1.2.840.113549.1.9.16.3.11')22 23 24id_alg_HMACwithAESwrap = univ.ObjectIdentifier('1.2.840.113549.1.9.16.3.12')25 26 27# Update the Algorithm Identifier map in rfc5280.py.28 29_algorithmIdentifierMapUpdate = {30 id_alg_HMACwith3DESwrap: univ.Null(""),31 id_alg_HMACwithAESwrap: univ.Null(""),32}33 34rfc5280.algorithmIdentifierMap.update(_algorithmIdentifierMapUpdate)35 