/* * Common values for the Poly1305 algorithm */ #ifndef _CRYPTO_POLY1305_H #define _CRYPTO_POLY1305_H #include <linux/types.h> #include <linux/crypto.h> #define POLY1305_BLOCK_SIZE 16 #define POLY1305_KEY_SIZE 32 #define POLY1305_DIGEST_SIZE 16 struct poly1305_desc_ctx { /* key */ u32 r[5]; /* finalize key */ u32 s[4]; /* accumulator */ u32 h[5]; /* partial buffer */ u8 buf[POLY1305_BLOCK_SIZE]; /* bytes used in partial buffer */ unsigned int buflen; /* r key has been set */ bool rset; /* s key has been set */ bool sset; }; int crypto_poly1305_init(struct shash_desc *desc); int crypto_poly1305_setkey(struct crypto_shash *tfm, const u8 *key, unsigned int keylen); unsigned int crypto_poly1305_setdesckey(struct poly1305_desc_ctx *dctx, const u8 *src, unsigned int srclen); int crypto_poly1305_update(struct shash_desc *desc, const u8 *src, unsigned int srclen); int crypto_poly1305_final(struct shash_desc *desc, u8 *dst); #endif onchange='this.form.submit();'> <option value='emaclite-cleanup'>emaclite-cleanup</option> <option value='master'>master</option> <option value='nds-private-remove' selected='selected'>nds-private-remove</option> <option value='packet-loop-back'>packet-loop-back</option> <option value='packet-rx-pump-back'>packet-rx-pump-back</option> </select> <input type='submit' value='switch'/></form></td></tr> <tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table> <table class='tabs'><tr><td> <a href='/cgit.cgi/linux/net-next.git/?h=nds-private-remove'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?h=nds-private-remove&id=410b3d48f5111a28bb8d4c3d3dc5984c1baf7fc9'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/tools/perf/util/auxtrace.c?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/tools/perf/util/auxtrace.c?h=nds-private-remove&id=410b3d48f5111a28bb8d4c3d3dc5984c1baf7fc9'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/tools/perf/util/auxtrace.c?h=nds-private-remove&id=410b3d48f5111a28bb8d4c3d3dc5984c1baf7fc9'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/tools/perf/util/auxtrace.c?h=nds-private-remove&id=410b3d48f5111a28bb8d4c3d3dc5984c1baf7fc9'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/tools/perf/util/auxtrace.c'> <input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='410b3d48f5111a28bb8d4c3d3dc5984c1baf7fc9'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?h=nds-private-remove&id=410b3d48f5111a28bb8d4c3d3dc5984c1baf7fc9'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools?h=nds-private-remove&id=410b3d48f5111a28bb8d4c3d3dc5984c1baf7fc9'>tools</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/perf?h=nds-private-remove&id=410b3d48f5111a28bb8d4c3d3dc5984c1baf7fc9'>perf</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/perf/util?h=nds-private-remove&id=410b3d48f5111a28bb8d4c3d3dc5984c1baf7fc9'>util</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/perf/util/auxtrace.c?h=nds-private-remove&id=410b3d48f5111a28bb8d4c3d3dc5984c1baf7fc9'>auxtrace.c</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/tools/perf/util/auxtrace.c?h=nds-private-remove&id=410b3d48f5111a28bb8d4c3d3dc5984c1baf7fc9&showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>