Struct safe_core::ffi::MDataInfo
[−]
[src]
#[repr(C)]pub struct MDataInfo { pub name: XorNameArray, pub type_tag: u64, pub has_enc_info: bool, pub enc_key: SymSecretKey, pub enc_nonce: SymNonce, pub has_new_enc_info: bool, pub new_enc_key: SymSecretKey, pub new_enc_nonce: SymNonce, }
FFI wrapper for MDataInfo
.
Fields
name: XorNameArray
Name of the mutable data.
type_tag: u64
Type tag of the mutable data.
has_enc_info: bool
Flag indicating whether the encryption info (enc_key
and enc_nonce
).
is set.
enc_key: SymSecretKey
Encryption key. Meaningful only if has_enc_info
is true
.
enc_nonce: SymNonce
Encryption nonce. Meaningful only if has_enc_info
is true
.
has_new_enc_info: bool
Flag indicating whether the new encryption info is set.
new_enc_key: SymSecretKey
New encryption key (used for two-phase reencryption). Meaningful only if
has_new_enc_info
is true
.
new_enc_nonce: SymNonce
New encryption nonce (used for two-phase reencryption). Meaningful only if
has_new_enc_info
is true
.