Lines Matching refs:partial
51 unsigned int partial = ctx->count % GHASH_BLOCK_SIZE; in ghash_update() local
55 if ((partial + len) >= GHASH_BLOCK_SIZE) { in ghash_update()
59 if (partial) { in ghash_update()
60 int p = GHASH_BLOCK_SIZE - partial; in ghash_update()
62 memcpy(ctx->buf + partial, src, p); in ghash_update()
72 partial ? ctx->buf : NULL); in ghash_update()
75 partial = 0; in ghash_update()
78 memcpy(ctx->buf + partial, src, len); in ghash_update()
85 unsigned int partial = ctx->count % GHASH_BLOCK_SIZE; in ghash_final() local
87 if (partial) { in ghash_final()
90 memset(ctx->buf + partial, 0, GHASH_BLOCK_SIZE - partial); in ghash_final()