CryptoAuthLib v3.7.6
Microchip CryptoAuthentication Library
 
Loading...
Searching...
No Matches
atca_host_config_check.h File Reference

Consistency checks for configuration options. More...

Macros

#define ATCAH_INCLUDE_DATA   (DEFAULT_ENABLED)
 
#define ATCAH_NONCE   (DEFAULT_ENABLED)
 
#define ATCAH_IO_DECRYPT   (DEFAULT_ENABLED)
 
#define ATCAH_VERIFY_MAC   (DEFAULT_ENABLED)
 
#define ATCAH_SECUREBOOT_ENC   (DEFAULT_ENABLED)
 
#define ATCAH_SECUREBOOT_MAC   (DEFAULT_ENABLED)
 
#define ATCAH_MAC   (DEFAULT_ENABLED)
 
#define ATCAH_CHECK_MAC   (DEFAULT_ENABLED)
 
#define ATCAH_GEN_OUTPUT_RESP_MAC   (DEFAULT_ENABLED)
 
#define ATCAH_HMAC   (DEFAULT_ENABLED)
 
#define ATCAH_GENDIG   (DEFAULT_ENABLED)
 
#define ATCAH_GENDIVKEY   (DEFAULT_ENABLED)
 
#define ATCAH_GEN_MAC   (DEFAULT_ENABLED)
 
#define ATCAH_WRITE_AUTH_MAC   (DEFAULT_ENABLED)
 
#define ATCAH_PRIVWRITE_AUTH_MAC   (DEFAULT_ENABLED)
 
#define ATCAH_DERIVE_KEY   (DEFAULT_ENABLED)
 
#define ATCAH_DERIVE_KEY_MAC   (DEFAULT_ENABLED)
 
#define ATCAH_DECRYPT   (DEFAULT_ENABLED)
 
#define ATCAH_SHA256   (DEFAULT_ENABLED)
 
#define ATCAH_GEN_KEY_MSG   (DEFAULT_ENABLED)
 
#define ATCAH_CONFIG_TO_SIGN_INTERNAL   (DEFAULT_ENABLED)
 
#define ATCAH_SIGN_INTERNAL_MSG   (DEFAULT_ENABLED)
 
#define ATCAH_ENCODE_COUNTER_MATCH   (DEFAULT_ENABLED)
 
#define ATCAH_GEN_SESSION_KEY   (DEFAULT_ENABLED)
 
#define ATCAH_DELETE_MAC   (CALIB_DELETE_EN)
 
#define ATCAC_SW_SHA2_256   (DEFAULT_ENABLED)
 

Detailed Description

Consistency checks for configuration options.

Macro Definition Documentation

◆ ATCAH_CHECK_MAC

#define ATCAH_CHECK_MAC   (DEFAULT_ENABLED)

Requires: ATCAH_CHECK_MAC ATCAC_SW_SHA2_256

Supported API's: atcah_check_mac

Enable ATCAH_CHECK_MAC to perform the checkmac operation to generate client response on the host side

◆ ATCAH_CONFIG_TO_SIGN_INTERNAL

#define ATCAH_CONFIG_TO_SIGN_INTERNAL   (DEFAULT_ENABLED)

Requires: ATCAH_CONFIG_TO_SIGN_INTERNAL

Supported API's: atcah_config_to_sign_internal

Enable ATCAH_CONFIG_TO_SIGN_INTERNAL to populate the slot_config, key_config, and is_slot_locked fields in the atca_sign_internal_in_out structure from the provided config zone

◆ ATCAH_DECRYPT

#define ATCAH_DECRYPT   (DEFAULT_ENABLED)

Requires: ATCAH_DECRYPT

Supported API's: atcah_decrypt

Enable ATCAH_DECRYPT to decrypt 32-byte encrypted data received with the Read command

◆ ATCAH_DELETE_MAC

#define ATCAH_DELETE_MAC   (CALIB_DELETE_EN)

Requires: ATCAH_DELETE_MAC ATCAC_SW_SHA2_256

Supported API's: atcah_delete_mac

Enable ATCAH_DELETE_MAC to calculate the mac

◆ ATCAH_DERIVE_KEY

#define ATCAH_DERIVE_KEY   (DEFAULT_ENABLED)

Requires: ATCAH_DERIVE_KEY ATCAC_SW_SHA2_256

Supported API's: atcah_derive_key

Enable ATCAH_DERIVE_KEY to derive a key with a key and TempKey

◆ ATCAH_DERIVE_KEY_MAC

#define ATCAH_DERIVE_KEY_MAC   (DEFAULT_ENABLED)

Requires: ATCAH_DERIVE_KEY_MAC ATCAC_SW_SHA2_256

Supported API's: atcah_derive_key_mac

Enable ATCAH_DERIVE_KEY_MAC to calculate the input MAC for a DeriveKey command

◆ ATCAH_ENCODE_COUNTER_MATCH

#define ATCAH_ENCODE_COUNTER_MATCH   (DEFAULT_ENABLED)

Requires: ATCAH_ENCODE_COUNTER_MATCH

Supported API's: atcah_encode_counter_match

Enable ATCAH_ENCODE_COUNTER_MATCH to build the counter match value that needs to be stored in a slot

◆ ATCAH_GEN_KEY_MSG

#define ATCAH_GEN_KEY_MSG   (DEFAULT_ENABLED)

Requires: ATCAH_SHA256 ATCAC_SW_SHA2_256

Supported API's: atcah_gen_key_msg

Enable ATCAH_GEN_KEY_MSG to calculate the PubKey digest created by GenKey and saved to TempKey

◆ ATCAH_GEN_MAC

#define ATCAH_GEN_MAC   (DEFAULT_ENABLED)

Requires: ATCAH_GEN_MAC ATCAC_SW_SHA2_256

Supported API's: atcah_gen_mac

Enable ATCAH_GEN_MAC to generate mac with session key with a plain text

◆ ATCAH_GEN_OUTPUT_RESP_MAC

#define ATCAH_GEN_OUTPUT_RESP_MAC   (DEFAULT_ENABLED)

Requires: ATCAH_GEN_OUTPUT_RESP_MAC ATCAC_SW_SHA2_256

Supported API's: atcah_gen_output_resp_mac

Enable ATCAH_GEN_OUTPUT_RESP_MAC to generate output response mac

◆ ATCAH_GEN_SESSION_KEY

#define ATCAH_GEN_SESSION_KEY   (DEFAULT_ENABLED)

Requires: ATCAH_GEN_SESSION_KEY ATCAC_SW_SHA2_256

Supported API's: atcah_gen_Session_key

Enable ATCAH_GEN_SESSION_KEY to calculate the session key for the ECC204

◆ ATCAH_GENDIG

#define ATCAH_GENDIG   (DEFAULT_ENABLED)

Requires: ATCAH_GENDIG ATCAC_SW_SHA2_256

Supported API's: atcah_gen_dig

Enable ATCAH_GENDIG to combine the current TempKey with a stored value

◆ ATCAH_GENDIVKEY

#define ATCAH_GENDIVKEY   (DEFAULT_ENABLED)

Requires: ATCAH_GENDIVKEY ATCAC_SW_SHA2_256

Supported API's: atcah_gendivkey

Enable ATCAH_GENDIVKEY to generate the diversified key

◆ ATCAH_HMAC

#define ATCAH_HMAC   (DEFAULT_ENABLED)

Requires: ATCAH_HMAC ATCAC_SW_SHA2_256 ATCAH_INCLUDE_DATA

Supported API's: atcah_hmac

Enable ATCAH_HMAC to generate an HMAC / SHA-256 hash of a key and other information

◆ ATCAH_INCLUDE_DATA

#define ATCAH_INCLUDE_DATA   (DEFAULT_ENABLED)

Requires: ATCAH_INCLUDE_DATA

Supported API's: atcah_include_data

Enable ATCAH_INCLUDE_DATA to copy otp and sn data into a command buffer

◆ ATCAH_IO_DECRYPT

#define ATCAH_IO_DECRYPT   (DEFAULT_ENABLED)

Requires: ATCAH_IO_DECRYPT ATCAC_SW_SHA2_256

Supported API's: atcah_io_decrypt

Enable ATCAH_IO_DECRYPT to decrypt data that's been encrypted by the IO protection key.The ECDH and KDF commands on the ATECC608 are the only ones that support this operation

◆ ATCAH_MAC

#define ATCAH_MAC   (DEFAULT_ENABLED)

Requires: ATCAH_MAC ATCAC_SW_SHA2_256 ATCAH_INCLUDE_DATA

Supported API's: atcah_mac

Enable ATCAH_MAC to generate an SHA-256 digest (MAC) of a key, challenge, and other information

◆ ATCAH_NONCE

#define ATCAH_NONCE   (DEFAULT_ENABLED)

Requires: ATCAH_NONCE ATCAC_SW_SHA2_256

Supported API's: atcah_nonce

Enable ATCAH_NONCE to calculate host side nonce with the parameters passed

◆ ATCAH_PRIVWRITE_AUTH_MAC

#define ATCAH_PRIVWRITE_AUTH_MAC   (DEFAULT_ENABLED)

Requires: ATCAH_PRIVWRITE_AUTH_MAC ATCAC_SW_SHA2_256

Supported API's: atcah_privwrite_auth_mac

Enable ATCAH_PRIVWRITE_AUTH_MAC to calculate the input MAC for the PrivWrite command

◆ ATCAH_SECUREBOOT_ENC

#define ATCAH_SECUREBOOT_ENC   (DEFAULT_ENABLED)

Requires: ATCAH_SECUREBOOT_ENC ATCAC_SW_SHA2_256

Supported API's: atcah_secureboot_enc

Enable ATCAH_SECUREBOOT_ENC to encrypt the digest for the SecureBoot command when using the encrypted digest / validating mac option

◆ ATCAH_SECUREBOOT_MAC

#define ATCAH_SECUREBOOT_MAC   (DEFAULT_ENABLED)

Requires: ATCAH_SECUREBOOT_MAC ATCAC_SW_SHA2_256

Supported API's: atcah_secureboot_mac

Enable ATCAH_SECUREBOOT_MAC to calculates the expected MAC returned from the SecureBoot command when verification is a success

◆ ATCAH_SHA256

#define ATCAH_SHA256   (DEFAULT_ENABLED)

Requires: ATCAH_SHA256 ATCAC_SW_SHA2_256

Supported API's: atcah_sha256

Enable ATCAH_SHA256 to create a SHA256 digest on a little-endian system

◆ ATCAH_SIGN_INTERNAL_MSG

#define ATCAH_SIGN_INTERNAL_MSG   (DEFAULT_ENABLED)

Requires: ATCAH_SIGN_INTERNAL_MSG ATCAC_SW_SHA2_256

Supported API's: atcah_sign_internal_msg

Enable ATCAH_SIGN_INTERNAL_MSG to build the full message that would be signed by the Sign(Internal) command

◆ ATCAH_VERIFY_MAC

#define ATCAH_VERIFY_MAC   (DEFAULT_ENABLED)

Requires: ATCAH_VERIFY_MAC ATCAC_SW_SHA2_256

Supported API's: atcah_verify_mac

Enable ATCAH_VERIFY_MAC to calculate the expected MAC on the host side for the Verify command

◆ ATCAH_WRITE_AUTH_MAC

#define ATCAH_WRITE_AUTH_MAC   (DEFAULT_ENABLED)

Requires: ATCAH_WRITE_AUTH_MAC ATCAC_SW_SHA2_256

Supported API's: atcah_write_auth_mac ECC204 specific API's: atcah_ecc204_write_auth_mac

Enable ATCAH_WRITE_AUTH_MAC to calculate the input MAC for the Write command