10 #ifndef CRYPTO_PWBOX_H_INCLUDED_
11 #define CRYPTO_PWBOX_H_INCLUDED_
15 #define UNPWBOX_OKAY 0
16 #define UNPWBOX_BAD_SECRET -1
17 #define UNPWBOX_CORRUPTED -2
20 const uint8_t *inp,
size_t input_len,
21 const char *secret,
size_t secret_len,
25 const uint8_t *inp,
size_t input_len,
26 const char *secret,
size_t secret_len);
int crypto_pwbox(uint8_t **out, size_t *outlen_out, const uint8_t *inp, size_t input_len, const char *secret, size_t secret_len, unsigned s2k_flags)
int crypto_unpwbox(uint8_t **out, size_t *outlen_out, const uint8_t *inp, size_t input_len, const char *secret, size_t secret_len)
Integer definitions used throughout Tor.