OPTIGA Trust M  1.1.0
C++ library for Optiga Trust M Chip Security Controller
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:
This graph shows which files directly or indirectly include this file:

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_DIGEST_OUT   (0x01)
 For hash digest out. 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...
 

Detailed Description

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

Copyright (c) 2019 Infineon Technologies AG

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE

\endcopyright

Author
Infineon Technologies AG

Macro Definition Documentation

◆ MIN

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

Determines the minimum of two values.

◆ OPTIGA_COMMS_SESSION_CONTEXT_NONE

#define OPTIGA_COMMS_SESSION_CONTEXT_NONE   (0x33)

For no manage context operation.

◆ OPTIGA_COMMS_SESSION_CONTEXT_RESTORE

#define OPTIGA_COMMS_SESSION_CONTEXT_RESTORE   (0x11)

To restore saved secure session.

◆ OPTIGA_COMMS_SESSION_CONTEXT_SAVE

#define OPTIGA_COMMS_SESSION_CONTEXT_SAVE   (0x22)

To store active secure session.

◆ OPTIGA_CRYPT_HASH_CONTINUE

#define OPTIGA_CRYPT_HASH_CONTINUE   (0x02)

For hash input as continue.

◆ OPTIGA_CRYPT_HASH_CONTX_OUT

#define OPTIGA_CRYPT_HASH_CONTX_OUT   (0x07)

For hash input as hash context out.

◆ OPTIGA_CRYPT_HASH_DIGEST_OUT

#define OPTIGA_CRYPT_HASH_DIGEST_OUT   (0x01)

For hash digest out.

◆ OPTIGA_CRYPT_HASH_FINAL

#define OPTIGA_CRYPT_HASH_FINAL   (0x03)

For hash input as final.

◆ OPTIGA_CRYPT_HASH_FOR_OID

#define OPTIGA_CRYPT_HASH_FOR_OID   (0x10)

For hash input as hash oid.

◆ OPTIGA_CRYPT_HASH_START

#define OPTIGA_CRYPT_HASH_START   (0x00)

For hash input as start.

◆ OPTIGA_CRYPT_INTERMEDIATE

#define OPTIGA_CRYPT_INTERMEDIATE   (0x06)

For hash input as intermediate hash context.