odin_crypto_set_password
Overview
Sets the encryption password for the cipher. This key is used to derive session keys for E2E encryption.
Parameters
| Name | Type | Description |
|---|---|---|
cipher | struct OdinCipher * | The cipher handle. |
password | const uint8_t * | Buffer containing the password. |
password_length | uint32_t | the length of the password buffer. |
Return Value
| Type | Description |
|---|---|
int32_t | 0 on success, non-zero error code on failure. |