mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 19:43:32 +00:00
4881ae7527
- Make sure notice licenses are embedded - Remove copyright and docs from headers
18 lines
657 B
C
18 lines
657 B
C
#ifndef COSMOPOLITAN_THIRD_PARTY_ARGON2_ENCODING_H_
|
|
#define COSMOPOLITAN_THIRD_PARTY_ARGON2_ENCODING_H_
|
|
#include "third_party/argon2/argon2.h"
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
COSMOPOLITAN_C_START_
|
|
|
|
#define ARGON2_MAX_DECODED_LANES UINT32_C(255)
|
|
#define ARGON2_MIN_DECODED_SALT_LEN UINT32_C(8)
|
|
#define ARGON2_MIN_DECODED_OUT_LEN UINT32_C(12)
|
|
|
|
int encode_string(char *, size_t, argon2_context *, argon2_type);
|
|
int decode_string(argon2_context *, const char *, argon2_type);
|
|
size_t b64len(uint32_t);
|
|
size_t numlen(uint32_t);
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
#endif /* COSMOPOLITAN_THIRD_PARTY_ARGON2_ENCODING_H_ */
|