Lines Matching refs:bytes
43 int bytes; member
50 dctx->bytes = 0; in p8_ghash_init()
124 if (dctx->bytes) { in p8_ghash_update()
125 if (dctx->bytes + srclen < GHASH_DIGEST_SIZE) { in p8_ghash_update()
126 memcpy(dctx->buffer + dctx->bytes, src, in p8_ghash_update()
128 dctx->bytes += srclen; in p8_ghash_update()
131 memcpy(dctx->buffer + dctx->bytes, src, in p8_ghash_update()
132 GHASH_DIGEST_SIZE - dctx->bytes); in p8_ghash_update()
136 src += GHASH_DIGEST_SIZE - dctx->bytes; in p8_ghash_update()
137 srclen -= GHASH_DIGEST_SIZE - dctx->bytes; in p8_ghash_update()
138 dctx->bytes = 0; in p8_ghash_update()
148 dctx->bytes = srclen; in p8_ghash_update()
159 if (dctx->bytes) { in p8_ghash_final()
160 for (i = dctx->bytes; i < GHASH_DIGEST_SIZE; i++) in p8_ghash_final()
163 dctx->bytes = 0; in p8_ghash_final()