On 9/17/2025 4:21 PM, Zhuoying Cai wrote:
Introduce new helper functions to extract certificate metadata needed for
DIAG 320 subcode 2:

Since we are adding generic helper functions to extract certificate metadata, maybe we should avoid mentioning about "DIAG 320 subcode 2"?

Thanks
Farhan


qcrypto_x509_check_cert_times() - validates the certificate's validity period 
against the current time
qcrypto_x509_get_pk_algorithm() - returns the public key algorithm used in the 
certificate
qcrypto_x509_get_cert_key_id() - extracts the key ID from the certificate
qcrypto_x509_is_ecc_curve_p521() - determines the ECC public key algorithm uses 
P-521 curve

These functions provide support for metadata extraction and validity checking
for X.509 certificates.

Signed-off-by: Zhuoying Cai <[email protected]>


Reply via email to