[−][src]Module safe_app::ffi::crypto
Crypto-related routines.
Statics
SIGN_WITH_APP | Special value that represents that a message should be signed by the app. |
VERIFY_WITH_APP | Special value that represents that a signature should be verified by the app. |
Functions
app_pub_enc_key⚠ | Gets the public encryption key of the app. |
app_pub_sign_key⚠ | Gets the public signing key of the app. |
decrypt_sealed_box⚠ | Decrypts arbitrary data for a single recipient. |
enc_generate_key_pair⚠ | Generates a new encryption key pair (public & private key). |
enc_pub_key_free⚠ | Frees public encryption key from memory. |
enc_pub_key_get⚠ | Retrieves the public encryption key as a raw array. |
enc_pub_key_new⚠ | Creates new public encryption key from raw array. |
enc_secret_key_free⚠ | Frees private encryption key from memory. |
enc_secret_key_get⚠ | Retrieves the private encryption key as a raw array. |
enc_secret_key_new⚠ | Creates new private encryption key from raw array. |
encrypt_sealed_box⚠ | Encrypts arbitrary data for a single recipient. |
sha3_hash⚠ | Returns a sha3 hash for a given data. |
sign⚠ | Signs arbitrary data using a given secret sign key. |
sign_generate_key_pair⚠ | Generates a new sign key pair (public & private key). |
sign_pub_key_free⚠ | Frees public signing key from memory. |
sign_pub_key_get⚠ | Retrieves the public signing key as a raw array. |
sign_pub_key_new⚠ | Creates new public signing key from raw array. |
sign_sec_key_free⚠ | Frees secret signing key from memory. |
sign_sec_key_get⚠ | Retrieves the secret signing key as a raw array. |
sign_sec_key_new⚠ | Creates new secret signing key from raw array. |
verify⚠ | Verifies signed data using a given public sign key. |