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# Algorithm Identifiers for HKDF 10# 11# ASN.1 source from: 12# https://www.rfc-editor.org/rfc/rfc8619.txt 13# 14 15from pyasn1.type import univ 16 17from pyasn1_modules import rfc5280 18 19 20# Object Identifiers 21 22id_alg_hkdf_with_sha256 = univ.ObjectIdentifier('1.2.840.113549.1.9.16.3.28') 23 24 25id_alg_hkdf_with_sha384 = univ.ObjectIdentifier('1.2.840.113549.1.9.16.3.29') 26 27 28id_alg_hkdf_with_sha512 = univ.ObjectIdentifier('1.2.840.113549.1.9.16.3.30') 29 30 31# Key Derivation Algorithm Identifiers 32 33kda_hkdf_with_sha256 = rfc5280.AlgorithmIdentifier() 34kda_hkdf_with_sha256['algorithm'] = id_alg_hkdf_with_sha256 35# kda_hkdf_with_sha256['parameters'] are absent 36 37 38kda_hkdf_with_sha384 = rfc5280.AlgorithmIdentifier() 39kda_hkdf_with_sha384['algorithm'] = id_alg_hkdf_with_sha384 40# kda_hkdf_with_sha384['parameters'] are absent 41 42 43kda_hkdf_with_sha512 = rfc5280.AlgorithmIdentifier() 44kda_hkdf_with_sha512['algorithm'] = id_alg_hkdf_with_sha512 45# kda_hkdf_with_sha512['parameters'] are absent 46