Lines Matching refs:bs
460 int bs, nr_dr; in omap_sham_write_ctrl_omap4() local
465 bs = get_block_size(ctx); in omap_sham_write_ctrl_omap4()
466 nr_dr = bs / (2 * sizeof(u32)); in omap_sham_write_ctrl_omap4()
472 ctx->digcnt += bs; in omap_sham_write_ctrl_omap4()
715 #define SG_SA(sg, bs) (IS_ALIGNED(sg->length, bs)) argument
722 int ret, bs; in omap_sham_update_dma_start() local
743 bs = get_block_size(ctx); in omap_sham_update_dma_start()
748 if (!sg_is_last(sg) && !SG_SA(sg, bs)) in omap_sham_update_dma_start()
757 tail = length & (bs - 1); in omap_sham_update_dma_start()
760 tail = bs; in omap_sham_update_dma_start()
835 int bs = 0; in omap_sham_init() local
859 bs = SHA1_BLOCK_SIZE; in omap_sham_init()
863 bs = SHA1_BLOCK_SIZE; in omap_sham_init()
867 bs = SHA224_BLOCK_SIZE; in omap_sham_init()
871 bs = SHA256_BLOCK_SIZE; in omap_sham_init()
875 bs = SHA384_BLOCK_SIZE; in omap_sham_init()
879 bs = SHA512_BLOCK_SIZE; in omap_sham_init()
891 memcpy(ctx->buffer, bctx->ipad, bs); in omap_sham_init()
892 ctx->bufcnt = bs; in omap_sham_init()
951 int bs = crypto_shash_blocksize(bctx->shash); in omap_sham_finish_hmac() local
959 crypto_shash_update(shash, bctx->opad, bs) ?: in omap_sham_finish_hmac()
1082 int bs = get_block_size(ctx); in omap_sham_update() local
1100 } else if ((ctx->bufcnt + ctx->total <= bs) || in omap_sham_update()
1188 int bs = crypto_shash_blocksize(bctx->shash); in omap_sham_setkey() local
1209 if (keylen > bs) { in omap_sham_setkey()
1220 memset(bctx->ipad + keylen, 0, bs - keylen); in omap_sham_setkey()
1223 memcpy(bctx->opad, bctx->ipad, bs); in omap_sham_setkey()
1225 for (i = 0; i < bs; i++) { in omap_sham_setkey()