Lines Matching defs:key
162 rctx->cmd.u.aes.key = &ctx->u.aes.key_sg;
256 static int ccp_aes_cmac_setkey(struct crypto_ahash *tfm, const u8 *key,
286 /* Set the key for the AES cipher used to generate the keys */
287 ret = aes_expandkey(&aes, key, key_len);
291 /* Encrypt a block of zeroes - use key area in context */
292 memset(ctx->u.aes.key, 0, sizeof(ctx->u.aes.key));
293 aes_encrypt(&aes, ctx->u.aes.key, ctx->u.aes.key);
297 k0_hi = be64_to_cpu(*((__be64 *)ctx->u.aes.key));
298 k0_lo = be64_to_cpu(*((__be64 *)ctx->u.aes.key + 1));
302 if (ctx->u.aes.key[0] & 0x80) {
326 /* Save the supplied key */
327 memset(ctx->u.aes.key, 0, sizeof(ctx->u.aes.key));
328 memcpy(ctx->u.aes.key, key, key_len);
330 sg_init_one(&ctx->u.aes.key_sg, ctx->u.aes.key, key_len);