Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

rfc8619.py 1.1KB

1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. from pyasn1.type import univ
  15. from pyasn1_modules import rfc5280
  16. # Object Identifiers
  17. id_alg_hkdf_with_sha256 = univ.ObjectIdentifier('1.2.840.113549.1.9.16.3.28')
  18. id_alg_hkdf_with_sha384 = univ.ObjectIdentifier('1.2.840.113549.1.9.16.3.29')
  19. id_alg_hkdf_with_sha512 = univ.ObjectIdentifier('1.2.840.113549.1.9.16.3.30')
  20. # Key Derivation Algorithm Identifiers
  21. kda_hkdf_with_sha256 = rfc5280.AlgorithmIdentifier()
  22. kda_hkdf_with_sha256['algorithm'] = id_alg_hkdf_with_sha256
  23. # kda_hkdf_with_sha256['parameters'] are absent
  24. kda_hkdf_with_sha384 = rfc5280.AlgorithmIdentifier()
  25. kda_hkdf_with_sha384['algorithm'] = id_alg_hkdf_with_sha384
  26. # kda_hkdf_with_sha384['parameters'] are absent
  27. kda_hkdf_with_sha512 = rfc5280.AlgorithmIdentifier()
  28. kda_hkdf_with_sha512['algorithm'] = id_alg_hkdf_with_sha512
  29. # kda_hkdf_with_sha512['parameters'] are absent