11#ifndef MBEDTLS_PSA_UTIL_H
12#define MBEDTLS_PSA_UTIL_H
24#if defined(MBEDTLS_PSA_CRYPTO_CLIENT)
58 unsigned char *output,
67#define MBEDTLS_PSA_RANDOM_STATE NULL
72#if defined(PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY)
144#if defined(MBEDTLS_PSA_UTIL_HAVE_ECDSA)
176 unsigned char *der,
size_t der_size,
size_t *der_len);
201 unsigned char *raw,
size_t raw_size,
size_t *raw_len);
ASN.1 buffer writing functionality.
Platform Security Architecture cryptography module.
This file provides an API for Elliptic Curves over GF(P) (ECP).
uint32_t psa_algorithm_t
Encoding of a cryptographic algorithm.
#define PSA_ALG_HASH_MASK
#define PSA_ALG_CATEGORY_HASH
static mbedtls_md_type_t mbedtls_md_type_from_psa_alg(psa_algorithm_t psa_alg)
This function returns the given digest type associated with the PSA algorithm identifier.
int mbedtls_ecdsa_der_to_raw(size_t bits, const unsigned char *der, size_t der_len, unsigned char *raw, size_t raw_size, size_t *raw_len)
mbedtls_ecp_group_id mbedtls_ecc_group_from_psa(psa_ecc_family_t family, size_t bits)
int mbedtls_ecdsa_raw_to_der(size_t bits, const unsigned char *raw, size_t raw_len, unsigned char *der, size_t der_size, size_t *der_len)
psa_ecc_family_t mbedtls_ecc_group_to_psa(mbedtls_ecp_group_id grpid, size_t *bits)
static psa_algorithm_t mbedtls_md_psa_alg_from_type(mbedtls_md_type_t md_type)
This function returns the PSA algorithm identifier associated with the given digest type.
Build-time configuration info.
mbedtls_md_type_t
Supported message digests.
Macro wrapper for struct's members.
int mbedtls_psa_get_random(void *p_rng, unsigned char *output, size_t output_size)