Skip to content

Commit ac27194

Browse files
committed
add empty password pbkdf2 test
1 parent b073120 commit ac27194

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pbkdf2_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,18 @@ var sha1TestVectors = []testVector{
7575

7676
// Test vectors from
7777
// http://stackoverflow.com/questions/5130513/pbkdf2-hmac-sha2-test-vectors
78+
// except the first one, which is not copied from elsewhere.
7879
var sha256TestVectors = []testVector{
80+
{
81+
"",
82+
"salt",
83+
1,
84+
[]byte{
85+
0xf1, 0x35, 0xc2, 0x79, 0x93, 0xba, 0xf9, 0x87,
86+
0x73, 0xc5, 0xcd, 0xb4, 0x0a, 0x57, 0x06, 0xce,
87+
0x6a, 0x34, 0x5c, 0xde, 0x61,
88+
},
89+
},
7990
{
8091
"password",
8192
"salt",

0 commit comments

Comments
 (0)