# Constants Differ in SHA1 implementation

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

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


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.