|
@@ -648,6 +648,7 @@ cleanup:
|
|
|
|
|
|
// add TAG JAVA compatibility
|
|
|
[*cipherData appendData:*tagData];
|
|
|
+ // --------------------------
|
|
|
|
|
|
// Free
|
|
|
EVP_CIPHER_CTX_free(ctx);
|
|
@@ -718,6 +719,7 @@ cleanup:
|
|
|
|
|
|
// remove TAG JAVA compatibility
|
|
|
cipherData = [cipherData subdataWithRange:NSMakeRange(0, cipherData.length - 16)];
|
|
|
+ // -----------------------------
|
|
|
|
|
|
// Provide the message to be decrypted, and obtain the plaintext output
|
|
|
*plainData = [NSMutableData dataWithLength:([cipherData length])];
|