Lines Matching refs:src
35 const u8 *src, unsigned int srclen) in crypto_poly1305_setdesckey() argument
39 poly1305_core_setkey(&dctx->core_r, src); in crypto_poly1305_setdesckey()
40 src += POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey()
45 dctx->s[0] = get_unaligned_le32(src + 0); in crypto_poly1305_setdesckey()
46 dctx->s[1] = get_unaligned_le32(src + 4); in crypto_poly1305_setdesckey()
47 dctx->s[2] = get_unaligned_le32(src + 8); in crypto_poly1305_setdesckey()
48 dctx->s[3] = get_unaligned_le32(src + 12); in crypto_poly1305_setdesckey()
49 src += POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey()
57 static void poly1305_blocks(struct poly1305_desc_ctx *dctx, const u8 *src, in poly1305_blocks() argument
63 datalen = crypto_poly1305_setdesckey(dctx, src, srclen); in poly1305_blocks()
64 src += srclen - datalen; in poly1305_blocks()
68 poly1305_core_blocks(&dctx->h, &dctx->core_r, src, in poly1305_blocks()
73 const u8 *src, unsigned int srclen) in crypto_poly1305_update() argument
80 memcpy(dctx->buf + dctx->buflen, src, bytes); in crypto_poly1305_update()
81 src += bytes; in crypto_poly1305_update()
93 poly1305_blocks(dctx, src, srclen); in crypto_poly1305_update()
94 src += srclen - (srclen % POLY1305_BLOCK_SIZE); in crypto_poly1305_update()
100 memcpy(dctx->buf, src, srclen); in crypto_poly1305_update()