Lines Matching refs:cipher_parms
321 struct spu_cipher_parms cipher_parms; in handle_ablkcipher_req() local
340 cipher_parms.alg = ctx->cipher.alg; in handle_ablkcipher_req()
341 cipher_parms.mode = ctx->cipher.mode; in handle_ablkcipher_req()
342 cipher_parms.type = ctx->cipher_type; in handle_ablkcipher_req()
343 cipher_parms.key_len = ctx->enckeylen; in handle_ablkcipher_req()
344 cipher_parms.key_buf = ctx->enckey; in handle_ablkcipher_req()
345 cipher_parms.iv_buf = local_iv_ctr; in handle_ablkcipher_req()
346 cipher_parms.iv_len = rctx->iv_ctr_len; in handle_ablkcipher_req()
412 cipher_parms.key_buf = rctx->msg_buf.c.supdt_tweak; in handle_ablkcipher_req()
414 cipher_parms.type = CIPHER_TYPE_UPDT; in handle_ablkcipher_req()
423 cipher_parms.type = CIPHER_TYPE_INIT; in handle_ablkcipher_req()
446 &cipher_parms, update_key, chunksize); in handle_ablkcipher_req()
727 struct spu_cipher_parms cipher_parms; in handle_ahash_req() local
746 memset(&cipher_parms, 0, sizeof(cipher_parms)); in handle_ahash_req()
764 cipher_parms.type = ctx->cipher_type; in handle_ahash_req()
821 hash_parms.type = (enum hash_type)cipher_parms.type; in handle_ahash_req()
868 &req_opts, &cipher_parms, in handle_ahash_req()
1323 struct spu_cipher_parms cipher_parms; in handle_aead_req() local
1349 cipher_parms.alg = ctx->cipher.alg; in handle_aead_req()
1350 cipher_parms.mode = ctx->cipher.mode; in handle_aead_req()
1351 cipher_parms.type = ctx->cipher_type; in handle_aead_req()
1352 cipher_parms.key_buf = ctx->enckey; in handle_aead_req()
1353 cipher_parms.key_len = ctx->enckeylen; in handle_aead_req()
1354 cipher_parms.iv_buf = rctx->msg_buf.iv_ctr; in handle_aead_req()
1355 cipher_parms.iv_len = rctx->iv_ctr_len; in handle_aead_req()
1441 spu->spu_ccm_update_iv(digestsize, &cipher_parms, req->assoclen, in handle_aead_req()
1483 &cipher_parms, &hash_parms, in handle_aead_req()
1917 struct spu_cipher_parms cipher_parms; in ablkcipher_setkey() local
1963 cipher_parms.iv_buf = NULL; in ablkcipher_setkey()
1964 cipher_parms.iv_len = crypto_ablkcipher_ivsize(cipher); in ablkcipher_setkey()
1965 flow_log("%s: iv_len %u\n", __func__, cipher_parms.iv_len); in ablkcipher_setkey()
1967 cipher_parms.alg = ctx->cipher.alg; in ablkcipher_setkey()
1968 cipher_parms.mode = ctx->cipher.mode; in ablkcipher_setkey()
1969 cipher_parms.type = ctx->cipher_type; in ablkcipher_setkey()
1970 cipher_parms.key_buf = ctx->enckey; in ablkcipher_setkey()
1971 cipher_parms.key_len = ctx->enckeylen; in ablkcipher_setkey()
1977 &cipher_parms); in ablkcipher_setkey()