[−][src]Struct grammers_crypto::auth_key::AuthKey
Implementations
impl AuthKey
[src]
Represents a Telegram's authorization key.
To generate a new, valid authorization key, one should use the methods
provided by the generation
module.
pub fn from_bytes(data: [u8; 256]) -> Self
[src]
Creates a new authorization key from the given binary data.
pub fn to_bytes(&self) -> [u8; 256]
[src]
Converts the authorization key to a sequence of bytes, which can be loaded back later.
pub fn calc_new_nonce_hash(&self, new_nonce: &[u8; 32], number: u8) -> [u8; 16]
[src]
Calculates the new nonce hash based on the current attributes.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AuthKey
impl Send for AuthKey
impl Sync for AuthKey
impl Unpin for AuthKey
impl UnwindSafe for AuthKey
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,