From e3414c7e7c4b42f710e0d426048ba3640f622a10 Mon Sep 17 00:00:00 2001 From: Chris Conlon Date: Wed, 5 Apr 2017 15:20:17 -0600 Subject: [PATCH] JNI: remove toUpperCase() in getCurveSizeFromName(), native handles case --- src/main/java/com/wolfssl/wolfcrypt/Ecc.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/wolfssl/wolfcrypt/Ecc.java b/src/main/java/com/wolfssl/wolfcrypt/Ecc.java index 77ca929..920bbd6 100644 --- a/src/main/java/com/wolfssl/wolfcrypt/Ecc.java +++ b/src/main/java/com/wolfssl/wolfcrypt/Ecc.java @@ -233,7 +233,7 @@ public class Ecc extends NativeStruct { public static int getCurveSizeFromName(String curveName) { /* Ecc object doesn't need to be initialied before call */ - return wc_ecc_get_curve_size_from_name(curveName.toUpperCase()); + return wc_ecc_get_curve_size_from_name(curveName); } public byte[] privateKeyEncodePKCS8() {