aboutsummaryrefslogtreecommitdiffstats
path: root/spec/util_hashes_spec.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-04-21 00:59:36 +0200
committerKim Alvefur <zash@zash.se>2019-04-21 00:59:36 +0200
commit65ca6b82048f1b260291ea9d920d3b117a2603b4 (patch)
tree99984ba46b2b92a4ed36214f2301497961a62d1f /spec/util_hashes_spec.lua
parent265d5cbec07c6297c811b72cf5416acb446869da (diff)
downloadprosody-65ca6b82048f1b260291ea9d920d3b117a2603b4.tar.gz
prosody-65ca6b82048f1b260291ea9d920d3b117a2603b4.zip
Backed out changeset 61bc5c52c941
luaL_buffinitsize is only available in Lua 5.2+
Diffstat (limited to 'spec/util_hashes_spec.lua')
-rw-r--r--spec/util_hashes_spec.lua16
1 files changed, 0 insertions, 16 deletions
diff --git a/spec/util_hashes_spec.lua b/spec/util_hashes_spec.lua
index 9099145a..1e6187bb 100644
--- a/spec/util_hashes_spec.lua
+++ b/spec/util_hashes_spec.lua
@@ -33,21 +33,5 @@ describe("PBKDF2-SHA1", function ()
local DK = "eefe3d61cd4da4e4e9945b3d6ba2158c2634e984";
assert.equal(DK, hex.to(hashes.scram_Hi_sha1(P, S, c)));
end);
- it("test vector 5", function ()
- local P = "passwordPASSWORDpassword"
- local S = "saltSALTsaltSALTsaltSALTsaltSALTsalt"
- local c = 4096
- local dkLen = 25
- local DK = "3d2eec4fe41c849b80c8d83662c0e44a8b291a964cf2f07038"
- assert.equal(DK, hex.to(hashes.scram_Hi_sha1(P, S, c, dkLen)));
- end);
- it("works", function ()
- local P = "pass\0word"
- local S = "sa\0lt"
- local c = 4096
- local dkLen = 16
- local DK = "56fa6aa75548099dcc37d7f03425e0c3"
- assert.equal(DK, hex.to(hashes.scram_Hi_sha1(P, S, c, dkLen)));
- end);
end);