Browse Source
Warn users when using stream ciphers
pull/2581/head
Mygod
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
src/crypto.c
|
@ -156,6 +156,7 @@ crypto_init(const char *password, const char *key, const char *method) |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
if (m != -1) { |
|
|
if (m != -1) { |
|
|
|
|
|
LOGI("Stream ciphers are insecure, therefore deprecated, and should be almost always avoided."); |
|
|
cipher_t *cipher = stream_init(password, key, method); |
|
|
cipher_t *cipher = stream_init(password, key, method); |
|
|
if (cipher == NULL) |
|
|
if (cipher == NULL) |
|
|
return NULL; |
|
|
return NULL; |
|
|