[#PresaltedSipHasher]
= PresaltedSipHasher
:mrdocs:

Optimized SipHash&hyphen;2&hyphen;4 implementation for uint256&period;

== Synopsis

Declared in `&lt;crypto&sol;siphash&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class PresaltedSipHasher;
----

== Description

This class caches the initial SipHash state (v0&period;&period;v3) derived from (k0, k1) and implements a specialized hashing path for uint256 values, with or without an extra 32&hyphen;bit word&period; The internal state is immutable, so PresaltedSipHasher instances can be reused for multiple hashes with the same key&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:PresaltedSipHasher/2constructor.adoc[`PresaltedSipHasher`]         [.small]#[constructor]#
| Construct a presalted hasher caching the state derived from 128&hyphen;bit key (k0, k1)&period;
| xref:PresaltedSipHasher/operator_call-00.adoc[`operator()`] 
| Function call operators
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
