pub struct SecretSharingPublicKey(pub [u8; 128]);Expand description
Общий открытый ключ ElGamal (1024 бита, big-endian).
Tuple Fields§
§0: [u8; 128]Implementations§
Source§impl SecretSharingPublicKey
impl SecretSharingPublicKey
Sourcepub fn encrypt(
&self,
plaintext: &SecretSharingPlaintext,
) -> Option<SecretSharingCiphertext>
pub fn encrypt( &self, plaintext: &SecretSharingPlaintext, ) -> Option<SecretSharingCiphertext>
Шифрует элемент общим ключом (GNUNET_SECRETSHARING_encrypt).
Случайность шифрования C берёт уровня GCRY_WEAK_RANDOM.
Trait Implementations§
Source§impl Clone for SecretSharingPublicKey
impl Clone for SecretSharingPublicKey
Source§fn clone(&self) -> SecretSharingPublicKey
fn clone(&self) -> SecretSharingPublicKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SecretSharingPublicKey
Source§impl Debug for SecretSharingPublicKey
impl Debug for SecretSharingPublicKey
impl Eq for SecretSharingPublicKey
Source§impl PartialEq for SecretSharingPublicKey
impl PartialEq for SecretSharingPublicKey
impl StructuralPartialEq for SecretSharingPublicKey
Auto Trait Implementations§
impl Freeze for SecretSharingPublicKey
impl RefUnwindSafe for SecretSharingPublicKey
impl Send for SecretSharingPublicKey
impl Sync for SecretSharingPublicKey
impl Unpin for SecretSharingPublicKey
impl UnsafeUnpin for SecretSharingPublicKey
impl UnwindSafe for SecretSharingPublicKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more