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

Structure definitions for PSA Crypto. More...

Detailed Description

Structure definitions for PSA Crypto.

Author
Lena Boeckmann lena..nosp@m.boec.nosp@m.kmann.nosp@m.@haw.nosp@m.-hamb.nosp@m.urg..nosp@m.de

Definition in file crypto_struct.h.

#include "crypto_types.h"
#include "crypto_sizes.h"
#include "crypto_contexts.h"
+ Include dependency graph for crypto_struct.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  psa_key_policy_s
 Structure storing the key usage policies. More...
 
struct  psa_key_attributes_s
 Structure storing key attributes. More...
 
struct  psa_aead_operation_s
 Structure storing an AEAD operation context. More...
 
struct  psa_cipher_operation_s
 Structure storing a cipher operation context. More...
 
union  psa_cipher_operation_s::cipher_context
 Union containing cipher contexts for the executing backend. More...
 
struct  psa_key_derivation_operation_s
 Structure storing a key derivation context. More...
 
struct  psa_hash_operation_s
 Structure containing a hash context and algorithm. More...
 
struct  psa_mac_operation_s
 Structure storing a MAC operation context. More...
 
#define PSA_KEY_ATTRIBUTES_INIT   { 0 }
 This macro returns a suitable initializer for a key attribute object of type psa_key_attributes_t.
 
#define PSA_AEAD_OPERATION_INIT   { 0 }
 This macro returns a suitable initializer for an AEAD operation object of type psa_aead_operation_t.
 
#define PSA_CIPHER_OPERATION_INIT   { 0 }
 This macro returns a suitable initializer for a cipher operation object of type psa_cipher_operation_t.
 
#define PSA_KEY_DERIVATION_OPERATION_INIT   { 0 }
 This macro returns a suitable initializer for a key derivation operation object of type psa_key_derivation_operation_t.
 
#define PSA_HASH_OPERATION_INIT   { 0 }
 This macro returns a suitable initializer for a hash operation object of type psa_hash_operation_t.
 
#define PSA_MAC_OPERATION_INIT   { 0 }
 This macro returns a suitable initializer for a MAC operation object of type psa_mac_operation_t.
 
typedef struct psa_key_policy_s psa_key_policy_t
 Type for key usage policies.
 
static struct psa_key_attributes_s psa_key_attributes_init (void)
 Return an initial value for a key attribute object.
 
static struct psa_aead_operation_s psa_aead_operation_init (void)
 Return an initial value for an AEAD operation object.
 
static struct psa_cipher_operation_s psa_cipher_operation_init (void)
 Return an initial value for a cipher operation object.
 
static struct psa_key_derivation_operation_s psa_key_derivation_operation_init (void)
 Return an initial value for a key derivation operation object.
 
static struct psa_hash_operation_s psa_hash_operation_init (void)
 Return an initial value for a hash operation object.
 
static struct psa_mac_operation_s psa_mac_operation_init (void)
 Return an initial value for a MAC operation object.
 

Macro Definition Documentation

◆ PSA_AEAD_OPERATION_INIT

#define PSA_AEAD_OPERATION_INIT   { 0 }

This macro returns a suitable initializer for an AEAD operation object of type psa_aead_operation_t.

Definition at line 89 of file crypto_struct.h.

◆ PSA_CIPHER_OPERATION_INIT

#define PSA_CIPHER_OPERATION_INIT   { 0 }

This macro returns a suitable initializer for a cipher operation object of type psa_cipher_operation_t.

Definition at line 126 of file crypto_struct.h.

◆ PSA_HASH_OPERATION_INIT

#define PSA_HASH_OPERATION_INIT   { 0 }

This macro returns a suitable initializer for a hash operation object of type psa_hash_operation_t.

Definition at line 185 of file crypto_struct.h.

◆ PSA_KEY_ATTRIBUTES_INIT

#define PSA_KEY_ATTRIBUTES_INIT   { 0 }

This macro returns a suitable initializer for a key attribute object of type psa_key_attributes_t.

Definition at line 60 of file crypto_struct.h.

◆ PSA_KEY_DERIVATION_OPERATION_INIT

#define PSA_KEY_DERIVATION_OPERATION_INIT   { 0 }

This macro returns a suitable initializer for a key derivation operation object of type psa_key_derivation_operation_t.

Definition at line 146 of file crypto_struct.h.

◆ PSA_MAC_OPERATION_INIT

#define PSA_MAC_OPERATION_INIT   { 0 }

This macro returns a suitable initializer for a MAC operation object of type psa_mac_operation_t.

Definition at line 205 of file crypto_struct.h.

Typedef Documentation

◆ psa_key_policy_t

Type for key usage policies.

Definition at line 43 of file crypto_struct.h.

Function Documentation

◆ psa_aead_operation_init()

static struct psa_aead_operation_s psa_aead_operation_init ( void  )
inlinestatic

Return an initial value for an AEAD operation object.

Returns
psa_aead_operation_s

Definition at line 96 of file crypto_struct.h.

◆ psa_cipher_operation_init()

static struct psa_cipher_operation_s psa_cipher_operation_init ( void  )
inlinestatic

Return an initial value for a cipher operation object.

Returns
psa_cipher_operation_s

Definition at line 133 of file crypto_struct.h.

◆ psa_hash_operation_init()

static struct psa_hash_operation_s psa_hash_operation_init ( void  )
inlinestatic

Return an initial value for a hash operation object.

Returns
struct psa_hash_operation_s

Definition at line 192 of file crypto_struct.h.

◆ psa_key_attributes_init()

static struct psa_key_attributes_s psa_key_attributes_init ( void  )
inlinestatic

Return an initial value for a key attribute object.

Returns
struct psa_key_attributes_s

Definition at line 67 of file crypto_struct.h.

◆ psa_key_derivation_operation_init()

static struct psa_key_derivation_operation_s psa_key_derivation_operation_init ( void  )
inlinestatic

Return an initial value for a key derivation operation object.

Returns
psa_key_derivation_operation_s

Definition at line 162 of file crypto_struct.h.

◆ psa_mac_operation_init()

static struct psa_mac_operation_s psa_mac_operation_init ( void  )
inlinestatic

Return an initial value for a MAC operation object.

Returns
psa_mac_operation_s

Definition at line 221 of file crypto_struct.h.