Encrypts normal characters to PIN.
#include "BS_API.h" int BS2_MakePinCode(void* context, char* plaintext, unsigned char* ciphertext);
context
: Device management Contextplaintext
: Plain text string to be encrypted.ciphertext
: Buffer to store the encrypted data.
NOTE
ciphertext buffer size is BS2_PIN_HASH_SIZE.
If successfully done, BS_SDK_SUCCESS
will be returned.
If there is an error, the corresponding error code will be returned.