Lines Matching refs:partial
69 unsigned int partial = ctx->count % GHASH_BLOCK_SIZE; in ghash_update() local
73 if ((partial + len) >= GHASH_BLOCK_SIZE) { in ghash_update()
77 if (partial) { in ghash_update()
78 int p = GHASH_BLOCK_SIZE - partial; in ghash_update()
80 memcpy(ctx->buf + partial, src, p); in ghash_update()
90 partial ? ctx->buf : NULL); in ghash_update()
93 partial = 0; in ghash_update()
96 memcpy(ctx->buf + partial, src, len); in ghash_update()
103 unsigned int partial = ctx->count % GHASH_BLOCK_SIZE; in ghash_final() local
105 if (partial) { in ghash_final()
108 memset(ctx->buf + partial, 0, GHASH_BLOCK_SIZE - partial); in ghash_final()