KeyFromPin
Generate a double length key from a PIN, using PKCS#5 password based encryption.
Synopsis
void KeyFromPin(
unsigned char key[16],
unsigned int klen,
CK_USER_TYPE user,
const unsigned char * pin,
unsigned int pinLen);
Parameter | Description |
---|---|
key | Buffer to hold generated key |
keylen | Number of bytes in key (should be 16) |
user | Salt value for key generation |
pin | Password used for key generation |
pinLen | Number of bytes referenced by pin |
On Successful Return
key — contains the generated key