From c01f16cbacb45682547e4712bdae854c56604e61 Mon Sep 17 00:00:00 2001 From: J08nY Date: Sat, 23 Mar 2024 13:01:03 +0100 Subject: Fix applet building. --- docs/DEVELOPING.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/DEVELOPING.md b/docs/DEVELOPING.md index 863361b..a5eda6c 100644 --- a/docs/DEVELOPING.md +++ b/docs/DEVELOPING.md @@ -6,9 +6,10 @@ developing the ECTester tool itself. ## Developing ECTester standalone modules - Create Java classes inheriting Native{ECPrivateKey,ECPublicKey,KeyPairGeneratorSpi,KeyAgreementSpi,SignatureSpi}. - - Add those classes to `build-standalone.xml` header generation. - - Generate `native.h` headers for new classes using `build-standalone.xml`. - - Create module file (C/C++) in `cz/crcs/ectester/standalone/libs/jni`, and add it to the Makefile. + - Run `gradle :standalone:compileJava` to compile the classes and obtain a native header file. It will be in + `standalone/build/generated/sources/headers/java/main`. Ideally, copy the generated function declarations into + the `native.h` file found in the `standalone/src/java/resources/cz/crcs/ectester/standalone/libs/jni` directory. + - Create module file (C/C++) in `standalone/src/java/resources/cz/crcs/ectester/standalone/libs/jni`, and add it to the Makefile. - Implement the required JNI functions, look at existing modules for what is expected, what the contract of the function is, use the `native_timing_*` functions around points that should be measurable. - Compile and run ECTester using your new module. \ No newline at end of file -- cgit v1.2.3-70-g09d2