Lines Matching refs:len
57 unsigned int len; member
89 ctx->len = 0; in crypto_xcbc_digest_init()
96 unsigned int len) in crypto_xcbc_digest_update() argument
108 if ((ctx->len + len) <= bs) { in crypto_xcbc_digest_update()
109 memcpy(odds + ctx->len, p, len); in crypto_xcbc_digest_update()
110 ctx->len += len; in crypto_xcbc_digest_update()
115 memcpy(odds + ctx->len, p, bs - ctx->len); in crypto_xcbc_digest_update()
116 len -= bs - ctx->len; in crypto_xcbc_digest_update()
117 p += bs - ctx->len; in crypto_xcbc_digest_update()
123 ctx->len = 0; in crypto_xcbc_digest_update()
126 while (len > bs) { in crypto_xcbc_digest_update()
130 len -= bs; in crypto_xcbc_digest_update()
134 if (len) { in crypto_xcbc_digest_update()
135 memcpy(odds, p, len); in crypto_xcbc_digest_update()
136 ctx->len = len; in crypto_xcbc_digest_update()
155 if (ctx->len != bs) { in crypto_xcbc_digest_final()
157 u8 *p = odds + ctx->len; in crypto_xcbc_digest_final()
162 rlen = bs - ctx->len -1; in crypto_xcbc_digest_final()