internal void checkServerNonce() { if (!ServerNonce.StartsWith(ClientNonce)) { throw new InvalidOperationException("[SCRAM] Malformed SCRAMServerFirst message"); } }
public override byte[] ToBytes() { return(TLUtils.Combine( TLUtils.SignatureToBytes(Signature), Nonce.ToBytes(), ServerNonce.ToBytes(), EncryptedData.ToBytes())); }
public override byte[] ToBytes() { return(TLUtils.Combine( TLUtils.SignatureToBytes(Signature), Nonce.ToBytes(), ServerNonce.ToBytes(), RetryId.ToBytes(), GB.ToBytes())); }
public override byte[] ToBytes() { return(TLUtils.Combine( TLUtils.SignatureToBytes(Signature), Nonce.ToBytes(), ServerNonce.ToBytes(), PQ.ToBytes(), ServerPublicKeyFingerprints.ToBytes())); }
public override byte[] ToBytes() { return(TLUtils.Combine( TLUtils.SignatureToBytes(Signature), Nonce.ToBytes(), ServerNonce.ToBytes(), G.ToBytes(), DHPrime.ToBytes(), GA.ToBytes(), ServerTime.ToBytes())); }
public override byte[] ToBytes() { return(TLUtils.Combine( TLUtils.SignatureToBytes(Signature), PQ.ToBytes(), P.ToBytes(), Q.ToBytes(), Nonce.ToBytes(), ServerNonce.ToBytes(), NewNonce.ToBytes())); }