On 2016-12-23 13:28:33 +0100, RedTeam Pentesting GmbH wrote:

 > res = apr_crypto_passphrase(&key, &ivSize, passphrase,
 > strlen(passphrase), (unsigned char *) (&salt), sizeof(apr_uuid_t),
 > *cipher, APR_MODE_CBC, 1, 4096, f, r->pool);

CBC. Again.

The earliest mention of CFB which I know is dated 1989.
The earliest mention of CTR which I know is dated 1990-ies.

But there still are people who use CBC...

Please, PLEASE, PPLEEEEAASSSE don't use it. Instead, use either
Blowfish in CFB mode or at least Rijndael (AES) in CTR (or GCM)
mode - both are available, for example, in the OpenSSL library.


-- 
Alexey V. Vissarionov aka Gremlin from Kremlin
GPG: 8832FE9FA791F7968AC96E4E909DAC45EF3B1FA8

Attachment: pgpt5NEaPky3h.pgp
Description: PGP signature

_______________________________________________
Sent through the Full Disclosure mailing list
https://nmap.org/mailman/listinfo/fulldisclosure
Web Archives & RSS: http://seclists.org/fulldisclosure/

Reply via email to