指定 AES-CMAC 函数的软件实现,与 OpenSSL CMAC 实现非常相似,并且基于相同的概念。
函数 | |
static int | nist_sp_800_108_with_cmac (uint8_t *key, uint32_t key_len, char const *context, char const *label, uint32_t dk_len, uint8_t *out_dk) |
基于软件的 NIST-SP-800-108 KDF;从密钥缓冲区中的密钥派生密钥。更多... | |
static int | key_mgnt_derive_root_keys (void) |
static int | set_ekb_key_to_keyslot (uint32_t keyslot, uint8_t key_index) |
static int | tegra_se_cmac_self_test (void) |
static int | tegra_se_nist_800_108_kdf_self_test (void) |
int | key_mgnt_processing (void) |
变量 | |
static uint8_t | fv_for_ekb [] |
static uint8_t | fv_for_ssk_dk [] |
static uint8_t | kek2_rk_for_ekb [AES_KEY_128_SIZE] = { 0 } |
static uint8_t | ssk_rk [AES_KEY_128_SIZE] = { 0 } |
static uint8_t | demo_256_rk [AES_KEY_256_SIZE] = { 0 } |
static uint8_t | ekb_ek [AES_KEY_128_SIZE] = { 0 } |
static uint8_t | ekb_ak [AES_KEY_128_SIZE] = { 0 } |
static uint8_t | ssk_dk [AES_KEY_128_SIZE] = { 0 } |
|
static |
定义于文件 key_mgnt.c 第 198 行。
引用 demo_256_rk, fv_for_ekb, fv_for_ssk_dk, kek2_rk_for_ekb, se_clear_aes_keyslots(), se_derive_root_key(), se_nist_sp_800_108_with_cmac(), 和 ssk_rk。
被 key_mgnt_processing() 引用。
int key_mgnt_processing | ( | void | ) |
|
static |
基于软件的 NIST-SP-800-108 KDF;从密钥缓冲区中的密钥派生密钥。
[输入] | *key | 用于派生的输入密钥。 |
[输入] | key_len | 输入密钥的长度,以字节为单位。 |
[输入] | *context | 指向 NIST-SP-800-108 上下文字符串的指针。 |
[输入] | *label | 指向 NIST-SP-800-108 标签字符串的指针。 |
[输入] | dk_len | 派生密钥的长度,以字节为单位;可以是 16(128 位)或 16 的任何倍数。 |
[输出] | *out_dk | 指向派生密钥的指针。函数将结果存储在此位置。 |
定义于文件 key_mgnt.c 第 116 行。
被 key_mgnt_processing() 和 tegra_se_nist_800_108_kdf_self_test() 引用。
|
static |
|
static |
定义于文件 key_mgnt.c 第 259 行。
引用 se_write_keyslot(), tegra_se_cmac_final(), tegra_se_cmac_free(), tegra_se_cmac_init(), tegra_se_cmac_new(), 和 tegra_se_cmac_update()。
被 key_mgnt_processing() 引用。
|
static |
定义于文件 key_mgnt.c 第 308 行。
引用 nist_sp_800_108_with_cmac(), se_nist_sp_800_108_with_cmac(), 和 se_write_keyslot()。
被 key_mgnt_processing() 引用。
|
static |
定义于文件 key_mgnt.c 第 85 行。
|
static |
定义于文件 key_mgnt.c 第 91 行。
被 key_mgnt_processing() 引用。
|
static |
定义于文件 key_mgnt.c 第 90 行。
被 key_mgnt_processing() 引用。
|
static |
定义于文件 key_mgnt.c 第 65 行。
|
static |
定义于文件 key_mgnt.c 第 75 行。
|
static |
定义于文件 key_mgnt.c 第 83 行。
|
static |
定义于文件 key_mgnt.c 第 92 行。
被 key_mgnt_processing() 引用。
|
static |
定义于文件 key_mgnt.c 第 84 行。