1 /*
2  * Derives a key from the given function.
3  * It uses SHA256 to do so, which means
4  * it always yields a 256 bit key.
5  *
6  * @param a_password   Input password.
7  * @param a_key        Must be at least 32 bytes long.
8  */
9 void key_from_password(const char *a_password, char *a_key);
10 
11 /*
12  * Hashes a key generated by key_from_password.
13  * It uses SHA256 to do so, which means
14  * it always yields a 256 bit hash.
15  */
16 void key_hash(const char *a_key, char *a_hash);
17