Skip to main content

odin_crypto_set_password

int32_t odin_crypto_set_password(struct OdinCipher *cipher,
const uint8_t *password,
uint32_t password_length);

Overview

Sets the encryption password for the cipher. This key is used to derive session keys for E2E encryption.

Parameters

NameTypeDescription
cipherstruct OdinCipher *The cipher handle.
passwordconst uint8_t *Buffer containing the password.
password_lengthuint32_tthe length of the password buffer.

Return Value

TypeDescription
int32_t0 on success, non-zero error code on failure.