SDK API > BS2_MakePinCode


BS2_MakePinCode

Encrypts normal characters to PIN.

Declaration

#include "BS_API.h"
 
int BS2_MakePinCode(void* context, char* plaintext, unsigned char* ciphertext);

Parameter

NOTE
ciphertext buffer size is BS2_PIN_HASH_SIZE.

Return Value

If successfully done, BS_SDK_SUCCESS will be returned.
If there is an error, the corresponding error code will be returned.