@@ -270,22 +270,12 @@ fn Sha2_32(comptime params: Sha2Params32) -> type { return struct {
270270};}
271271
272272test "sha224 single" {
273- if (builtin .os == builtin .Os .windows and builtin .arch == builtin .Arch .i386 ) {
274- // https://github.com/zig-lang/zig/issues/537
275- return ;
276- }
277-
278273 debug .assert (0xd14a028c2a3a2bc9476102bb288234c415a2b01f828ea62ac5b3e42f == Sha224 .hash ("" ));
279274 debug .assert (0x23097d223405d8228642a477bda255b32aadbce4bda0b3f7e36c9da7 == Sha224 .hash ("abc" ));
280275 debug .assert (0xc97ca9a559850ce97a04a96def6d99a9e0e0e2ab14e6b8df265fc0b3 == Sha224 .hash ("abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu" ));
281276}
282277
283278test "sha224 streaming" {
284- if (builtin .os == builtin .Os .windows and builtin .arch == builtin .Arch .i386 ) {
285- // https://github.com/zig-lang/zig/issues/537
286- return ;
287- }
288-
289279 var h = Sha224 .init ();
290280
291281 debug .assert (0xd14a028c2a3a2bc9476102bb288234c415a2b01f828ea62ac5b3e42f == h .final ());
@@ -302,22 +292,12 @@ test "sha224 streaming" {
302292}
303293
304294test "sha256 single" {
305- if (builtin .os == builtin .Os .windows and builtin .arch == builtin .Arch .i386 ) {
306- // https://github.com/zig-lang/zig/issues/537
307- return ;
308- }
309-
310295 debug .assert (0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 == Sha256 .hash ("" ));
311296 debug .assert (0xba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad == Sha256 .hash ("abc" ));
312297 debug .assert (0xcf5b16a778af8380036ce59e7b0492370b249b11e8f07a51afac45037afee9d1 == Sha256 .hash ("abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu" ));
313298}
314299
315300test "sha256 streaming" {
316- if (builtin .os == builtin .Os .windows and builtin .arch == builtin .Arch .i386 ) {
317- // https://github.com/zig-lang/zig/issues/537
318- return ;
319- }
320-
321301 var h = Sha256 .init ();
322302
323303 debug .assert (0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 == h .final ());
@@ -621,11 +601,6 @@ fn Sha2_64(comptime params: Sha2Params64) -> type { return struct {
621601};}
622602
623603test "sha384 single" {
624- if (builtin .os == builtin .Os .windows and builtin .arch == builtin .Arch .i386 ) {
625- // https://github.com/zig-lang/zig/issues/537
626- return ;
627- }
628-
629604 const h1 = 0x38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b ;
630605 debug .assert (h1 == Sha384 .hash ("" ));
631606
@@ -637,11 +612,6 @@ test "sha384 single" {
637612}
638613
639614test "sha384 streaming" {
640- if (builtin .os == builtin .Os .windows and builtin .arch == builtin .Arch .i386 ) {
641- // https://github.com/zig-lang/zig/issues/537
642- return ;
643- }
644-
645615 var h = Sha384 .init ();
646616
647617 const h1 = 0x38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b ;
@@ -661,11 +631,6 @@ test "sha384 streaming" {
661631}
662632
663633test "sha512 single" {
664- if (builtin .os == builtin .Os .windows and builtin .arch == builtin .Arch .i386 ) {
665- // https://github.com/zig-lang/zig/issues/537
666- return ;
667- }
668-
669634 const h1 = 0xcf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e ;
670635 debug .assert (h1 == Sha512 .hash ("" ));
671636
@@ -677,11 +642,6 @@ test "sha512 single" {
677642}
678643
679644test "sha512 streaming" {
680- if (builtin .os == builtin .Os .windows and builtin .arch == builtin .Arch .i386 ) {
681- // https://github.com/zig-lang/zig/issues/537
682- return ;
683- }
684-
685645 var h = Sha512 .init ();
686646
687647 const h1 = 0xcf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e ;
0 commit comments