Copyright (c) 2015 Taylor R. Campbell
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
.Dd October 14, 2015 .Dt KECCAK 3 .Os .Sh NAME .Nm Keccak .Nd NIST FIPS PUB 202: SHA-3 Standard: Permutation-Based Hash and Extendable-Output Functions .Sh SYNOPSIS n keccak.h .Ft void .Fn keccakf1600 "uint64_t A[25]" .Sh DESCRIPTION The .Nm functions implement the core Keccak permutation of the NIST SHA-3 standard, FIPS PUB 202.
p Before using the .Nm functions, applications should first call .Xr SHA3_Selftest 3 and confirm that it succeeded.
p The .Fn keccakf1600 function implements the 24-round Keccak-f[1600] permutation on a state of twenty-five 64-bit words, to be loaded from or stored to octets in little-endian order.
p This function scrambles a 1600-bit state, and is conjectured to look like a random permutation. It lies at the core of all the SHA-3 hash and extendable-output functions, and can be used for other cryptographic constructions, e.g. a sponge duplex.
p The permutation Keccak-f[1600] is also known as Keccak-p[1600, 24]. .Sh SEE ALSO .Xr sha3 3 , .Xr SHA3_Selftest 3 , .Xr SHAKE 3 .Sh STANDARDS .Rs .%A National Institute of Standards and Technology .%T SHA-3 Standard: Permutation-Based Hash and Extendable-Output Functions .%O FIPS PUB 202 .%D August 2015 .Re .Sh AUTHORS .An Taylor R Campbell Aq campbell+sha3@mumble.net