Hi Gordon,

Maybe I wrong but refering to the pseudocode from http://en.wikipedia.org/wiki/SHA-256 souldn't these variable be unsigned 32 bits ?

-----Message d'origine----- From: Gordon Smith
Sent: Wednesday, November 14, 2012 2:27 AM
To: flex-dev@incubator.apache.org
Subject: RE: [jira] [Created] (FLEX-33260) An initial value in SHA256 for type 'int' must be between -2147483648 and 2147483647

You should be able to just replace 3144134277 with -1150833019, etc. You should verify that 3144134277 assigned to an int produces -1150833019 (due to 32-bit wraparound) in both the old compiler and the new compiler.

- Gordon


-----Original Message-----
From: Michael Schmalle (JIRA) [mailto:j...@apache.org]
Sent: Tuesday, November 13, 2012 4:48 PM
To: flex-dev@incubator.apache.org
Subject: [jira] [Created] (FLEX-33260) An initial value in SHA256 for type 'int' must be between -2147483648 and 2147483647

Michael Schmalle created FLEX-33260:
---------------------------------------

Summary: An initial value in SHA256 for type 'int' must be between -2147483648 and 2147483647
                Key: FLEX-33260
                URL: https://issues.apache.org/jira/browse/FLEX-33260
            Project: Apache Flex
         Issue Type: Bug
         Components: .Unspecified - Framework
           Reporter: Michael Schmalle
           Priority: Minor
            Fix For: Adobe Flex SDK Next


flex\sdk\branches\develop\frameworks\projects\framework\src\mx\utils\SHA256.as:111
Warning: Initializer value 3144134277 for type 'int' must be between -2147483648 and 2147483647 inclusive. An initial value of -1150833019 will be used instead.
           var h1:int = 0xbb67ae85;
                        ^

flex\sdk\branches\develop\frameworks\projects\framework\src\mx\utils\SHA256.as:113
Warning: Initializer value 2773480762 for type 'int' must be between -2147483648 and 2147483647 inclusive. An initial value of -1521486534 will be used instead.
           var h3:int = 0xa54ff53a;
                        ^

sdk\branches\develop\frameworks\projects\framework\src\mx\utils\SHA256.as:115
Warning: Initializer value 2600822924 for type 'int' must be between -2147483648 and 2147483647 inclusive. An initial value of -1694144372 will be used instead.
           var h5:int = 0x9b05688c;
                        ^

I do not know how to fix these but it looks like the initial value doesn't fit in an int.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to