Constants Differ in SHA1 implementation I am trying to understand why the constants differ in this SHA1 implementation:


https://code.google.com/p/crypto-js/source/browse/tags/3.1.2/src/sha1.js

this._hash = new WordArray.init([
    0x67452301, 0xefcdab89,
    0x98badcfe, 0x10325476,
    0xc3d2e1f0
]);

https://code.google.com/p/google-authenticator/source/browse/libpam/totp.html

V = 0x67452301,
W = 0x88888888,
Y = 271733878,
X = Y ^ W,
Z = 0xC3D2E1F0;



You'll notice the constants in [1] and [2] are different. Is this the result of an optimization, or is there another reason why those constants are different?
They are actually the same, because you missed W^=V in the second link. When you work out the XORs, you arrive at the same constants.