Loading...
Searching...
No Matches
algorithm.h File Reference

Algorithm definitions for the PSA Crypto API. More...

Detailed Description

#include <stdint.h>
+ Include dependency graph for algorithm.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

#define PSA_ALG_NONE   ((psa_algorithm_t)0)
 An invalid algorithm identifier value.
 
#define PSA_ALG_CATEGORY_MASK   ((psa_algorithm_t)0x7f000000)
 PSA algorithm category mask.
 
typedef uint32_t psa_algorithm_t
 Encoding of a cryptographic algorithm.
 

Macro Definition Documentation

◆ PSA_ALG_CATEGORY_MASK

#define PSA_ALG_CATEGORY_MASK   ((psa_algorithm_t)0x7f000000)

PSA algorithm category mask.

Definition at line 51 of file algorithm.h.

◆ PSA_ALG_NONE

#define PSA_ALG_NONE   ((psa_algorithm_t)0)

An invalid algorithm identifier value.

Zero is not the encoding of any algorithm.

Definition at line 46 of file algorithm.h.

Typedef Documentation

◆ psa_algorithm_t

typedef uint32_t psa_algorithm_t

Encoding of a cryptographic algorithm.

For algorithms that can be applied to multiple key types, this identifier does not encode the key type. For example, for symmetric ciphers based on a block cipher, psa_algorithm_t encodes the block cipher mode and the padding mode while the block cipher itself is encoded via psa_key_type_t.

Definition at line 39 of file algorithm.h.