Lines Matching refs:partial
98 unsigned int partial = ctx->count % GHASH_BLOCK_SIZE; in ghash_update() local
102 if ((partial + len) >= GHASH_BLOCK_SIZE) { in ghash_update()
106 if (partial) { in ghash_update()
107 int p = GHASH_BLOCK_SIZE - partial; in ghash_update()
109 memcpy(ctx->buf + partial, src, p); in ghash_update()
118 partial ? ctx->buf : NULL); in ghash_update()
120 partial = 0; in ghash_update()
123 memcpy(ctx->buf + partial, src, len); in ghash_update()
130 unsigned int partial = ctx->count % GHASH_BLOCK_SIZE; in ghash_final() local
132 if (partial) { in ghash_final()
135 memset(ctx->buf + partial, 0, GHASH_BLOCK_SIZE - partial); in ghash_final()