Skip to content

Commit

Permalink
PR Feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoritzinsky committed Feb 18, 2021
1 parent ed5330b commit d6decdd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@ int32_t CryptoNative_EvpCipherSetGcmTag(CipherCtx* ctx, uint8_t* tag, int32_t ta
(*env)->SetByteArrayRegion(env, inDataBytes, 0, tagLength, (jbyte*)tag);
jbyteArray outDataBytes = (jbyteArray)(*env)->CallObjectMethod(env, ctx->cipher, g_cipherUpdateMethod, inDataBytes);
(*env)->DeleteLocalRef(env, outDataBytes);
return SUCCESS;
(*env)->DeleteLocalRef(env, inDataBytes);
return CheckJNIExceptions(env) ? FAIL : SUCCESS;
}

int32_t CryptoNative_EvpCipherSetCcmTag(CipherCtx* ctx, uint8_t* tag, int32_t tagLength)
Expand Down

0 comments on commit d6decdd

Please sign in to comment.