Lines Matching refs:hash_parms

589 			struct spu_hash_parms *hash_parms,  in spum_create_request()  argument
605 unsigned int cipher_len = hash_parms->prebuf_len + data_size + in spum_create_request()
606 hash_parms->pad_len; in spum_create_request()
615 hash_parms->prebuf_len, in spum_create_request()
619 hash_parms->pad_len); in spum_create_request()
630 cipher_len -= hash_parms->digestsize; in spum_create_request()
633 auth_len -= hash_parms->digestsize; in spum_create_request()
635 if ((hash_parms->alg == HASH_ALG_AES) && in spum_create_request()
636 (hash_parms->mode == HASH_MODE_XCBC)) { in spum_create_request()
637 auth_len -= hash_parms->pad_len; in spum_create_request()
638 cipher_len -= hash_parms->pad_len; in spum_create_request()
652 hash_parms->alg, hash_parms->mode, hash_parms->type); in spum_create_request()
653 flow_log(" digestsize: %u\n", hash_parms->digestsize); in spum_create_request()
654 flow_log(" authkey: %d\n", hash_parms->key_len); in spum_create_request()
655 flow_dump(" authkey: ", hash_parms->key_buf, hash_parms->key_len); in spum_create_request()
657 flow_log(" prebuf_len:%u\n", hash_parms->prebuf_len); in spum_create_request()
659 flow_log(" hash_pad_len:%u\n", hash_parms->pad_len); in spum_create_request()
693 cipher_bits |= hash_parms->alg << HASH_ALG_SHIFT; in spum_create_request()
694 cipher_bits |= hash_parms->mode << HASH_MODE_SHIFT; in spum_create_request()
695 cipher_bits |= hash_parms->type << HASH_TYPE_SHIFT; in spum_create_request()
701 if (hash_parms->alg) { in spum_create_request()
703 if (hash_parms->key_len) { in spum_create_request()
704 memcpy(ptr, hash_parms->key_buf, hash_parms->key_len); in spum_create_request()
705 ptr += hash_parms->key_len; in spum_create_request()
706 buf_len += hash_parms->key_len; in spum_create_request()
707 sctx_words += hash_parms->key_len / 4; in spum_create_request()
725 if (hash_parms->digestsize == 64) in spum_create_request()
729 (hash_parms->digestsize / 4) << ICV_SIZE_SHIFT; in spum_create_request()
768 data_size -= hash_parms->digestsize; in spum_create_request()