tagion_generate_keypair

Generate a keypair used from a password / menmonic The function does **NOT** validate the menmonic and should therefore be validated by another function.

The function may be used in a minimal fashion without DevicePIN and salt. If null arguments are supplied for the pin, then no DevicePIN is returned. Likewise if null is supplied for the salt then the salt will not be used.

extern (C)
int
tagion_generate_keypair
(
const(char)* passphrase_ptr
,
const(size_t) passphrase_len
,
const(char)* salt_ptr
,
const(size_t) salt_len
,,
const(char*) pin_ptr
,
const(size_t) pin_len
,,)

Parameters

passphrase_ptr const(char)*

Pointer to passphrase

passphrase_len const(size_t)

Length of the passphrase

salt_ptr const(char)*

Optional salt for the menmonic phrase

salt_len const(size_t)

Length of the optional salt

out_securenet securenet_t*

The allocated securenet used for cryptographic operations

pin_ptr const(char*)

Pointer to the pin

pin_len const(size_t)

Length of the pin

out_device_doc_ptr uint8_t**

Returned device doc ptr

out_device_doc_len size_t*

Length of the returned device doc

Return Value

Type: int