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.

rfc3560.py 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. # RSAES-OAEP Key Transport Algorithm in CMS
  10. #
  11. # Notice that all of the things needed in RFC 3560 are also defined
  12. # in RFC 4055. So, they are all pulled from the RFC 4055 module into
  13. # this one so that people looking a RFC 3560 can easily find them.
  14. #
  15. # ASN.1 source from:
  16. # https://www.rfc-editor.org/rfc/rfc3560.txt
  17. #
  18. from pyasn1_modules import rfc4055
  19. id_sha1 = rfc4055.id_sha1
  20. id_sha256 = rfc4055.id_sha256
  21. id_sha384 = rfc4055.id_sha384
  22. id_sha512 = rfc4055.id_sha512
  23. id_mgf1 = rfc4055.id_mgf1
  24. rsaEncryption = rfc4055.rsaEncryption
  25. id_RSAES_OAEP = rfc4055.id_RSAES_OAEP
  26. id_pSpecified = rfc4055.id_pSpecified
  27. sha1Identifier = rfc4055.sha1Identifier
  28. sha256Identifier = rfc4055.sha256Identifier
  29. sha384Identifier = rfc4055.sha384Identifier
  30. sha512Identifier = rfc4055.sha512Identifier
  31. mgf1SHA1Identifier = rfc4055.mgf1SHA1Identifier
  32. mgf1SHA256Identifier = rfc4055.mgf1SHA256Identifier
  33. mgf1SHA384Identifier = rfc4055.mgf1SHA384Identifier
  34. mgf1SHA512Identifier = rfc4055.mgf1SHA512Identifier
  35. pSpecifiedEmptyIdentifier = rfc4055.pSpecifiedEmptyIdentifier
  36. class RSAES_OAEP_params(rfc4055.RSAES_OAEP_params):
  37. pass
  38. rSAES_OAEP_Default_Params = RSAES_OAEP_params()
  39. rSAES_OAEP_Default_Identifier = rfc4055.rSAES_OAEP_Default_Identifier
  40. rSAES_OAEP_SHA256_Params = rfc4055.rSAES_OAEP_SHA256_Params
  41. rSAES_OAEP_SHA256_Identifier = rfc4055.rSAES_OAEP_SHA256_Identifier
  42. rSAES_OAEP_SHA384_Params = rfc4055.rSAES_OAEP_SHA384_Params
  43. rSAES_OAEP_SHA384_Identifier = rfc4055.rSAES_OAEP_SHA384_Identifier
  44. rSAES_OAEP_SHA512_Params = rfc4055.rSAES_OAEP_SHA512_Params
  45. rSAES_OAEP_SHA512_Identifier = rfc4055.rSAES_OAEP_SHA512_Identifier