1e1051a39Sopenharmony_ci-- Copyright 2022 The OpenSSL Project Authors. All Rights Reserved. 2e1051a39Sopenharmony_ci-- 3e1051a39Sopenharmony_ci-- Licensed under the Apache License 2.0 (the "License"). You may not use 4e1051a39Sopenharmony_ci-- this file except in compliance with the License. You can obtain a copy 5e1051a39Sopenharmony_ci-- in the file LICENSE in the source distribution or at 6e1051a39Sopenharmony_ci-- https://www.openssl.org/source/license.html 7e1051a39Sopenharmony_ci 8e1051a39Sopenharmony_ci-- ------------------------------------------------------------------- 9e1051a39Sopenharmony_ci-- Taken from RFC 8017, Appendix C 10e1051a39Sopenharmony_ci-- (https://www.rfc-editor.org/rfc/rfc8017.html#appendix-C) 11e1051a39Sopenharmony_ci 12e1051a39Sopenharmony_ci-- ============================ 13e1051a39Sopenharmony_ci-- Basic object identifiers 14e1051a39Sopenharmony_ci-- ============================ 15e1051a39Sopenharmony_ci 16e1051a39Sopenharmony_ci-- The DER encoding of this in hexadecimal is: 17e1051a39Sopenharmony_ci-- (0x)06 08 18e1051a39Sopenharmony_ci-- 2A 86 48 86 F7 0D 01 01 19e1051a39Sopenharmony_ci-- 20e1051a39Sopenharmony_cipkcs-1 OBJECT IDENTIFIER ::= { 21e1051a39Sopenharmony_ci iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 1 22e1051a39Sopenharmony_ci} 23e1051a39Sopenharmony_ci 24e1051a39Sopenharmony_ci-- 25e1051a39Sopenharmony_ci-- When rsaEncryption is used in an AlgorithmIdentifier, 26e1051a39Sopenharmony_ci-- the parameters MUST be present and MUST be NULL. 27e1051a39Sopenharmony_ci-- 28e1051a39Sopenharmony_cirsaEncryption OBJECT IDENTIFIER ::= { pkcs-1 1 } 29e1051a39Sopenharmony_ci 30e1051a39Sopenharmony_ci-- 31e1051a39Sopenharmony_ci-- When id-RSAES-OAEP is used in an AlgorithmIdentifier, the 32e1051a39Sopenharmony_ci-- parameters MUST be present and MUST be RSAES-OAEP-params. 33e1051a39Sopenharmony_ci-- 34e1051a39Sopenharmony_ciid-RSAES-OAEP OBJECT IDENTIFIER ::= { pkcs-1 7 } 35e1051a39Sopenharmony_ci 36e1051a39Sopenharmony_ci-- 37e1051a39Sopenharmony_ci-- When id-pSpecified is used in an AlgorithmIdentifier, the 38e1051a39Sopenharmony_ci-- parameters MUST be an OCTET STRING. 39e1051a39Sopenharmony_ci-- 40e1051a39Sopenharmony_ciid-pSpecified OBJECT IDENTIFIER ::= { pkcs-1 9 } 41e1051a39Sopenharmony_ci 42e1051a39Sopenharmony_ci-- 43e1051a39Sopenharmony_ci-- When id-RSASSA-PSS is used in an AlgorithmIdentifier, the 44e1051a39Sopenharmony_ci-- parameters MUST be present and MUST be RSASSA-PSS-params. 45e1051a39Sopenharmony_ci-- 46e1051a39Sopenharmony_ciid-RSASSA-PSS OBJECT IDENTIFIER ::= { pkcs-1 10 } 47e1051a39Sopenharmony_ci 48e1051a39Sopenharmony_ci-- 49e1051a39Sopenharmony_ci-- When the following OIDs are used in an AlgorithmIdentifier, 50e1051a39Sopenharmony_ci-- the parameters MUST be present and MUST be NULL. 51e1051a39Sopenharmony_ci-- 52e1051a39Sopenharmony_cimd2WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 2 } 53e1051a39Sopenharmony_cimd5WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 4 } 54e1051a39Sopenharmony_cisha1WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 5 } 55e1051a39Sopenharmony_cisha224WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 14 } 56e1051a39Sopenharmony_cisha256WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 11 } 57e1051a39Sopenharmony_cisha384WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 12 } 58e1051a39Sopenharmony_cisha512WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 13 } 59e1051a39Sopenharmony_cisha512-224WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 15 } 60e1051a39Sopenharmony_cisha512-256WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 16 } 61e1051a39Sopenharmony_ci 62e1051a39Sopenharmony_ci-- 63e1051a39Sopenharmony_ci-- When id-mgf1 is used in an AlgorithmIdentifier, the parameters 64e1051a39Sopenharmony_ci-- MUST be present and MUST be a HashAlgorithm, for example, sha1. 65e1051a39Sopenharmony_ci-- 66e1051a39Sopenharmony_ciid-mgf1 OBJECT IDENTIFIER ::= { pkcs-1 8 } 67e1051a39Sopenharmony_ci 68e1051a39Sopenharmony_ci-- ------------------------------------------------------------------- 69e1051a39Sopenharmony_ci-- Taken from https://csrc.nist.gov/projects/computer-security-objects-register/algorithm-registration 70e1051a39Sopenharmony_ci 71e1051a39Sopenharmony_ciid-rsassa-pkcs1-v1_5-with-sha3-224 OBJECT IDENTIFIER ::= { sigAlgs 13 } 72e1051a39Sopenharmony_ciid-rsassa-pkcs1-v1_5-with-sha3-256 OBJECT IDENTIFIER ::= { sigAlgs 14 } 73e1051a39Sopenharmony_ciid-rsassa-pkcs1-v1_5-with-sha3-384 OBJECT IDENTIFIER ::= { sigAlgs 15 } 74e1051a39Sopenharmony_ciid-rsassa-pkcs1-v1_5-with-sha3-512 OBJECT IDENTIFIER ::= { sigAlgs 16 } 75e1051a39Sopenharmony_ci 76e1051a39Sopenharmony_ci 77e1051a39Sopenharmony_ci-- ------------------------------------------------------------------- 78e1051a39Sopenharmony_ci-- These OID's exist in the codebase but may need to be deprecated at some point. 79e1051a39Sopenharmony_ci-- md5_sha1 has been omitted as it does not look like valid entry. 80e1051a39Sopenharmony_ci 81e1051a39Sopenharmony_cimd4WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 3 } 82e1051a39Sopenharmony_ci 83e1051a39Sopenharmony_ciripemd160WithRSAEncryption OBJECT IDENTIFIER ::= { 84e1051a39Sopenharmony_ci iso(1) identified-organization(3) teletrust(36) algorithm(3) signatureAlgorithm(3) rsaSignature(1) 2 85e1051a39Sopenharmony_ci} 86e1051a39Sopenharmony_ci 87e1051a39Sopenharmony_cimdc2WithRSASignature OBJECT IDENTIFIER ::= { 88e1051a39Sopenharmony_ci iso(1) identified-organization(3) oiw(14) secsig(3) algorithms(2) mdc2WithRSASignature(14) 89e1051a39Sopenharmony_ci} 90