Lines Matching refs:bs

466 		int bs, nr_dr;  in omap_sham_write_ctrl_omap4()  local
471 bs = get_block_size(ctx); in omap_sham_write_ctrl_omap4()
472 nr_dr = bs / (2 * sizeof(u32)); in omap_sham_write_ctrl_omap4()
478 ctx->digcnt += bs; in omap_sham_write_ctrl_omap4()
721 #define SG_SA(sg, bs) (IS_ALIGNED(sg->length, bs)) argument
728 int ret, bs; in omap_sham_update_dma_start() local
749 bs = get_block_size(ctx); in omap_sham_update_dma_start()
754 if (!sg_is_last(sg) && !SG_SA(sg, bs)) in omap_sham_update_dma_start()
763 tail = length & (bs - 1); in omap_sham_update_dma_start()
766 tail = bs; in omap_sham_update_dma_start()
841 int bs = 0; in omap_sham_init() local
865 bs = SHA1_BLOCK_SIZE; in omap_sham_init()
869 bs = SHA1_BLOCK_SIZE; in omap_sham_init()
873 bs = SHA224_BLOCK_SIZE; in omap_sham_init()
877 bs = SHA256_BLOCK_SIZE; in omap_sham_init()
881 bs = SHA384_BLOCK_SIZE; in omap_sham_init()
885 bs = SHA512_BLOCK_SIZE; in omap_sham_init()
897 memcpy(ctx->buffer, bctx->ipad, bs); in omap_sham_init()
898 ctx->bufcnt = bs; in omap_sham_init()
957 int bs = crypto_shash_blocksize(bctx->shash); in omap_sham_finish_hmac() local
965 crypto_shash_update(shash, bctx->opad, bs) ?: in omap_sham_finish_hmac()
1088 int bs = get_block_size(ctx); in omap_sham_update() local
1106 } else if ((ctx->bufcnt + ctx->total <= bs) || in omap_sham_update()
1194 int bs = crypto_shash_blocksize(bctx->shash); in omap_sham_setkey() local
1215 if (keylen > bs) { in omap_sham_setkey()
1226 memset(bctx->ipad + keylen, 0, bs - keylen); in omap_sham_setkey()
1229 memcpy(bctx->opad, bctx->ipad, bs); in omap_sham_setkey()
1231 for (i = 0; i < bs; i++) { in omap_sham_setkey()