Exemplo n.º 1
0
        public static byte[] GetAndroidNonce(this DiagnosisSubmissionParameter submission)
        {
            var cleartext = GetAndroidNonceClearText(submission);
            var nonce     = GetSha256(cleartext);

            return(nonce);
        }
Exemplo n.º 2
0
 static string GetAndroidNonceClearText(this DiagnosisSubmissionParameter submission) =>
 string.Join("|", submission.AppPackageName, GetKeyString(submission.Keys), GetRegionString(submission.Regions), submission.VerificationPayload);