fn is_master_key<K: AbstractKey>(key: &K, nonce: Option<&Nonce>, token: &[u8]) -> bool {
    let decrypted = match key.decrypt(nonce, token) {
        Err(_) => return false,
        Ok(d) => d,
    };
    unsafe { decrypted.as_slice() == AUTH_TOKEN_CONTENTS.as_slice() }
}
/// Returns true if the given key is this structure's "master key" which was
/// used to encrypt the `token` upon construction.
Returns true if the given key is this structure's "master key" which was
used to encrypt the `token` upon construction.
Returns true if the given key is this structure ' s " master key " which was used to encrypt the ` token ` upon construction .
fn is_master_key<K: AbstractKey>(key: &K, nonce: Option<&Nonce>, token: &[u8]) -> bool {
    let decrypted = match key.decrypt(nonce, token) {
        Err(_) => return false,
        Ok(d) => d,
    };
    unsafe { decrypted.as_slice() == AUTH_TOKEN_CONTENTS.as_slice() }
}
fn is_master_key < K : AbstractKey > ( key : & K , nonce : Option < & Nonce > , token : & [ u8 ] ) -> bool { let decrypted = match key . decrypt ( nonce , token ) { Err ( _ ) => return false , Ok ( d ) => d , } ; unsafe { decrypted . as_slice ( ) == AUTH_TOKEN_CONTENTS . as_slice ( ) } }
Returns true if the given key is this structure's "master key" which was
used to encrypt the `token` upon construction.
Returns true if the given key is this structure ' s " master key " which was used to encrypt the ` token ` upon construction .
key
&K
nonce
Option<&Nonce>
token
&[u8]
key
&K
nonce
Option<&Nonce>
token
&[u8]