TianoCore EDK2 master
|
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/BaseCryptLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/MemoryAllocationLib.h>
#include "hal/base.h"
#include "hal/library/cryptlib.h"
Go to the source code of this file.
Functions | |
void * | libspdm_sha256_new (void) |
void | libspdm_sha256_free (void *Sha256Ctx) |
bool | libspdm_sha256_init (void *Sha256Ctx) |
bool | libspdm_sha256_duplicate (const void *Sha256Context, void *NewSha256Context) |
bool | libspdm_sha256_update (void *Sha256Context, const void *Data, size_t DataSize) |
bool | libspdm_sha256_final (void *sha256_context, uint8_t *hash_value) |
bool | libspdm_sha256_hash_all (const void *data, size_t data_size, uint8_t *hash_value) |
void * | libspdm_sha384_new (void) |
void | libspdm_sha384_free (void *Sha384Ctx) |
bool | libspdm_sha384_init (void *sha384_context) |
bool | libspdm_sha384_duplicate (const void *sha384_context, void *new_sha384_context) |
bool | libspdm_sha384_update (void *sha384_context, const void *data, size_t data_size) |
bool | libspdm_sha384_final (void *sha384_context, uint8_t *hash_value) |
bool | libspdm_sha384_hash_all (const void *data, size_t data_size, uint8_t *hash_value) |
void * | libspdm_hmac_sha256_new (void) |
void | libspdm_hmac_sha256_free (void *hmac_sha256_ctx) |
bool | libspdm_hmac_sha256_set_key (void *hmac_sha256_ctx, const uint8_t *key, size_t key_size) |
bool | libspdm_hmac_sha256_duplicate (const void *hmac_sha256_ctx, void *new_hmac_sha256_ctx) |
bool | libspdm_hmac_sha256_update (void *hmac_sha256_ctx, const void *data, size_t data_size) |
bool | libspdm_hmac_sha256_final (void *hmac_sha256_ctx, uint8_t *hmac_value) |
bool | libspdm_hmac_sha256_all (const void *data, size_t data_size, const uint8_t *key, size_t key_size, uint8_t *hmac_value) |
void * | libspdm_hmac_sha384_new (void) |
void | libspdm_hmac_sha384_free (void *hmac_sha384_ctx) |
bool | libspdm_hmac_sha384_set_key (void *hmac_sha384_ctx, const uint8_t *key, size_t key_size) |
bool | libspdm_hmac_sha384_duplicate (const void *hmac_sha384_ctx, void *new_hmac_sha384_ctx) |
bool | libspdm_hmac_sha384_update (void *hmac_sha384_ctx, const void *data, size_t data_size) |
bool | libspdm_hmac_sha384_final (void *hmac_sha384_ctx, uint8_t *hmac_value) |
bool | libspdm_hmac_sha384_all (const void *data, size_t data_size, const uint8_t *key, size_t key_size, uint8_t *hmac_value) |
bool | libspdm_aead_aes_gcm_encrypt (const uint8_t *key, size_t key_size, const uint8_t *iv, size_t iv_size, const uint8_t *a_data, size_t a_data_size, const uint8_t *data_in, size_t data_in_size, uint8_t *tag_out, size_t tag_size, uint8_t *data_out, size_t *data_out_size) |
bool | libspdm_aead_aes_gcm_decrypt (const uint8_t *key, size_t key_size, const uint8_t *iv, size_t iv_size, const uint8_t *a_data, size_t a_data_size, const uint8_t *data_in, size_t data_in_size, const uint8_t *tag, size_t tag_size, uint8_t *data_out, size_t *data_out_size) |
void | libspdm_rsa_free (void *rsa_context) |
bool | libspdm_rsa_pkcs1_sign_with_nid (void *rsa_context, size_t hash_nid, const uint8_t *message_hash, size_t hash_size, uint8_t *signature, size_t *sig_size) |
bool | libspdm_rsa_pkcs1_verify_with_nid (void *rsa_context, size_t hash_nid, const uint8_t *message_hash, size_t hash_size, const uint8_t *signature, size_t sig_size) |
bool | libspdm_rsa_get_private_key_from_pem (const uint8_t *pem_data, size_t pem_size, const char *password, void **rsa_context) |
bool | libspdm_rsa_get_public_key_from_x509 (const uint8_t *cert, size_t cert_size, void **rsa_context) |
bool | libspdm_ec_get_public_key_from_der (const uint8_t *der_data, size_t der_size, void **ec_context) |
bool | libspdm_rsa_get_public_key_from_der (const uint8_t *der_data, size_t der_size, void **rsa_context) |
bool | libspdm_ec_get_private_key_from_pem (const uint8_t *pem_data, size_t pem_size, const char *password, void **ec_context) |
bool | libspdm_ec_get_public_key_from_x509 (const uint8_t *cert, size_t cert_size, void **ec_context) |
bool | libspdm_asn1_get_tag (uint8_t **ptr, const uint8_t *end, size_t *length, uint32_t tag) |
bool | libspdm_x509_get_subject_name (const uint8_t *cert, size_t cert_size, uint8_t *cert_subject, size_t *subject_size) |
bool | libspdm_x509_get_common_name (const uint8_t *cert, size_t cert_size, char *common_name, size_t *common_name_size) |
bool | libspdm_x509_get_organization_name (const uint8_t *cert, size_t cert_size, char *name_buffer, size_t *name_buffer_size) |
bool | libspdm_x509_get_version (const uint8_t *cert, size_t cert_size, size_t *version) |
bool | libspdm_x509_get_serial_number (const uint8_t *cert, size_t cert_size, uint8_t *serial_number, size_t *serial_number_size) |
bool | libspdm_x509_get_issuer_name (const uint8_t *cert, size_t cert_size, uint8_t *cert_issuer, size_t *issuer_size) |
bool | libspdm_x509_get_signature_algorithm (const uint8_t *cert, size_t cert_size, uint8_t *oid, size_t *oid_size) |
bool | libspdm_x509_get_extension_data (const uint8_t *cert, size_t cert_size, const uint8_t *oid, size_t oid_size, uint8_t *extension_data, size_t *extension_data_size) |
bool | libspdm_x509_get_validity (const uint8_t *cert, size_t cert_size, uint8_t *from, size_t *from_size, uint8_t *to, size_t *to_size) |
bool | libspdm_x509_set_date_time (const char *date_time_str, void *date_time, size_t *date_time_size) |
int32_t | libspdm_x509_compare_date_time (const void *date_time1, const void *date_time2) |
bool | libspdm_x509_get_key_usage (const uint8_t *cert, size_t cert_size, size_t *usage) |
bool | libspdm_x509_get_extended_key_usage (const uint8_t *cert, size_t cert_size, uint8_t *usage, size_t *usage_size) |
bool | libspdm_x509_verify_cert (const uint8_t *cert, size_t cert_size, const uint8_t *ca_cert, size_t ca_cert_size) |
bool | libspdm_x509_verify_cert_chain (const uint8_t *root_cert, size_t root_cert_length, const uint8_t *cert_chain, size_t cert_chain_length) |
bool | libspdm_x509_get_cert_from_cert_chain (const uint8_t *cert_chain, size_t cert_chain_length, const int32_t cert_index, const uint8_t **cert, size_t *cert_length) |
bool | libspdm_x509_construct_certificate (const uint8_t *cert, size_t cert_size, uint8_t **single_x509_cert) |
bool | libspdm_x509_get_extended_basic_constraints (const uint8_t *cert, size_t cert_size, uint8_t *basic_constraints, size_t *basic_constraints_size) |
void * | libspdm_ec_new_by_nid (size_t nid) |
void | libspdm_ec_free (void *ec_context) |
bool | libspdm_ec_generate_key (void *ec_context, uint8_t *public_data, size_t *public_size) |
bool | libspdm_ec_compute_key (void *ec_context, const uint8_t *peer_public, size_t peer_public_size, uint8_t *key, size_t *key_size) |
bool | libspdm_ecdsa_sign (void *ec_context, size_t hash_nid, const uint8_t *message_hash, size_t hash_size, uint8_t *signature, size_t *sig_size) |
bool | libspdm_ecdsa_verify (void *ec_context, size_t hash_nid, const uint8_t *message_hash, size_t hash_size, const uint8_t *signature, size_t sig_size) |
bool | libspdm_random_bytes (uint8_t *output, size_t size) |
bool | libspdm_hkdf_sha256_extract_and_expand (const uint8_t *key, size_t key_size, const uint8_t *salt, size_t salt_size, const uint8_t *info, size_t info_size, uint8_t *out, size_t out_size) |
bool | libspdm_hkdf_sha256_extract (const uint8_t *key, size_t key_size, const uint8_t *salt, size_t salt_size, uint8_t *prk_out, size_t prk_out_size) |
bool | libspdm_hkdf_sha256_expand (const uint8_t *prk, size_t prk_size, const uint8_t *info, size_t info_size, uint8_t *out, size_t out_size) |
bool | libspdm_hkdf_sha384_extract_and_expand (const uint8_t *key, size_t key_size, const uint8_t *salt, size_t salt_size, const uint8_t *info, size_t info_size, uint8_t *out, size_t out_size) |
bool | libspdm_hkdf_sha384_extract (const uint8_t *key, size_t key_size, const uint8_t *salt, size_t salt_size, uint8_t *prk_out, size_t prk_out_size) |
bool | libspdm_hkdf_sha384_expand (const uint8_t *prk, size_t prk_size, const uint8_t *info, size_t info_size, uint8_t *out, size_t out_size) |
EDKII Device Security library for SPDM device. It follows the SPDM Specification.
Copyright (c) 2024, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file CryptlibWrapper.c.
bool libspdm_aead_aes_gcm_decrypt | ( | const uint8_t * | key, |
size_t | key_size, | ||
const uint8_t * | iv, | ||
size_t | iv_size, | ||
const uint8_t * | a_data, | ||
size_t | a_data_size, | ||
const uint8_t * | data_in, | ||
size_t | data_in_size, | ||
const uint8_t * | tag, | ||
size_t | tag_size, | ||
uint8_t * | data_out, | ||
size_t * | data_out_size | ||
) |
Definition at line 326 of file CryptlibWrapper.c.
bool libspdm_aead_aes_gcm_encrypt | ( | const uint8_t * | key, |
size_t | key_size, | ||
const uint8_t * | iv, | ||
size_t | iv_size, | ||
const uint8_t * | a_data, | ||
size_t | a_data_size, | ||
const uint8_t * | data_in, | ||
size_t | data_in_size, | ||
uint8_t * | tag_out, | ||
size_t | tag_size, | ||
uint8_t * | data_out, | ||
size_t * | data_out_size | ||
) |
Definition at line 294 of file CryptlibWrapper.c.
bool libspdm_asn1_get_tag | ( | uint8_t ** | ptr, |
const uint8_t * | end, | ||
size_t * | length, | ||
uint32_t | tag | ||
) |
Definition at line 518 of file CryptlibWrapper.c.
bool libspdm_ec_compute_key | ( | void * | ec_context, |
const uint8_t * | peer_public, | ||
size_t | peer_public_size, | ||
uint8_t * | key, | ||
size_t * | key_size | ||
) |
Definition at line 784 of file CryptlibWrapper.c.
void libspdm_ec_free | ( | void * | ec_context | ) |
Definition at line 766 of file CryptlibWrapper.c.
bool libspdm_ec_generate_key | ( | void * | ec_context, |
uint8_t * | public_data, | ||
size_t * | public_size | ||
) |
Definition at line 774 of file CryptlibWrapper.c.
bool libspdm_ec_get_private_key_from_pem | ( | const uint8_t * | pem_data, |
size_t | pem_size, | ||
const char * | password, | ||
void ** | ec_context | ||
) |
Definition at line 497 of file CryptlibWrapper.c.
bool libspdm_ec_get_public_key_from_der | ( | const uint8_t * | der_data, |
size_t | der_size, | ||
void ** | ec_context | ||
) |
Definition at line 477 of file CryptlibWrapper.c.
bool libspdm_ec_get_public_key_from_x509 | ( | const uint8_t * | cert, |
size_t | cert_size, | ||
void ** | ec_context | ||
) |
Definition at line 508 of file CryptlibWrapper.c.
void * libspdm_ec_new_by_nid | ( | size_t | nid | ) |
Definition at line 758 of file CryptlibWrapper.c.
bool libspdm_ecdsa_sign | ( | void * | ec_context, |
size_t | hash_nid, | ||
const uint8_t * | message_hash, | ||
size_t | hash_size, | ||
uint8_t * | signature, | ||
size_t * | sig_size | ||
) |
Definition at line 796 of file CryptlibWrapper.c.
bool libspdm_ecdsa_verify | ( | void * | ec_context, |
size_t | hash_nid, | ||
const uint8_t * | message_hash, | ||
size_t | hash_size, | ||
const uint8_t * | signature, | ||
size_t | sig_size | ||
) |
Definition at line 816 of file CryptlibWrapper.c.
bool libspdm_hkdf_sha256_expand | ( | const uint8_t * | prk, |
size_t | prk_size, | ||
const uint8_t * | info, | ||
size_t | info_size, | ||
uint8_t * | out, | ||
size_t | out_size | ||
) |
Definition at line 889 of file CryptlibWrapper.c.
bool libspdm_hkdf_sha256_extract | ( | const uint8_t * | key, |
size_t | key_size, | ||
const uint8_t * | salt, | ||
size_t | salt_size, | ||
uint8_t * | prk_out, | ||
size_t | prk_out_size | ||
) |
Definition at line 869 of file CryptlibWrapper.c.
bool libspdm_hkdf_sha256_extract_and_expand | ( | const uint8_t * | key, |
size_t | key_size, | ||
const uint8_t * | salt, | ||
size_t | salt_size, | ||
const uint8_t * | info, | ||
size_t | info_size, | ||
uint8_t * | out, | ||
size_t | out_size | ||
) |
Definition at line 845 of file CryptlibWrapper.c.
bool libspdm_hkdf_sha384_expand | ( | const uint8_t * | prk, |
size_t | prk_size, | ||
const uint8_t * | info, | ||
size_t | info_size, | ||
uint8_t * | out, | ||
size_t | out_size | ||
) |
Definition at line 953 of file CryptlibWrapper.c.
bool libspdm_hkdf_sha384_extract | ( | const uint8_t * | key, |
size_t | key_size, | ||
const uint8_t * | salt, | ||
size_t | salt_size, | ||
uint8_t * | prk_out, | ||
size_t | prk_out_size | ||
) |
Definition at line 933 of file CryptlibWrapper.c.
bool libspdm_hkdf_sha384_extract_and_expand | ( | const uint8_t * | key, |
size_t | key_size, | ||
const uint8_t * | salt, | ||
size_t | salt_size, | ||
const uint8_t * | info, | ||
size_t | info_size, | ||
uint8_t * | out, | ||
size_t | out_size | ||
) |
Definition at line 909 of file CryptlibWrapper.c.
bool libspdm_hmac_sha256_all | ( | const void * | data, |
size_t | data_size, | ||
const uint8_t * | key, | ||
size_t | key_size, | ||
uint8_t * | hmac_value | ||
) |
Definition at line 216 of file CryptlibWrapper.c.
bool libspdm_hmac_sha256_duplicate | ( | const void * | hmac_sha256_ctx, |
void * | new_hmac_sha256_ctx | ||
) |
Definition at line 188 of file CryptlibWrapper.c.
bool libspdm_hmac_sha256_final | ( | void * | hmac_sha256_ctx, |
uint8_t * | hmac_value | ||
) |
Definition at line 207 of file CryptlibWrapper.c.
void libspdm_hmac_sha256_free | ( | void * | hmac_sha256_ctx | ) |
Definition at line 170 of file CryptlibWrapper.c.
void * libspdm_hmac_sha256_new | ( | void | ) |
Definition at line 162 of file CryptlibWrapper.c.
bool libspdm_hmac_sha256_set_key | ( | void * | hmac_sha256_ctx, |
const uint8_t * | key, | ||
size_t | key_size | ||
) |
Definition at line 178 of file CryptlibWrapper.c.
bool libspdm_hmac_sha256_update | ( | void * | hmac_sha256_ctx, |
const void * | data, | ||
size_t | data_size | ||
) |
Definition at line 197 of file CryptlibWrapper.c.
bool libspdm_hmac_sha384_all | ( | const void * | data, |
size_t | data_size, | ||
const uint8_t * | key, | ||
size_t | key_size, | ||
uint8_t * | hmac_value | ||
) |
Definition at line 282 of file CryptlibWrapper.c.
bool libspdm_hmac_sha384_duplicate | ( | const void * | hmac_sha384_ctx, |
void * | new_hmac_sha384_ctx | ||
) |
Definition at line 254 of file CryptlibWrapper.c.
bool libspdm_hmac_sha384_final | ( | void * | hmac_sha384_ctx, |
uint8_t * | hmac_value | ||
) |
Definition at line 273 of file CryptlibWrapper.c.
void libspdm_hmac_sha384_free | ( | void * | hmac_sha384_ctx | ) |
Definition at line 236 of file CryptlibWrapper.c.
void * libspdm_hmac_sha384_new | ( | void | ) |
Definition at line 228 of file CryptlibWrapper.c.
bool libspdm_hmac_sha384_set_key | ( | void * | hmac_sha384_ctx, |
const uint8_t * | key, | ||
size_t | key_size | ||
) |
Definition at line 244 of file CryptlibWrapper.c.
bool libspdm_hmac_sha384_update | ( | void * | hmac_sha384_ctx, |
const void * | data, | ||
size_t | data_size | ||
) |
Definition at line 263 of file CryptlibWrapper.c.
bool libspdm_random_bytes | ( | uint8_t * | output, |
size_t | size | ||
) |
Definition at line 836 of file CryptlibWrapper.c.
void libspdm_rsa_free | ( | void * | rsa_context | ) |
Definition at line 358 of file CryptlibWrapper.c.
bool libspdm_rsa_get_private_key_from_pem | ( | const uint8_t * | pem_data, |
size_t | pem_size, | ||
const char * | password, | ||
void ** | rsa_context | ||
) |
Definition at line 456 of file CryptlibWrapper.c.
bool libspdm_rsa_get_public_key_from_der | ( | const uint8_t * | der_data, |
size_t | der_size, | ||
void ** | rsa_context | ||
) |
Definition at line 487 of file CryptlibWrapper.c.
bool libspdm_rsa_get_public_key_from_x509 | ( | const uint8_t * | cert, |
size_t | cert_size, | ||
void ** | rsa_context | ||
) |
Definition at line 467 of file CryptlibWrapper.c.
bool libspdm_rsa_pkcs1_sign_with_nid | ( | void * | rsa_context, |
size_t | hash_nid, | ||
const uint8_t * | message_hash, | ||
size_t | hash_size, | ||
uint8_t * | signature, | ||
size_t * | sig_size | ||
) |
Definition at line 366 of file CryptlibWrapper.c.
bool libspdm_rsa_pkcs1_verify_with_nid | ( | void * | rsa_context, |
size_t | hash_nid, | ||
const uint8_t * | message_hash, | ||
size_t | hash_size, | ||
const uint8_t * | signature, | ||
size_t | sig_size | ||
) |
Definition at line 411 of file CryptlibWrapper.c.
bool libspdm_sha256_duplicate | ( | const void * | Sha256Context, |
void * | NewSha256Context | ||
) |
Definition at line 52 of file CryptlibWrapper.c.
bool libspdm_sha256_final | ( | void * | sha256_context, |
uint8_t * | hash_value | ||
) |
Definition at line 71 of file CryptlibWrapper.c.
void libspdm_sha256_free | ( | void * | Sha256Ctx | ) |
Definition at line 33 of file CryptlibWrapper.c.
bool libspdm_sha256_hash_all | ( | const void * | data, |
size_t | data_size, | ||
uint8_t * | hash_value | ||
) |
Definition at line 80 of file CryptlibWrapper.c.
bool libspdm_sha256_init | ( | void * | Sha256Ctx | ) |
Definition at line 44 of file CryptlibWrapper.c.
void * libspdm_sha256_new | ( | void | ) |
Definition at line 18 of file CryptlibWrapper.c.
bool libspdm_sha256_update | ( | void * | Sha256Context, |
const void * | Data, | ||
size_t | DataSize | ||
) |
Definition at line 61 of file CryptlibWrapper.c.
bool libspdm_sha384_duplicate | ( | const void * | sha384_context, |
void * | new_sha384_context | ||
) |
Definition at line 124 of file CryptlibWrapper.c.
bool libspdm_sha384_final | ( | void * | sha384_context, |
uint8_t * | hash_value | ||
) |
Definition at line 143 of file CryptlibWrapper.c.
void libspdm_sha384_free | ( | void * | Sha384Ctx | ) |
Definition at line 105 of file CryptlibWrapper.c.
bool libspdm_sha384_hash_all | ( | const void * | data, |
size_t | data_size, | ||
uint8_t * | hash_value | ||
) |
Definition at line 152 of file CryptlibWrapper.c.
bool libspdm_sha384_init | ( | void * | sha384_context | ) |
Definition at line 116 of file CryptlibWrapper.c.
void * libspdm_sha384_new | ( | void | ) |
Definition at line 90 of file CryptlibWrapper.c.
bool libspdm_sha384_update | ( | void * | sha384_context, |
const void * | data, | ||
size_t | data_size | ||
) |
Definition at line 133 of file CryptlibWrapper.c.
int32_t libspdm_x509_compare_date_time | ( | const void * | date_time1, |
const void * | date_time2 | ||
) |
Definition at line 662 of file CryptlibWrapper.c.
bool libspdm_x509_construct_certificate | ( | const uint8_t * | cert, |
size_t | cert_size, | ||
uint8_t ** | single_x509_cert | ||
) |
Definition at line 732 of file CryptlibWrapper.c.
bool libspdm_x509_get_cert_from_cert_chain | ( | const uint8_t * | cert_chain, |
size_t | cert_chain_length, | ||
const int32_t | cert_index, | ||
const uint8_t ** | cert, | ||
size_t * | cert_length | ||
) |
Definition at line 714 of file CryptlibWrapper.c.
bool libspdm_x509_get_common_name | ( | const uint8_t * | cert, |
size_t | cert_size, | ||
char * | common_name, | ||
size_t * | common_name_size | ||
) |
Definition at line 540 of file CryptlibWrapper.c.
bool libspdm_x509_get_extended_basic_constraints | ( | const uint8_t * | cert, |
size_t | cert_size, | ||
uint8_t * | basic_constraints, | ||
size_t * | basic_constraints_size | ||
) |
Definition at line 742 of file CryptlibWrapper.c.
bool libspdm_x509_get_extended_key_usage | ( | const uint8_t * | cert, |
size_t | cert_size, | ||
uint8_t * | usage, | ||
size_t * | usage_size | ||
) |
Definition at line 681 of file CryptlibWrapper.c.
bool libspdm_x509_get_extension_data | ( | const uint8_t * | cert, |
size_t | cert_size, | ||
const uint8_t * | oid, | ||
size_t | oid_size, | ||
uint8_t * | extension_data, | ||
size_t * | extension_data_size | ||
) |
Definition at line 619 of file CryptlibWrapper.c.
bool libspdm_x509_get_issuer_name | ( | const uint8_t * | cert, |
size_t | cert_size, | ||
uint8_t * | cert_issuer, | ||
size_t * | issuer_size | ||
) |
Definition at line 597 of file CryptlibWrapper.c.
bool libspdm_x509_get_key_usage | ( | const uint8_t * | cert, |
size_t | cert_size, | ||
size_t * | usage | ||
) |
Definition at line 671 of file CryptlibWrapper.c.
bool libspdm_x509_get_organization_name | ( | const uint8_t * | cert, |
size_t | cert_size, | ||
char * | name_buffer, | ||
size_t * | name_buffer_size | ||
) |
Definition at line 558 of file CryptlibWrapper.c.
bool libspdm_x509_get_serial_number | ( | const uint8_t * | cert, |
size_t | cert_size, | ||
uint8_t * | serial_number, | ||
size_t * | serial_number_size | ||
) |
Definition at line 586 of file CryptlibWrapper.c.
bool libspdm_x509_get_signature_algorithm | ( | const uint8_t * | cert, |
size_t | cert_size, | ||
uint8_t * | oid, | ||
size_t * | oid_size | ||
) |
Definition at line 608 of file CryptlibWrapper.c.
bool libspdm_x509_get_subject_name | ( | const uint8_t * | cert, |
size_t | cert_size, | ||
uint8_t * | cert_subject, | ||
size_t * | subject_size | ||
) |
Definition at line 529 of file CryptlibWrapper.c.
bool libspdm_x509_get_validity | ( | const uint8_t * | cert, |
size_t | cert_size, | ||
uint8_t * | from, | ||
size_t * | from_size, | ||
uint8_t * | to, | ||
size_t * | to_size | ||
) |
Definition at line 639 of file CryptlibWrapper.c.
bool libspdm_x509_get_version | ( | const uint8_t * | cert, |
size_t | cert_size, | ||
size_t * | version | ||
) |
Definition at line 576 of file CryptlibWrapper.c.
bool libspdm_x509_set_date_time | ( | const char * | date_time_str, |
void * | date_time, | ||
size_t * | date_time_size | ||
) |
Definition at line 652 of file CryptlibWrapper.c.
bool libspdm_x509_verify_cert | ( | const uint8_t * | cert, |
size_t | cert_size, | ||
const uint8_t * | ca_cert, | ||
size_t | ca_cert_size | ||
) |
Definition at line 692 of file CryptlibWrapper.c.
bool libspdm_x509_verify_cert_chain | ( | const uint8_t * | root_cert, |
size_t | root_cert_length, | ||
const uint8_t * | cert_chain, | ||
size_t | cert_chain_length | ||
) |
Definition at line 703 of file CryptlibWrapper.c.