fixes log warnings.
parent
8514102690
commit
da8961fe07
|
@ -1523,7 +1523,7 @@ JNIEXPORT jint JNICALL Java_com_wolfssl_wolfcrypt_Fips_ecc_1shared_1secret(
|
|||
LogStr("ecc_shared_secret(priv=%p, pub=%p, out, outLen) = %d\n", priv, pub,
|
||||
ret);
|
||||
LogStr("out:\n");
|
||||
LogHex(out, outlen);
|
||||
LogHex(out, tmpOutLen);
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -1553,7 +1553,7 @@ JNIEXPORT jint JNICALL Java_com_wolfssl_wolfcrypt_Fips_ecc_1export_1x963(
|
|||
|
||||
LogStr("ecc_export_x963(key=%p, out, outLen) = %d\n", key, ret);
|
||||
LogStr("out:\n");
|
||||
LogHex(out, outLen);
|
||||
LogHex(out, tmpOutLen);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ JNIEXPORT jlong JNICALL Java_com_wolfssl_wolfcrypt_Rsa_mallocNativeStruct(
|
|||
if (!ret)
|
||||
throwOutOfMemoryException(env, "Failed to allocate Rsa object");
|
||||
|
||||
LogStr("new Rsa() = %p\n", ret);
|
||||
LogStr("new Rsa() = %p\n", (void*)ret);
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -109,6 +109,8 @@ JNIEXPORT void JNICALL Java_com_wolfssl_wolfcrypt_Rsa_makeKey(
|
|||
RsaKey* key = (RsaKey*) getNativeStruct(env, this);
|
||||
RNG* rng = (RNG*) getNativeStruct(env, rng_object);
|
||||
|
||||
LogStr("rsa.makeKey(%d, %lu)\n", size, e);
|
||||
|
||||
if (!key || !rng)
|
||||
throwWolfCryptException(env, "Bad method argument provided");
|
||||
else if ((ret = MakeRsaKey(key, size, e, rng)) != 0)
|
||||
|
|
Loading…
Reference in New Issue