diff options
author | Sadie Powell <sadie@witchery.services> | 2020-09-10 15:15:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-10 15:15:34 +0100 |
commit | 8180dd414ecd43758290c20315e70af72f0833bf (patch) | |
tree | 195ea018ed2d477a114b422caee94053419e77ef /include/anope.h | |
parent | ff28985384cb6e60fc7479f93778c4363c322ea7 (diff) |
Implement support for immutable account identifiers.
Diffstat (limited to 'include/anope.h')
-rw-r--r-- | include/anope.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/anope.h b/include/anope.h index e53f5c3a6..d4a351a93 100644 --- a/include/anope.h +++ b/include/anope.h @@ -470,6 +470,13 @@ namespace Anope */ extern CoreExport bool Decrypt(const Anope::string &src, Anope::string &dest); + /** Hashes a buffer with SipHash-2-4 + * @param src The start of the buffer to hash + * @param src_sz The total number of bytes in the buffer + * @param key A 16 byte key to hash the buffer with. + */ + extern CoreExport uint64_t SipHash24(const void *src, unsigned long src_sz, const char key[16]); + /** Returns a sequence of data formatted as the format argument specifies. ** After the format parameter, the function expects at least as many ** additional arguments as specified in format. |