Lines Matching defs:key
37 /* SAES key registers [0-3] */
47 /* SAES key registers [4-7] */
258 /* Restore the _SAES_KEYRx if SOFTWARE key */
263 mmio_write_32(ctx->base + _SAES_KEYR0 + i * sizeof(uint32_t), ctx->key[i]);
269 ctx->key[i + 4U]);
280 /* Set key size */
289 /* For ECB/CBC decryption, key preparation mode must be selected to populate the key */
360 /* Preparation decrypt key */
406 * @param key_select: define where the key comes from.
407 * @param key: pointer to key (if key_select is KEY_SOFT, else unused)
408 * @param key_size: key size
417 const void *key, size_t key_size, const void *iv, size_t iv_size)
430 assert((uintptr_t)key % __alignof__(uint32_t) == 0);
434 key_u32 = key;
473 * But note that wrap key only accept _SAES_CR_DATATYPE_NONE
490 /* Configure key */
495 /* Save key */
500 mmio_write_32((uintptr_t)(ctx->key + i), htobe32(key_u32[3 - i]));
501 /* /!\ we save the key in HW byte order
502 * and word order : key[i] is for _SAES_KEYRi
508 mmio_write_32((uintptr_t)(ctx->key + i), htobe32(key_u32[7 - i]));
509 /* /!\ we save the key in HW byte order
510 * and word order : key[i] is for _SAES_KEYRi