Lines Matching defs:key
44 u8 key[AES_MAX_KEY_SIZE];
54 u8 key[32];
90 /* Pick the correct function code based on the key length */
101 memcpy(sctx->key, in_key, key_len);
113 cpacf_km(sctx->fc, &sctx->key, out, in, AES_BLOCK_SIZE);
125 &sctx->key, out, in, AES_BLOCK_SIZE);
175 static int setkey_fallback_skcipher(struct crypto_skcipher *tfm, const u8 *key,
185 return crypto_skcipher_setkey(sctx->fallback.skcipher, key, len);
207 /* Pick the correct function code based on the key length */
218 memcpy(sctx->key, in_key, key_len);
237 cpacf_km(sctx->fc | modifier, sctx->key,
303 /* Pick the correct function code based on the key length */
314 memcpy(sctx->key, in_key, key_len);
327 u8 key[AES_MAX_KEY_SIZE];
337 memcpy(param.key, sctx->key, sctx->key_len);
378 static int xts_fallback_setkey(struct crypto_skcipher *tfm, const u8 *key,
387 return crypto_skcipher_setkey(xts_ctx->fallback, key, len);
401 /* Pick the correct function code based on the key length */
410 /* Split the XTS key into the two subkeys */
413 memcpy(xts_ctx->key, in_key, key_len);
426 u8 key[32];
433 u8 key[32];
458 memcpy(pcc_param.key + offset, xts_ctx->pcc_key, xts_ctx->key_len);
459 cpacf_pcc(xts_ctx->fc, pcc_param.key + offset);
461 memcpy(xts_param.key + offset, xts_ctx->key, xts_ctx->key_len);
467 cpacf_km(xts_ctx->fc | modifier, xts_param.key + offset,
535 /* Pick the correct function code based on the key length */
546 memcpy(sctx->key, in_key, key_len);
586 cpacf_kmctr(sctx->fc, sctx->key, walk.dst.virt.addr,
602 cpacf_kmctr(sctx->fc, sctx->key, buf, buf,
631 static int gcm_aes_setkey(struct crypto_aead *tfm, const u8 *key,
650 memcpy(ctx->key, key, keylen);
871 memcpy(param.k, ctx->key, ctx->key_len);