[−][src]Module sn_client::utils
Utility functions.
Modules
logging | Logging utilities.
These functions can initialise logging for output to stdout only, or to a file and stdout. For
more fine-grained control, create a file called |
test_utils | Common utility functions for writing test cases. |
Constants
SYM_ENC_KEY_LEN | Length of the symmetric encryption key. |
SYM_ENC_NONCE_LEN | Length of the nonce used for symmetric encryption. |
Functions
bin_data_format | Convert binary data to a diplay-able format |
derive_secrets | Derive Password, Keyword and PIN (in order). |
generate_nonce | Generates a nonce for symmetric encryption |
generate_random_string | Generates a |
generate_random_vector | Generates a random vector using provided |
generate_readable_string | Generates a readable |
generate_sym_enc_key | Generates a symmetric encryption key |
init_log | Initialises |
symmetric_decrypt | Symmetric decryption. |
symmetric_encrypt | Symmetric encryption.
If |
Type Definitions
SymEncKey | Symmetric encryption key |
SymEncNonce | Symmetric encryption nonce |