Searched refs:blocksize (Results 26 - 50 of 155) sorted by path

1234567

/linux-master/drivers/crypto/bcm/
H A Dspu2.h177 unsigned int blocksize);
/linux-master/drivers/crypto/caam/
H A Dcaamalg_qi2.c3314 unsigned int blocksize = crypto_tfm_alg_blocksize(&ahash->base); local
3319 dev_dbg(ctx->dev, "keylen %d blocksize %d\n", keylen, blocksize);
3321 if (keylen > blocksize) {
4408 unsigned int blocksize; member in struct:caam_hash_template
4420 .blocksize = SHA1_BLOCK_SIZE,
4441 .blocksize = SHA224_BLOCK_SIZE,
4462 .blocksize = SHA256_BLOCK_SIZE,
4483 .blocksize = SHA384_BLOCK_SIZE,
4504 .blocksize
[all...]
H A Dcaamhash.c429 int blocksize = crypto_tfm_alg_blocksize(&ahash->base); local
437 if (keylen > blocksize) {
828 int blocksize = crypto_ahash_blocksize(ahash); local
835 *next_buflen = in_len & (blocksize - 1);
843 is_cmac_aes(ctx->adata.algtype)) && to_hash >= blocksize &&
845 *next_buflen = blocksize;
846 to_hash -= blocksize;
1204 int blocksize = crypto_ahash_blocksize(ahash); local
1211 *next_buflen = in_len & (blocksize - 1);
1219 is_cmac_aes(ctx->adata.algtype)) && to_hash >= blocksize
1402 int blocksize = crypto_ahash_blocksize(ahash); local
1579 unsigned int blocksize; member in struct:caam_hash_template
[all...]
/linux-master/drivers/crypto/ccp/
H A Dccp-crypto-aes-galois.c191 unsigned int blocksize; member in struct:ccp_aes_aead_def
202 .blocksize = 1,
229 alg->base.cra_blocksize = def->blocksize;
H A Dccp-crypto-aes.c245 unsigned int blocksize; member in struct:ccp_aes_def
256 .blocksize = AES_BLOCK_SIZE,
265 .blocksize = AES_BLOCK_SIZE,
274 .blocksize = 1,
283 .blocksize = 1,
310 alg->base.cra_blocksize = def->blocksize;
H A Dccp-crypto-des3.c151 unsigned int blocksize; member in struct:ccp_des3_def
162 .blocksize = DES3_EDE_BLOCK_SIZE,
171 .blocksize = DES3_EDE_BLOCK_SIZE,
198 alg->base.cra_blocksize = def->blocksize;
/linux-master/drivers/crypto/ccree/
H A Dcc_aead.c418 unsigned int blocksize; local
430 blocksize = SHA1_BLOCK_SIZE;
436 blocksize = SHA256_BLOCK_SIZE;
454 if (keylen > blocksize) {
493 set_din_const(&desc[idx], 0, (blocksize - digestsize));
496 digestsize), (blocksize - digestsize),
508 if ((blocksize - keylen) != 0) {
511 (blocksize - keylen));
516 (blocksize - keylen), NS_BIT, 0);
522 set_din_const(&desc[idx], 0, (blocksize
[all...]
H A Dcc_cipher.c1013 .blocksize = 1,
1031 .blocksize = AES_BLOCK_SIZE,
1049 .blocksize = AES_BLOCK_SIZE,
1067 .blocksize = AES_BLOCK_SIZE,
1085 .blocksize = AES_BLOCK_SIZE,
1103 .blocksize = 1,
1125 .blocksize = 1,
1142 .blocksize = AES_BLOCK_SIZE,
1159 .blocksize = AES_BLOCK_SIZE,
1176 .blocksize
[all...]
H A Dcc_driver.h173 unsigned int blocksize; member in struct:cc_alg_template
H A Dcc_hash.c732 int blocksize = 0; local
743 blocksize = crypto_tfm_alg_blocksize(&ahash->base);
773 if (keylen > blocksize) {
811 set_din_const(&desc[idx], 0, (blocksize - digestsize));
816 (blocksize - digestsize), NS_BIT, 0);
828 if ((blocksize - keylen)) {
831 (blocksize - keylen));
835 keylen), (blocksize - keylen),
842 set_din_const(&desc[idx], 0, blocksize);
845 blocksize, NS_BI
1563 unsigned int blocksize; member in struct:cc_hash_template
[all...]
/linux-master/drivers/crypto/hisilicon/sec2/
H A Dsec_crypto.c1092 int blocksize, digestsize, ret; local
1099 blocksize = crypto_shash_blocksize(hash_tfm);
1101 if (keys->authkeylen > blocksize) {
/linux-master/drivers/crypto/inside-secure/
H A Dsafexcel_hash.c1046 unsigned int blocksize, const u8 *key,
1054 if (keylen <= blocksize) {
1078 memset(ipad + keylen, 0, blocksize - keylen);
1079 memcpy(opad, ipad, blocksize);
1081 for (i = 0; i < blocksize; i++) {
1090 unsigned int blocksize, u8 *pad, void *state)
1099 sg_init_one(&sg, pad, blocksize);
1100 ahash_request_set_crypt(areq, &sg, pad, blocksize);
1122 unsigned int blocksize; local
1137 blocksize
1045 safexcel_hmac_init_pad(struct ahash_request *areq, unsigned int blocksize, const u8 *key, unsigned int keylen, u8 *ipad, u8 *opad) argument
1089 safexcel_hmac_init_iv(struct ahash_request *areq, unsigned int blocksize, u8 *pad, void *state) argument
[all...]
/linux-master/drivers/crypto/marvell/cesa/
H A Dhash.c846 unsigned int blocksize; local
848 blocksize = crypto_ahash_blocksize(ahash);
852 memset(cache, 0, blocksize);
864 unsigned int blocksize; local
872 blocksize = crypto_ahash_blocksize(ahash);
873 if (len >= blocksize)
882 cache_ptr = do_div(len, blocksize);
1108 void *state, unsigned int blocksize)
1116 sg_init_one(&sg, pad, blocksize);
1117 ahash_request_set_crypt(req, &sg, pad, blocksize);
1107 mv_cesa_ahmac_iv_state_init(struct ahash_request *req, u8 *pad, void *state, unsigned int blocksize) argument
1136 mv_cesa_ahmac_pad_init(struct ahash_request *req, const u8 *key, unsigned int keylen, u8 *ipad, u8 *opad, unsigned int blocksize) argument
1188 unsigned int blocksize; local
[all...]
/linux-master/drivers/crypto/
H A Dn2_core.c886 this_len = skcipher_descriptor_len(nbytes, walk->blocksize);
935 memcpy(rctx->walk.iv, final_iv, rctx->walk.blocksize);
1027 iv_paddr = c->dest_final - rctx->walk.blocksize;
1041 rctx->walk.blocksize);
1048 rctx->walk.blocksize);
1051 rctx->walk.blocksize);
H A Dtalitos.c1656 unsigned int blocksize = local
1662 if (areq->cryptlen % blocksize)
1681 unsigned int blocksize = local
1687 if (areq->cryptlen % blocksize)
1987 unsigned int blocksize = local
1998 if (!req_ctx->last && (nbytes + req_ctx->nbuf <= blocksize)) {
2011 /* At least (blocksize + 1) bytes are available to hash */
2013 to_hash_later = nbytes_to_hash & (blocksize - 1);
2022 nbytes_to_hash -= blocksize;
2023 to_hash_later = blocksize;
2223 unsigned int blocksize = local
[all...]
/linux-master/drivers/crypto/qce/
H A Daead.c508 unsigned int blocksize = crypto_aead_blocksize(tfm); local
544 if (IS_CBC(rctx->flags) && !IS_ALIGNED(rctx->cryptlen, blocksize))
694 unsigned int blocksize; member in struct:qce_aead_def
705 .blocksize = DES_BLOCK_SIZE,
713 .blocksize = DES3_EDE_BLOCK_SIZE,
721 .blocksize = DES_BLOCK_SIZE,
729 .blocksize = DES3_EDE_BLOCK_SIZE,
737 .blocksize = AES_BLOCK_SIZE,
745 .blocksize = 1,
753 .blocksize
[all...]
H A Dcommon.c155 unsigned int blocksize = crypto_tfm_alg_blocksize(async_req->tfm); local
162 if (!rctx->last_blk && req->nbytes % blocksize)
H A Dsha.c193 unsigned int blocksize; local
195 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm));
201 if (total <= blocksize) {
220 hash_later = total % blocksize;
238 hash_later = blocksize;
246 /* here nbytes is multiple of blocksize */
337 unsigned int blocksize; local
343 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm));
346 if (keylen <= blocksize) {
408 unsigned int blocksize; member in struct:qce_ahash_def
[all...]
H A Dskcipher.c262 unsigned int blocksize = crypto_skcipher_blocksize(tfm); local
279 if (!IS_ALIGNED(req->cryptlen, blocksize))
353 unsigned int blocksize; member in struct:qce_skcipher_def
365 .blocksize = AES_BLOCK_SIZE,
374 .blocksize = AES_BLOCK_SIZE,
383 .blocksize = 1,
393 .blocksize = AES_BLOCK_SIZE,
402 .blocksize = DES_BLOCK_SIZE,
411 .blocksize = DES_BLOCK_SIZE,
420 .blocksize
[all...]
/linux-master/drivers/crypto/starfive/
H A Djh7110-hash.c458 unsigned int blocksize = crypto_ahash_blocksize(hash); local
463 if (keylen <= blocksize) {
/linux-master/drivers/gpu/drm/radeon/
H A Dr600_cs.c98 unsigned blocksize; member in struct:gpu_formats
207 return color_formats_table[format].blocksize;
244 u32 blocksize; member in struct:array_mode_checker
258 u32 tile_bytes = tile_width * tile_height * values->blocksize * values->nsamples;
270 *pitch_align = max((u32)64, (u32)(values->group_size / values->blocksize));
278 (tile_height * values->blocksize * values->nsamples)));
286 (values->blocksize * values->nsamples * tile_width)));
290 (*pitch_align) * values->blocksize * (*height_align) * values->nsamples);
384 array_check.blocksize = r600_fmt_get_blocksize(format);
579 array_check.blocksize
1413 unsigned blocksize; local
[all...]
/linux-master/drivers/md/
H A Ddm-integrity.c3860 unsigned int ivsize, blocksize; local
3872 blocksize = crypto_skcipher_blocksize(ic->journal_crypt);
3883 ic->journal_crypt_alg.alg_string, blocksize, ivsize);
3892 if (blocksize == 1) {
3950 unsigned int crypt_len = roundup(ivsize, blocksize);
H A Dmd-bitmap.c358 unsigned long blocksize = i_blocksize(inode); local
363 bh = alloc_page_buffers(page, blocksize, false);
385 if (count < blocksize)
388 count -= blocksize;
/linux-master/drivers/mmc/host/
H A Dcb710-mmc.c211 size_t count, size_t blocksize)
215 ((count - 1) << 16)|(blocksize - 1));
218 count, count == 1 ? "" : "s", blocksize);
210 cb710_mmc_set_transfer_size(struct cb710_slot *slot, size_t count, size_t blocksize) argument
H A Dsh_mmcif.c234 size_t blocksize; member in struct:sh_mmcif_host
606 host->blocksize = (sh_mmcif_readl(host->addr, MMCIF_CE_BLOCK_SET) &
641 for (i = 0; i < host->blocksize / 4; i++)
662 host->blocksize = sh_mmcif_readl(host->addr, MMCIF_CE_BLOCK_SET) &
696 for (i = 0; i < host->blocksize / 4; i++)
699 sgm->consumed = host->blocksize;
716 host->blocksize = (sh_mmcif_readl(host->addr, MMCIF_CE_BLOCK_SET) &
751 for (i = 0; i < host->blocksize / 4; i++)
772 host->blocksize = sh_mmcif_readl(host->addr, MMCIF_CE_BLOCK_SET) &
806 for (i = 0; i < host->blocksize /
[all...]

Completed in 532 milliseconds

1234567