diff options
author | Russ Housley <housley@vigilsec.com> | 2019-06-11 13:56:50 -0400 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2019-06-11 19:56:50 +0200 |
commit | 1de1622ed5751168b090e9aa3d78cec83d13f3fe (patch) | |
tree | e1245f0a1004add5b22dec6d8f9e79a27721919d /pyasn1_modules | |
parent | 3aae55e849eb11259a2b5a7333a148993d46d14e (diff) | |
download | pyasn1-modules-1de1622ed5751168b090e9aa3d78cec83d13f3fe.tar.gz |
Add support for RFC 8619 (#43)
Add support for RFC 8619
Diffstat (limited to 'pyasn1_modules')
-rw-r--r-- | pyasn1_modules/rfc8619.py | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pyasn1_modules/rfc8619.py b/pyasn1_modules/rfc8619.py new file mode 100644 index 0000000..0aaa811 --- /dev/null +++ b/pyasn1_modules/rfc8619.py @@ -0,0 +1,45 @@ +# +# This file is part of pyasn1-modules software. +# +# Created by Russ Housley. +# +# Copyright (c) 2019, Vigil Security, LLC +# License: http://snmplabs.com/pyasn1/license.html +# +# Algorithm Identifiers for HKDF +# +# ASN.1 source from: +# https://www.rfc-editor.org/rfc/rfc8619.txt +# + +from pyasn1.type import univ + +from pyasn1_modules import rfc5280 + + +# Object Identifiers + +id_alg_hkdf_with_sha256 = univ.ObjectIdentifier('1.2.840.113549.1.9.16.3.28') + + +id_alg_hkdf_with_sha384 = univ.ObjectIdentifier('1.2.840.113549.1.9.16.3.29') + + +id_alg_hkdf_with_sha512 = univ.ObjectIdentifier('1.2.840.113549.1.9.16.3.30') + + +# Key Derivation Algorithm Identifiers + +kda_hkdf_with_sha256 = rfc5280.AlgorithmIdentifier() +kda_hkdf_with_sha256['algorithm'] = id_alg_hkdf_with_sha256 +# kda_hkdf_with_sha256['parameters'] are absent + + +kda_hkdf_with_sha384 = rfc5280.AlgorithmIdentifier() +kda_hkdf_with_sha384['algorithm'] = id_alg_hkdf_with_sha384 +# kda_hkdf_with_sha384['parameters'] are absent + + +kda_hkdf_with_sha512 = rfc5280.AlgorithmIdentifier() +kda_hkdf_with_sha512['algorithm'] = id_alg_hkdf_with_sha512 +# kda_hkdf_with_sha512['parameters'] are absent |