mirror of https://github.com/aria2/aria2
clang-format-6.0
parent
eb30bb1a52
commit
67d07534ea
|
@ -336,8 +336,7 @@ static struct pbkdf2 {
|
||||||
size_t iterations;
|
size_t iterations;
|
||||||
unsigned char key[32];
|
unsigned char key[32];
|
||||||
size_t key_len;
|
size_t key_len;
|
||||||
} pbkdf2s[] = {
|
} pbkdf2s[] = {{"password",
|
||||||
{"password",
|
|
||||||
8,
|
8,
|
||||||
"salt",
|
"salt",
|
||||||
4,
|
4,
|
||||||
|
@ -374,9 +373,8 @@ static struct pbkdf2 {
|
||||||
"password", 8,
|
"password", 8,
|
||||||
"salt", 4,
|
"salt", 4,
|
||||||
16777216,
|
16777216,
|
||||||
{ 0xee, 0xfe, 0x3d, 0x61, 0xcd, 0x4d, 0xa4, 0xe4, 0xe9, 0x94, 0x5b, 0x3d,
|
{ 0xee, 0xfe, 0x3d, 0x61, 0xcd, 0x4d, 0xa4, 0xe4, 0xe9, 0x94,
|
||||||
0x6b, 0xa2, 0x15, 0x8c, 0x26, 0x34, 0xe9, 0x84 },
|
0x5b, 0x3d, 0x6b, 0xa2, 0x15, 0x8c, 0x26, 0x34, 0xe9, 0x84 }, 20,
|
||||||
20,
|
|
||||||
},
|
},
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
|
@ -395,8 +393,8 @@ static struct pbkdf2 {
|
||||||
"sa\0lt",
|
"sa\0lt",
|
||||||
5,
|
5,
|
||||||
4096,
|
4096,
|
||||||
{0x56, 0xfa, 0x6a, 0xa7, 0x55, 0x48, 0x09, 0x9d, 0xcc, 0x37, 0xd7, 0xf0,
|
{0x56, 0xfa, 0x6a, 0xa7, 0x55, 0x48, 0x09, 0x9d, 0xcc, 0x37,
|
||||||
0x34, 0x25, 0xe0, 0xc3},
|
0xd7, 0xf0, 0x34, 0x25, 0xe0, 0xc3},
|
||||||
16}};
|
16}};
|
||||||
|
|
||||||
void SecurityTest::testPBKDF2()
|
void SecurityTest::testPBKDF2()
|
||||||
|
|
Loading…
Reference in New Issue