hash_parms 717 drivers/crypto/bcm/cipher.c struct spu_hash_parms hash_parms; hash_parms 736 drivers/crypto/bcm/cipher.c memset(&hash_parms, 0, sizeof(hash_parms)); hash_parms 740 drivers/crypto/bcm/cipher.c hash_parms.alg = ctx->auth.alg; hash_parms 741 drivers/crypto/bcm/cipher.c hash_parms.mode = ctx->auth.mode; hash_parms 742 drivers/crypto/bcm/cipher.c hash_parms.type = HASH_TYPE_NONE; hash_parms 743 drivers/crypto/bcm/cipher.c hash_parms.key_buf = (u8 *)ctx->authkey; hash_parms 744 drivers/crypto/bcm/cipher.c hash_parms.key_len = ctx->authkeylen; hash_parms 809 drivers/crypto/bcm/cipher.c if (hash_parms.alg == HASH_ALG_AES) hash_parms 810 drivers/crypto/bcm/cipher.c hash_parms.type = (enum hash_type)cipher_parms.type; hash_parms 812 drivers/crypto/bcm/cipher.c hash_parms.type = spu->spu_hash_type(rctx->total_sent); hash_parms 815 drivers/crypto/bcm/cipher.c hash_parms.type); hash_parms 816 drivers/crypto/bcm/cipher.c hash_parms.digestsize = digestsize; hash_parms 824 drivers/crypto/bcm/cipher.c hash_parms.pad_len = spu->spu_hash_pad_len(hash_parms.alg, hash_parms 825 drivers/crypto/bcm/cipher.c hash_parms.mode, hash_parms 833 drivers/crypto/bcm/cipher.c if ((hash_parms.type == HASH_TYPE_UPDT) && hash_parms 834 drivers/crypto/bcm/cipher.c (hash_parms.alg != HASH_ALG_AES)) { hash_parms 835 drivers/crypto/bcm/cipher.c hash_parms.key_buf = rctx->incr_hash; hash_parms 836 drivers/crypto/bcm/cipher.c hash_parms.key_len = digestsize; hash_parms 854 drivers/crypto/bcm/cipher.c hash_parms.prebuf_len = local_nbuf; hash_parms 858 drivers/crypto/bcm/cipher.c &hash_parms, &aead_parms, hash_parms 872 drivers/crypto/bcm/cipher.c 0, 0, hash_parms.pad_len); hash_parms 877 drivers/crypto/bcm/cipher.c pad_len = hash_parms.pad_len + data_pad_len + stat_pad_len; hash_parms 881 drivers/crypto/bcm/cipher.c hash_parms.pad_len, ctx->auth.alg, hash_parms 1313 drivers/crypto/bcm/cipher.c struct spu_hash_parms hash_parms; hash_parms 1330 drivers/crypto/bcm/cipher.c memset(&hash_parms, 0, sizeof(hash_parms)); hash_parms 1346 drivers/crypto/bcm/cipher.c hash_parms.alg = ctx->auth.alg; hash_parms 1347 drivers/crypto/bcm/cipher.c hash_parms.mode = ctx->auth.mode; hash_parms 1348 drivers/crypto/bcm/cipher.c hash_parms.type = HASH_TYPE_NONE; hash_parms 1349 drivers/crypto/bcm/cipher.c hash_parms.key_buf = (u8 *)ctx->authkey; hash_parms 1350 drivers/crypto/bcm/cipher.c hash_parms.key_len = ctx->authkeylen; hash_parms 1351 drivers/crypto/bcm/cipher.c hash_parms.digestsize = digestsize; hash_parms 1355 drivers/crypto/bcm/cipher.c hash_parms.key_len = SHA224_DIGEST_SIZE; hash_parms 1401 drivers/crypto/bcm/cipher.c hash_parms.type = (enum hash_type)ctx->cipher_type; hash_parms 1472 drivers/crypto/bcm/cipher.c &cipher_parms, &hash_parms, hash_parms 380 drivers/crypto/bcm/cipher.h struct spu_hash_parms *hash_parms, hash_parms 595 drivers/crypto/bcm/spu.c struct spu_hash_parms *hash_parms, hash_parms 611 drivers/crypto/bcm/spu.c unsigned int cipher_len = hash_parms->prebuf_len + data_size + hash_parms 612 drivers/crypto/bcm/spu.c hash_parms->pad_len; hash_parms 621 drivers/crypto/bcm/spu.c hash_parms->prebuf_len, hash_parms 625 drivers/crypto/bcm/spu.c hash_parms->pad_len); hash_parms 636 drivers/crypto/bcm/spu.c cipher_len -= hash_parms->digestsize; hash_parms 639 drivers/crypto/bcm/spu.c auth_len -= hash_parms->digestsize; hash_parms 641 drivers/crypto/bcm/spu.c if ((hash_parms->alg == HASH_ALG_AES) && hash_parms 642 drivers/crypto/bcm/spu.c (hash_parms->mode == HASH_MODE_XCBC)) { hash_parms 643 drivers/crypto/bcm/spu.c auth_len -= hash_parms->pad_len; hash_parms 644 drivers/crypto/bcm/spu.c cipher_len -= hash_parms->pad_len; hash_parms 658 drivers/crypto/bcm/spu.c hash_parms->alg, hash_parms->mode, hash_parms->type); hash_parms 659 drivers/crypto/bcm/spu.c flow_log(" digestsize: %u\n", hash_parms->digestsize); hash_parms 660 drivers/crypto/bcm/spu.c flow_log(" authkey: %d\n", hash_parms->key_len); hash_parms 661 drivers/crypto/bcm/spu.c flow_dump(" authkey: ", hash_parms->key_buf, hash_parms->key_len); hash_parms 663 drivers/crypto/bcm/spu.c flow_log(" prebuf_len:%u\n", hash_parms->prebuf_len); hash_parms 665 drivers/crypto/bcm/spu.c flow_log(" hash_pad_len:%u\n", hash_parms->pad_len); hash_parms 699 drivers/crypto/bcm/spu.c cipher_bits |= hash_parms->alg << HASH_ALG_SHIFT; hash_parms 700 drivers/crypto/bcm/spu.c cipher_bits |= hash_parms->mode << HASH_MODE_SHIFT; hash_parms 701 drivers/crypto/bcm/spu.c cipher_bits |= hash_parms->type << HASH_TYPE_SHIFT; hash_parms 707 drivers/crypto/bcm/spu.c if (hash_parms->alg) { hash_parms 709 drivers/crypto/bcm/spu.c if (hash_parms->key_len) { hash_parms 710 drivers/crypto/bcm/spu.c memcpy(ptr, hash_parms->key_buf, hash_parms->key_len); hash_parms 711 drivers/crypto/bcm/spu.c ptr += hash_parms->key_len; hash_parms 712 drivers/crypto/bcm/spu.c buf_len += hash_parms->key_len; hash_parms 713 drivers/crypto/bcm/spu.c sctx_words += hash_parms->key_len / 4; hash_parms 731 drivers/crypto/bcm/spu.c if (hash_parms->digestsize == 64) hash_parms 735 drivers/crypto/bcm/spu.c (hash_parms->digestsize / 4) << ICV_SIZE_SHIFT; hash_parms 774 drivers/crypto/bcm/spu.c data_size -= hash_parms->digestsize; hash_parms 244 drivers/crypto/bcm/spu.h struct spu_hash_parms *hash_parms, hash_parms 942 drivers/crypto/bcm/spu2.c struct spu_hash_parms *hash_parms, hash_parms 959 drivers/crypto/bcm/spu2.c hash_parms->prebuf_len + data_size + hash_parms->pad_len - hash_parms 961 drivers/crypto/bcm/spu2.c hash_parms->digestsize : 0); hash_parms 971 drivers/crypto/bcm/spu2.c hash_parms->prebuf_len, hash_parms 975 drivers/crypto/bcm/spu2.c hash_parms->pad_len); hash_parms 1005 drivers/crypto/bcm/spu2.c hash_parms->alg, hash_parms->mode, hash_parms->type); hash_parms 1006 drivers/crypto/bcm/spu2.c flow_log(" digestsize: %u\n", hash_parms->digestsize); hash_parms 1007 drivers/crypto/bcm/spu2.c flow_log(" authkey: %d\n", hash_parms->key_len); hash_parms 1008 drivers/crypto/bcm/spu2.c flow_dump(" authkey: ", hash_parms->key_buf, hash_parms->key_len); hash_parms 1010 drivers/crypto/bcm/spu2.c flow_log(" prebuf_len:%u\n", hash_parms->prebuf_len); hash_parms 1012 drivers/crypto/bcm/spu2.c flow_log(" hash_pad_len:%u\n", hash_parms->pad_len); hash_parms 1034 drivers/crypto/bcm/spu2.c hash_parms->key_len = cipher_parms->key_len; hash_parms 1035 drivers/crypto/bcm/spu2.c memcpy(hash_parms->key_buf, cipher_parms->key_buf, hash_parms 1054 drivers/crypto/bcm/spu2.c err = spu2_hash_xlate(hash_parms->alg, hash_parms->mode, hash_parms 1055 drivers/crypto/bcm/spu2.c hash_parms->type, hash_parms 1072 drivers/crypto/bcm/spu2.c hash_parms->key_len, cipher_parms->key_len, hash_parms 1076 drivers/crypto/bcm/spu2.c cipher_parms->iv_len, hash_parms->digestsize, hash_parms 1079 drivers/crypto/bcm/spu2.c spu2_fmd_ctrl2_write(fmd, cipher_offset, hash_parms->key_len, 0, hash_parms 1088 drivers/crypto/bcm/spu2.c if (hash_parms->key_len) { hash_parms 1089 drivers/crypto/bcm/spu2.c memcpy(ptr, hash_parms->key_buf, hash_parms->key_len); hash_parms 1090 drivers/crypto/bcm/spu2.c ptr += hash_parms->key_len; hash_parms 1091 drivers/crypto/bcm/spu2.c buf_len += hash_parms->key_len; hash_parms 195 drivers/crypto/bcm/spu2.h struct spu_hash_parms *hash_parms,