Lines Matching defs:BUFLEN
225 #define BUFLEN HASH_BLOCK_SIZE
329 u8 xmit_buf[BUFLEN];
381 * @fallback: Software transformation for zero message or size < BUFLEN.
1161 if (!IS_ALIGNED(sg_tmp->length - skip, BUFLEN)) {
1208 * Note 2: we enter here when digcnt > BUFLEN (=HASH_BLOCK_SIZE) or
1209 * either req->nbytes or ctx->bufcnt + req->nbytes is > BUFLEN or
1228 if (nbytes && (!IS_ALIGNED(ctx->bufcnt, BUFLEN))) {
1229 /* bytes left from previous request, so fill up to BUFLEN */
1230 int len = BUFLEN - ctx->bufcnt % BUFLEN;
1251 if (IS_ALIGNED(xmit_len, BUFLEN))
1252 xmit_len -= BUFLEN;
1254 xmit_len -= xmit_len & (BUFLEN - 1);
1264 if (xmit_len > BUFLEN) {
1511 if (ctx->bufcnt + req->nbytes <= BUFLEN) {
1529 * less than BUFLEN (64) then calculate the final hash immediately by using
1552 if (!ctx->digcnt && ctx->bufcnt < BUFLEN) {
1663 sizeof(struct s5p_hash_reqctx) + BUFLEN);
1717 memcpy(ctx, in, sizeof(*ctx) + BUFLEN);
1718 if (ctx_in->bufcnt > BUFLEN) {
1738 .halg.statesize = sizeof(struct s5p_hash_reqctx) + BUFLEN,
1763 .halg.statesize = sizeof(struct s5p_hash_reqctx) + BUFLEN,
1788 .halg.statesize = sizeof(struct s5p_hash_reqctx) + BUFLEN,