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.

rfc8410.py 971B

1 year ago
12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # This file is being contributed to pyasn1-modules software.
  2. #
  3. # Created by Russ Housley.
  4. #
  5. # Copyright (c) 2019, Vigil Security, LLC
  6. # License: http://snmplabs.com/pyasn1/license.html
  7. #
  8. # Algorithm Identifiers for Ed25519, Ed448, X25519, and X448
  9. #
  10. # ASN.1 source from:
  11. # https://www.rfc-editor.org/rfc/rfc8410.txt
  12. from pyasn1.type import univ
  13. from pyasn1_modules import rfc3565
  14. from pyasn1_modules import rfc4055
  15. from pyasn1_modules import rfc5280
  16. class SignatureAlgorithmIdentifier(rfc5280.AlgorithmIdentifier):
  17. pass
  18. class KeyEncryptionAlgorithmIdentifier(rfc5280.AlgorithmIdentifier):
  19. pass
  20. class CurvePrivateKey(univ.OctetString):
  21. pass
  22. id_X25519 = univ.ObjectIdentifier('1.3.101.110')
  23. id_X448 = univ.ObjectIdentifier('1.3.101.111')
  24. id_Ed25519 = univ.ObjectIdentifier('1.3.101.112')
  25. id_Ed448 = univ.ObjectIdentifier('1.3.101.113')
  26. id_sha512 = rfc4055.id_sha512
  27. id_aes128_wrap = rfc3565.id_aes128_wrap
  28. id_aes256_wrap = rfc3565.id_aes256_wrap