pub struct SecretSharingPlaintext(pub [u8; 128]);Expand description
Элемент группы — открытый текст ElGamal (big-endian).
Tuple Fields§
§0: [u8; 128]Implementations§
Source§impl SecretSharingPlaintext
impl SecretSharingPlaintext
Sourcepub fn from_exponent(exponent: i64) -> Option<Self>
pub fn from_exponent(exponent: i64) -> Option<Self>
Элемент g^exponent (GNUNET_SECRETSHARING_plaintext_generate_i).
Расшифровка возвращает такой же элемент; показатель по нему
восстанавливается только перебором. None для i64::MIN.
Trait Implementations§
Source§impl Clone for SecretSharingPlaintext
impl Clone for SecretSharingPlaintext
Source§fn clone(&self) -> SecretSharingPlaintext
fn clone(&self) -> SecretSharingPlaintext
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 SecretSharingPlaintext
Source§impl Debug for SecretSharingPlaintext
impl Debug for SecretSharingPlaintext
impl Eq for SecretSharingPlaintext
Source§impl PartialEq for SecretSharingPlaintext
impl PartialEq for SecretSharingPlaintext
impl StructuralPartialEq for SecretSharingPlaintext
Auto Trait Implementations§
impl Freeze for SecretSharingPlaintext
impl RefUnwindSafe for SecretSharingPlaintext
impl Send for SecretSharingPlaintext
impl Sync for SecretSharingPlaintext
impl Unpin for SecretSharingPlaintext
impl UnsafeUnpin for SecretSharingPlaintext
impl UnwindSafe for SecretSharingPlaintext
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