|
LMMP 4.3.0
Lamina High-Precision Arithmetic Library
|
#include "lmmp.h"类型定义 | |
| typedef uint64_t | key128_t[2] |
| typedef uint64_t | key256_t[4] |
| typedef uint64_t | key64_t[1] |
| typedef const uint64_t | srckey128_t[2] |
| typedef const uint64_t | srckey256_t[4] |
| typedef const uint64_t | srckey64_t[1] |
| Copyright (C) 2026 HJimmyK (Jericho Knox) | |
函数 | |
| uint64_t | lmmp_siphash24_ (mp_srcptr in, mp_size_t inlen, srckey128_t key) |
| SipHash-2-4 函数(非标准处理任意字节流的 SipHash-2-4) | |
| uint64_t | lmmp_xxhash_ (mp_srcptr in, mp_size_t inlen, srckey64_t key) |
| xxhash 函数(非标准处理任意字节流的 xxhash) | |
| typedef const uint64_t srckey64_t[1] |
Copyright (C) 2026 HJimmyK (Jericho Knox)
This file is part of LMMP.
LMMP is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, see https://www.gnu.org/licenses/.
SPDX-License-Identifier: LGPL-3.0-or-later
| uint64_t lmmp_siphash24_ | ( | mp_srcptr | in, |
| mp_size_t | inlen, | ||
| srckey128_t | key ) |
SipHash-2-4 函数(非标准处理任意字节流的 SipHash-2-4)
| in | 输入数据,可以为 NULL |
| inlen | 输入数据长度 |
| key | 128-bit 秘钥,可以为 NULL |
引用了 LIMB_BYTES, lmmp_siphash24_(), SIPROUND, v0, v1, v2 , 以及 v3.
被这些函数引用 lmmp_siphash24_() , 以及 TEST_CASE().
| uint64_t lmmp_xxhash_ | ( | mp_srcptr | in, |
| mp_size_t | inlen, | ||
| srckey64_t | key ) |
xxhash 函数(非标准处理任意字节流的 xxhash)
| in | 输入数据,可以为 NULL |
| inlen | 输入数据长度 |
| key | 64-bit 秘钥,可以为 NULL |
引用了 lmmp_xxhash_(), PRIME64_1, PRIME64_2, PRIME64_3, PRIME64_4, PRIME64_5, rotl64(), v1, v2 , 以及 v3.
被这些函数引用 lmmp_xxhash_() , 以及 TEST_CASE().