rfc5639.py 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. # Elliptic Curve Cryptography Brainpool Standard Curves
  9. #
  10. # ASN.1 source from:
  11. # https://www.rfc-editor.org/rfc/rfc5639.txt
  12. from pyasn1.type import univ
  13. ecStdCurvesAndGeneration = univ.ObjectIdentifier((1, 3, 36, 3, 3, 2, 8,))
  14. ellipticCurve = ecStdCurvesAndGeneration + (1,)
  15. versionOne = ellipticCurve + (1,)
  16. brainpoolP160r1 = versionOne + (1,)
  17. brainpoolP160t1 = versionOne + (2,)
  18. brainpoolP192r1 = versionOne + (3,)
  19. brainpoolP192t1 = versionOne + (4,)
  20. brainpoolP224r1 = versionOne + (5,)
  21. brainpoolP224t1 = versionOne + (6,)
  22. brainpoolP256r1 = versionOne + (7,)
  23. brainpoolP256t1 = versionOne + (8,)
  24. brainpoolP320r1 = versionOne + (9,)
  25. brainpoolP320t1 = versionOne + (10,)
  26. brainpoolP384r1 = versionOne + (11,)
  27. brainpoolP384t1 = versionOne + (12,)
  28. brainpoolP512r1 = versionOne + (13,)
  29. brainpoolP512t1 = versionOne + (14,)