Warn users when using stream ciphers

This commit is contained in:
Mygod
2020-01-12 23:09:52 +08:00
committed by GitHub
parent 72d7d9217c
commit 80b887d16e
+1
View File
@@ -156,6 +156,7 @@ crypto_init(const char *password, const char *key, const char *method)
break;
}
if (m != -1) {
LOGI("Stream ciphers are insecure, therefore deprecated, and should be almost always avoided.");
cipher_t *cipher = stream_init(password, key, method);
if (cipher == NULL)
return NULL;