PBKDF2-SHA1.txt at [216b8859b8]

File tests/test_vectors/KDF/PBKDF2-SHA1.txt artifact 732437c2e8 part of check-in 216b8859b8


# PBKDF2
# From RFC 6070 - PBKDF2 with HMAC SHA-1

# Test Case 1
Hash = SHA1
Plen = 8
Slen = 4
P = "password"
S = "salt"
c = 1
dkLen = 20
DK = 0c60c80f961f0e71f3a9b524af6012062fe037a6

# Test Case 2
Hash = SHA1
Plen = 8
Slen = 4
P = "password"
S = "salt"
c = 2
dkLen = 20
DK = ea6c014dc72d6f8ccd1ed92ace1d41f0d8de8957

# Test Case 3
Hash = SHA1
Plen = 8
Slen = 4
P = "password"
S = "salt"
c = 4096
dkLen = 20
DK = 4b007901b765489abead49d926f721d065a429c1

# Test Case 4
Hash = SHA1
Plen = 8
Slen = 4
P = "password"
S = "salt"
c = 16777216
dkLen = 20
DK = eefe3d61cd4da4e4e9945b3d6ba2158c2634e984

# Test Case 5
Hash = SHA1
Plen = 24
Slen = 36
P = "passwordPASSWORDpassword"
S = "saltSALTsaltSALTsaltSALTsaltSALTsalt"
c = 4096
dkLen = 25
DK = 3d2eec4fe41c849b80c8d83662c0e44a8b291a964cf2f07038

# Test Case 6
Hash = SHA1
Plen = 9
Slen = 5
P = "pass\0word"
S = "sa\0lt"
c = 4096
dkLen = 16
DK = 56fa6aa75548099dcc37d7f03425e0c3