فهرست منبع

encryptAsymmetricString

Marino Faggiana 7 سال پیش
والد
کامیت
8b4d19a7fb
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      iOSClient/Security/NCEndToEndEncryption.m

+ 1 - 1
iOSClient/Security/NCEndToEndEncryption.m

@@ -577,7 +577,7 @@ cleanup:
 
 - (NSData *)encryptAsymmetricString:(NSString *)plain publicKey:(NSString *)publicKey privateKey:(NSString *)privateKey
 {
-    ENGINE *eng = NULL;
+    ENGINE *eng = ENGINE_get_default_RSA();
     EVP_PKEY *key = NULL;
     int status = 0;