From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-x22a.google.com (mail-oi0-x22a.google.com [IPv6:2607:f8b0:4003:c06::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id AB5E81A1DF1 for ; Tue, 30 Aug 2016 18:11:30 -0700 (PDT) Received: by mail-oi0-x22a.google.com with SMTP id c15so50755596oig.0 for ; Tue, 30 Aug 2016 18:11:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=r/WeczkBJOQRc+1LbIugSxMi+7TfbsnNTHy1lRjrcpc=; b=Jl1EwAtPw/16Ewu98J3f2nvoUg5ZydQDaQMLLiiFQfqjzIo/4aXQTnpsPMyo0ShzK3 Vxfw8zTBPgXlKrgsF8zvetWaqYQCw6IN0PWmD6CTvC6r0BV1t7cxxMyUpb+FpQJ6v2tA G2mqTs1uTZe7GacFK7WQvtWYI8mMycDG/wLHsrvcXdlbNd4nEr7MXj8AK5a1VmxNOPfg 8siszYVuOAD5C2P/2j9u+fehGzMHCDB8p58GLIcgYdaXDaeiUynLNDQle62P6W8s2mzP ANargxV7SZ0i2ngMvMD8MmgAOiesyR0Y/xm95G8ET/kxI73eC0PDNQ0NNZVHCBJsn3X1 4WsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=r/WeczkBJOQRc+1LbIugSxMi+7TfbsnNTHy1lRjrcpc=; b=jqhDftp/Ly0DLDT+tdoF/D19ZeR3kfMWM6YsjsrpjNKbyy4m9QajIArvwGmeMen+CX /QznpuQX0qZiX9N53Ov2yC+hc8oY0XApEy9AckhD4SVqJrxFTm+SGNgWzSQ1wicXyjjB So/Y2X8DwBCXCVGIK5YIFHW3EXqK0D8DnheMh8+xd3GAz5fm+Q9MGAlLKqC8hi2CIxt4 wnZT6lcDJiKJ99tmYCVVWoXUdMjsySXY/Vl0kI7MSJZEcyWGC+R0MHNkkiB6Wo11BkIV tNAQWvzn3ubrPBFHoQiLBpKNyvKkzPccxhHWZJ7Wm2YGPfIVecCO2nGEbkJMzIpXgP5w WW3Q== X-Gm-Message-State: AE9vXwOLfAQorB+5/E7ufCKquz2VGlNfKyt9tVq2jwpqaoUXViiR42/DTtTwGbEPLbIeSBFnVxaAyL1ITAiCsA== X-Received: by 10.157.47.183 with SMTP id r52mr7581554otb.178.1472605889633; Tue, 30 Aug 2016 18:11:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.50.86 with HTTP; Tue, 30 Aug 2016 18:11:29 -0700 (PDT) In-Reply-To: References: <91B24DF7-4F53-4DEF-A600-755A69368B79@apple.com> From: valerij zaporogeci Date: Wed, 31 Aug 2016 04:11:29 +0300 Message-ID: To: edk2-devel Subject: Re: Crc32 X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2016 01:11:30 -0000 Content-Type: text/plain; charset=UTF-8 >> after testing it it indeed produces CCITT32 results like this online generator: >> http://g6auc.me.uk/CRC32/index.html I only now noticed that this "calculator", gives DIFFERENT values on the same input, no matter hex or text based. Interestingly, how it could produce the same results as the Tianocore implementation? I was thinking that all the difference in the Tianocore impl. from the pure crc is appending 32 1's at the beginning of the (input) message and then negating the Crc itself in the end. I see, the only way to check is to pull off the Tianocore function and check.)