RSA public-key cryptography standard. More...
#include "core/crypto.h"
#include "mac/hmac.h"
#include "pkc/rsa.h"
#include "mpi/mpi.h"
#include "encoding/asn1.h"
#include "encoding/oid.h"
#include "debug.h"
Go to the source code of this file.
Macros | |
#define | TRACE_LEVEL CRYPTO_TRACE_LEVEL |
Functions | |
void | rsaInitPublicKey (RsaPublicKey *key) |
Initialize an RSA public key. More... | |
void | rsaFreePublicKey (RsaPublicKey *key) |
Release an RSA public key. More... | |
void | rsaInitPrivateKey (RsaPrivateKey *key) |
Initialize an RSA private key. More... | |
void | rsaFreePrivateKey (RsaPrivateKey *key) |
Release an RSA private key. More... | |
error_t | rsaesPkcs1v15Encrypt (const PrngAlgo *prngAlgo, void *prngContext, const RsaPublicKey *key, const uint8_t *message, size_t messageLen, uint8_t *ciphertext, size_t *ciphertextLen) |
RSAES-PKCS1-v1_5 encryption operation. More... | |
error_t | rsaesPkcs1v15Decrypt (const RsaPrivateKey *key, const uint8_t *ciphertext, size_t ciphertextLen, uint8_t *message, size_t messageSize, size_t *messageLen) |
RSAES-PKCS1-v1_5 decryption operation. More... | |
error_t | rsaesOaepEncrypt (const PrngAlgo *prngAlgo, void *prngContext, const RsaPublicKey *key, const HashAlgo *hash, const char_t *label, const uint8_t *message, size_t messageLen, uint8_t *ciphertext, size_t *ciphertextLen) |
RSAES-OAEP encryption operation. More... | |
error_t | rsaesOaepDecrypt (const RsaPrivateKey *key, const HashAlgo *hash, const char_t *label, const uint8_t *ciphertext, size_t ciphertextLen, uint8_t *message, size_t messageSize, size_t *messageLen) |
RSAES-OAEP decryption operation. More... | |
error_t | rsassaPkcs1v15Sign (const RsaPrivateKey *key, const HashAlgo *hash, const uint8_t *digest, uint8_t *signature, size_t *signatureLen) |
RSASSA-PKCS1-v1_5 signature generation operation. More... | |
error_t | rsassaPkcs1v15Verify (const RsaPublicKey *key, const HashAlgo *hash, const uint8_t *digest, const uint8_t *signature, size_t signatureLen) |
RSASSA-PKCS1-v1_5 signature verification operation. More... | |
error_t | rsassaPssSign (const PrngAlgo *prngAlgo, void *prngContext, const RsaPrivateKey *key, const HashAlgo *hash, size_t saltLen, const uint8_t *digest, uint8_t *signature, size_t *signatureLen) |
RSASSA-PSS signature generation operation. More... | |
error_t | rsassaPssVerify (const RsaPublicKey *key, const HashAlgo *hash, size_t saltLen, const uint8_t *digest, const uint8_t *signature, size_t signatureLen) |
RSASSA-PSS signature verification operation. More... | |
__weak_func error_t | rsaep (const RsaPublicKey *key, const Mpi *m, Mpi *c) |
RSA encryption primitive. More... | |
__weak_func error_t | rsadp (const RsaPrivateKey *key, const Mpi *c, Mpi *m) |
RSA decryption primitive. More... | |
error_t | rsasp1 (const RsaPrivateKey *key, const Mpi *m, Mpi *s) |
RSA signature primitive. More... | |
error_t | rsavp1 (const RsaPublicKey *key, const Mpi *s, Mpi *m) |
RSA verification primitive. More... | |
error_t | emePkcs1v15Encode (const PrngAlgo *prngAlgo, void *prngContext, const uint8_t *message, size_t messageLen, uint8_t *em, size_t k) |
EME-PKCS1-v1_5 encoding operation. More... | |
uint32_t | emePkcs1v15Decode (uint8_t *em, size_t k, size_t *messageLen) |
EME-PKCS1-v1_5 decoding operation. More... | |
error_t | emeOaepEncode (const PrngAlgo *prngAlgo, void *prngContext, const HashAlgo *hash, const char_t *label, const uint8_t *message, size_t messageLen, uint8_t *em, size_t k) |
EME-OAEP encoding operation. More... | |
uint32_t | emeOaepDecode (const HashAlgo *hash, const char_t *label, uint8_t *em, size_t k, size_t *messageLen) |
EME-OAEP decoding operation. More... | |
error_t | emsaPkcs1v15Encode (const HashAlgo *hash, const uint8_t *digest, uint8_t *em, size_t emLen) |
EMSA-PKCS1-v1_5 encoding operation. More... | |
error_t | emsaPkcs1v15Verify (const HashAlgo *hash, const uint8_t *digest, const uint8_t *em, size_t emLen) |
EMSA-PKCS1-v1_5 verification operation. More... | |
error_t | emsaPssEncode (const PrngAlgo *prngAlgo, void *prngContext, const HashAlgo *hash, size_t saltLen, const uint8_t *digest, uint8_t *em, uint_t emBits) |
EMSA-PSS encoding operation. More... | |
error_t | emsaPssVerify (const HashAlgo *hash, size_t saltLen, const uint8_t *digest, uint8_t *em, uint_t emBits) |
EMSA-PSS verification operation. More... | |
void | mgf1 (const HashAlgo *hash, HashContext *hashContext, const uint8_t *seed, size_t seedLen, uint8_t *data, size_t dataLen) |
MGF1 mask generation function. More... | |
error_t | rsaGenerateKeyPair (const PrngAlgo *prngAlgo, void *prngContext, size_t k, uint_t e, RsaPrivateKey *privateKey, RsaPublicKey *publicKey) |
RSA key pair generation. More... | |
__weak_func error_t | rsaGeneratePrivateKey (const PrngAlgo *prngAlgo, void *prngContext, size_t k, uint_t e, RsaPrivateKey *privateKey) |
RSA private key generation. More... | |
error_t | rsaGeneratePublicKey (const RsaPrivateKey *privateKey, RsaPublicKey *publicKey) |
Derive the public key from an RSA private key. More... | |
Variables | |
const uint8_t | PKCS1_OID [8] = {0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01} |
const uint8_t | RSA_ENCRYPTION_OID [9] = {0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x01} |
const uint8_t | MD2_WITH_RSA_ENCRYPTION_OID [9] = {0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x02} |
const uint8_t | MD5_WITH_RSA_ENCRYPTION_OID [9] = {0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x04} |
const uint8_t | SHA1_WITH_RSA_ENCRYPTION_OID [9] = {0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x05} |
const uint8_t | SHA224_WITH_RSA_ENCRYPTION_OID [9] = {0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x0E} |
const uint8_t | SHA256_WITH_RSA_ENCRYPTION_OID [9] = {0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x0B} |
const uint8_t | SHA384_WITH_RSA_ENCRYPTION_OID [9] = {0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x0C} |
const uint8_t | SHA512_WITH_RSA_ENCRYPTION_OID [9] = {0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x0D} |
const uint8_t | SHA512_224_WITH_RSA_ENCRYPTION_OID [9] = {0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x0F} |
const uint8_t | SHA512_256_WITH_RSA_ENCRYPTION_OID [9] = {0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x10} |
const uint8_t | RSASSA_PKCS1_V1_5_WITH_SHA3_224_OID [9] = {0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x0D} |
const uint8_t | RSASSA_PKCS1_V1_5_WITH_SHA3_256_OID [9] = {0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x0E} |
const uint8_t | RSASSA_PKCS1_V1_5_WITH_SHA3_384_OID [9] = {0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x0F} |
const uint8_t | RSASSA_PKCS1_V1_5_WITH_SHA3_512_OID [9] = {0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x10} |
const uint8_t | RSASSA_PSS_OID [9] = {0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x0A} |
const uint8_t | MGF1_OID [9] = {0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x08} |
Detailed Description
RSA public-key cryptography standard.
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2010-2024 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneCRYPTO Open.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Description
RSA is an algorithm for public-key cryptography which is suitable for signing as well as encryption. Refer to the following RFCs for complete details:
- RFC 2313: PKCS #1: RSA Encryption Version 1.5
- RFC 3447: PKCS #1: RSA Cryptography Specifications Version 2.1
- RFC 8017: PKCS #1: RSA Cryptography Specifications Version 2.2
- Version
- 2.4.4
Definition in file rsa.c.
Macro Definition Documentation
◆ TRACE_LEVEL
Function Documentation
◆ emeOaepDecode()
uint32_t emeOaepDecode | ( | const HashAlgo * | hash, |
const char_t * | label, | ||
uint8_t * | em, | ||
size_t | k, | ||
size_t * | messageLen | ||
) |
EME-OAEP decoding operation.
- Parameters
-
[in] hash Underlying hash function [in] label Optional label to be associated with the message [in] em Encoded message [in] k Length of the encoded message [out] messageLen Length of the decrypted message
- Returns
- The function returns 0 on success, 1 on failure
◆ emeOaepEncode()
error_t emeOaepEncode | ( | const PrngAlgo * | prngAlgo, |
void * | prngContext, | ||
const HashAlgo * | hash, | ||
const char_t * | label, | ||
const uint8_t * | message, | ||
size_t | messageLen, | ||
uint8_t * | em, | ||
size_t | k | ||
) |
EME-OAEP encoding operation.
- Parameters
-
[in] prngAlgo PRNG algorithm [in] prngContext Pointer to the PRNG context [in] hash Underlying hash function [in] label Optional label to be associated with the message [in] message Message to be encrypted [in] messageLen Length of the message to be encrypted [out] em Encoded message [in] k Length of the encoded message
- Returns
- Error code
◆ emePkcs1v15Decode()
uint32_t emePkcs1v15Decode | ( | uint8_t * | em, |
size_t | k, | ||
size_t * | messageLen | ||
) |
◆ emePkcs1v15Encode()
error_t emePkcs1v15Encode | ( | const PrngAlgo * | prngAlgo, |
void * | prngContext, | ||
const uint8_t * | message, | ||
size_t | messageLen, | ||
uint8_t * | em, | ||
size_t | k | ||
) |
EME-PKCS1-v1_5 encoding operation.
- Parameters
-
[in] prngAlgo PRNG algorithm [in] prngContext Pointer to the PRNG context [in] message Message to be encrypted [in] messageLen Length of the message to be encrypted [out] em Encoded message [in] k Length of the encoded message
- Returns
- Error code
◆ emsaPkcs1v15Encode()
◆ emsaPkcs1v15Verify()
◆ emsaPssEncode()
error_t emsaPssEncode | ( | const PrngAlgo * | prngAlgo, |
void * | prngContext, | ||
const HashAlgo * | hash, | ||
size_t | saltLen, | ||
const uint8_t * | digest, | ||
uint8_t * | em, | ||
uint_t | emBits | ||
) |
EMSA-PSS encoding operation.
- Parameters
-
[in] prngAlgo PRNG algorithm [in] prngContext Pointer to the PRNG context [in] hash Underlying hash function [in] saltLen Length of the salt, in bytes [in] digest Digest of the message to be signed [out] em Encoded message [in] emBits Maximal bit length of the integer OS2IP(EM)
- Returns
- Error code
◆ emsaPssVerify()
◆ mgf1()
void mgf1 | ( | const HashAlgo * | hash, |
HashContext * | hashContext, | ||
const uint8_t * | seed, | ||
size_t | seedLen, | ||
uint8_t * | data, | ||
size_t | dataLen | ||
) |
MGF1 mask generation function.
- Parameters
-
[in] hash Hash function [in] hashContext Hash function context [in] seed Seed from which the mask is generated [in] seedLen Length of the seed in bytes [in,out] data Data block to be masked [in] dataLen Length of the data block in bytes
◆ rsadp()
__weak_func error_t rsadp | ( | const RsaPrivateKey * | key, |
const Mpi * | c, | ||
Mpi * | m | ||
) |
RSA decryption primitive.
The RSA decryption primitive recovers the message representative from the ciphertext representative under the control of a private key
- Parameters
-
[in] key RSA private key [in] c Ciphertext representative [out] m Message representative
- Returns
- Error code
◆ rsaep()
__weak_func error_t rsaep | ( | const RsaPublicKey * | key, |
const Mpi * | m, | ||
Mpi * | c | ||
) |
RSA encryption primitive.
The RSA encryption primitive produces a ciphertext representative from a message representative under the control of a public key
- Parameters
-
[in] key RSA public key [in] m Message representative [out] c Ciphertext representative
- Returns
- Error code
◆ rsaesOaepDecrypt()
error_t rsaesOaepDecrypt | ( | const RsaPrivateKey * | key, |
const HashAlgo * | hash, | ||
const char_t * | label, | ||
const uint8_t * | ciphertext, | ||
size_t | ciphertextLen, | ||
uint8_t * | message, | ||
size_t | messageSize, | ||
size_t * | messageLen | ||
) |
RSAES-OAEP decryption operation.
- Parameters
-
[in] key Recipient's RSA private key [in] hash Underlying hash function [in] label Optional label to be associated with the message [in] ciphertext Ciphertext to be decrypted [in] ciphertextLen Length of the ciphertext to be decrypted [out] message Output buffer where to store the decrypted message [in] messageSize Size of the output buffer [out] messageLen Length of the decrypted message
- Returns
- Error code
◆ rsaesOaepEncrypt()
error_t rsaesOaepEncrypt | ( | const PrngAlgo * | prngAlgo, |
void * | prngContext, | ||
const RsaPublicKey * | key, | ||
const HashAlgo * | hash, | ||
const char_t * | label, | ||
const uint8_t * | message, | ||
size_t | messageLen, | ||
uint8_t * | ciphertext, | ||
size_t * | ciphertextLen | ||
) |
RSAES-OAEP encryption operation.
- Parameters
-
[in] prngAlgo PRNG algorithm [in] prngContext Pointer to the PRNG context [in] key Recipient's RSA public key [in] hash Underlying hash function [in] label Optional label to be associated with the message [in] message Message to be encrypted [in] messageLen Length of the message to be encrypted [out] ciphertext Ciphertext resulting from the encryption operation [out] ciphertextLen Length of the resulting ciphertext
- Returns
- Error code
◆ rsaesPkcs1v15Decrypt()
error_t rsaesPkcs1v15Decrypt | ( | const RsaPrivateKey * | key, |
const uint8_t * | ciphertext, | ||
size_t | ciphertextLen, | ||
uint8_t * | message, | ||
size_t | messageSize, | ||
size_t * | messageLen | ||
) |
RSAES-PKCS1-v1_5 decryption operation.
- Parameters
-
[in] key Recipient's RSA private key [in] ciphertext Ciphertext to be decrypted [in] ciphertextLen Length of the ciphertext to be decrypted [out] message Output buffer where to store the decrypted message [in] messageSize Size of the output buffer [out] messageLen Length of the decrypted message
- Returns
- Error code
◆ rsaesPkcs1v15Encrypt()
error_t rsaesPkcs1v15Encrypt | ( | const PrngAlgo * | prngAlgo, |
void * | prngContext, | ||
const RsaPublicKey * | key, | ||
const uint8_t * | message, | ||
size_t | messageLen, | ||
uint8_t * | ciphertext, | ||
size_t * | ciphertextLen | ||
) |
RSAES-PKCS1-v1_5 encryption operation.
- Parameters
-
[in] prngAlgo PRNG algorithm [in] prngContext Pointer to the PRNG context [in] key Recipient's RSA public key [in] message Message to be encrypted [in] messageLen Length of the message to be encrypted [out] ciphertext Ciphertext resulting from the encryption operation [out] ciphertextLen Length of the resulting ciphertext
- Returns
- Error code
◆ rsaFreePrivateKey()
void rsaFreePrivateKey | ( | RsaPrivateKey * | key | ) |
◆ rsaFreePublicKey()
void rsaFreePublicKey | ( | RsaPublicKey * | key | ) |
◆ rsaGenerateKeyPair()
error_t rsaGenerateKeyPair | ( | const PrngAlgo * | prngAlgo, |
void * | prngContext, | ||
size_t | k, | ||
uint_t | e, | ||
RsaPrivateKey * | privateKey, | ||
RsaPublicKey * | publicKey | ||
) |
RSA key pair generation.
- Parameters
-
[in] prngAlgo PRNG algorithm [in] prngContext Pointer to the PRNG context [in] k Required bit length of the modulus n [in] e Public exponent (3, 5, 17, 257 or 65537) [out] privateKey RSA private key [out] publicKey RSA public key
- Returns
- Error code
◆ rsaGeneratePrivateKey()
__weak_func error_t rsaGeneratePrivateKey | ( | const PrngAlgo * | prngAlgo, |
void * | prngContext, | ||
size_t | k, | ||
uint_t | e, | ||
RsaPrivateKey * | privateKey | ||
) |
◆ rsaGeneratePublicKey()
error_t rsaGeneratePublicKey | ( | const RsaPrivateKey * | privateKey, |
RsaPublicKey * | publicKey | ||
) |
◆ rsaInitPrivateKey()
void rsaInitPrivateKey | ( | RsaPrivateKey * | key | ) |
◆ rsaInitPublicKey()
void rsaInitPublicKey | ( | RsaPublicKey * | key | ) |
◆ rsasp1()
error_t rsasp1 | ( | const RsaPrivateKey * | key, |
const Mpi * | m, | ||
Mpi * | s | ||
) |
RSA signature primitive.
The RSA signature primitive produces a signature representative from a message representative under the control of a private key
- Parameters
-
[in] key RSA private key [in] m Message representative [out] s Signature representative
- Returns
- Error code
◆ rsassaPkcs1v15Sign()
error_t rsassaPkcs1v15Sign | ( | const RsaPrivateKey * | key, |
const HashAlgo * | hash, | ||
const uint8_t * | digest, | ||
uint8_t * | signature, | ||
size_t * | signatureLen | ||
) |
RSASSA-PKCS1-v1_5 signature generation operation.
- Parameters
-
[in] key Signer's RSA private key [in] hash Hash function used to digest the message [in] digest Digest of the message to be signed [out] signature Resulting signature [out] signatureLen Length of the resulting signature
- Returns
- Error code
◆ rsassaPkcs1v15Verify()
error_t rsassaPkcs1v15Verify | ( | const RsaPublicKey * | key, |
const HashAlgo * | hash, | ||
const uint8_t * | digest, | ||
const uint8_t * | signature, | ||
size_t | signatureLen | ||
) |
RSASSA-PKCS1-v1_5 signature verification operation.
- Parameters
-
[in] key Signer's RSA public key [in] hash Hash function used to digest the message [in] digest Digest of the message whose signature is to be verified [in] signature Signature to be verified [in] signatureLen Length of the signature to be verified
- Returns
- Error code
◆ rsassaPssSign()
error_t rsassaPssSign | ( | const PrngAlgo * | prngAlgo, |
void * | prngContext, | ||
const RsaPrivateKey * | key, | ||
const HashAlgo * | hash, | ||
size_t | saltLen, | ||
const uint8_t * | digest, | ||
uint8_t * | signature, | ||
size_t * | signatureLen | ||
) |
RSASSA-PSS signature generation operation.
- Parameters
-
[in] prngAlgo PRNG algorithm [in] prngContext Pointer to the PRNG context [in] key Signer's RSA private key [in] hash Hash function used to digest the message [in] saltLen Length of the salt, in bytes [in] digest Digest of the message to be signed [out] signature Resulting signature [out] signatureLen Length of the resulting signature
- Returns
- Error code
◆ rsassaPssVerify()
error_t rsassaPssVerify | ( | const RsaPublicKey * | key, |
const HashAlgo * | hash, | ||
size_t | saltLen, | ||
const uint8_t * | digest, | ||
const uint8_t * | signature, | ||
size_t | signatureLen | ||
) |
RSASSA-PSS signature verification operation.
- Parameters
-
[in] key Signer's RSA public key [in] hash Hash function used to digest the message [in] saltLen Length of the salt, in bytes [in] digest Digest of the message whose signature is to be verified [in] signature Signature to be verified [in] signatureLen Length of the signature to be verified
- Returns
- Error code
◆ rsavp1()
error_t rsavp1 | ( | const RsaPublicKey * | key, |
const Mpi * | s, | ||
Mpi * | m | ||
) |
RSA verification primitive.
The RSA verification primitive recovers the message representative from the signature representative under the control of a public key
- Parameters
-
[in] key RSA public key [in] s Signature representative [out] m Message representative
- Returns
- Error code
Variable Documentation
◆ MD2_WITH_RSA_ENCRYPTION_OID
const uint8_t MD2_WITH_RSA_ENCRYPTION_OID[9] = {0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x02} |
◆ MD5_WITH_RSA_ENCRYPTION_OID
const uint8_t MD5_WITH_RSA_ENCRYPTION_OID[9] = {0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x04} |
◆ MGF1_OID
const uint8_t MGF1_OID[9] = {0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x08} |
◆ PKCS1_OID
const uint8_t PKCS1_OID[8] = {0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01} |
◆ RSA_ENCRYPTION_OID
const uint8_t RSA_ENCRYPTION_OID[9] = {0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x01} |
◆ RSASSA_PKCS1_V1_5_WITH_SHA3_224_OID
const uint8_t RSASSA_PKCS1_V1_5_WITH_SHA3_224_OID[9] = {0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x0D} |
◆ RSASSA_PKCS1_V1_5_WITH_SHA3_256_OID
const uint8_t RSASSA_PKCS1_V1_5_WITH_SHA3_256_OID[9] = {0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x0E} |
◆ RSASSA_PKCS1_V1_5_WITH_SHA3_384_OID
const uint8_t RSASSA_PKCS1_V1_5_WITH_SHA3_384_OID[9] = {0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x0F} |
◆ RSASSA_PKCS1_V1_5_WITH_SHA3_512_OID
const uint8_t RSASSA_PKCS1_V1_5_WITH_SHA3_512_OID[9] = {0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x10} |
◆ RSASSA_PSS_OID
const uint8_t RSASSA_PSS_OID[9] = {0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x0A} |
◆ SHA1_WITH_RSA_ENCRYPTION_OID
const uint8_t SHA1_WITH_RSA_ENCRYPTION_OID[9] = {0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x05} |
◆ SHA224_WITH_RSA_ENCRYPTION_OID
const uint8_t SHA224_WITH_RSA_ENCRYPTION_OID[9] = {0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x0E} |
◆ SHA256_WITH_RSA_ENCRYPTION_OID
const uint8_t SHA256_WITH_RSA_ENCRYPTION_OID[9] = {0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x0B} |
◆ SHA384_WITH_RSA_ENCRYPTION_OID
const uint8_t SHA384_WITH_RSA_ENCRYPTION_OID[9] = {0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x0C} |
◆ SHA512_224_WITH_RSA_ENCRYPTION_OID
const uint8_t SHA512_224_WITH_RSA_ENCRYPTION_OID[9] = {0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x0F} |
◆ SHA512_256_WITH_RSA_ENCRYPTION_OID
const uint8_t SHA512_256_WITH_RSA_ENCRYPTION_OID[9] = {0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x10} |