Searched refs:key_size (Results 1 – 3 of 3) sorted by relevance
/optee_examples/acipher/ta/ |
A D | acipher_ta.c | 20 uint32_t key_size; in cmd_gen_key() local 31 key_size = params[0].value.a; in cmd_gen_key() 33 res = TEE_AllocateTransientObject(key_type, key_size, &key); in cmd_gen_key() 35 …EMSG("TEE_AllocateTransientObject(%#" PRIx32 ", %" PRId32 "): %#" PRIx32, key_type, key_size, res); in cmd_gen_key() 39 res = TEE_GenerateKey(key, key_size, NULL, 0); in cmd_gen_key() 42 key_size, res); in cmd_gen_key()
|
/optee_examples/acipher/host/ |
A D | main.c | 30 static void get_args(int argc, char *argv[], size_t *key_size, void **inbuf, in get_args() argument 51 *key_size = ks; in get_args() 69 size_t key_size; in main() local 75 get_args(argc, argv, &key_size, &inbuf, &inbuf_len); in main() 89 op.params[0].value.a = key_size; in main()
|
/optee_examples/aes/ta/ |
A D | aes_ta.c | 49 uint32_t key_size; /* AES key size in byte */ member 74 static TEE_Result ta2tee_key_size(uint32_t param, uint32_t *key_size) in ta2tee_key_size() argument 79 *key_size = param; in ta2tee_key_size() 135 res = ta2tee_key_size(params[1].value.a, &sess->key_size); in alloc_resources() 158 sess->key_size * 8); in alloc_resources() 171 sess->key_size * 8, in alloc_resources() 188 key = TEE_Malloc(sess->key_size, 0); in alloc_resources() 194 TEE_InitRefAttribute(&attr, TEE_ATTR_SECRET_VALUE, key, sess->key_size); in alloc_resources() 250 if (key_sz != sess->key_size) { in set_aes_key() 252 key_sz, sess->key_size); in set_aes_key()
|
Completed in 4 milliseconds