github.com/emmansun/gmsm@v0.29.1/drbg/hmac_drbg_test.go (about)

     1  package drbg
     2  
     3  import (
     4  	"bytes"
     5  	"crypto/sha1"
     6  	"crypto/sha256"
     7  	"crypto/sha512"
     8  	"encoding/hex"
     9  	"hash"
    10  	"testing"
    11  )
    12  
    13  var hmactests = []struct {
    14  	gm                    bool
    15  	newHash               func() hash.Hash
    16  	entropyInput          string
    17  	nonce                 string
    18  	personalizationString string
    19  	v0                    string
    20  	k0                    string
    21  	entropyInputReseed    string
    22  	additionalInputReseed string
    23  	v1                    string
    24  	k1                    string
    25  	additionalInput1      string
    26  	v2                    string
    27  	k2                    string
    28  	returnbits1           string
    29  	additionalInput2      string
    30  	v3                    string
    31  	k3                    string
    32  }{
    33  	{
    34  		false,
    35  		sha1.New,
    36  		"79349bbf7cdda5799557866621c91383",
    37  		"1146733abf8c35c8",
    38  		"",
    39  		"4d9c202854ec825e28c032c0c1d8971f658a2b04",
    40  		"900918d4a6f2a3e54f62a6b03bcf372de6f8b2a2",
    41  		"c7215b5b96c48e9b338c74e3e99dfedf",
    42  		"",
    43  		"fa5315383a3e5e8e9591667982984353b7a0a8bf",
    44  		"45467ed1cc9435d5a1683cec9d8533864ec58202",
    45  		"",
    46  		"c0e51987773054629ee998cbab5e77478ba960c7",
    47  		"ea1ae579b6b071ffbda9d6fe2346c86a32b60a4c",
    48  		"c6a16ab8d420706f0f34ab7fec5adca9d8ca3a133e159ca6ac43c6f8a2be22834a4c0a0affb10d7194f1c1a5cf7322ec1ae0964ed4bf122746e087fdb5b3e91b3493d5bb98faed49e85f130fc8a459b7",
    49  		"",
    50  		"f26b962d0e43a5587031297607079c387fc111f3",
    51  		"2af498a9c9387c8cf02b552084cd3aafd23afd2f",
    52  	},
    53  	{
    54  		false,
    55  		sha1.New,
    56  		"ee57fc23600fb9029a9ec6c82e7b51e4",
    57  		"3e9721e4393ef9ad",
    58  		"",
    59  		"aaac207d2258bf970c58549e8f6e210ba211107f",
    60  		"8aade97aacb843b6256ccfa694514a79d4e37d4c",
    61  		"841d276ca9519061d92d7ddfa6628ca3",
    62  		"",
    63  		"56768fe7ba06c56c2c3ee1dff126b70f0e833304",
    64  		"c988036512bed2d33a34dc2394bfe37dfd6ff387",
    65  		"",
    66  		"1d6ada6bfba009849de2398cb55a6efb1ff6bf13",
    67  		"a7069625d1b3c57e515511494660bc0402fb64ed",
    68  		"ee26a5c8ef08a1ca8f14154d67c88f5e7ed8219d931b9842ac0039f2145539f2142b44117a998c22f590f6c9b38b465b783ecff13a7750201f7ecf1b8ab393604c73b2389336609af3440cde43298b84",
    69  		"",
    70  		"962cbd9a0e0d025d319f5c5cfe8bded24fe9a79a",
    71  		"c5940ea824e876ce9484448ab5672762e10a78c4",
    72  	},
    73  	{
    74  		false,
    75  		sha1.New,
    76  		"ebfdad13c8f941d279dbb4de8d7706dd",
    77  		"fdaa279f5e4428d6",
    78  		"",
    79  		"5cabbe2d80eed1ddf1b1e42c1264ba79eba1284c",
    80  		"dcdb91176e0ce05e3ae661269284b1b284f6997d",
    81  		"f785c5b2f833b69b09b71a57cf5701d4",
    82  		"",
    83  		"c209a646a0a790d5b7b4e1f1673ae5d056b334f9",
    84  		"c5d38ec73619b570dbc9c0f0a18961af10089209",
    85  		"",
    86  		"a957a52715a8d14d83509e7541224c2e8ada2fff",
    87  		"19ac7d4a6f57ab5cc32082f0c724072db630509c",
    88  		"66e35f9b8e05a861a0b3d01c66c416d5e8b77d4d21328c625cff9163ffc92e753015aa9d7f36ae3a961681d39f271d0b627787868cec3dedc520ecb303f96a43cec67369117af268a19f5284880cb3be",
    89  		"",
    90  		"d856adf8f9107ac94f100517407fdeb01e7c6f14",
    91  		"97ac5e50aa2519a630283677b71fd5480c84f3df",
    92  	},
    93  	{
    94  		false,
    95  		sha1.New,
    96  		"7d7052a776fd2fb3d7191f733304ee8b",
    97  		"be4a0ceedca80207",
    98  		"",
    99  		"8bd11c639be35d012b8fa9358b25b8996b100b0d",
   100  		"1b64cef03525dd4e7584bcb7c797e0c5542237ab",
   101  		"49047e879d610955eed916e4060e00c9",
   102  		"fd8bb33aab2f6cdfbc541811861d518d",
   103  		"5c754b7134f409d22552a30aa674b1b3a0a590a7",
   104  		"162373a8ebda0cf1bdc501cc38ef90b659becf52",
   105  		"99afe347540461ddf6abeb491e0715b4",
   106  		"c4ecfaadba781a1c10b7756470bbbc1eff813a08",
   107  		"2b2af03fbe60d589215434ebded5945d6a0f8782",
   108  		"a736343844fc92511391db0addd9064dbee24c8976aa259a9e3b6368aa6de4c9bf3a0effcda9cb0e9dc33652ab58ecb7650ed80467f76a849fb1cfc1ed0a09f7155086064db324b1e124f3fc9e614fcb",
   109  		"02f773482dd7ae66f76e381598a64ef0",
   110  		"15d2c57b07db598f83f07d67b23c6772c3ccf4b2",
   111  		"02658247d79451981931d4bc5d838d42065385bc",
   112  	},
   113  	{
   114  		false,
   115  		sha1.New,
   116  		"29c62afa3c52208a3fdecb43fa613f15",
   117  		"6c9eb59ac3c2d48b",
   118  		"",
   119  		"ca5a106831ab507cae0fccc9067bfbf0a553f9d0",
   120  		"1bd9518f24761b1131275ade489516db2c8724eb",
   121  		"bd87be99d184165412314140d4027141",
   122  		"433ddaf259d14bcf897630ccaa27338c",
   123  		"7060974f64c4c6dd6c2991a7712781b3710e6de2",
   124  		"322745157f68853ce481ce599d03dbd115af01cd",
   125  		"141146d404f284c2d02b6a10156e3382",
   126  		"16b255c1dd94882e34b1a5630dc1dca51bf93474",
   127  		"ca6715ddd201caa186e7c6bba1306b15c2b1e92a",
   128  		"8c730f0526694d5a9a45dbab057a1975357d65afd3eff303320bd14061f9ad38759102b6c60116f6db7a6e8e7ab94c05500b4d1e357df8e957ac8937b05fb3d080a0f90674d44de1bd6f94d295c4519d",
   129  		"edc343dbffe71ab4114ac3639d445b65",
   130  		"aaa83705d128b5e8b175da966c3dad1cb73a72ab",
   131  		"af019a6ba7dfee072efc9735e5288ac1431c209c",
   132  	},
   133  	{
   134  		false,
   135  		sha1.New,
   136  		"11c0a7e1472cec70fa8c1ca15759ac5b",
   137  		"b1c73c22db39cd7b",
   138  		"b24e392cb1f3c18af2cb50feac733e32",
   139  		"19a03422ae972aa8b3c6f9f06cd8d67cf32c1bde",
   140  		"bdd113dc2a898f2ee086769f85b9d510d10db72b",
   141  		"c6ab59ff708a5c1f598e75df060e1981",
   142  		"",
   143  		"dc831116739734241418a975dcac594eb13c6370",
   144  		"62a245070b0c8bf07570be54f1aa02756992e140",
   145  		"",
   146  		"db1b24a92bbb6d7638ce376f9ec0df515291a196",
   147  		"83dd36854e46c3b04e86ea0d8685ab054c924cad",
   148  		"070e603cd48d56430a5ab461a751ec2a4a6aa6fb6ee52efe9a41e4611eafdfc957184b47bbb017e484ac34c7de56cd7813feb301b5befce573ad0a254e6cfe35b77c30be6b7cb5e7efa72813c7546ba5",
   149  		"",
   150  		"d3ab4ccd28b9104be57eac8b6fa293497a1ba273",
   151  		"7882dba03b6522f7094f2de9eb7b47b2ebb004cc",
   152  	},
   153  	{
   154  		false,
   155  		sha1.New,
   156  		"e05141adb678c297eebd8136885b6734",
   157  		"5b9c0c54a0ff74d8",
   158  		"4814ea71a8e11845716b22085cc65f2b",
   159  		"c3a9671b90438f5d8cee8c323cc653d42737eedc",
   160  		"efcd5a168654b32131b5fa0d98017ff0787f36a6",
   161  		"26e26c9323a3da3af6e5a5a1f351cb54",
   162  		"",
   163  		"8c65b742f0fee1b4a632fed1f004efb22e2eb591",
   164  		"c12d25d75dbdaf325e6306b666836208b13ca6ed",
   165  		"",
   166  		"f8bb4e888520ff5caa66df0ee1ddc3546e467ebc",
   167  		"c0ccd43632a814890fc6a2c98cf57d896f502c66",
   168  		"5ef29a2e7e821d529d1928e6bab16fb80d6491a98dd53695473dadead4e5142c146f1e29b101c6b1a57d8315ce34db17040c02572c6455d902303dcfcb2ad3052166de790ce0c94af78a51864efd4b12",
   169  		"",
   170  		"11058e5edd748bbd315c89ebefb4e3b72d05841e",
   171  		"19679a8f39c1888208bef66a13dda0ffd96fb79e",
   172  	},
   173  	{
   174  		false,
   175  		sha1.New,
   176  		"03e7b41c95818eb0b667bfa8a175a824",
   177  		"66a1e417a9b6b92f",
   178  		"126dded5eb0bc81be37c10bcd9d5f793",
   179  		"9671884e9ddb848ea8dd2908b5deccc69b67e302",
   180  		"a354572eb8e7e09758fb4a084be292a7670ee014",
   181  		"d17e98c2e50ee0db00d25c3364451e95",
   182  		"dc596d188e2343802240bc7f5cc60516",
   183  		"cfac259ba4dbb8b30300438cb20f96a2ec588530",
   184  		"3ca61b3a111c37639973d655a5097196928ecb31",
   185  		"14c8ec10f5bdde6b9e75898d7f9f03d0",
   186  		"3d8c62b18f1f9150767a2ef3e6edd918ca4ed183",
   187  		"c22f4f421a53fd7f7449e873f6c0e0ca1b6ba74f",
   188  		"4739b1bcf87404a2290829bd7a61f0b391a794c71c055c7cc513b28dcb5fdc88645bc9cb490f41fab134c6b33ce9336571762754343961de671b02a47960b4b4e23c5bfb87dcc19b260b3bcb921ae325",
   189  		"31aa842afcc1daa94098241a87d6ddfc",
   190  		"0904e5dd8a54b62532e2d5eaea04f3d168af632a",
   191  		"3654b36c6618fe7a37de46ee21e7546039f96162",
   192  	},
   193  	{
   194  		false,
   195  		sha1.New,
   196  		"e5a81357b91215dda0a0986a3ff5123f",
   197  		"9c1838d7360e674b",
   198  		"",
   199  		"f6debe6572dd2754a1928efaadb1c4d79aa8603d",
   200  		"b79e1aac4cb1e531309518cb4ec6b42993b61238",
   201  		"592dd232ac83db36abbacfb8c640dc60",
   202  		"",
   203  		"acb23f384f6ab63b51355dfc4875d60b68c5d0d4",
   204  		"878895412d3bde709daf05406e6aeecf81e37b53",
   205  		"",
   206  		"2160f1b0ef75fffc2bc81621ea4035234ecf5244",
   207  		"1383125bc283e0d9fbd5f957fd57fde07edf8269",
   208  		"a4d1843c7af208f770f8b5acf64528866d51e731ed5ebc756e81efe8fb8f9c9af89d52e8e8d1c0141ebebc18b1ca78c78a2f21cb909d5bac3b6ae60c4a2ff4176b14905e4afa3ba9e458216d5720ce83",
   209  		"",
   210  		"e39a379bfb91f673476c171fcc179e1547c3a033",
   211  		"4cc81aa1ca4de9831295d86671594a78f5074b81",
   212  	},
   213  	{
   214  		false,
   215  		sha1.New,
   216  		"12bfb2bff5781128967e9ce4d429453c",
   217  		"5aab2be4e92ec855",
   218  		"129126c16d99a684f3cb47e7ffb207ac",
   219  		"c4520b5effa4fd7825a846cc49ca3941cd0675d8",
   220  		"68a71d4eeaa08771dd960e6fea10046f092649bb",
   221  		"fa8b0da2cd5031433d64310ba44d47e4",
   222  		"",
   223  		"9145bfe03440396ea954f1084e9a0d0047735243",
   224  		"52b6c07b6cf17d94a80d1e51fbed0d5ca71a74bc",
   225  		"",
   226  		"64f6d3aa23e7e8cb86ac115d68bbeef3efffe6e1",
   227  		"0c373021c29c578e6d25b0594814f8c9ddb9330b",
   228  		"766c4a1670dee63ee3aafb6039e86ec5ca2890531974e70fedb3c0218b08faca07ddfaaff0a77f0ae47762b0e1b31c5fb036dca413fb96f6e0ec6ab7dbcbb558aa5d94f429c38e0fd7b39f12721c9935",
   229  		"",
   230  		"6fd14126a142d1e5c03f0e5ec37c1a3eafd20e6d",
   231  		"c775929a2b39c80b63cf796133b8995ef1548c38",
   232  	},
   233  	{
   234  		false,
   235  		sha256.New,
   236  		"06032cd5eed33f39265f49ecb142c511da9aff2af71203bffaf34a9ca5bd9c0d",
   237  		"0e66f71edc43e42a45ad3c6fc6cdc4df",
   238  		"",
   239  		"81e0d8830ed2d16f9b288a1cb289c5fab3f3c5c28131be7cafedcc7734604d34",
   240  		"17dc11c2389f5eeb9d0f6a5148a1ea83ee8a828f4f140ac78272a0da435fa121",
   241  		"01920a4e669ed3a85ae8a33b35a74ad7fb2a6bb4cf395ce00334a9c9a5a5d552",
   242  		"",
   243  		"c246fa97570ba2b9d9e5b453fe4632366f146fbd8491146563eb463c9eafe50c",
   244  		"ca43e73325de43c41d7e0a7a3163fb04061b09fcee4c7b8884e969e3bdfdff9a",
   245  		"",
   246  		"df67d0816d6a8f3b73ba7638ea113bef0e33a1da451272ef1472211fb31c1cd6",
   247  		"8be4c7f9f249d5af2c6345a8f07af14be1d7adc2b9892286ffe37760d8aa5a1b",
   248  		"76fc79fe9b50beccc991a11b5635783a83536add03c157fb30645e611c2898bb2b1bc215000209208cd506cb28da2a51bdb03826aaf2bd2335d576d519160842e7158ad0949d1a9ec3e66ea1b1a064b005de914eac2e9d4f2d72a8616a80225422918250ff66a41bd2f864a6a38cc5b6499dc43f7f2bd09e1e0f8f5885935124",
   249  		"",
   250  		"80524881711e89a61e6fe7169581e50fb9ad642f3dff48fba5773352fa04cec3",
   251  		"5ed31bc06cc4f3a97f7f34929b0558b0c34de1f4bd1cef456a8364140e2d9f41",
   252  	},
   253  	{
   254  		false,
   255  		sha256.New,
   256  		"05ac9fc4c62a02e3f90840da5616218c6de5743d66b8e0fbf833759c5928b53d",
   257  		"2b89a17904922ed8f017a63044848545",
   258  		"",
   259  		"eaa29892ee1e46198ea68c07588ac12641fc901e484eda321c2f26a9ff328e3d",
   260  		"8d3006bd33b7d8b935a8484b786850f107b731a7efc51521848b875c2214d154",
   261  		"2791126b8b52ee1fd9392a0a13e0083bed4186dc649b739607ac70ec8dcecf9b",
   262  		"43bac13bae715092cf7eb280a2e10a962faf7233c41412f69bc74a35a584e54c",
   263  		"25d3b766cd9f8ad5c45efd7fa01cc08dbce8d0d3792ec2b59bfead7bce39ed01",
   264  		"3138df070c49f48b080004df669f386676b4cb92b40de4d021b2a9e4451e5013",
   265  		"3f2fed4b68d506ecefa21f3f5bb907beb0f17dbc30f6ffbba5e5861408c53a1e",
   266  		"06624fa590e1d63397b13a0e69081274434f793fdfc1e6298a7373834024da46",
   267  		"cac850b111de755bb8a5ed1ebc052ed53ab1ff1b9d0fab2946a3728c7e9f43e4",
   268  		"02ddff5173da2fcffa10215b030d660d61179e61ecc22609b1151a75f1cbcbb4363c3a89299b4b63aca5e581e73c860491010aa35de3337cc6c09ebec8c91a6287586f3a74d9694b462d2720ea2e11bbd02af33adefb4a16e6b370fa0effd57d607547bdcfbb7831f54de7073ad2a7da987a0016a82fa958779a168674b56524",
   269  		"529030df50f410985fde068df82b935ec23d839cb4b269414c0ede6cffea5b68",
   270  		"92971e96fc46608d4343821491990915cdb957ae983ab6cdab84fd094bce1380",
   271  		"b15ae269570790a8c6a81c5be7aef33f645abb161d218761ff8739cb7997eed8",
   272  	},
   273  	{
   274  		false,
   275  		sha256.New,
   276  		"fa0ee1fe39c7c390aa94159d0de97564342b591777f3e5f6a4ba2aea342ec840",
   277  		"dd0820655cb2ffdb0da9e9310a67c9e5",
   278  		"f2e58fe60a3afc59dad37595415ffd318ccf69d67780f6fa0797dc9aa43e144c",
   279  		"8ef5e5870a97c084d1755e84fd741309679c35fa9c7d35daf22209ac26428773",
   280  		"7f37fd4ce652ffbe367106d3b36e0111653e8cbe85004d92f18576c93586ca94",
   281  		"e0629b6d7975ddfa96a399648740e60f1f9557dc58b3d7415f9ba9d4dbb501f6",
   282  		"",
   283  		"ee34cedfaa282d1d55e0bb001aa5ae42c1f90b56c6b426ad47deccce83786f38",
   284  		"fd616afaa26dd2fc3c2e93cf84af86e6d948fa01c617758816d5ea689925b812",
   285  		"",
   286  		"12a5a939f3f229cb85a1d6fb72ca5e109959726dda4ff9d95c11d7129ad3c1f9",
   287  		"d4bbadb25daa6f76c18ad05c07e448f719f0af2f535e2f938e2dcc5dfa5525b7",
   288  		"f92d4cf99a535b20222a52a68db04c5af6f5ffc7b66a473a37a256bd8d298f9b4aa4af7e8d181e02367903f93bdb744c6c2f3f3472626b40ce9bd6a70e7b8f93992a16a76fab6b5f162568e08ee6c3e804aefd952ddd3acb791c50f2ad69e9a04028a06a9c01d3a62aca2aaf6efe69ed97a016213a2dd642b4886764072d9cbe",
   289  		"",
   290  		"53bc9a0420b02b4f6a60aacd8e0320bc440a2385e27887e6ceba60571b27aa47",
   291  		"eab97b2cf76bd1817dc5d6826361b51c4dc8776ef643254dae01f83b23c2d5c2",
   292  	},
   293  	{
   294  		false,
   295  		sha256.New,
   296  		"cdb0d9117cc6dbc9ef9dcb06a97579841d72dc18b2d46a1cb61e314012bdf416",
   297  		"d0c0d01d156016d0eb6b7e9c7c3c8da8",
   298  		"6f0fb9eab3f9ea7ab0a719bfa879bf0aaed683307fda0c6d73ce018b6e34faaa",
   299  		"6c02577c505aed360be7b1cecb61068d8765be1391bacb10f4180d91bd3915db",
   300  		"108a7674f3348216c91f5745dd87a919f552fc44373b84ad4b3b843a26b574cb",
   301  		"8ec6f7d5a8e2e88f43986f70b86e050d07c84b931bcf18e601c5a3eee3064c82",
   302  		"1ab4ca9014fa98a55938316de8ba5a68c629b0741bdd058c4d70c91cda5099b3",
   303  		"21a645aeca821899e7e733a10f64565deee5ced3cd5c0356b66c76dc8a906e69",
   304  		"e57f901d4bff2909f09467003096edfdb46c89af6bd82e904d11b6753d645c90",
   305  		"16e2d0721b58d839a122852abd3bf2c942a31c84d82fca74211871880d7162ff",
   306  		"490c0b7786c80f16ad5ee1cc0efd29618968dce14cccebecec8964ea8a41b439",
   307  		"648f92d385c3fbf61526deef48ca5ca4dfe4646d82fe8e73bc1705824e181dc9",
   308  		"dda04a2ca7b8147af1548f5d086591ca4fd951a345ce52b3cd49d47e84aa31a183e31fbc42a1ff1d95afec7143c8008c97bc2a9c091df0a763848391f68cb4a366ad89857ac725a53b303ddea767be8dc5f605b1b95f6d24c9f06be65a973a089320b3cc42569dcfd4b92b62a993785b0301b3fc452445656fce22664827b88f",
   309  		"53686f042a7b087d5d2eca0d2a96de131f275ed7151189f7ca52deaa78b79fb2",
   310  		"47390036d5cb308cf9592fdfe95bf19b8ed1a3db88ed8c3b2b2d77540dfb5470",
   311  		"db4853ca51700d43c5b6d63eb6cd20ea2dbe3dff512f2dc9531b5b3d9120121c",
   312  	},
   313  	{
   314  		false,
   315  		sha256.New,
   316  		"ff0cdd555c60464760b289b7bc1f811a41fff72de59083858c020a1053bdc74a",
   317  		"7bc099285ad5621993b639c4a94c376b",
   318  		"",
   319  		"b38a63e3481f97dd59c74511899e1f4cb77b778e3f8815fa6f2094b44d5a0654",
   320  		"29bd9df8847368493ce8d0e073aab128a67b41f93eedbeb0026a9692d97dd26d",
   321  		"14fc6c9b178db644a8cd7130a4cf051678c8f4fa8f24c27b0a531338a5ce8589",
   322  		"",
   323  		"548b3fd5d4d80f0fbcc9c97ae9558156867f3d4d484c6b18da5cb16e697cc6ed",
   324  		"34aa93c837e97411d0c95983f9b1d758a5068be88b144e64a1fa0bf68f69e8da",
   325  		"",
   326  		"ae75026c2254d2365d6cf7a163b4d3b2c77ac5f46a4332b5282ba6d8b7b536b3",
   327  		"509923309fac70e02cea78879e8b85bac27a6a697d21464626d8a6e2d7ce1fcf",
   328  		"2f2620347bddcaa2943685346bbf31c44081f8665f3ddb2b42ae1416a74c4b77fab3fa19aeecc547e76c8cbe6ad1f100a3fc8b2ce2a1ea3a3dd7cfad46c1b27830b940ba18d09e9b7fa902bb760669b1735cc7b7bd39052da7f2626fa87000cffada410019d053386ad808bd3c0cfcf56b91879eb8d3f932ee2d185e54f31b74",
   329  		"",
   330  		"f57c1fce260aeef586bc35e5f4fc4eb472119527f4904cfe68a82e05b43d5c31",
   331  		"7f7d67925b617a068e249b60b04c6febc093a83fad1b88df7cb98bf2f066f669",
   332  	},
   333  	{
   334  		false,
   335  		sha256.New,
   336  		"d5303207d58bffb97e0772dc848e7e32dfe2f517fcc9b82f256dcbbbe225a543",
   337  		"478f5d6ee7101835a177bd002ac75955",
   338  		"",
   339  		"a1d4aaed8499761fbc5a11242a416d7bffb9cab72ededa9055e43c7acf2a2c8e",
   340  		"3e8c47c5b200169ea78a59314b2c994cac510b7f4ffbf4bc3c1a597959fdd38d",
   341  		"e2b00122b868747633010cf2e505db7fe89b197f0847508ec385d2180c97b962",
   342  		"1c2a88e25d1711c7862a849eb9a217c2a4219031a0d2e0c2c2dfb5f160b2528b",
   343  		"0508e475308c870b27b7ed3ea896569bd5481d31e16070047c62615dd96b5256",
   344  		"e5cf473b8f30c10c5ba76c74329baef3f96c06b047ae23b0631f2c80ff364cb4",
   345  		"282e5c2989d4df5e1ce476bf05057b7560cab5447b15992951db78f7a92767d9",
   346  		"bbc4c4a0450848e704729689ff55d135fe6f80132590a0518de4836095397d7b",
   347  		"c4e05db3f077be5fb7d2e52f11fd9655f7635d33baafe66859b1bf1f9958dfab",
   348  		"623af8a786c2303f1248eda345d3a80df15a6be6cd34973d68c454ea1399390a41835266c27d0d2efc7bab2207022b2adbd8de654937b49bbf620a716fb0c69911c39b2f96ace53d81fd1bc015364dfdb4b226f216a2a129fd0d1a061d74f4aaf6cc8871e015a480e527aad612f40178ad40d4f790b6f81de9b4669b194b799f",
   349  		"3a5b9e896338713c7707aa03360a3027f76e2418bdced7d3e8062196e2721887",
   350  		"b191e0371078f06d71f458812e28f5f7c57ef8cf2fbfd764ec53a090372dd7ce",
   351  		"9af4e6cfc51dc5fca8658e64e515e20aaac94401c70b44bb88d8883a7da670b8",
   352  	},
   353  	{
   354  		false,
   355  		sha256.New,
   356  		"28ba1a661632efc8ecced5f51b791300fb3b55b05d041708638de4beb757a9e5",
   357  		"76828796aff07f55795cb54713c77ed4",
   358  		"40933fdcce4159b0955111f844471b0db85b73bdd2b78c468dd39e2a9b29aef2",
   359  		"37f4c974532bbf210847f1f05181ec855022c3b8acb0d34cf07e64b979849d27",
   360  		"986cf15107e33375fbc9388fe3d75235ce8e6776aeed4d221cbbe3b644ff972e",
   361  		"a5f542b04aaa5dbc931e47019feb38962616c57af09b7c1df83f2b860ff76586",
   362  		"",
   363  		"7efdf833e6dd9f5729d4acbc990fefbb4c30660bc1e84e8ccf06691946dae5e4",
   364  		"18a8a6433b6814350293e9806bf70e98644bacc8a7b7b5f71b51ed7d552dd7b2",
   365  		"",
   366  		"e17005e5a980016e84c3b000cba73dffa728013a7d7e4dbc5dd96443df087703",
   367  		"d8b48fa398ac7fc186a84a8f11ac585f482f54c420baa66b5ed1be2d0bafadb7",
   368  		"65e5aa47b385f1ea42b231b9fe744253b8598859d7011e525f5a2a1ad32a972a850802c60a2be19be270063a3cfbeaae954f10b122352de6a08ac410e0991653aab271b360fe9191cf5addcccced8c4acfb61457049992988fd7a9acca1f1bca35f1475813694a39988e5fac9f4ac0572286bc462582ad0af78ab3b85ec17a25",
   369  		"",
   370  		"ad4f354b7c48ff344821d0de7a250e4f26e6772e26d09f187af20ca466d4ba24",
   371  		"73d833d2f2ca0d420ae761dcfae629e40891570dbe59e86450d6f53b41446d15",
   372  	},
   373  	{
   374  		false,
   375  		sha256.New,
   376  		"40f4a4344082039f5452c3fd21aba9393d253c558728346b6954b00f0c64beb1",
   377  		"f8e297eedaf4384a12d91e5b3432c69f",
   378  		"11716a84a8b4e5717b61f0827cc9e56e21c0acb9b40372f68902576b50c46ba5",
   379  		"027ba7ca6c2cd795b794c517826243335452fea4727b2a09253c02b106261c9c",
   380  		"f65cf5100d3e62e80d2f836143c4b6b054acc2d563ae4b2ea7b713dcf02adcec",
   381  		"07402212d59681934d22d9bde4cb04d69d2fca68e184c526de933669bfa18f78",
   382  		"604e8c8e5fd3c9368288451929c9de0e7f537493d7adba56dc400961abebe501",
   383  		"c54e1f38a41b642740d7d917fe2116d6bf0eaad51d8ea595ec5254dafba3417d",
   384  		"6f25e235bdf69d4a4bcd1fbe857de81f09921571e0092e85d5370910a6aaef64",
   385  		"34cecc853e6e379bfd1e13b8eaed00db34602e33760c590e3f75f10ea2e26951",
   386  		"1a6bc09b053ca036d9a8ee8e4985172cc59c14bf69f090a4abe52c1d84e17ee9",
   387  		"8632c8a9393c4fac921b885d8f9a0057a19a2e63cae7e67610705625d76f0951",
   388  		"3ca3ebc8cdd8280c07213c5a5f1e937ba1294c9aa682ca1a3dee63842132b8da641b340861abe7512074f6d1b9745a541ccf19cc1224967a9faa285e21d7572b3e669d9a3647c30d43c27974fbdb461d468149fc1b340d4ee6c640cfe194669d85d4a595bd1b78808e0496d0e2e38a1b9bc1d0e5273fa03cb5f041bfea7f1c9e",
   389  		"82b7f37cb3ca1543927659fddb13d09507fe77c941c5d60d451a9103f1b0b5e4",
   390  		"d947854c922986cf1ae2238de3dd913b7cc4980b68e7f0cf30fbafce032fc523",
   391  		"bc666597b26ad183696cde941daa3b551e8bafd0df774343c9821904e52e2f8f",
   392  	},
   393  	{
   394  		false,
   395  		sha256.New,
   396  		"6ae80303292391335bf9c9387fbd3bf615756c9c27c3478c87e260cf97d47110",
   397  		"01e16247dd4cae6499337d82784ea57f",
   398  		"",
   399  		"e2f8032e3792b4dd0c3627ec47d174de10ba62f5d9b199de919082bdd8fd13f9",
   400  		"87e52aacf4ed425e22d33d74525c9ca07d07784779df5cd6a721de8cce6428bf",
   401  		"035702ef4e112b173112c5851d07b279309863740d38d0d0720223e24017bbc0",
   402  		"",
   403  		"61cd66e5243e1f1016e57157d492d663d912b53d79ab0b592a1f44a5d9a5405b",
   404  		"62f41f0b598858cd999cf3e562dfe6fe41b32a7a99a8148eb12dc257bc967459",
   405  		"",
   406  		"5852153685d511d0bf62977a544c6fc59d877a83fb5639efacc2630ab5feb68b",
   407  		"743b37c4f072f87705f9fd8142e0d5012674f7ba13004cc085d3442675f793c0",
   408  		"cf4315598fcd6af1315518c4bfbac0540c589635273548a7b507e7d2e685e5947b87ae257e58faf214f2b58ed10c3bd35f75f6c35dd6d441c93bcd42e71720102631b1a6a4ba247c175ed800cfca6e1e839b5aa907604ccfe6f984f6822e001ab02dd6634964f789cb107a977346693f3244c895e840dfa0edf7f14dc61d794f",
   409  		"",
   410  		"d606304db9bffaeea999ef797238cb680edbf2562e096f77359464bb777b01c8",
   411  		"1334aecfff15ed5ae3d02acbd58a72b63cbc6485d1a461398620ce6a0623bf3a",
   412  	},
   413  	{
   414  		false,
   415  		sha256.New,
   416  		"010935ec2370e1f0fedf365cd4e37666727cc33eb799f38b1cfd226b7037d9b1",
   417  		"e09e498a94860ac567ae911bb218f36e",
   418  		"",
   419  		"e341ac03662f309e62d69216408cd5ad77159238aaa18927485ed39b94d7dc48",
   420  		"6cf8613c8c8be636dc49fd8951f7c7aadd48345fd01a6db8bc9754815012db6e",
   421  		"d21a3b9a439bb26fa4b4009807c5cafed3ccff19b2b0608a29f0ef6289f27abb",
   422  		"204fa3482fe99b6670ec70b7f2558a5ce9caa98113bad174b85a719410010867",
   423  		"e4503fa75ff6f9de250c7167a67f3901af2e0698080d8c7325a020437e6ab788",
   424  		"9f5ac47eb6d7c6c9dd64b8f90e77d1c5698d5f15db14a93b16db590a61361687",
   425  		"4f61b22033e1cc256f5c677e91882914abca6a5a3f716af0ab2c652ff8bce5f8",
   426  		"eafdeb36ac2c280af0b3ca5aa8fc89bd35f28be936a226e9838df27257676f67",
   427  		"f1e06eb0a70d41b38f9f14ad29391991c7c1d63800ca4958bb704fb43a455646",
   428  		"503e08620268aff772e06603679a7509b4bd590787375a4319fd1f7c7ca7261aa1ef336d862096b4cb98ba97c5e96905e410e719fe2a2de1be621c5a537d1596c7e20db9b242523fc926e22e2826bddabdca1c0b8e2fdb32c87044eb6e7760c6634bd9b96d385f98fb0f8a273dc21bb7dbecc29ff69bd691688db2a4b013576c",
   429  		"ce1eb61f9af9727844666e283f2ae69eb7c91d098535fbf2ac7b0584ba81560c",
   430  		"08d033ceca9b9bb3f196b5ddbf8090fb794ca49d2024cfd2006bde9644132c03",
   431  		"54573b125c5e81f4b43d9c83097d1f9f17b97709587b0e27322283d29df8aa37",
   432  	},
   433  	{
   434  		false,
   435  		sha256.New,
   436  		"633d32e3005f78114723b3ea5ac121ba74aa00c52d939667e30c3351b38549f7",
   437  		"37afff504a2d8ac168c68e24d0fe66f6",
   438  		"9f1699c99d60b085bc61cb110ef8ab590d82a970021c3c6a5d48021c45de4956",
   439  		"f7c520ba361753f1df1c15e95182d4d4e323ab57226702a4f40480d3f5f02154",
   440  		"16a8cfadfd0a75b24b3f7ef16c0628c99e0c44117141caad5f6d191006bc9cc9",
   441  		"3e3347c547f17f4d0b9f46405a54eedd7e980d06a215ec15e89316ab743b7547",
   442  		"",
   443  		"2a647361226a2176a700b3c62d7f8c00d52d9ae2d11ea859f7bd009ef379c02b",
   444  		"71e8992a9d2d956c40d30e495fac5547b40e108a74e7afb26638e5a5aa411c92",
   445  		"",
   446  		"b1e011a27e4e68ac1925249aebad9814b8f8f92d4ea63fed97e441a7d49b0631",
   447  		"25b7d30f319c23b20d6cf2a25ec6aa79cb153b0bfa7168bb4d242e86d08c98b6",
   448  		"6e38e82962d707ce9a6ac383a738a748f975eb785611fad5e3f5a4fe44d7b59a98137a2bcdc35f9ee9a1e21bb17df1665cd1397625a177247e2e329a660140636141560610a368bfd499c2e25be318aa4da9e7a352d115db8282ed8d79ecf9cd820360d3d2d1a58a93e040f5554887ce6c9858bc2bb102249980a858498abcda",
   449  		"",
   450  		"9dffe821ef5928a8a274999ec13931c69e9db73321712275380ee933365afece",
   451  		"9884c09fe1dc5f85a3e3d21c59599bcdbf5139995b97d605dcc56b8a4446723d",
   452  	},
   453  	{
   454  		false,
   455  		sha256.New,
   456  		"d712e0448c7f07ffc32cb24d4a13980f63a95c676d332f3d96dff8faa867286b",
   457  		"eae6e959651245cc5420455b264bddc9",
   458  		"82e3cc515480a6d3fefc6687ac488ce04c0cb0361fb87098104355bfef4b41fe",
   459  		"7ab58eb84a6c028f8aed46449c6e4286a7b2906e694e87ccd6f2ed1dace0469f",
   460  		"5bd94103f2c143502267a5d1d607b58f54f9874b408697036f6d44fc1565ea7b",
   461  		"b34a0fdbd1082df4fb3404502cb99a2b564b7a7335e485a907693b8be256dd10",
   462  		"e500f6f8af3c4ff61f46f933f80e80e4d08376349511de5a2d3394855e5edf33",
   463  		"9f99111aab6e887cd0a94ea2e76c6934440ed13d235bbcb3a41a4606e283fbcb",
   464  		"922c584abb9871a16bcc28d967ab3e6055fedafb2fd25c0f504d54c17fe10732",
   465  		"87c571b98a05b372cbb53429a37d91295f6f8892813ba23c3c21327f83f9f55d",
   466  		"3b9feef739f8cd40ee1cb7ed6c5717e28ce590e38b81c6a6411b06bac60fe466",
   467  		"890dfdcbc4bf9d42c6102b147552d4fd89fcd129c8860dbd55fbcc0c2e12aa1a",
   468  		"ce50ca00cb699b6dfdf0b997b8a425d5d665150579c01232d51b6b296138fd39da0349c9fe1e1c47cb2589342cc9a9dd9d17671a68a4915be152826c3245d51d87b37275a5cf4be9b4c90bfe752065eb93bb99679b25ace57ac6bbd4c7a30ee489cff74f2d11a38782f05301db7c60c9659f08f237de354ff7a8ee10b8d93460",
   469  		"72d1895e1c4c3093452447cdb3519c8dbdcaf90fa0821ab5ced0079c03ab8dd0",
   470  		"6d82fd4c23194021e4b477fa3d4ebb502eb49965bed4bd3ff8941c22ae4378f0",
   471  		"aa11c583a988e28dc40358af31e6a3eed4326bb5833706417f50a8a93f47f50d",
   472  	},
   473  	{
   474  		false,
   475  		sha256.New,
   476  		"ea28926cd5df4fefd572c9103d87ffb04f599da95e1e6fecb84f53f73fd00d6c",
   477  		"cb40e16655b9a2c71e8e3677b9ea6c6f",
   478  		"",
   479  		"15415c709cd481e15f0bd111bb9e0b94e325bdce66fc651d48e4e0516d0bd7fa",
   480  		"9c7c9fa9df4dfb3fb69341a84596106f36e4a100cba6d4070eedb89f5430c941",
   481  		"3d2d1db88b8462787a5576c95fd660734fb681f894e8efc47e3be3bfc3098e40",
   482  		"",
   483  		"d591e3aa2e49fa8454f3d7702d65399eb0ae7a8c7ee2647037defc23f4087438",
   484  		"c31973f18e450f9b91397cec700d7ab843e99a65422a06e3aa16d2bb1b271f81",
   485  		"",
   486  		"e53be6df73127677e8b13133c5dcf047b0f0586079acc15eb1c0aaae447d25e8",
   487  		"bf8de52f6fba271ccf659401ed4f719e9acdfe678e64854de34f4b5ac3db76f2",
   488  		"e929c6e749c5175031dcc926bce8d529147b5e940f61d0ba1f02831c80c27a23cd4b5ffb507c7d09a77e4c8427e29010cf1c8021a80ca29504caa350a27d6ca4554fe4d8b0235554f251a59ec6729d802b473083b0bd6ca83f6d945b3d1de2b706bdcc3b50ddef57847fff88a4498586ca6afe65e76c2d97f87ddea66f5563e3",
   489  		"",
   490  		"5351bdb181f7f4d3055ffec5262423afa6489a18af7ddabeb4a3a568d3b0291e",
   491  		"c5aa9123a932d3e3e3bbf8b94cecda12c8ffac76ab37037610dc8d45ca6452c3",
   492  	},
   493  	{
   494  		false,
   495  		sha256.New,
   496  		"82d87758f16581b2bd8bd4374aba49a59b65cb953f753594240e69575d51b170",
   497  		"c12ea8a42dbef64b9b3abbae9222f94a",
   498  		"",
   499  		"957f42a1588fddd245955c3cdbea7323a3806f87ba2cd1e3c3a67f8bc36d6654",
   500  		"f3cff36fa5e85d23d10ace40ff1ad926bc6da4cdb8ab33cb09c32ef2028fafc9",
   501  		"f9bcb64209e8f68e6e3f996196ab445dba64568c7e572dcd2378e916449e39f7",
   502  		"987d93237e7e52d1ef3941407e8739f7d95991bad92a49ad6a681dcab1644049",
   503  		"25e551f9ca83b241de672369e37b430a2fe116c8f5e3eb63ebacc6314eb62316",
   504  		"3f6f557538af2c779b04f90a38e951a50741ca0d5ef13ff7864df9e5098683eb",
   505  		"8dd4dc1e62114a0c7e52537607ea8313fa4128f486d871a8bb8adbcd9bf46c42",
   506  		"64ab49c35fe6dcc4bd5bb3adefa5d7f9e24a1392933f27edc5566d0881acc60d",
   507  		"5fcdd5efd3ec9615df7091344b92837acebda1d5d579853ff22522109a8890bd",
   508  		"ba00a49886a6c34ebcd649bb93989cabb9c1d11f9c53f721c99ab125a6cf4726a79713c2683ddae6ae7939be465e9a2b95d008af76db42973a6b63a33bc662d99afd9bd4c7aaadc116da5d11db66f2fc27bfd471ff5130b40f81c0da8de5ba09661165371818ea61f936b4fbd511efc2dc5a7d24dd56326a0e10b03f1f94465d",
   509  		"e16721a200d3f18abfd154eb0dc2c9b7c245e8a2a644d59c2e888d4de11652de",
   510  		"e78d061da89c47e35de40f87980a6212088add1d770fb304ca9777dad23d3c40",
   511  		"35d25d84e870645b71b69a58dd2adc4cd6144e7a63549f9fac19d214a7573655",
   512  	},
   513  	{
   514  		false,
   515  		sha256.New,
   516  		"22d8c62bcddf5da1dbdb093d6b1f663dde337343c56ccfd40acbe3302309eae0",
   517  		"2a4b8e66deaac38b70d9ffc20c585da5",
   518  		"0a337038f4b4573ff43a4321a586ca777c30301267d82fdf937198ac56c7062c",
   519  		"6b2ddf937ea35aeff5985662edf9ba5e74c7226baf08d75154f93bb068ee3f4f",
   520  		"68f2b025b5d56fe2557a19195bed188c25f8fbe0899c5d8652e05983e3662136",
   521  		"0b6fd179e44f149f062da4f66f829c3c58c4a0a4f75ac2a9e0240d43bec30e44",
   522  		"",
   523  		"5c2b1bf10f2b5d59717c860ea225f6e80492948510099e45f2a6e3120064125e",
   524  		"1bb103384b405f8f8e52a1d60abd5e791ac19a1125452ce2950c28988c48a307",
   525  		"",
   526  		"17d2c28e23ef6b7132ceaaf41ce180a43a1d9ac451c0b22396f242163cd13b23",
   527  		"cb1d57115e74a19602379450f6f4c6fb77ac026899cc1f90789e8fd5b608c507",
   528  		"046e19b4d8ab38dd08defdd0d7c30c8c75d5689ca26f2bc994ac7fca4fdbee80677dfbdd851e7722835844dca79dec4a3fa82feb884df7d474bd972e12619bd5d6cb1b951eac47eec2581195b531534ede507af6f7417fca84532be7ef5da6738dbf7aadfcd7cb888862b52ec773cf3fd00e6d4efb3071af9b70a49935a3ba38",
   529  		"",
   530  		"fa3b5fbc00ad399c78d57d3fab7f3e16fd7d5e98d512164d5ab2476a84ffe0a8",
   531  		"7a4b87e1252d2937d1092873b54ac838e80a8aca4c58b16383c6826a6afd5102",
   532  	},
   533  	{
   534  		false,
   535  		sha256.New,
   536  		"00efb9c7f02719ff5c7030ffa897a308d36c11ce27526340728bcd487c80457b",
   537  		"09cebd489d363b5578ddf30534ee6a7f",
   538  		"27e38c624a8f934e931e195a0cbcf38e4e8d50108dc318743fb4b61cf78a7d14",
   539  		"65ee4461fd700036721800d2a71f5110cc8099fe447d4b68f317b821983a2063",
   540  		"ac0e155af29e01caf36f5f36944adf9cef01b18a4a7aa5af8d63cd56a1d03d43",
   541  		"4c87234a9bb529aebb7278daa089753bd2b501d30677edb6cc31e38788fe0e21",
   542  		"0e4dddbe0034180b59303d527a938a447bad9e4a91787d1072e6f41350ff11e5",
   543  		"1de6328fc0c04353018c24e671c0828229d2bdb2faf331a9cb6363a68baf0ad9",
   544  		"e21c915e4af5e628b7a45d2953dd61b552f256a215dd604a56067829bd4dfabe",
   545  		"cb25fccf929812b9fc66aea93e0cafb064e25b8c2989ae5078648ef529ecb487",
   546  		"a3d029a688de1596b7a214af9f547d26e0d03bf3f62a5755e5288923b851c02e",
   547  		"41b4ab280425b8e79e25011bcfeef18fbfa57b272100351a742afcabb5be78cf",
   548  		"7569ff1ad01a56ab283c1f2357bd519e15c0be84b80cfe8ec6e26cf903aa8a17f52311a2458e48468122ce1f4abff12920f7dffa86c46f06d744d198004bdd0b29b1b0f17712863df82406e2c2a2fb73ea99dc3969c7e52aeaea031e0112fbf8d785426ae7c106d876a900ba54c4e9a1f3656990571c6d1fb56131cd1cdb1e68",
   549  		"c1685a422e4a0673cea9948937a8fdaa77777066f501aa17493682a83d931e6a",
   550  		"53243974490ced473f3bc498415b40d75b08cd275bc596e5572aa14b9b51e054",
   551  		"8d5ed0295e15688a8f9d7556fd452d63c6b0dff43e653b607cc79958cb305921",
   552  	},
   553  	{
   554  		false,
   555  		sha512.New384,
   556  		"096349506f3a7653d54db7ec1d09e93413edd175b6ddbeb00e56752a520ac8ff",
   557  		"fc7983b918acadaa71a67e1624f1b502",
   558  		"",
   559  		"b3b502977d1a8483d98d92ee3b0d9b484a28aefb015edbfce57154ed7dc66814833825c9ec2677b14f5cd696f5c95982",
   560  		"6660ea0017ee93b79f448c81361c601fd02bbd8d3d81af2592ed077855b448708c0e0cee59459684c72822bd455f012a",
   561  		"4260a0495fdaba58aae41df82505012d480c8e4f751fd7ebc39f9becd694b2a3",
   562  		"",
   563  		"b9d842a55279faf4656fd858c2785ae7c4596d03543937bab29761f7ce3adeddbf20a1e0bd27d63bc2fe6f5161d12470",
   564  		"d4163efe4c2cda7bf426f7b42130abe16d090342b1195435fa67a9f315e7d7d5899ba5b7a52debfa2378fc12b06fbba0",
   565  		"",
   566  		"622b6ebac986b1a2d420d685dabf0ea169c2e3b75c42fda106d7963ddac536fababe374c1827a078def62e2ca7dc9628",
   567  		"4ac4a9fae8f6798c594278c1f5b017dab870e34f940f9912e5047f6da5be00c67157ffa07e90cae534e8673aa0082cbf",
   568  		"f4c7bec0c26cf3892d214549ac6f3d82f34c6966d4295099ee56166e879a70ecae130251facda351e903d877b6c5eab5153ce87ba6c7cf8bcc61cbd14cfbe34cf1ed43678aee69cd87b60e6bcb6ff48ebd44ce9e31982d8fe20aec34fa51d625f845f61056575969bf785c2ffab4dcc754f13de63423e94bad8d5e166d96a62a602d3ee4045df162028b89cac45e6207d9097f2b3ac0ab17729251985f276f1287f5c56cc9ba1a79fbdbb291f3a945fbfdbd63cf13b82ec91f7b1085b33279e3",
   569  		"",
   570  		"16d64f1dbb1e386f6126ee917f6d1a561c5fa3ae1d427c7a210e521cf5b878538c9d2fed5faf87c7f5d2cea0f1da642c",
   571  		"7914529cc8599e510f68c86b4c44004417eae219beddd5e4d6e0595f0c2ebcc9eeda6ca7e009c89439a1013bfef2aca4",
   572  	},
   573  	{
   574  		false,
   575  		sha512.New384,
   576  		"a0c341ddf73d9404177a5fde32cbe21319c318f35cc9afca9ad41a3b06e13491",
   577  		"e843cc6afdf2bcd00ce77ff06ce3d8a5",
   578  		"",
   579  		"004f625d33624306986abd1e424b2c651abfd42f60e58e24d8f6cc70d329b061868704137eff0ea756d42ce8086bd6ad",
   580  		"4cede2db1bbdc9fc3a4ba0951ec3f02e942c11d34fef1d25c32702efcf19b01e5651454c732311bdd91af77ace5c70ee",
   581  		"4772c46baf142e569ecd9131d6185af3575bb62a41cb646bdcae8a7a9fe60cc5",
   582  		"b83491ec1bd89f3fc84acf1aad6fbeb8ef6ab949f41adc6d0dedc53722c171fe",
   583  		"5c11272a6c0e7bf5a7328a2abf3f5a51fc53bcf6c7945a66d97fadfe760c63bc07815731be6582e5396ca0a751b9915c",
   584  		"c4f07fcc042077073d630e06eb2823beb05a878239048a78110aacf3b436cb2ed398a587a9cfddcbaa8955cf4f3ab0fc",
   585  		"b76cec3d6300ecc4a02e810296c7e70bd9b4e7121fc5e971cbb94337980fddbd",
   586  		"b42f1505e9cc3ebb10ab39cfaa1d5eba50e642e568d859e95a53b0f6dc5c3ed568e7c0f9347973a01f944afe279f88b8",
   587  		"1dc6a2b09d2cf6f4068e31707c997465b56a7139114ff997b4d32d83a3b90fbd56890a2625afaab0fcdfa05d3470cea8",
   588  		"98c01d4527fd131cc327e9632104d9eee10407cd73ab607228d37b9b72ca2c987aa794804d505d072561ccd5016bd4189ac9e3db9187822877dd533347b5d2071818bb7683312e1e8806e9b73b021777f7f878bb7d304ec58ce92e5e36d3d05a7383dc77f3fe6eb84b615f3f290bf8a43c34ef5478a30a6ad616157c9d7dd046aa66b522bcef61c9d19382c32425d38ed3fc049e73035af1e8b97388de22c4dcba0bdc09fd36ab7eb3f67659cbd92b8d7f6d74b56fc8daf17068c65fb016e29f",
   589  		"2a25cb0ecf913749ad46b585c76097739a14ca7b59f1f3ce4f79bc8a4afd1378",
   590  		"6022695c754ccc20b5a7f8ced36af219d58a1fc2d87162be87eec064a074ddc206b70ad6e569573c1ef89f8cdf27f62b",
   591  		"f00007567e5e9f16f998454da61493935d718476a8f423d728f8077435609cba1455531f305dd47e1acc7151b2735949",
   592  	},
   593  	{
   594  		false,
   595  		sha512.New384,
   596  		"4d95f31b9606a5f6d04dff1d89b50becfd0882e6cf51c1c5d24ad843bc12d977",
   597  		"eba4582c39d793a63eadb63f292568c7",
   598  		"43bf6f32b3b5f580b54179e4102d063536e7c47681d6de3cfe88fd8ec66e4873",
   599  		"3e0ada07e834a8751618a80c5a170d0a2b23fcd11724ba72da8df002ce7c442a5eaa49b899dd671ecebaccd3b5abf837",
   600  		"c02f8b20c9946489da8560ffd2198fa722d62d9a22414c9ab7a221eddc3cf7e0d3f323f83286f70fbb4d6b9dbb1d82e6",
   601  		"fc4270e6c9aec83186a20819a7d35e7f1155ea108794302d593c53ce9d25422b",
   602  		"",
   603  		"60a9edaabed8af69bc1cd20cc5ef322f3c66175057e3816b4e7cb56f79963a57375105c688e700dda6ee99293838e187",
   604  		"5b7048c6a6266aac485fee29839dd93bdaed1cb59b9405901526fda454c1d004c18e64965622f84ec205f6f44a33175a",
   605  		"",
   606  		"72c661a45691345b76a9d9c745a6113bc3accc930d255afc15cd68042e270abd2fa2bf86cd573a3cd75bbfe4055add12",
   607  		"e3016c5a315d26268a7482290d5408ffe9b41a6c8da4d02e9a23d9c5d7de8c932fe9235432c2f82cdbabf91308606827",
   608  		"e991d000b24ebdf838ba11f9849591b0029feff33604bc4d71acd94301f8d045eeb1f81f3a101a297403a35859113c099939638680d481c86067f54762892f82146f61cce7bc2c85d395348f3ea2aba6bb3e59dbcf8e41a81918b6cab304d44ea1e32573cd6936f38cdc11d3c2f96290cc27b0dfa3bbbafa9394acdf2f4435170b428563427c4b02ed25924226edf8d5a5eca4eec4aecf98ef2e6f75caa70bdd84877df2e637b7fad621c6170ca5bd86e21d0bb01cc90fe2e76353a9d5687bea",
   609  		"",
   610  		"0dd623ca0606fd5082825b31fb59dd130151f912a64e340c23d76f78ec1d77da3a3e196dd18138c83fa19dae60a6dd50",
   611  		"bb45802d2d5ea3c759314805a0db4d7ce8bda8ea465bcb058486045c773d17ffe2471b9aa1bd79d867c5f3d4721e8705",
   612  	},
   613  	{
   614  		false,
   615  		sha512.New384,
   616  		"c4868db5c46fde0a10008838b5be62c349209fded42fab461b01e11723c8242a",
   617  		"618faba54acba1e0afd4b27cbd731ed9",
   618  		"135132cf2b8a57554bdc13c68e90dc434353e4f65a4d5ca07c3e0a13c62e7265",
   619  		"d930565481cdc8f47df5f1a60c2c6b1c9c93d8890192a15f6f3f0b2d6190b4705eea8c1996081b17c0d46bfb84d99f9b",
   620  		"d655b88f171cc0ee23c178309a999bdbe5a24e03291326bb22cff71246de2da18a165bac2b1f62f71c2963a3287501d3",
   621  		"d30016b5827dc2bfe4034c6654d69775fe98432b19e3da373213d939d391f54a",
   622  		"a0bbd02f6aa71a06d1642ca2cc7cdc5e8857e431b176bcf1ecd20f041467bd2d",
   623  		"96d9e60925d82c869f4f902eaf70518c2a3a3b354cc3cb220141b856ae28a5451b0287e2f3efffaf3f3394de0d3e2e6c",
   624  		"b3e0f0eacd32cdb4396a4249977b716b211d9b5ab55955d12df4d226e18dbdd78fc1b5efecc7dff1c8812a68db36e16a",
   625  		"93ee30a9e7a0e244aa91da62f2215c7233bdfc415740d2770780cbbad61b9ba2",
   626  		"ba136597b9daa78365422ccf2037bdf871a0e617d250678c0db6dd68b463d02cc2238a5768a33ed36e3ded5ed7674404",
   627  		"4df2f0c9aebfb6c382ee30e154cc2090766e72fc5355380bcd5f0fe9576247b729e7b5c973d2614ffa056e37622dacb6",
   628  		"2aac4cebed080c68ef0dcff348506eca568180f7370c020deda1a4c9050ce94d4db90fd827165846d6dd6cb2031eec1634b0e7f3e0e89504e34d248e23a8fb31cd32ff39a486946b2940f54c968f96cfc508cd871c84e68458ca7dccabc6dcfb1e9fbef9a47caae14c5239c28686e0fc0942b0c847c9d8d987970c1c5f5f06eaa8385575dacb1e925c0ed85e13edbb9922083f9bbbb79405411ff5dfe70615685df1f1e49867d0b6ed69afe8ac5e76ffab6ff3d71b4dae998faf8c7d5bc6ae4d",
   629  		"36d922cacca00ae89db8f0c1cae5a47d2de8e61ae09357ca431c28a07907fce1",
   630  		"955b79910f09ed836e1a41d204a9678f2696fce5ba26e6ba366eec4198461d20eee5b77377e6ad67fbe950cf010137ff",
   631  		"0fa2e4a250d0e2c55706a7302f58dae496c10548023240bfcdb93f07809896633980cddecf8a39b9efc4766e7673f272",
   632  	},
   633  	{
   634  		false,
   635  		sha512.New,
   636  		"48c121b18733af15c27e1dd9ba66a9a81a5579cdba0f5b657ec53c2b9e90bbf6",
   637  		"bbb7c777428068fad9970891f879b1af",
   638  		"",
   639  		"aa25644df73d1bd2f9082c64a196ecfc23f4782324b724b1d7f99073d6e47da735fa8f6d4bc7eb08cedf56ebf0b1c0a39cb75e95d589468a64ee6cb15c90349c",
   640  		"8191bfa36fa063c30f4d9c0bb54d9be4b831c9eb16f4fd34c56ed8db831cd27003081bd50ef75d578af9abdb5eaf384da45963b84d9c49275682350c4c3415de",
   641  		"e0ffefdadb9ccf990504d568bdb4d862cbe17ccce6e22dfcab8b4804fd21421a",
   642  		"",
   643  		"53d265c9981d347fea85e3ae38567f4c118a5592d984fda24dc44e888f7037063d89d83019525080ee3b20d3ec223243cf45d4ea468ae5234ac2a14970985e0b",
   644  		"0f3eb26c2be623fc36330be73ce25ccb9a6195a13324a429b9fd205ccd30122aa521184fd324110bf484d8c80f2a71dedbc949668d023b6f5cdff72f69f3b033",
   645  		"",
   646  		"d1e27c212508713dcce84e7ce6714864b9bf5c48b5f817495fc10ec11b39e5d43b826a7d44acc0ed90f801901108462b12b631a31b8ae0938da4b678daa3d844",
   647  		"05271c404b99bf9f96e57c6e2737f2eaba656878173b1b5e82dc1fe54ebb4450f76b3efa00913371eaba8e94ac5f1c23eb781c83448d49b76f36a9d265fddb68",
   648  		"05da6aac7d980da038f65f392841476d37fe70fbd3e369d1f80196e66e54b8fadb1d60e1a0f3d4dc173769d75fc3410549d7a843270a54a068b4fe767d7d9a59604510a875ad1e9731c8afd0fd50b825e2c50d062576175106a9981be37e02ec7c5cd0a69aa0ca65bddaee1b0de532e10cfa1f5bf6a026e47379736a099d6750ab121dbe3622b841baf8bdcbe875c85ba4b586b8b5b57b0fecbec08c12ff2a9453c47c6e32a52103d972c62ab9affb8e728a31fcefbbccc556c0f0a35f4b10ace2d96b906e36cbb72233201e536d3e13b045187b417d2449cad1edd192e061f12d22147b0a176ea8d9c4c35404395b6502ef333a813b6586037479e0fa3c6a23",
   649  		"",
   650  		"3a9703e8d52c68286e9af1fb2841411f53b785ca1fa01d447b4afcb7fd9a83485d7394bb28558d49d55902b0c282edc417bcb0a9505b74a1ad8f71da14e44640",
   651  		"94d65383dbdebd813534f1713f0392431ae12e82d3fb6a50c5890152e53ac0c7c0e53912deb35d925ea9e661b6de7cce6dea139bb6361019b0fc96362739827a",
   652  	},
   653  	{
   654  		false,
   655  		sha512.New,
   656  		"4686a959e17dfb96c294b09c0f7a60efb386416cfb4c8972bcc55e44a151607a",
   657  		"5226543b4c89321bbfb0f11f18ee3462",
   658  		"",
   659  		"2c727eb88ad430a0a7914ef55b0e3547212b8821fa14775f58e256a45d960a61fd6a66b228845551742a31ae973849762f583fe6cd0a665e4490e25ff783f1e4",
   660  		"9d0896a238dd283a933ab4d585d2b10f2e91c855e9b49d9985fc8d47aabe75646436fb3fd53a0fdcd7c172455a51d02231c40211c9a2ff06bbd40c6baec10d4e",
   661  		"5ef50daaf29929047870235c17762f5df5d9ab1af656e0e215fcc6fd9fc0d85d",
   662  		"d2383c3e528492269e6c3b3aaa2b54fbf48731f5aa52150ce7fc644679a5e7c6",
   663  		"97be60b6742e6af6cd7692cb5cf65977b71518d4eee93df68bb7373b57b7163c5a123b9ab74b9e9d797d9e617b250ac0e707e0a7d3173302c712cef46cf1a67d",
   664  		"e18cf3770e3ff4ccd50739b9acac479e8a83f121d0107c4ad03b182784208e82a26d6c348c60a1b1ce9790c3767f649ffda451efd14d0ae1eeb771c380bee8c5",
   665  		"c841e7a2d9d13bdb8644cd7f5d91d241a369e12dc6c9c2be50d1ed29484bff98",
   666  		"17c52eff18f2b07d2e62a58da815ad17b11fe62eec41ac84dc779dab44810957213ba1a6fa2ea9ef6f1503b1e5db724142b6f20f471f3f2584f5c8b250193e33",
   667  		"43d4bdc01bfe767a12f7248137db68d5f872451b620119ea539397cf8b219673b1f35547cdf62f62a22a39cd77ce9bd0f052687088d71878217602c6735cc28f",
   668  		"b60d8803531b2b8583d17bdf3ac7c01f3c65cf9b069862b2d39b9024b34c172b712db0704acb078a1ab1aec0390dbaee2dec9be7b234e63da481fd469a92c77bc7bb2cfca586855520e0f9e9d47dcb9bdf2a2fdfa9f2b4342ef0ea582616b55477717cfd516d46d6383257743656f7cf8b38402ba795a8c9d35a4aa88bec623313dad6ead689d152b54074f183b2fee556f554db343626cea853718f18d386bc8bebb0c07b3c5e96ceb391ffceece88864dbd3be83a613562c5c417a24807d5f9332974f045e79a9ade36994af6cf9bbeeb71d0025fcb4ad50f121cbc2df7cd12ff5a50cddfd9a4bbc6d942d743c8b8fbebe00eeccea3d14e07ff8454fa715da",
   669  		"9054cf9216af66a788d3bf6757b8987e42d4e49b325e728dc645d5e107048245",
   670  		"1dba36d15b1a3bb892155c3ce14f62f40c7f06e496240aa9947d4c26b1b6add01b583a124f6e5e6a8c1abd6bca963045611189c9cbcc982ee4862449316f1f76",
   671  		"e1bdf89b316cf3030ebb9278fe8ba1d46199459f171b3a225e41137755691dfbd041cc4d00744f095f6933d3ffc2dd3351e7a81c10e41fe8f68f41500b877954",
   672  	},
   673  	{
   674  		false,
   675  		sha512.New,
   676  		"97aef935ea33717e8e8644bb8c4789f375c48a945ded08771149e828a22dc866",
   677  		"82580f51070ba1e991d9803f51fd9a6f",
   678  		"212300f93899ff7cb144f20426028b976380a348253bcc3ff42b528cd1972549",
   679  		"369c1220d1c4e2fa7093eea955c133259fca33f0611be5b244a37b06a0e4fd5795e93f43cc11fee03a619c99b2956c5759241cf2e00212faf00c5ee6b3ac73ac",
   680  		"01a1b73d723b0083929bfe8402817da32bf0e210275a2432a7b2f52b5ff927d40123b686c04c4973c5783f3edddc77558d4b679ceb3a99ce521574cd62b1bab3",
   681  		"63cd91c1ebb2caa15f2837df8f35cbb6fe96df2674a136990a5976cbbab63bc1",
   682  		"",
   683  		"a11c607cbb8772a490e9268120d1c41a67941e0d629396a494ae3ca90dfd45b1ad726e23c9a100478b6c9a50be8ebf72dd1f1aa7d77217edcdad2ac275a1b5af",
   684  		"0503fc92a158a6846fcb5e180e7b4c9a46e9c8a1dd55cff8b6d3dec035610e593f14cf6c290168637861fe5c4dee3b9e6d837e779bcbdce2268edaa69aacd653",
   685  		"",
   686  		"c92961a387245d8aa3afa2b95ed1cddec892aa1fde32ee24951efe1ea5987fe7cf2c10229ecde1c48d62860bfa3fca39890d316ba2da1d3c1c24e2ee91738f3c",
   687  		"c42b36968f282b8bd7bc3277ccb9fd23f2fd1f2b3c1d9487583040711d3a21c119d89fbc8e2c3c16c976f1ac8c57a107aa4dbfb1315ececbca8ed0d429f5a128",
   688  		"0e8533f64b60c23a2655827037db218c2fe9ce430fa4ed6ed9be349c4bdc6f40018b42f486fa04288b3b0c62a12812e76e08c76062a510cc60841f165869efaceef90805bdde2fd66c36c38a2ac9c3cb86bfd30406569e0afd245102f2ea2d49e4ee5f69187227a3f0edfbc1259cb6564a2d4e829b3fc3b6996e37546f1d8a16fcd8201d1ad28661bbb0012daad55d5403e833d8a0068d216c879bcebc054df0c9cba14dad4863ee1f75b78bc488662cb0c91ca4fdfce7df5916b4e62580902c601be706dcc7903858e6b9920735bdaa635add5c06080d82265345b49037a32fcf0a7c9ea6069e3369f9b4aa45493efd7318da2ae9b4fc300498248afaad8d49",
   689  		"",
   690  		"bb3e2d10d3cf2158822abd8ba82ed7d773e908d51ae7de16c833cccfe47a3f2b77fe8ebcadbb68900666b8e27d6f7f44e481e61b6ff5c330e7865e30c50bc762",
   691  		"a2ab1e3e87adddeba12949f4faa6746b697ba877e1cefb1d7c69c27fc2a45d03f80dd05fa652a329c8e95009cdb5f643561fd94db89a13d70d9a26ea288039b9",
   692  	},
   693  	{
   694  		false,
   695  		sha512.New,
   696  		"da740cbc36057a8e282ae717fe7dfbb245e9e5d49908a0119c5dbcf0a1f2d5ab",
   697  		"46561ff612217ba3ff91baa06d4b5440",
   698  		"fc227293523ecb5b1e28c87863626627d958acc558a672b148ce19e2abd2dde4",
   699  		"ee0af8405fc2d21b1e28284d18e9100abaa7841e89d92bd8ecc68687c378e667f0ed517ff6eb991088068a2823739f166f0eef1d442a85df094dc7690f0b3246",
   700  		"3d40b40ab107cdb5c0719ee03e31cb32f6d237396303c6842edcb6a56e412d6036dd6185eb4542fc4ecb1dc73927091f948527cb42ef1c20304100d496cbcc10",
   701  		"1d61d4d8a41c3254b92104fd555adae0569d1835bb52657ec7fbba0fe03579c5",
   702  		"b9ed8e35ad018a375b61189c8d365b00507cb1b4510d21cac212356b5bbaa8b2",
   703  		"b2b05a95a8b4c2c91309508725ec6304282184d26e9df6a650c0fc413902c2cc7bb1ef9490ec46504d7a4d9f6758778e145368aebab1c63d162f5a23aa6a6060",
   704  		"b6fd4b1d54d114ae9145dd6241abaa633844382036977ac558ada8cd345863253df1c13a0638f1605ff86b1e3496ea4e97ac53c486c7a8bd760d7566581bc1ec",
   705  		"b7998998eaf9e5d34e64ff7f03de765b31f407899d20535573e670c1b402c26a",
   706  		"1f58ce2f986917745fab282551b17b824f332483d76a32c1345877e3a7973ab180d96433245abe920e7a0d08e230c25cdd46cb14e202b1a4346c1e538c797d0d",
   707  		"eb5bfa832a8b2c7211043465313e7ca1ac3c414c3e9ed4ccc02e2786777e85aecdab88f4b9a6cd62a1e5b2af87990cce57e34c5d5db38f96509a09acb8c1910a",
   708  		"5b70f3e4da95264233efbab155b828d4e231b67cc92757feca407cc9615a660871cb07ad1a2e9a99412feda8ee34dc9c57fa08d3f8225b30d29887d20907d12330fffd14d1697ba0756d37491b0a8814106e46c8677d49d9157109c402ad0c247a2f50cd5d99e538c850b906937a05dbb8888d984bc77f6ca00b0e3bc97b16d6d25814a54aa12143afddd8b2263690565d545f4137e593bb3ca88a37b0aadf79726b95c61906257e6dc47acd5b6b7e4b534243b13c16ad5a0a1163c0099fce43f428cd27c3e6463cf5e9a9621f4b3d0b3d4654316f4707675df39278d5783823049477dcce8c57fdbd576711c91301e9bd6bb0d3e72dc46d480ed8f61fd63811",
   709  		"2089d49d63e0c4df58879d0cb1ba998e5b3d1a7786b785e7cf13ca5ea5e33cfd",
   710  		"30615b8b8d10f81026274dddd95ddd2da1b50de88c02e286693dee4dd3f8e2d4c605e6fa4d4518630b86f6d1f82f24b661aa7d9e3a720f269d87599ebb8ac12f",
   711  		"9e2ef438065edf51cdd7b718a11b1a2ced6e7779140f1e5829edff98b6f61d24e774e027284aa44b942469db9054a056455b05b77ff5c1238c4b8e9e6f51b18e",
   712  	},
   713  	{
   714  		false,
   715  		sha512.New512_224,
   716  		"f7d44498e0d7cfe749833c7bdf3a16809cb467b22df30f7f",
   717  		"b5a7763e69b64ec67eaa3806",
   718  		"",
   719  		"2904c74438042227d60363614f7fafba0c6713e1af8f9e28b50ce7df",
   720  		"99908e0abde34f367fac54655d216a1297e689cd21a14f48b367afb6",
   721  		"8268be026354c36a66c492fbdfe701ff1c41cc960b0431d9",
   722  		"",
   723  		"ec4012d7804cdee678c4ccbd830e070a4dbbd79b8da1f5e637d8f4e8",
   724  		"568a44312a03a6e517a0c4fd303f9f527b057be617a6542526e532a2",
   725  		"",
   726  		"ccb2838b2c04d4ae1620b9c23ec643610cc5b44d8ab7b3b0bd5cf508",
   727  		"50fa697921521bbbf3b767cf227ee5e9f48f59cdf150435ad7c4420c",
   728  		"3685116cd406fdc0dad3fc66ffbc1404db38897d488acc3046bcb13bb23061837c4af3d744d6cfba9c9ecdc9cbfe7fe3398d8d4927d6a7de519203d0787f7618478c0b27af9564839c81801a9e6e49cf64cfb87027bb78183bba9e2873db327c99b149afe6f1e8e65e5026e822fde377",
   729  		"",
   730  		"65f82f4ed47fce03578d32dca707ad892d3c7fa024be7037f3aa3c16",
   731  		"159c00b2b65ac310007e3d0906906315a023a469088836f1b6549d41",
   732  	},
   733  	{
   734  		false,
   735  		sha512.New512_256,
   736  		"eb314860cd71525c8a406511e899d4125a8041ce9dcbe3d496866982ac4f8090",
   737  		"adf81bd208b66e8560d72f076dd4b8e3",
   738  		"683537ae09e0073c39e73be9defa838a6e767b908d84a14645913048ceb6eaf0",
   739  		"3ab613508a2ba85b63f7a2a4cfddcba3fe23be87ad4e40fa5254e7742e8489bc",
   740  		"89301629bc88954597ab966c4aaaba647e86c0ca9ebcc051bf6322e39e08260c",
   741  		"80764cf816353078637ee46b0b657eb9eb67bb307a75fbf81c17ad1b9d2c27c4",
   742  		"a1bdabfcd7447bfc69d8038f3e19453b09b9a1771cd847aeb8a0debe9fe262d1",
   743  		"3542b0e9893fb4eb5184c5b65c110424037e02f7293cf4b3559bfafff0f01c66",
   744  		"9350056d9e5f08286e5fb34b27a74db09ff60a750dedff4a295ce99c18bbce5f",
   745  		"8e2fc1be2b64970bb822c5a0eb4c02563997de76a0c6a13ffbcc8e6cde2230fa",
   746  		"419ee68fe489cf190c740fee49b93dab9d0e7c0b86203cc2dde9bb54b85c5fec",
   747  		"f6116be7581ad7f0815863150437db14a884f8248ccac38534a10e069c8c5400",
   748  		"c39f34a610c96d995c2ab7bdfafc511737e8cf031cb13af70ca1fb3413a74893f90ae22591c534ddd82da64c998d4fc6be2a4df5129890a00376d97308c418387ca481a35062479dd9a788be4565a1f4b4cdefac6045da934e69b3b7131c95f8d14352a65b68c9bd6c6f6f5cbfbbd7fc51d02d61da8bac9cc89c44e04978e511",
   749  		"a9a1a518d95bbac9329f373f8a65957df4d882fe793765db030b07122ff8d549",
   750  		"8851d039d2975c933d743b4ad58b50163cfb09079273924280746182fde68e60",
   751  		"f3bc690d6d87ac8066202fe7ad34c8235e5123cca199caf0749a869f45c52643",
   752  	},
   753  }
   754  
   755  func hexDecode(s string) []byte {
   756  	result, _ := hex.DecodeString(s)
   757  	return result
   758  }
   759  
   760  func TestHmacDRBG(t *testing.T) {
   761  	for i, tt := range hmactests {
   762  		hd, err := NewHmacDrbg(tt.newHash, SECURITY_LEVEL_ONE, tt.gm, hexDecode(tt.entropyInput), hexDecode(tt.nonce), hexDecode(tt.personalizationString))
   763  		if err != nil {
   764  			t.Errorf("NewHmacDrbg case %v failed: %v", i, err)
   765  		}
   766  		if !bytes.Equal(hd.v, hexDecode(tt.v0)) {
   767  			t.Errorf("NewHmacDrbg case %v failed: v0 does not match", i)
   768  		}
   769  		if !bytes.Equal(hd.key, hexDecode(tt.k0)) {
   770  			t.Errorf("NewHmacDrbg case %v failed: k0 does not match", i)
   771  		}
   772  		hd.Reseed(hexDecode(tt.entropyInputReseed), hexDecode(tt.additionalInputReseed))
   773  		if !bytes.Equal(hd.v, hexDecode(tt.v1)) {
   774  			t.Errorf("Reseed case %v failed: v1 does not match", i)
   775  		}
   776  		if !bytes.Equal(hd.key, hexDecode(tt.k1)) {
   777  			t.Errorf("Reseed case %v failed: k1 does not match", i)
   778  		}
   779  		output := make([]byte, len(tt.returnbits1)/2)
   780  		err = hd.Generate(output, hexDecode(tt.additionalInput1))
   781  		if err != nil {
   782  			t.Errorf("Generate case %v failed: %v", i, err)
   783  		}
   784  		if !bytes.Equal(hd.v, hexDecode(tt.v2)) {
   785  			t.Errorf("Generate case %v failed: v2 does not match", i)
   786  		}
   787  		if !bytes.Equal(hd.key, hexDecode(tt.k2)) {
   788  			t.Errorf("Generate case %v failed: k2 does not match", i)
   789  		}
   790  		err = hd.Generate(output, hexDecode(tt.additionalInput2))
   791  		if err != nil {
   792  			t.Errorf("Generate case %v failed: %v", i, err)
   793  		}
   794  		if !bytes.Equal(output, hexDecode(tt.returnbits1)) {
   795  			t.Errorf("Generate case %v failed: returnbits1 does not match, got %x", i, output)
   796  		}
   797  		if !bytes.Equal(hd.v, hexDecode(tt.v3)) {
   798  			t.Errorf("Generate case %v failed: v3 does not match", i)
   799  		}
   800  		if !bytes.Equal(hd.key, hexDecode(tt.k3)) {
   801  			t.Errorf("Generate case %v failed: k3 does not match", i)
   802  		}
   803  	}
   804  }