diff options
Diffstat (limited to 'src/lib/libcrypto/evp/p5_crpt2.c')
-rw-r--r-- | src/lib/libcrypto/evp/p5_crpt2.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/lib/libcrypto/evp/p5_crpt2.c b/src/lib/libcrypto/evp/p5_crpt2.c index c276cd28b8..ca68ac0d94 100644 --- a/src/lib/libcrypto/evp/p5_crpt2.c +++ b/src/lib/libcrypto/evp/p5_crpt2.c | |||
@@ -166,17 +166,6 @@ PKCS5_PBKDF2_HMAC_SHA1(const char *pass, int passlen, const unsigned char *salt, | |||
166 | EVP_sha1(), keylen, out); | 166 | EVP_sha1(), keylen, out); |
167 | } | 167 | } |
168 | 168 | ||
169 | #ifdef DO_TEST | ||
170 | main() | ||
171 | { | ||
172 | unsigned char out[4]; | ||
173 | unsigned char salt[] = {0x12, 0x34, 0x56, 0x78}; | ||
174 | PKCS5_PBKDF2_HMAC_SHA1("password", -1, salt, 4, 5, 4, out); | ||
175 | fprintf(stderr, "Out %02X %02X %02X %02X\n", | ||
176 | out[0], out[1], out[2], out[3]); | ||
177 | } | ||
178 | #endif | ||
179 | |||
180 | /* Now the key derivation function itself. This is a bit evil because | 169 | /* Now the key derivation function itself. This is a bit evil because |
181 | * it has to check the ASN1 parameters are valid: and there are quite a | 170 | * it has to check the ASN1 parameters are valid: and there are quite a |
182 | * few of them... | 171 | * few of them... |