rfc5649.py 830 B

123456789101112131415161718192021222324252627282930313233
  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. # AES Key Wrap with Padding
  9. #
  10. # ASN.1 source from:
  11. # https://www.rfc-editor.org/rfc/rfc5649.txt
  12. from pyasn1.type import univ
  13. from pyasn1_modules import rfc5280
  14. class AlgorithmIdentifier(rfc5280.AlgorithmIdentifier):
  15. pass
  16. id_aes128_wrap = univ.ObjectIdentifier('2.16.840.1.101.3.4.1.5')
  17. id_aes192_wrap = univ.ObjectIdentifier('2.16.840.1.101.3.4.1.25')
  18. id_aes256_wrap = univ.ObjectIdentifier('2.16.840.1.101.3.4.1.45')
  19. id_aes128_wrap_pad = univ.ObjectIdentifier('2.16.840.1.101.3.4.1.8')
  20. id_aes192_wrap_pad = univ.ObjectIdentifier('2.16.840.1.101.3.4.1.28')
  21. id_aes256_wrap_pad = univ.ObjectIdentifier('2.16.840.1.101.3.4.1.48')