Changeset View
Changeset View
Standalone View
Standalone View
head/sys/geom/eli/pkcs5v2.h
Show All 25 Lines | |||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _PKCS5V2_H_ | #ifndef _PKCS5V2_H_ | ||||
#define _PKCS5V2_H_ | #define _PKCS5V2_H_ | ||||
void pkcs5v2_genkey(uint8_t *key, unsigned keylen, const uint8_t *salt, | void pkcs5v2_genkey(uint8_t *key, unsigned keylen, const uint8_t *salt, | ||||
size_t saltsize, const char *passphrase, u_int iterations); | size_t saltsize, const char passphrase[], u_int iterations); | ||||
#ifndef _KERNEL | #ifndef _KERNEL | ||||
int pkcs5v2_calculate(int usecs); | int pkcs5v2_calculate(int usecs); | ||||
#endif | #endif | ||||
#endif /* !_PKCS5V2_H_ */ | #endif /* !_PKCS5V2_H_ */ |