Mbed TLS v4.1.1
Loading...
Searching...
No Matches
crypto_compat.h File Reference

PSA cryptography module: Backward compatibility aliases. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PSA_KEY_TYPE_DES   ((psa_key_type_t) 0x2301)
#define PSA_ALG_JPAKE_BETA   PSA_ALG_JPAKE_BASE
#define PSA_EXPORT_KEY_PAIR_OR_PUBLIC_MAX_SIZE   ((size_t) MBEDTLS_DEPRECATED_NUMERIC_CONSTANT(PSA_EXPORT_ASYMMETRIC_KEY_MAX_SIZE))

Functions

int psa_can_do_hash (psa_algorithm_t hash_alg)

Detailed Description

PSA cryptography module: Backward compatibility aliases.

This header declares alternative names for macro and functions. New application code should not use these names. These names may be removed in a future version of Mbed TLS.

Note
This file may not be included directly. Applications must include psa/crypto.h.

Definition in file crypto_compat.h.

Macro Definition Documentation

◆ PSA_ALG_JPAKE_BETA

#define PSA_ALG_JPAKE_BETA   PSA_ALG_JPAKE_BASE

The beta encoding of JPAKE algorithms, with no hash.

This came from the beta version of the PSA Crypto PAKE 1.2 extension, which is what Mbed TLS 3.x implemented. Since TF-PSA-Crypto 1.0.0, we no longer support the beta version of specification, so this algorithm encoding is no longer supported in JPAKE cipher suites. Use PSA_ALG_JPAKE instead.

Note
It is unspecified whether a key with PSA_ALG_JPAKE_BETA in its policy may be used to perform a JPAKE operation.

Definition at line 60 of file crypto_compat.h.

◆ PSA_EXPORT_KEY_PAIR_OR_PUBLIC_MAX_SIZE

#define PSA_EXPORT_KEY_PAIR_OR_PUBLIC_MAX_SIZE   ((size_t) MBEDTLS_DEPRECATED_NUMERIC_CONSTANT(PSA_EXPORT_ASYMMETRIC_KEY_MAX_SIZE))

Old non-standard name for PSA_EXPORT_ASYMMETRIC_KEY_MAX_SIZE.

Deprecated
Please use PSA_EXPORT_ASYMMETRIC_KEY_MAX_SIZE instead.

Definition at line 66 of file crypto_compat.h.

◆ PSA_KEY_TYPE_DES

#define PSA_KEY_TYPE_DES   ((psa_key_type_t) 0x2301)

Definition at line 43 of file crypto_compat.h.

Function Documentation

◆ psa_can_do_hash()

int psa_can_do_hash ( psa_algorithm_t hash_alg)