Lines Matching full:block_size

123 	remain = length % rctx->block_size;  in aspeed_ahash_dma_prepare()
174 remain = (rctx->total + rctx->bufcnt) % rctx->block_size; in aspeed_ahash_dma_prepare_sg()
205 rctx->block_size * 2, in aspeed_ahash_dma_prepare_sg()
260 rctx->block_size * 2, DMA_TO_DEVICE); in aspeed_ahash_dma_prepare_sg()
301 rctx->block_size * 2, DMA_TO_DEVICE); in aspeed_ahash_transfer()
362 rctx->block_size * 2, DMA_TO_DEVICE); in aspeed_ahash_hmac_resume()
365 memcpy(rctx->buffer, bctx->opad, rctx->block_size); in aspeed_ahash_hmac_resume()
366 memcpy(rctx->buffer + rctx->block_size, rctx->digest, rctx->digsize); in aspeed_ahash_hmac_resume()
368 rctx->bufcnt = rctx->block_size + rctx->digsize; in aspeed_ahash_hmac_resume()
369 rctx->digcnt[0] = rctx->block_size + rctx->digsize; in aspeed_ahash_hmac_resume()
384 rctx->block_size * 2, in aspeed_ahash_hmac_resume()
428 rctx->block_size * 2, in aspeed_ahash_req_final()
466 rctx->block_size * 2, in aspeed_ahash_update_resume_sg()
600 if (rctx->bufcnt + rctx->total < rctx->block_size) { in aspeed_sham_update()
681 rctx->block_size = SHA1_BLOCK_SIZE; in aspeed_sham_init()
690 rctx->block_size = SHA224_BLOCK_SIZE; in aspeed_sham_init()
699 rctx->block_size = SHA256_BLOCK_SIZE; in aspeed_sham_init()
709 rctx->block_size = SHA384_BLOCK_SIZE; in aspeed_sham_init()
719 rctx->block_size = SHA512_BLOCK_SIZE; in aspeed_sham_init()
737 rctx->digcnt[0] = rctx->block_size; in aspeed_sham_init()
738 rctx->bufcnt = rctx->block_size; in aspeed_sham_init()
739 memcpy(rctx->buffer, bctx->ipad, rctx->block_size); in aspeed_sham_init()