Lines Matching refs:bytes
42 int bytes; member
49 dctx->bytes = 0; in p8_ghash_init()
123 if (dctx->bytes) { in p8_ghash_update()
124 if (dctx->bytes + srclen < GHASH_DIGEST_SIZE) { in p8_ghash_update()
125 memcpy(dctx->buffer + dctx->bytes, src, in p8_ghash_update()
127 dctx->bytes += srclen; in p8_ghash_update()
130 memcpy(dctx->buffer + dctx->bytes, src, in p8_ghash_update()
131 GHASH_DIGEST_SIZE - dctx->bytes); in p8_ghash_update()
135 src += GHASH_DIGEST_SIZE - dctx->bytes; in p8_ghash_update()
136 srclen -= GHASH_DIGEST_SIZE - dctx->bytes; in p8_ghash_update()
137 dctx->bytes = 0; in p8_ghash_update()
147 dctx->bytes = srclen; in p8_ghash_update()
158 if (dctx->bytes) { in p8_ghash_final()
159 for (i = dctx->bytes; i < GHASH_DIGEST_SIZE; i++) in p8_ghash_final()
162 dctx->bytes = 0; in p8_ghash_final()