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_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_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.
 
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 45 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 82 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 141 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 102 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 161 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 52 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 89 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 148 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 118 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 177 of file crypto_struct.h.