From 654a2b3f95ce04242991f3a6c2de8351f6a1853a Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 29 Dec 2015 20:53:42 +0100 Subject: [PATCH] Shorten a few test argon2i test vectors for V8 This is enough to reproduce an bug with Chrome --- test/default/pwhash_argon2i.c | 8 ++++---- test/default/pwhash_argon2i.exp | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/test/default/pwhash_argon2i.c b/test/default/pwhash_argon2i.c index 1e80e0ac..7c74d3e9 100644 --- a/test/default/pwhash_argon2i.c +++ b/test/default/pwhash_argon2i.c @@ -23,13 +23,13 @@ static void tv(void) "8d220b20c60d7c07ec1fd93c52c31020300c6c1facd77937a597c7a6", 127, "5541fbc995d5c197ba290346d2c559dedf405cf97e5f95482143202f9e74f5c2", - 155, 6, 7256678, 1 }, + 155, 5, 7256678, 1 }, { "e125cee61c8cb7778d9e5ad0a6f5d978ce9f84de213a8556d9ffe202020ab4a6ed" "9074a4eb3416f9b168f137510f3a30b70b96cbfa219ff99f6c6eaffb15c06b60e0" "0cc2890277f0fd3c622115772f7048adaebed86e", 86, "f1192dd5dc2368b9cd421338b22433455ee0a3699f9379a08b9650ea2c126f0d", - 250, 8, 7849083, 1 }, + 250, 4, 7849083, 1 }, { "92263cbf6ac376499f68a4289d3bb59e5a22335eba63a32e6410249155b956b6a3" "b48d4a44906b18b897127300b375b8f834f1ceffc70880a885f47c33876717e392" "be57f7da3ae58da4fd1f43daa7e44bb82d3717af4319349c24cd31e46d295856b0" @@ -38,7 +38,7 @@ static void tv(void) "711f58c8c392016b2fdfc09c64f0f6b6ab7b", 183, "3b840e20e9555e9fb031c4ba1f1747ce25cc1d0ff664be676b9b4a90641ff194", - 249, 7, 7994791, 1 }, + 249, 3, 7994791, 1 }, { "027b6d8e8c8c474e9b69c7d9ed4f9971e8e1ce2f6ba95048414c3970f0f09b70e3" "b6c5ae05872b3d8678705b7d381829c351a5a9c88c233569b35d6b0b809df44b64" "51a9c273f1150e2ef8a0b5437eb701e373474cd44b97ef0248ebce2ca0400e1b53" @@ -88,7 +88,7 @@ static void tv(void) "55a3b4169f22cccb0745a2689407ea1901a0a766eb99", 220, "3d968b2752b8838431165059319f3ff8910b7b8ecb54ea01d3f54769e9d98daf", - 167, 8, 10784179, 1 }, + 167, 1, 10784179, 1 }, }; char passwd[256]; unsigned char salt[crypto_pwhash_argon2i_SALTBYTES]; diff --git a/test/default/pwhash_argon2i.exp b/test/default/pwhash_argon2i.exp index b8c68f69..ebc8afe3 100644 --- a/test/default/pwhash_argon2i.exp +++ b/test/default/pwhash_argon2i.exp @@ -1,13 +1,13 @@ -84f8e4c8df0b9a695ac48fc1c23c6cbe074af529bdc7459f34d6c5e33a8e94ee0b2f0db14a5a7990dbe2dc4daa05ed1ebf389989142a32285501079ef1aaaef011c97fdb2242655e7c8f8d032d8c7afaf4f4e7e145558c15593ffa336daf74078b88c99e91dfff5d668bdbbfcb53cdcca9c3743a7ab54ac9515d724e3b9fc2958e2a0778d515bf04ea4ebbfa3a36cf5f0ad3aa4531832ec132929b -b075b3aef73ac5d2d567ad73e4b160a1bbc8d35a9fc0e3570b02f76780970415ded3547b01d17eb2b64d0ec214818ae0b05a96ba40e1fa789a96cafd6da60427f0ba73a97449e0c134bf6713d6808e9666d5e05d6ba3b1d3f792bc9224728aa058b5f3471d34cbe0e99d759a29d2a8b0df3f426f76cdb7702cd57464372ab1f8858d1bceb440913cc0105e180a4e4c885a1e6c9157340a1cf79daa832198a5aa104b65d0eccf5a3d8e3ffc24f46cd6ad7ab82db5c8a5bce7363ad43848be431703b7b054f8166b12ba7f215eea0bc585f3ce85a8aa6f5f11fe44d5604596893f155c73d3953563d8b40f333b5ff93c41ac65fc9b3868f629b61e -02ad464163e3f5a9ae6e9d2bd036ddda608fe97138dffc2b8db866549247efb2dd506cdb5770b093aa1fdf7f16d4f92cb19ded99e878b9ba373998fef0fc0ec87f611152fa225b72f1a1ebb2ded50e4b14bca71e62643fc3995c44a9b257e0e6647a2c238c82382163293bc0ff4202061b253b9f83c3b49e229caea2963b1d09a4430da9a4443b39d31755d87c429555a09cb52aa05ae768bbe1d1e97981d62c597fd29e5b23fd9a09da87b117606168a5dbdad2e23fc162d7af1ece7ab7b797cdd0948461c9483d036a52a8e1e3dcb4716cd5f8fd11ea51988f3186f387bf27ba5c37aec5ed9f612756cc9a6915339106de8bbe0d7a85d631 +37234777bdbe1d2903970e8270752d761f2965c8bb38eb7c7d2b61ede0ae9bf76fd594ac65b0a64cc09911d0d16cdceb9ca8cb716ce2eb06d3f9dc38858a5ff62683413e9d64de6a8ab8a2da2911e6e7fd5b4d924082b264739e333c0b660642e5aa6e576fad9809e01d8d7a23bfaf56974fa6035a59ac7bd1b3df540d5d4d3a79eea7e6012343f38d6bf1211d1289b37bfd05f4111a5bc611efa6 +3d74e452f5e6378469efdc941969c905026cc2311bbcb62f01121d1249f1e9d26aaa788eee5a37e253318b034ae5e2828dd07dc4412ec33973f41c6083a79bfc21a5488050d16b317eeb03086c2505d8a2bafee823525dfd4e5294c532126e510350cb7d891e0cb070e063c70eb76096bb5db861cd002607be094ed0035e11c0d0cba92725830e0ed869112c52952a7ed009267789c41bf9797714cd7988d18a389bc00a5f7639a13e9859487ff5c6746bdb81996a293ce57213decd2d62ee2d6e949bff31f81f11d738a12ef914fb7912b8c1727c25ea7d2d190456c1701e685e835c327dae96dde24b33c72b2f5c77fc2f22c104e5f567b1db +c4b37dfcd2b6d8ff0e15edeea57ca1f94730965cf05859191aeb8e1631f6308b9883b49b3b5a0e0f32d48a5d4e9b6e7b18c0b068eaaade5d127f01cdaa00d404ec2c0c92453418fd93881c5d0abdae49f072f4b3bff61553bd557bc90276693a800ef290c8b71d8c294c7f51132279ff71707b0f3f107a0060cd7e329dfbb48112e1df14ad076f5526a9bfc1473aae12ab412b15beec92a828d7d32deeea38079f3b4ceb28d1b26bb19d5ef3830ad2344f893dd79a2d5e69f61c51d352f6aea739925a3ee0d9c67aea25dac41431b950e29d3ea3e4752b416ea2e7d205d240b562b4bba2add71eaf0210f34af28d92cc98a3ae8f21199fd0bd 2fe419bf3e 65b641d6551934cbeea2d54b034116212eecf8ff55848deb168f80686d5ba184a2d24f8428aff0af72a4e0af4e71110b5efc03a4246d9adef1697897a47bca086570bd1d26620ab39834288ec787bb9da713b5298f2e3c327982e1d2744fead69062054d0d160d0bf669273f8b0803645aa54b6eb997a45f05b00d3af9caf3a26db953cd8de5e37eefc7ae969781021664f327dd42839bd10e0d0bd76440f9114bf060584c41fc922233839cf09cc50a96691c58ffb899feddb3ea1b5e11 85119e31650ac4d7151466a80e828139bf1adf2cde6ca8ec8eef5bb32035b9893f8206f05a3f41ccd6ae5cd6cbc9476aca2dbb67b9c965d9090c61af87c1d9bcd9648456900efb61c20a9144db6eb9820a01c660a18f373d1cade66ca9c95cf0c82d83ef7069e7c3136e1b3a89133122a122f46cc2e01535bffdc35aa36536f7d9828ac7add79f1771b523fe0d1c3de3edd577b42afed582479a87e3993128415222307cf040e76412a4d13aec01cd7d24738a7edcaa7df31808e15dea6c7f39b9410fd9df91caf73a8974a445b8780dcf149e31 7cf0e31e4e9c42e4a02d07e4414dd70d05f9be5c21d44062fedbf482bcfea4a08319b8d3a68de95335202f76b93fa80d2ae0e4b4ef442d937ca57528024cf1aa2429c569b0d514da1b8a6e79c18aeba6894fa2d6635cd1b17d7dabf275cca07b1d11fdbe1a1677a7e76716a818f22c8770db878431ae41611703c4e995477cb70efeb938d61c35152f3287bd008b302d6615d807a0a1c8774c1027ec5857438c91816a9c92f6502a1be5aa77bbc5e6736e04 805a4928f5657d41de0c98e6b91228da883a09ef0e6ffdd1888e2398be57bfc2aab65b5d5ead780d4decb947ff4f196230b789bffa0462 038360c1c425840e1aa65bb936e1b5ef666ca4884c47361983fff75df8eb425826d2064bfc56c414bb80167db10ac7871d114e8177e23a994274cafbf244f85dbb2dfffbc39fe47df5c7790c8f26bc1d90f2f99afc989cc4b44d415a4e836737be708e5972e423149c82c8a1bf7532677287e2928012fdc48bcffd23123e4f38d6aecddb907ca7bcdc0db300a466d6938a240ffa09019c4bf515f562fe56b6ed3404c83a92f86b7235c5f477a090ac8455535e5edf755e9e7a58f0568d53bfd66ca29b42d4c397f9a7223c0604493ce3d4f739bf6497ac9a0ad96e48297ef24ad9ef072e6f6912 -4c7bf678bfd7d246978ba77aa49a9afffa5ee89a7b571f85dd7d1334b9eff5846286a7207b57648ec2480b0abaee77a3d072af26ab2fe6228d0104164a782697de4bc25eaa078edaa96a668d9117978d42835e62dc047dff5654ae6d9f34f8faee253b30d78dc8a6ad4a9ed60ac353e8ea53e265c231bcd6f2a1b9470dd4757155eca2d0678f7986cf829d6d60d86f635ac9a72cfe422e953763d6e164ab310ea1b2c6eb941c1d +a36a18573037f735e9153487cf9e30dbfca32e11bfa9b85986ac1b628bbc1449eaed76280a0ba2791e23d630dcd94830fdd582bc3c8f4a4c105add9b15a251dc16d9fbf83bd0bf0b0f696b62b7f1d61299638973f5fe30568d269ae5f78d96f16fe4e7de0c6b3ba69abbd94ddfe42be8d5d7bbee5cb3943c3c1aab916a4b76a325401a0ad659f4d53edc75d402968d330420693af7d65d72571de31c12106837231b270671feed ed97978efee7bec536f7657e7c8758d320b7ea91a3e37fe83cc50468f6aedfcc1c4784f38252d8d59ce0c43d917d69c87a7e301f267c55074fe21d2a1447e1eb31ea80e1b5154266952b35784370658551349bfcbfcd35ba93d02fe2ec13d3a5d83b0a1d421fb7bb0eda1abe1ac3c863f85069eac02b15ec0cee94802ad8382cd8a44594432f5d3dbbfa5f99862827e8a28f8f4904ab05bd4a2735 958709ad9c73ba26ffbf5fd9915208421809deb83b1d75b5b98627c65ac673182fb58c4d4295bddb0cbf44bd9ddc9e1befd5a0e3dc56ca7315ce9aa89416bcaec38efd2c283527899b952767492cb4950008ccfc0f0c5443c150724e49c5f4c5aa47355d5dcf78cf10a7f3cb1e288a86a261ce0423180e0880cd83205d78a565070d0a157c455d2c2ee0764d74040eae31cdbc200f6501fcf575fe OK