commit
81e1942e00
13
README.md
13
README.md
|
@ -152,6 +152,19 @@ that requires JCE provider JAR's to be authenticated. Please see
|
||||||
### Revision History
|
### Revision History
|
||||||
---------
|
---------
|
||||||
|
|
||||||
|
#### wolfCrypt JNI Release 1.3.0 (05/13/2022)
|
||||||
|
|
||||||
|
Release 1.3.0 of wolfCrypt JNI has bug fixes and new features including:
|
||||||
|
|
||||||
|
- Run FIPS tests on `ant test` when linked against a wolfCrypt FIPS library (PR 24)
|
||||||
|
- Wrap native AesGcmSetExtIV\_fips() API (PR 24)
|
||||||
|
- Fix releaseByteArray() usage in Fips.RsaSSL\_Sign() (PR 24)
|
||||||
|
- Fix AES-GCM FIPS test cases (PR 24)
|
||||||
|
- Keep existing JAVA\_HOME in makefiles if already set (PR 25)
|
||||||
|
- Add JCE support for MessageDigestSpi.engineGetDigestLength() (PR 27)
|
||||||
|
- Update junit to 4.13.2 (PR 28)
|
||||||
|
- Update missing Javadocs, fixes warnings on newer Java versions (PR 29)
|
||||||
|
|
||||||
#### wolfCrypt JNI Release 1.2.0 (11/16/2021)
|
#### wolfCrypt JNI Release 1.2.0 (11/16/2021)
|
||||||
|
|
||||||
Release 1.2.0 of wolfCrypt JNI has bug fixes and new features including:
|
Release 1.2.0 of wolfCrypt JNI has bug fixes and new features including:
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<!-- versioning/manifest properties -->
|
<!-- versioning/manifest properties -->
|
||||||
<property name="implementation.vendor" value="wolfSSL Inc." />
|
<property name="implementation.vendor" value="wolfSSL Inc." />
|
||||||
<property name="implementation.title" value="wolfCrypt JNI" />
|
<property name="implementation.title" value="wolfCrypt JNI" />
|
||||||
<property name="implementation.version" value="1.2" />
|
<property name="implementation.version" value="1.3" />
|
||||||
|
|
||||||
<!-- set properties for this build -->
|
<!-- set properties for this build -->
|
||||||
<property name="src.dir" value="src/main/java/" />
|
<property name="src.dir" value="src/main/java/" />
|
||||||
|
|
|
@ -33,6 +33,9 @@ public class Asn extends WolfObject {
|
||||||
/** Maximum encoded signature size */
|
/** Maximum encoded signature size */
|
||||||
public static final int MAX_ENCODED_SIG_SIZE = 512;
|
public static final int MAX_ENCODED_SIG_SIZE = 512;
|
||||||
|
|
||||||
|
/** Default Asn constructor */
|
||||||
|
public Asn() { }
|
||||||
|
|
||||||
/** ASN.1 encode message digest, before it is signed
|
/** ASN.1 encode message digest, before it is signed
|
||||||
*
|
*
|
||||||
* @param encoded output buffer to place encoded data
|
* @param encoded output buffer to place encoded data
|
||||||
|
|
|
@ -34,6 +34,9 @@ public abstract class BlockCipher extends NativeStruct {
|
||||||
|
|
||||||
private int opmode;
|
private int opmode;
|
||||||
|
|
||||||
|
/** Default BlockCipher constructor */
|
||||||
|
public BlockCipher() { }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set block cipher key, IV, and mode
|
* Set block cipher key, IV, and mode
|
||||||
*
|
*
|
||||||
|
|
|
@ -65,5 +65,8 @@ public class FeatureDetect {
|
||||||
static {
|
static {
|
||||||
System.loadLibrary("wolfcryptjni");
|
System.loadLibrary("wolfcryptjni");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Default FeatureDetect constructor */
|
||||||
|
public FeatureDetect() { }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1224,9 +1224,10 @@ public class Fips extends WolfObject {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return The current status of the module. A return code of 0 means the
|
* Returns the current status of the wolfCrypt FIPS module.
|
||||||
* module is in a state without errors. Any other return code is the
|
* @return A return code of 0 means the module is in a state without
|
||||||
* specific error state of the module.
|
* errors. Any other return code is the specific error state of
|
||||||
|
* the module.
|
||||||
*/
|
*/
|
||||||
public static native int wolfCrypt_GetStatus_fips();
|
public static native int wolfCrypt_GetStatus_fips();
|
||||||
|
|
||||||
|
|
|
@ -37,5 +37,8 @@ public class Logging extends WolfObject {
|
||||||
* Turn off native wolfSSL debug logging
|
* Turn off native wolfSSL debug logging
|
||||||
*/
|
*/
|
||||||
public static native void wolfSSL_Debugging_OFF();
|
public static native void wolfSSL_Debugging_OFF();
|
||||||
|
|
||||||
|
/** Default Logging constructor */
|
||||||
|
public Logging() { }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,9 @@ public abstract class MessageDigest extends NativeStruct {
|
||||||
|
|
||||||
private WolfCryptState state = WolfCryptState.UNINITIALIZED;
|
private WolfCryptState state = WolfCryptState.UNINITIALIZED;
|
||||||
|
|
||||||
|
/** Default MessageDigest constructor */
|
||||||
|
public MessageDigest() { }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialize native structure
|
* Initialize native structure
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -46,6 +46,9 @@ public class Rng extends NativeStruct {
|
||||||
int length);
|
int length);
|
||||||
private native void rngGenerateBlock(byte[] buffer, int offset, int length);
|
private native void rngGenerateBlock(byte[] buffer, int offset, int length);
|
||||||
|
|
||||||
|
/** Default Rng constructor */
|
||||||
|
public Rng() { }
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void releaseNativeStruct() {
|
public void releaseNativeStruct() {
|
||||||
free();
|
free();
|
||||||
|
|
|
@ -135,8 +135,8 @@ public class WolfCryptKeyPairGeneratorTest {
|
||||||
if (size > 0) {
|
if (size > 0) {
|
||||||
enabledCurves.add(supportedCurves[i]);
|
enabledCurves.add(supportedCurves[i]);
|
||||||
|
|
||||||
if (!enabledKeySizes.contains(new Integer(size))) {
|
if (!enabledKeySizes.contains(Integer.valueOf(size))) {
|
||||||
enabledKeySizes.add(new Integer(size));
|
enabledKeySizes.add(Integer.valueOf(size));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue