Lines Matching refs:partial
119 unsigned int partial = ctx->count % GHASH_BLOCK_SIZE; in ghash_update() local
123 if ((partial + len) >= GHASH_BLOCK_SIZE) { in ghash_update()
127 if (partial) { in ghash_update()
128 int p = GHASH_BLOCK_SIZE - partial; in ghash_update()
130 memcpy(ctx->buf + partial, src, p); in ghash_update()
142 partial ? ctx->buf : NULL, in ghash_update()
147 partial = 0; in ghash_update()
151 memcpy(ctx->buf + partial, src, len); in ghash_update()
158 unsigned int partial = ctx->count % GHASH_BLOCK_SIZE; in ghash_final() local
160 if (partial) { in ghash_final()
163 memset(ctx->buf + partial, 0, GHASH_BLOCK_SIZE - partial); in ghash_final()