add tests

This commit is contained in:
Bharat Nallan Chakravarthy 2023-12-07 08:57:57 -08:00
parent 27bcd14181
commit 23ef9e4770
6 changed files with 30 additions and 0 deletions

View File

@ -1,5 +1,7 @@
CF83E1357EEFB8BDF1542850D66D8007D620E4050B5715DC83F4A921D36CE9CE47D0D13C5D85F2B0FF8318D2877EEC2F63B931BD47417A81A538327AF927DA3E CF83E1357EEFB8BDF1542850D66D8007D620E4050B5715DC83F4A921D36CE9CE47D0D13C5D85F2B0FF8318D2877EEC2F63B931BD47417A81A538327AF927DA3E
DDAF35A193617ABACC417349AE20413112E6FA4E89A97EA20A9EEEE64B55D39A2192992A274FC1A836BA3C23A3FEEBBD454D4423643CE80E2A9AC94FA54CA49F DDAF35A193617ABACC417349AE20413112E6FA4E89A97EA20A9EEEE64B55D39A2192992A274FC1A836BA3C23A3FEEBBD454D4423643CE80E2A9AC94FA54CA49F
C672B8D1EF56ED28AB87C3622C5114069BDD3AD7B8F9737498D0C01ECEF0967A
53048E2681941EF99B2E29B76B4C7DABE4C2D0C634FC6D46E0E2F13107E7AF23
5809F3ECB4AA006F71AF562D4381F2BF64EA0931FD530E939740D0C38F6EEB2A71FA0113A21C170569D8319B8C4DE8A1C1A5ABA1A1C5B23A886B06712D373B9E 5809F3ECB4AA006F71AF562D4381F2BF64EA0931FD530E939740D0C38F6EEB2A71FA0113A21C170569D8319B8C4DE8A1C1A5ABA1A1C5B23A886B06712D373B9E
6FDB5E5BCCBD093ECC48DD262A99E6B867D6F48E1DAE014D26428365E7529B0022F000CBF852BEA38F43A2034E8FE7555AC41B9EA9E27FE72F4E968926998EA8 6FDB5E5BCCBD093ECC48DD262A99E6B867D6F48E1DAE014D26428365E7529B0022F000CBF852BEA38F43A2034E8FE7555AC41B9EA9E27FE72F4E968926998EA8
8018978D8AAE19322205E4CACFA045CDF7A0C4A5773A93FD24331064AFC5726F324B76802AA6FC30DFC412A6E5C3EEF4693AE4E2D0A1EA24A2D3EC46439B7923 8018978D8AAE19322205E4CACFA045CDF7A0C4A5773A93FD24331064AFC5726F324B76802AA6FC30DFC412A6E5C3EEF4693AE4E2D0A1EA24A2D3EC46439B7923
@ -20,3 +22,23 @@ E7A061D9B066E2CA44CF959A76FC04D8B02998CB9D46A60C19E015EA9389F3F9595CBBC4CC46E131
3438D75650E1EDB8A11EF4F63A5DFF239A70B28B6A14F13FCFDD14D02BE8BD00E84DF956C159CFDC85D6E44DB62D00E9206F40453FFD9CC97C38449527D33FF6 3438D75650E1EDB8A11EF4F63A5DFF239A70B28B6A14F13FCFDD14D02BE8BD00E84DF956C159CFDC85D6E44DB62D00E9206F40453FFD9CC97C38449527D33FF6
DB229C3A53B0340E94EFDA4D03B54F161313699757CAC312F377B731AE6C62010E0C0010E78F73E6D6B0BB438F644D176244B2614897799F9FA3F85DA980C218 DB229C3A53B0340E94EFDA4D03B54F161313699757CAC312F377B731AE6C62010E0C0010E78F73E6D6B0BB438F644D176244B2614897799F9FA3F85DA980C218
FDD9FD54050D95855B8E3A34F3A54E309E1CA87CD44A8506EB10051D1CA650DB64ABD0BE4F4F44E45F630C22CA270FA7694AC2261DF2EFD766B8CED53F285A27 FDD9FD54050D95855B8E3A34F3A54E309E1CA87CD44A8506EB10051D1CA650DB64ABD0BE4F4F44E45F630C22CA270FA7694AC2261DF2EFD766B8CED53F285A27
99B13DC7BAF988EC34949E59E636884214C0155DA3BE69605F9DBEE0F9BB26FD
C93FBA93074FDEF8301B66D8DB835BFA2D50616EA108EC32CF617A7A40AF9746
03CBA6DD6F5410B8E3E18D5271CAA786B2E67D8BE8281C893886B677C6A6F28D
BB612013EC3039A5943037FE9D92D976F85E8B69A3729019D674581DF101181A
40AC3D10E1820DBB473DC04CD32CCC14294F7BE5B3298C3BCC88F7F6AD7FCEB0
659A9B47C2EC80125CB790FFCB1E234F2D33A93F6CF86DEF501305977A03BC75
C03E2022A819F90B11FE1686C2827F67138B4DE7677C14D08972055336958263
801A5F66EE0CD5EB1C214A9E61C3C4558A6795262E5A70D22AA392087F5C019D
AAD6E69EA25EECBC0A26CB60F9E2EBA878637A7CAA0CDF325D29C2516CE9D1A6
B0B7F2E5E00E1F44578540A0B34138133654CA4803C245834D8C720BC46E6ADD
6475E517346B8C888418E1610E28969D10583CF431D05916A7DEE49633FE6279
43A8BFDFBA86848376580714584F699E9775B7B31DDB7C4BBF0530D97564F5F9
3B10D6BC94B31128583716432192F1B60D7BC23282A099F343CD5BB79323CD48
B23EC2FC5B9D07E1853D50372600C8AEBA77F571B364D2D7D05E7B47ABA3E679
F0DAA6078297F475B7E3B3968A2227A645DAA2ABA7426700532DCE1A04B67DB0
4084B1624E1D9F5F80EE65C216316269E14A42CDF8607A651DFC602319CF9C66
B63FBA87B2DCB490EE45B39F660A9DEFBD5383774B1C81D7A8CF9DE4C3FAA190
BC70EB3AFD6D8252C92BB655920FFDCCC8239E99476697F1CDD4F847533671AC
6388E69B35B7A80469CD4C4EB49568C3143FEE6143112009120088A8607CC676
7CE6CDE5DDE81925E714717F01771325298381B1934B021590965B30D23EC1C9

View File

@ -4,6 +4,9 @@
SELECT hex(SHA512('')); SELECT hex(SHA512(''));
SELECT hex(SHA512('abc')); SELECT hex(SHA512('abc'));
SELECT hex(SHA512_256(''));
SELECT hex(SHA512_256('abc'));
DROP TABLE IF EXISTS defaults; DROP TABLE IF EXISTS defaults;
CREATE TABLE defaults CREATE TABLE defaults
( (
@ -13,5 +16,6 @@ CREATE TABLE defaults
INSERT INTO defaults SELECT s FROM generateRandom('s FixedString(20)', 1, 1, 1) LIMIT 20; INSERT INTO defaults SELECT s FROM generateRandom('s FixedString(20)', 1, 1, 1) LIMIT 20;
SELECT hex(SHA512(s)) FROM defaults; SELECT hex(SHA512(s)) FROM defaults;
SELECT hex(SHA512_256(s)) FROM defaults;
DROP TABLE defaults; DROP TABLE defaults;

View File

@ -6,3 +6,4 @@ A94A8FE5CCB19BA61C4C0873D391E987982FBBD3
9F86D081884C7D659A2FEAA0C55AD015A3BF4F1B2B0B822CD15D6C15B0F00A08 9F86D081884C7D659A2FEAA0C55AD015A3BF4F1B2B0B822CD15D6C15B0F00A08
768412320F7B0AA5812FCE428DC4706B3CAE50E02A64CAA16A782249BFE8EFC4B7EF1CCB126255D196047DFEDF17A0A9 768412320F7B0AA5812FCE428DC4706B3CAE50E02A64CAA16A782249BFE8EFC4B7EF1CCB126255D196047DFEDF17A0A9
EE26B0DD4AF7E749AA1A8EE3C10AE9923F618980772E473F8819A5D4940E0DB27AC185F8A0E1D5F84F88BC887FD67B143732C304CC5FA9AD8E6F57F50028A8FF EE26B0DD4AF7E749AA1A8EE3C10AE9923F618980772E473F8819A5D4940E0DB27AC185F8A0E1D5F84F88BC887FD67B143732C304CC5FA9AD8E6F57F50028A8FF
3D37FE58435E0D87323DEE4A2C1B339EF954DE63716EE79F5747F94D974F913F

View File

@ -8,3 +8,4 @@ SELECT hex(SHA224('test'));
SELECT hex(SHA256('test')); SELECT hex(SHA256('test'));
SELECT hex(SHA384('test')); SELECT hex(SHA384('test'));
SELECT hex(SHA512('test')); SELECT hex(SHA512('test'));
SELECT hex(SHA512_256('test'));

View File

@ -34,6 +34,7 @@ hex(SHA1(ipv6)): A6D5DCE882AC44804382DE4639E6001612E1C8B5
hex(SHA224(ipv6)): F6995FD7BED2BCA21F68DAC6BBABE742DC1BA177BA8594CEF1715C52 hex(SHA224(ipv6)): F6995FD7BED2BCA21F68DAC6BBABE742DC1BA177BA8594CEF1715C52
hex(SHA256(ipv6)): F75497BAD6F7747BD6B150B6F69BA2DEE354F1C2A34B7BEA6183973B78640250 hex(SHA256(ipv6)): F75497BAD6F7747BD6B150B6F69BA2DEE354F1C2A34B7BEA6183973B78640250
hex(SHA512(ipv6)): 0C2893CCBF44BC19CCF339AEED5B68CBFD5A2EF38263A48FE21C3379BA4438E7FF7A02F59D7542442C6E6ED538E6D13D65D3573DADB381651D3D8A5DEA232EAC hex(SHA512(ipv6)): 0C2893CCBF44BC19CCF339AEED5B68CBFD5A2EF38263A48FE21C3379BA4438E7FF7A02F59D7542442C6E6ED538E6D13D65D3573DADB381651D3D8A5DEA232EAC
hex(SHA512_256(ipv6)): 1A2248FEB5A9D2D8D6C2482F132CFC19448B59DE75358E1F7ECAF444004F85A3
farmFingerprint64(ipv6): 6643158734288374888 farmFingerprint64(ipv6): 6643158734288374888
javaHash(ipv6): 684606770 javaHash(ipv6): 684606770
xxh3(ipv6): 4051340969481364358 xxh3(ipv6): 4051340969481364358

View File

@ -38,6 +38,7 @@ SELECT
hex(SHA224(ipv6)), hex(SHA224(ipv6)),
hex(SHA256(ipv6)), hex(SHA256(ipv6)),
hex(SHA512(ipv6)), hex(SHA512(ipv6)),
hex(SHA512_256(ipv6)),
farmFingerprint64(ipv6), farmFingerprint64(ipv6),
javaHash(ipv6), javaHash(ipv6),
xxh3(ipv6), xxh3(ipv6),