Function psa_crypto::init[][src]

pub fn init() -> Result<()>

Initialize the PSA Crypto library

Applications must call this function before calling any other function in crate. Applications are permitted to call this function more than once. Once a call succeeds, subsequent calls are guaranteed to succeed.

Example

use psa_crypto::init;
init().unwrap();
// Can be called twice
init().unwrap();