/
githubmirror
/
shim
Обзор
Документация
Войти
/
githubmirror
/
shim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
Cryptlib/OpenSSL/crypto/hashtable/hashfunc.c
23 строки
629 B
Nicolas Frayer
Cryptlib/OpenSSL: update to openssl 3.5.0
08 июл 2026, 17:36
08 июл 2026, 17:36
3b52c67
Код
Авторство
О чём код?
/* * Copyright 2025 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/license.html * */ #include <stddef.h> #include "internal/hashfunc.h" ossl_unused uint64_t ossl_fnv1a_hash(uint8_t *key, size_t len) { uint64_t hash = 0xcbf29ce484222325ULL; size_t i; for (i = 0; i < len; i++) { hash ^= key[i]; hash *= 0x00000100000001B3ULL; } return hash; }