Lines Matching refs:assoclen
669 unsigned int assoclen, u8 *hash_subkey,
690 if (req->src->length >= assoclen && req->src->length) {
698 assocmem = kmalloc(assoclen, flags);
703 scatterwalk_map_and_copy(assoc, req->src, 0, assoclen, 0);
709 assoclen);
712 assoclen);
714 aesni_gcm_init(aes_ctx, data, iv, hash_subkey, assoc, assoclen);
778 static int gcmaes_encrypt(struct aead_request *req, unsigned int assoclen,
786 err = gcmaes_crypt_by_sg(true, req, assoclen, hash_subkey, iv, aes_ctx,
792 req->assoclen + req->cryptlen,
797 static int gcmaes_decrypt(struct aead_request *req, unsigned int assoclen,
806 err = gcmaes_crypt_by_sg(false, req, assoclen, hash_subkey, iv, aes_ctx,
813 req->assoclen + req->cryptlen - auth_tag_len,
837 if (unlikely(req->assoclen != 16 && req->assoclen != 20))
847 return gcmaes_encrypt(req, req->assoclen - 8, ctx->hash_subkey, iv,
861 if (unlikely(req->assoclen != 16 && req->assoclen != 20))
875 return gcmaes_decrypt(req, req->assoclen - 8, ctx->hash_subkey, iv,
1164 return gcmaes_encrypt(req, req->assoclen, ctx->hash_subkey, iv,
1180 return gcmaes_decrypt(req, req->assoclen, ctx->hash_subkey, iv,