1# 2# This file is part of pyasn1-modules software. 3# 4# Created by Russ Housley. 5# 6# Copyright (c) 2019, Vigil Security, LLC 7# License: http://snmplabs.com/pyasn1/license.html 8# 9# RSAES-OAEP Key Transport Algorithm in CMS 10# 11# Notice that all of the things needed in RFC 3560 are also defined 12# in RFC 4055. So, they are all pulled from the RFC 4055 module into 13# this one so that people looking a RFC 3560 can easily find them. 14# 15# ASN.1 source from: 16# https://www.rfc-editor.org/rfc/rfc3560.txt 17# 18 19from pyasn1_modules import rfc4055 20 21id_sha1 = rfc4055.id_sha1 22 23id_sha256 = rfc4055.id_sha256 24 25id_sha384 = rfc4055.id_sha384 26 27id_sha512 = rfc4055.id_sha512 28 29id_mgf1 = rfc4055.id_mgf1 30 31rsaEncryption = rfc4055.rsaEncryption 32 33id_RSAES_OAEP = rfc4055.id_RSAES_OAEP 34 35id_pSpecified = rfc4055.id_pSpecified 36 37sha1Identifier = rfc4055.sha1Identifier 38 39sha256Identifier = rfc4055.sha256Identifier 40 41sha384Identifier = rfc4055.sha384Identifier 42 43sha512Identifier = rfc4055.sha512Identifier 44 45mgf1SHA1Identifier = rfc4055.mgf1SHA1Identifier 46 47mgf1SHA256Identifier = rfc4055.mgf1SHA256Identifier 48 49mgf1SHA384Identifier = rfc4055.mgf1SHA384Identifier 50 51mgf1SHA512Identifier = rfc4055.mgf1SHA512Identifier 52 53pSpecifiedEmptyIdentifier = rfc4055.pSpecifiedEmptyIdentifier 54 55 56class RSAES_OAEP_params(rfc4055.RSAES_OAEP_params): 57 pass 58 59 60rSAES_OAEP_Default_Params = RSAES_OAEP_params() 61 62rSAES_OAEP_Default_Identifier = rfc4055.rSAES_OAEP_Default_Identifier 63 64rSAES_OAEP_SHA256_Params = rfc4055.rSAES_OAEP_SHA256_Params 65 66rSAES_OAEP_SHA256_Identifier = rfc4055.rSAES_OAEP_SHA256_Identifier 67 68rSAES_OAEP_SHA384_Params = rfc4055.rSAES_OAEP_SHA384_Params 69 70rSAES_OAEP_SHA384_Identifier = rfc4055.rSAES_OAEP_SHA384_Identifier 71 72rSAES_OAEP_SHA512_Params = rfc4055.rSAES_OAEP_SHA512_Params 73 74rSAES_OAEP_SHA512_Identifier = rfc4055.rSAES_OAEP_SHA512_Identifier 75