#include "core/crypto.h"
#include "pkix/x509_sign_parse.h"
#include "encoding/asn1.h"
#include "debug.h"
Go to the source code of this file.
Macros | |
#define | TRACE_LEVEL CRYPTO_TRACE_LEVEL |
Functions | |
error_t | x509ParseSignatureAlgo (const uint8_t *data, size_t length, size_t *totalLength, X509SignAlgoId *signatureAlgo) |
Parse SignatureAlgorithm structure. More... | |
error_t | x509ParseSignatureValue (const uint8_t *data, size_t length, size_t *totalLength, X509OctetString *signature) |
Parse SignatureValue field. More... | |
error_t | x509ParseRsaPssParameters (const uint8_t *data, size_t length, X509RsaPssParameters *rsaPssParams) |
Parse RSASSA-PSS parameters. More... | |
error_t | x509ParseRsaPssHashAlgo (const uint8_t *data, size_t length, X509RsaPssParameters *rsaPssParams) |
Parse RSASSA-PSS hash algorithm. More... | |
error_t | x509ParseRsaPssMaskGenAlgo (const uint8_t *data, size_t length, X509RsaPssParameters *rsaPssParams) |
Parse RSASSA-PSS mask generation algorithm. More... | |
error_t | x509ParseRsaPssMaskGenHashAlgo (const uint8_t *data, size_t length, X509RsaPssParameters *rsaPssParams) |
Parse RSASSA-PSS mask generation hash algorithm. More... | |
error_t | x509ParseRsaPssSaltLength (const uint8_t *data, size_t length, X509RsaPssParameters *rsaPssParams) |
Parse RSASSA-PSS salt length. More... | |
Macro Definition Documentation
◆ TRACE_LEVEL
#define TRACE_LEVEL CRYPTO_TRACE_LEVEL |
Definition at line 32 of file x509_sign_parse.c.
Function Documentation
◆ x509ParseRsaPssHashAlgo()
error_t x509ParseRsaPssHashAlgo | ( | const uint8_t * | data, |
size_t | length, | ||
X509RsaPssParameters * | rsaPssParams | ||
) |
Parse RSASSA-PSS hash algorithm.
- Parameters
-
[in] data Pointer to the ASN.1 structure to parse [in] length Length of the ASN.1 structure [out] rsaPssParams Information resulting from the parsing process
- Returns
- Error code
Definition at line 263 of file x509_sign_parse.c.
◆ x509ParseRsaPssMaskGenAlgo()
error_t x509ParseRsaPssMaskGenAlgo | ( | const uint8_t * | data, |
size_t | length, | ||
X509RsaPssParameters * | rsaPssParams | ||
) |
Parse RSASSA-PSS mask generation algorithm.
- Parameters
-
[in] data Pointer to the ASN.1 structure to parse [in] length Length of the ASN.1 structure [out] rsaPssParams Information resulting from the parsing process
- Returns
- Error code
Definition at line 302 of file x509_sign_parse.c.
◆ x509ParseRsaPssMaskGenHashAlgo()
error_t x509ParseRsaPssMaskGenHashAlgo | ( | const uint8_t * | data, |
size_t | length, | ||
X509RsaPssParameters * | rsaPssParams | ||
) |
Parse RSASSA-PSS mask generation hash algorithm.
- Parameters
-
[in] data Pointer to the ASN.1 structure to parse [in] length Length of the ASN.1 structure [out] rsaPssParams Information resulting from the parsing process
- Returns
- Error code
Definition at line 352 of file x509_sign_parse.c.
◆ x509ParseRsaPssParameters()
error_t x509ParseRsaPssParameters | ( | const uint8_t * | data, |
size_t | length, | ||
X509RsaPssParameters * | rsaPssParams | ||
) |
Parse RSASSA-PSS parameters.
- Parameters
-
[in] data Pointer to the ASN.1 structure to parse [in] length Length of the ASN.1 structure [out] rsaPssParams Information resulting from the parsing process
- Returns
- Error code
Definition at line 166 of file x509_sign_parse.c.
◆ x509ParseRsaPssSaltLength()
error_t x509ParseRsaPssSaltLength | ( | const uint8_t * | data, |
size_t | length, | ||
X509RsaPssParameters * | rsaPssParams | ||
) |
Parse RSASSA-PSS salt length.
- Parameters
-
[in] data Pointer to the ASN.1 structure to parse [in] length Length of the ASN.1 structure [out] rsaPssParams Information resulting from the parsing process
- Returns
- Error code
Definition at line 392 of file x509_sign_parse.c.
◆ x509ParseSignatureAlgo()
error_t x509ParseSignatureAlgo | ( | const uint8_t * | data, |
size_t | length, | ||
size_t * | totalLength, | ||
X509SignAlgoId * | signatureAlgo | ||
) |
Parse SignatureAlgorithm structure.
- Parameters
-
[in] data Pointer to the ASN.1 structure to parse [in] length Length of the ASN.1 structure [out] totalLength Number of bytes that have been parsed [out] signatureAlgo Information resulting from the parsing process
- Returns
- Error code
Definition at line 53 of file x509_sign_parse.c.
◆ x509ParseSignatureValue()
error_t x509ParseSignatureValue | ( | const uint8_t * | data, |
size_t | length, | ||
size_t * | totalLength, | ||
X509OctetString * | signature | ||
) |
Parse SignatureValue field.
- Parameters
-
[in] data Pointer to the ASN.1 structure to parse [in] length Length of the ASN.1 structure [out] totalLength Number of bytes that have been parsed [out] signature Information resulting from the parsing process
- Returns
- Error code
Definition at line 119 of file x509_sign_parse.c.