RSA.asn1 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. -- -------------------------------------------------------------------
  2. -- Taken from RFC 8017, Appendix C
  3. -- (https://www.rfc-editor.org/rfc/rfc8017.html#appendix-C)
  4. -- ============================
  5. -- Basic object identifiers
  6. -- ============================
  7. -- The DER encoding of this in hexadecimal is:
  8. -- (0x)06 08
  9. -- 2A 86 48 86 F7 0D 01 01
  10. --
  11. pkcs-1 OBJECT IDENTIFIER ::= {
  12. iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 1
  13. }
  14. --
  15. -- When rsaEncryption is used in an AlgorithmIdentifier,
  16. -- the parameters MUST be present and MUST be NULL.
  17. --
  18. rsaEncryption OBJECT IDENTIFIER ::= { pkcs-1 1 }
  19. --
  20. -- When id-RSAES-OAEP is used in an AlgorithmIdentifier, the
  21. -- parameters MUST be present and MUST be RSAES-OAEP-params.
  22. --
  23. id-RSAES-OAEP OBJECT IDENTIFIER ::= { pkcs-1 7 }
  24. --
  25. -- When id-pSpecified is used in an AlgorithmIdentifier, the
  26. -- parameters MUST be an OCTET STRING.
  27. --
  28. id-pSpecified OBJECT IDENTIFIER ::= { pkcs-1 9 }
  29. --
  30. -- When id-RSASSA-PSS is used in an AlgorithmIdentifier, the
  31. -- parameters MUST be present and MUST be RSASSA-PSS-params.
  32. --
  33. id-RSASSA-PSS OBJECT IDENTIFIER ::= { pkcs-1 10 }
  34. --
  35. -- When the following OIDs are used in an AlgorithmIdentifier,
  36. -- the parameters MUST be present and MUST be NULL.
  37. --
  38. md2WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 2 }
  39. md5WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 4 }
  40. sha1WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 5 }
  41. sha224WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 14 }
  42. sha256WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 11 }
  43. sha384WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 12 }
  44. sha512WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 13 }
  45. sha512-224WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 15 }
  46. sha512-256WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 16 }
  47. --
  48. -- When id-mgf1 is used in an AlgorithmIdentifier, the parameters
  49. -- MUST be present and MUST be a HashAlgorithm, for example, sha1.
  50. --
  51. id-mgf1 OBJECT IDENTIFIER ::= { pkcs-1 8 }
  52. -- -------------------------------------------------------------------
  53. -- Taken from https://csrc.nist.gov/projects/computer-security-objects-register/algorithm-registration
  54. id-rsassa-pkcs1-v1_5-with-sha3-224 OBJECT IDENTIFIER ::= { sigAlgs 13 }
  55. id-rsassa-pkcs1-v1_5-with-sha3-256 OBJECT IDENTIFIER ::= { sigAlgs 14 }
  56. id-rsassa-pkcs1-v1_5-with-sha3-384 OBJECT IDENTIFIER ::= { sigAlgs 15 }
  57. id-rsassa-pkcs1-v1_5-with-sha3-512 OBJECT IDENTIFIER ::= { sigAlgs 16 }
  58. -- -------------------------------------------------------------------
  59. -- These OID's exist in the codebase but may need to be deprecated at some point.
  60. -- mdc2 and md5_sha1 have been omitted as they do not look like valid entries.
  61. md4WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 3 }
  62. ripemd160WithRSAEncryption OBJECT IDENTIFIER ::= {
  63. iso(1) identified-organization(3) teletrust(36) algorithm(3) signatureAlgorithm(3) rsaSignature(1) 2
  64. }