pub fn validate_challenge(&self, challenge: &[u8]) -> bool {
        let mut ctx = ring::digest::Context::new(&ring::digest::SHA1_FOR_LEGACY_USE_ONLY);

        ctx.update(&self.0);
        ctx.update(GUID.as_bytes());

        let res = ctx.finish();
        let encoded = BASE64.encode(res.as_ref());

        encoded.as_bytes() == challenge
    }
///Performs validation of challenge, received in HTTP response
Performs validation of challenge, received in HTTP response
Performs validation of challenge received in HTTP response
pub fn validate_challenge(&self, challenge: &[u8]) -> bool {
        let mut ctx = ring::digest::Context::new(&ring::digest::SHA1_FOR_LEGACY_USE_ONLY);
        ctx.update(&self.0);
        ctx.update(GUID.as_bytes());
        let res = ctx.finish();
        let encoded = BASE64.encode(res.as_ref());
        encoded.as_bytes() == challenge
    }
pub fn validate_challenge ( & self , challenge : & [ u8 ] ) -> bool { let mut ctx = ring :: digest :: Context :: new ( & ring :: digest :: SHA1_FOR_LEGACY_USE_ONLY ) ; ctx . update ( & self . 0 ) ; ctx . update ( GUID . as_bytes ( ) ) ; let res = ctx . finish ( ) ; let encoded = BASE64 . encode ( res . as_ref ( ) ) ; encoded . as_bytes ( ) == challenge }
Performs validation of challenge, received in HTTP response
Performs validation of challenge received in HTTP response
&self
challenge
&[u8]