iwasakims commented on code in PR #3019:
URL: https://github.com/apache/hadoop/pull/3019#discussion_r1708752202
##########
hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/crypto/OpensslCipher.c:
##########
@@ -554,3 +557,24 @@ JNIEXPORT jstring JNICALL
Java_org_apache_hadoop_crypto_OpensslCipher_getLibrary
}
#endif
}
+
+JNIEXPORT jboolean JNICALL
Java_org_apache_hadoop_crypto_OpensslCipher_isSupportedSuite
+ (JNIEnv *env, jclass clazz, jint alg, jint padding)
+{
+ if (padding != NOPADDING) {
+ return JNI_FALSE;
+ }
+
+ if (alg == AES_CTR && (dlsym_EVP_aes_256_ctr != NULL &&
dlsym_EVP_aes_128_ctr != NULL)) {
Review Comment:
Yes. Both is loaded in `loadAesCtr` .
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]