AES-256 硬件密钥定义函数
描述: 此文件定义了 AES-256 硬件密钥定义函数。
这里有两组函数
定义于文件 tegra_se.h。
类型定义 | |
| typedef struct tegra_se_cmac_context | se_cmac_ctx |
函数 | |
| uint32_t | se_acquire (void) |
| void | se_release (void) |
| uint32_t | se_derive_root_key (uint8_t *root_key, size_t root_key_len, uint8_t *fv, size_t fv_len, uint32_t keyslot) |
| int | se_write_keyslot (uint8_t *key_in, uint32_t keylen, uint32_t key_quad_sel, uint32_t keyslot) |
| uint32_t | se_clear_aes_keyslots (void) |
| se_cmac_ctx * | tegra_se_cmac_new (void) |
| 创建一个 SE CMAC 上下文。 更多... | |
| void | tegra_se_cmac_free (se_cmac_ctx *se_cmac) |
| 释放一个 SE CMAC 上下文。 更多... | |
| int | tegra_se_cmac_init (se_cmac_ctx *se_cmac, se_aes_keyslot_t keyslot, uint32_t keylen) |
| 从用户提供的密钥初始化 SE CMAC。 更多... | |
| int | tegra_se_cmac_update (se_cmac_ctx *se_cmac, void *data, uint32_t dlen) |
| 在 SE CMAC 中缓存输入数据。 更多... | |
| int | tegra_se_cmac_final (se_cmac_ctx *se_cmac, uint8_t *out, uint32_t *poutlen) |
| 完成 SE CMAC。 更多... | |
| int | se_nist_sp_800_108_with_cmac (se_aes_keyslot_t keyslot, uint32_t key_len, char const *context, char const *label, uint32_t dk_len, uint8_t *out_dk) |
| 一种基于硬件的 NIST-SP-800-108 KDF;从 SE 密钥槽派生密钥。 更多... | |