x509_sign_parse.h File Reference
#include "core/crypto.h"
#include "pkix/x509_common.h"

Go to the source code of this file.

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...
 

Function Documentation

◆ x509ParseRsaPssHashAlgo()

error_t x509ParseRsaPssHashAlgo ( const uint8_t *  data,
size_t  length,
X509RsaPssParameters rsaPssParams 
)

Parse RSASSA-PSS hash algorithm.

Parameters
[in]dataPointer to the ASN.1 structure to parse
[in]lengthLength of the ASN.1 structure
[out]rsaPssParamsInformation 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]dataPointer to the ASN.1 structure to parse
[in]lengthLength of the ASN.1 structure
[out]rsaPssParamsInformation 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]dataPointer to the ASN.1 structure to parse
[in]lengthLength of the ASN.1 structure
[out]rsaPssParamsInformation 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]dataPointer to the ASN.1 structure to parse
[in]lengthLength of the ASN.1 structure
[out]rsaPssParamsInformation 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]dataPointer to the ASN.1 structure to parse
[in]lengthLength of the ASN.1 structure
[out]rsaPssParamsInformation 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]dataPointer to the ASN.1 structure to parse
[in]lengthLength of the ASN.1 structure
[out]totalLengthNumber of bytes that have been parsed
[out]signatureAlgoInformation 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]dataPointer to the ASN.1 structure to parse
[in]lengthLength of the ASN.1 structure
[out]totalLengthNumber of bytes that have been parsed
[out]signatureInformation resulting from the parsing process
Returns
Error code

Definition at line 119 of file x509_sign_parse.c.