Lines Matching refs:srclen
95 const u8 *src, unsigned int srclen) in __ghash_blocks() argument
102 src, srclen); in __ghash_blocks()
107 while (srclen >= GHASH_BLOCK_SIZE) { in __ghash_blocks()
110 srclen -= GHASH_BLOCK_SIZE; in __ghash_blocks()
117 const u8 *src, unsigned int srclen) in p8_ghash_update() argument
124 if (dctx->bytes + srclen < GHASH_DIGEST_SIZE) { in p8_ghash_update()
126 srclen); in p8_ghash_update()
127 dctx->bytes += srclen; in p8_ghash_update()
136 srclen -= GHASH_DIGEST_SIZE - dctx->bytes; in p8_ghash_update()
139 len = srclen & ~(GHASH_DIGEST_SIZE - 1); in p8_ghash_update()
143 srclen -= len; in p8_ghash_update()
145 if (srclen) { in p8_ghash_update()
146 memcpy(dctx->buffer, src, srclen); in p8_ghash_update()
147 dctx->bytes = srclen; in p8_ghash_update()