pkcs5_pbkdf2.h
author Ryan C. Gordon <icculus@icculus.org>
Sun, 18 Jun 2017 19:40:30 -0400
changeset 56 a573346e6f7b
parent 0 d7ee4e2ed49d
permissions -rw-r--r--
Added One Time Password support.

This is only for time-based OTP for now ("TOPT" algorithm), but that's more
or less what one expects to see in the wild anyhow.

This is sort of a placeholder UI until I replace the entire existing UI with
something better.
#ifndef _INCL_PKCS5_PBKDF2_H_
#define _INCL_PKCS5_PBKDF2_H_

#include <stdint.h>

int pkcs5_pbkdf2(const char *pass, size_t pass_len, const uint8_t *salt, size_t salt_len, uint8_t *key, size_t key_len, unsigned int rounds);

#endif

// end of pkcs5_pbkdf2.h ...