aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJ08nY2024-03-23 13:01:03 +0100
committerJ08nY2024-03-25 14:57:34 +0100
commitc01f16cbacb45682547e4712bdae854c56604e61 (patch)
tree5bfe030c2b6333dde0ee34b444d975d02bbc5659 /docs
parent73af477a8774e1ede5dd8de6491eb353dc0b12bd (diff)
downloadECTester-c01f16cbacb45682547e4712bdae854c56604e61.tar.gz
ECTester-c01f16cbacb45682547e4712bdae854c56604e61.tar.zst
ECTester-c01f16cbacb45682547e4712bdae854c56604e61.zip
Diffstat (limited to 'docs')
-rw-r--r--docs/DEVELOPING.md7
1 files changed, 4 insertions, 3 deletions
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