OPTIGA™ Trust M
Host Library Documentation
optiga_lib_common_internal.h File Reference

This file provides the prototypes for the commonly used internal functions and structures of OPTIGA Library. More...

Include dependency graph for optiga_lib_common_internal.h:

Go to the source code of this file.

Macros

#define MIN(a, b)   (((a)<(b))?(a):(b))
 Determines the minimum of two values. More...
 
#define OPTIGA_CRYPT_HASH_START   (0x00)
 For hash input as start. More...
 
#define OPTIGA_CRYPT_HASH_START_FINAL   (0x01)
 For hash input as start and final. More...
 
#define OPTIGA_CRYPT_HASH_CONTINUE   (0x02)
 For hash input as continue. More...
 
#define OPTIGA_CRYPT_HASH_FINAL   (0x03)
 For hash input as final. More...
 
#define OPTIGA_CRYPT_INTERMEDIATE   (0x06)
 For hash input as intermediate hash context. More...
 
#define OPTIGA_CRYPT_HASH_CONTX_OUT   (0x07)
 For hash input as hash context out. More...
 
#define OPTIGA_CRYPT_HASH_FOR_OID   (0x10)
 For hash input as hash oid. More...
 
#define OPTIGA_COMMS_SESSION_CONTEXT_RESTORE   (0x11)
 To restore saved secure session. More...
 
#define OPTIGA_COMMS_SESSION_CONTEXT_SAVE   (0x22)
 To store active secure session. More...
 
#define OPTIGA_COMMS_SESSION_CONTEXT_NONE   (0x33)
 For no manage context operation. More...
 
#define OPTIGA_CRYPT_SYM_START   (0x00)
 For symetric encrypt, dectypt or hmac input as start. More...
 
#define OPTIGA_CRYPT_SYM_START_FINAL   (0x01)
 For symetric encrypt, dectypt or hmac input as start and final. More...
 
#define OPTIGA_CRYPT_SYM_CONTINUE   (0x02)
 For symetric encrypt, dectypt or hmac input as continue. More...
 
#define OPTIGA_CRYPT_SYM_FINAL   (0x03)
 For symetric encrypt, dectypt or hmac input as final. More...
 

Detailed Description

This file provides the prototypes for the commonly used internal functions and structures of OPTIGA Library.

Author
Infineon Technologies AG

Definition in file optiga_lib_common_internal.h.

Macro Definition Documentation

◆ MIN

#define MIN (   a,
 
)    (((a)<(b))?(a):(b))

Determines the minimum of two values.

Definition at line 48 of file optiga_lib_common_internal.h.

◆ OPTIGA_COMMS_SESSION_CONTEXT_NONE

#define OPTIGA_COMMS_SESSION_CONTEXT_NONE   (0x33)

For no manage context operation.

Definition at line 70 of file optiga_lib_common_internal.h.

◆ OPTIGA_COMMS_SESSION_CONTEXT_RESTORE

#define OPTIGA_COMMS_SESSION_CONTEXT_RESTORE   (0x11)

To restore saved secure session.

Definition at line 66 of file optiga_lib_common_internal.h.

◆ OPTIGA_COMMS_SESSION_CONTEXT_SAVE

#define OPTIGA_COMMS_SESSION_CONTEXT_SAVE   (0x22)

To store active secure session.

Definition at line 68 of file optiga_lib_common_internal.h.

◆ OPTIGA_CRYPT_HASH_CONTINUE

#define OPTIGA_CRYPT_HASH_CONTINUE   (0x02)

For hash input as continue.

Definition at line 55 of file optiga_lib_common_internal.h.

◆ OPTIGA_CRYPT_HASH_CONTX_OUT

#define OPTIGA_CRYPT_HASH_CONTX_OUT   (0x07)

For hash input as hash context out.

Definition at line 61 of file optiga_lib_common_internal.h.

◆ OPTIGA_CRYPT_HASH_FINAL

#define OPTIGA_CRYPT_HASH_FINAL   (0x03)

For hash input as final.

Definition at line 57 of file optiga_lib_common_internal.h.

◆ OPTIGA_CRYPT_HASH_FOR_OID

#define OPTIGA_CRYPT_HASH_FOR_OID   (0x10)

For hash input as hash oid.

Definition at line 63 of file optiga_lib_common_internal.h.

◆ OPTIGA_CRYPT_HASH_START

#define OPTIGA_CRYPT_HASH_START   (0x00)

For hash input as start.

Definition at line 51 of file optiga_lib_common_internal.h.

◆ OPTIGA_CRYPT_HASH_START_FINAL

#define OPTIGA_CRYPT_HASH_START_FINAL   (0x01)

For hash input as start and final.

Definition at line 53 of file optiga_lib_common_internal.h.

◆ OPTIGA_CRYPT_INTERMEDIATE

#define OPTIGA_CRYPT_INTERMEDIATE   (0x06)

For hash input as intermediate hash context.

Definition at line 59 of file optiga_lib_common_internal.h.

◆ OPTIGA_CRYPT_SYM_CONTINUE

#define OPTIGA_CRYPT_SYM_CONTINUE   (0x02)

For symetric encrypt, dectypt or hmac input as continue.

Definition at line 77 of file optiga_lib_common_internal.h.

◆ OPTIGA_CRYPT_SYM_FINAL

#define OPTIGA_CRYPT_SYM_FINAL   (0x03)

For symetric encrypt, dectypt or hmac input as final.

Definition at line 79 of file optiga_lib_common_internal.h.

◆ OPTIGA_CRYPT_SYM_START

#define OPTIGA_CRYPT_SYM_START   (0x00)

For symetric encrypt, dectypt or hmac input as start.

Definition at line 73 of file optiga_lib_common_internal.h.

◆ OPTIGA_CRYPT_SYM_START_FINAL

#define OPTIGA_CRYPT_SYM_START_FINAL   (0x01)

For symetric encrypt, dectypt or hmac input as start and final.

Definition at line 75 of file optiga_lib_common_internal.h.