Lines Matching defs:key

159 	u8				key[AES_MAX_KEY_SIZE];
198 * Returns the address of the context page where the key/context may
221 void __iomem *page_addr, const u8 *key,
227 memcpy_toio32(key_ptr, key, key_len / 4);
442 * Set key for a DES operation in an AEAD cipher. This also performs weak key
445 static int spacc_aead_des_setkey(struct crypto_aead *aead, const u8 *key,
452 if (unlikely(!des_ekey(tmp, key)) &&
458 memcpy(ctx->cipher_key, key, len);
464 /* Set the key for the AES block cipher component of the AEAD transform. */
465 static int spacc_aead_aes_setkey(struct crypto_aead *aead, const u8 *key,
484 return crypto_aead_setkey(ctx->sw_cipher, key, len);
487 memcpy(ctx->cipher_key, key, len);
493 static int spacc_aead_setkey(struct crypto_aead *tfm, const u8 *key,
501 if (crypto_authenc_extractkeys(&keys, key, keylen) != 0)
541 * be completed in hardware because the hardware may not support certain key
554 * If we have a non-supported key-length, then we need to do a
812 * Set the DES key for a block cipher transform. This also performs weak key
815 static int spacc_des_setkey(struct crypto_ablkcipher *cipher, const u8 *key,
827 if (unlikely(!des_ekey(tmp, key)) &&
833 memcpy(ctx->key, key, len);
840 * Set the key for an AES block cipher. Some key lengths are not supported in
843 static int spacc_aes_setkey(struct crypto_ablkcipher *cipher, const u8 *key,
870 err = crypto_ablkcipher_setkey(ctx->sw_cipher, key, len);
877 memcpy(ctx->key, key, len);
891 const u8 *key, unsigned int len)
903 memcpy(ctx->key, key, len);
952 req->ctx_id = spacc_load_ctx(&ctx->generic, ctx->key,