Is deriving a key in a context equivalent to RFC2898 PBKDF2?
"Timothy J. Miller" <[email protected]>
| Newsgroups | gmane.comp.encryption.cryptlib |
|---|---|
| Message-ID | <[email protected]> |
I.e., if I did: data = <some data encrypted under a PBKDF2 derived key> ctx = cryptCreateContext(CRYPT_UNUSED, CRYPT_ALGO_3DES); s = cryptSetAttribute(ctx, CRYPT_CTXINFO_IV, iv, sizeof(iv)); s = cryptSetAttribute(ctx, CRYPT_CTXINFO_KEYING_ITERATIONS, count); s = cryptSetAttributeString(ctx, CRYPT_CTXINFO_KEYING_SALT, salt, sizeof(salt)); s = cryptSetAttributeString(ctx, CRYPT_CTXINFO_KEYING_VALUE, password, sizeof(password)); s = cryptDecrypt(ctx, data, sizeof(data)); Do I get the right plaintext? :) -- Tim _______________________________________________ Cryptlib mailing list [email protected] via Mail: [email protected] Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/ http://news.gmane.org/gmane.comp.encryption.cryptlib Posts from non-subscribed addresses are blocked to prevent spam, please subscribe in order to post messages.
smime.p7s
(application/x-pkcs7-signature, 3.4 KB) - not displayed