Module safe_core::core::utility
[−]
[src]
Utility functions
Modules
test_utils |
Common utility functions for writting test cases |
Functions
derive_secrets |
Derive Password, Keyword and PIN (in order) |
generate_random_string |
Generates a random string for specified size |
generate_random_vector |
Generate a random vector of given length |
hybrid_decrypt |
Reverse of hybrid_encrypt. Refer hybrid_encrypt. |
hybrid_encrypt |
Combined Asymmetric and Symmetric encryption. The data is encrypted using random Key and
IV with Xsalsa-symmetric encryption. Random IV ensures that same plain text produces different
cipher-texts for each fresh symmetric encryption. The Key and IV are then asymmetrically
enrypted using Public-MAID and the whole thing is then serialised into a single Vec |