This repository has been archived on 2022-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
LEFTONE/util/chaos/abchash.h
falsycat 84c3a02b9a [RELEASE] u22-v03
This version is submitted to U22 breau.
2020-09-14 00:00:00 +00:00

20 lines
267 B
C

#pragma once
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
/* DON'T EXPECT THIS ALGORITHM TO BE ONE-WAY */
uint64_t
chaos_abchash(
const char* str,
size_t len
);
bool
chaos_abchash_validate(
const char* str,
size_t len
);