Lines Matching refs:bs

453 		int bs, nr_dr;  in omap_sham_write_ctrl_omap4()  local
458 bs = get_block_size(ctx); in omap_sham_write_ctrl_omap4()
459 nr_dr = bs / (2 * sizeof(u32)); in omap_sham_write_ctrl_omap4()
465 ctx->digcnt += bs; in omap_sham_write_ctrl_omap4()
626 struct scatterlist *sg, int bs, int new_len) in omap_sham_copy_sg_lists() argument
692 struct scatterlist *sg, int bs, in omap_sham_copy_sgs() argument
724 int nbytes, int bs, bool final, in omap_sham_align_sgs() argument
737 bufcnt = DIV_ROUND_UP(bufcnt, bs) * bs; in omap_sham_align_sgs()
753 new_len = DIV_ROUND_UP(new_len, bs) * bs; in omap_sham_align_sgs()
755 new_len = (new_len - 1) / bs * bs; in omap_sham_align_sgs()
767 if (!IS_ALIGNED(bufcnt, bs)) { in omap_sham_align_sgs()
792 if (!IS_ALIGNED(sg_tmp->length - offset, bs)) { in omap_sham_align_sgs()
822 return omap_sham_copy_sgs(rctx, sg, bs, new_len); in omap_sham_align_sgs()
824 return omap_sham_copy_sg_lists(rctx, sg, bs, new_len); in omap_sham_align_sgs()
846 int bs; in omap_sham_prepare_request() local
853 bs = get_block_size(rctx); in omap_sham_prepare_request()
862 __func__, nbytes, bs, rctx->total, rctx->offset, in omap_sham_prepare_request()
870 if (update && req->nbytes && (!IS_ALIGNED(rctx->bufcnt, bs))) { in omap_sham_prepare_request()
871 int len = bs - rctx->bufcnt % bs; in omap_sham_prepare_request()
884 ret = omap_sham_align_sgs(req->src, nbytes, bs, final, rctx); in omap_sham_prepare_request()
944 int bs = 0; in omap_sham_init() local
960 bs = SHA1_BLOCK_SIZE; in omap_sham_init()
964 bs = SHA1_BLOCK_SIZE; in omap_sham_init()
968 bs = SHA224_BLOCK_SIZE; in omap_sham_init()
972 bs = SHA256_BLOCK_SIZE; in omap_sham_init()
976 bs = SHA384_BLOCK_SIZE; in omap_sham_init()
980 bs = SHA512_BLOCK_SIZE; in omap_sham_init()
994 memcpy(ctx->buffer, bctx->ipad, bs); in omap_sham_init()
995 ctx->bufcnt = bs; in omap_sham_init()
1103 int bs = crypto_shash_blocksize(bctx->shash); in omap_sham_finish_hmac() local
1110 crypto_shash_update(shash, bctx->opad, bs) ?: in omap_sham_finish_hmac()
1288 int bs = crypto_shash_blocksize(bctx->shash); in omap_sham_setkey() local
1296 if (keylen > bs) { in omap_sham_setkey()
1306 memset(bctx->ipad + keylen, 0, bs - keylen); in omap_sham_setkey()
1309 memcpy(bctx->opad, bctx->ipad, bs); in omap_sham_setkey()
1311 for (i = 0; i < bs; i++) { in omap_sham_setkey()