Commit Graph

176 Commits (master)

Author SHA1 Message Date
Moisés Guimarães 762ae0a89e adds WOLFSSL_KEY_GEN ifdef 2017-03-24 17:13:04 -03:00
Moisés Guimarães 6b55b34ec6 adds wc_RsaSetRNG() and fixes Rng initialzation. 2017-03-24 17:13:04 -03:00
Moisés Guimarães 64ff584b89 adds WOLFSSL_* defines in #ifdefs 2017-03-24 17:13:04 -03:00
Moisés Guimarães a011b1eded adds #ifdef HAVE_FIPS 2017-03-24 17:13:04 -03:00
Moisés Guimarães 9eec7a6c8e fixes NO_DES3 ifdefs 2017-03-24 17:13:04 -03:00
Moisés Guimarães 19d68f49ca Merge pull request #46 from cconlon/jni_ecpriv
JNI: wc_ecc_import_private_key() may have null pub
2017-03-24 17:12:51 -03:00
Moisés Guimarães e89f665b28 Merge pull request #43 from cconlon/jni_rsa
JNI: wrap additional RSA functions
2017-03-24 17:12:08 -03:00
Chris Conlon b52efbac74 JNI: wc_ecc_import_private_key() may have null pub 2017-03-24 12:43:23 -06:00
Moisés Guimarães 2cd9592cf4 groups hash functions in a single java implementation 2017-03-20 08:28:56 -03:00
Moisés Guimarães 20deb4ba6d fixes rsa jbyteArray access 2017-03-20 03:38:55 -03:00
Moisés Guimarães 7239682fb2 fixes sha jbyteArray access 2017-03-20 03:28:01 -03:00
Moisés Guimarães 5c13c043f7 fixes rng jbyteArray access 2017-03-20 03:06:48 -03:00
Moisés Guimarães 4713668c9b fixes md5 jbyteArray access 2017-03-20 02:55:59 -03:00
Moisés Guimarães c0fa2f2a7f fixes hmac jbyteArray access 2017-03-20 02:52:45 -03:00
Moisés Guimarães 1a61f1cafe fixes ecc jbyteArray access 2017-03-20 02:46:11 -03:00
Moisés Guimarães 052b9dc2a5 fixes dh jbyteArray access 2017-03-20 02:31:16 -03:00
Moisés Guimarães 2419ff6069 fixes des3 jbyteArray access 2017-03-20 02:20:28 -03:00
Moisés Guimarães 79372435b2 adds LogHex() offset param 2017-03-20 02:14:28 -03:00
Moisés Guimarães 330dbc73f5 fixes aes jbyteArray access 2017-03-20 01:53:58 -03:00
Moisés Guimarães 4c6b2f1720 Merge pull request #40 from cconlon/jni_rng
JNI: non-FIPS wrapper for RNG
2017-03-18 02:51:47 -03:00
Moisés Guimarães f92e03d29b Merge pull request #39 from cconlon/jni_digest
JNI: non-FIPS wrappers for MD5 and SHA/256/384/512
2017-03-18 02:48:14 -03:00
Moisés Guimarães 24b062c7ca Merge pull request #44 from cconlon/jni_eccfix
JNI: remove EccPublicKeyDecode from WOLFSSL_CERT_EXT guard
2017-03-17 22:11:36 -03:00
Moisés Guimarães 077d307878 Merge pull request #41 from cconlon/jni_fipsenabled
JNI: add isFIPSEnabled() API
2017-03-17 22:09:44 -03:00
Chris Conlon e236b0ccb4 JNI: remove EccPublicKeyDecode from WOLFSSL_CERT_EXT guard 2017-03-17 15:59:45 -06:00
Chris Conlon f08a0869ca JNI: wrap additional RSA functions 2017-03-17 15:56:10 -06:00
Chris Conlon cd38f3a2be JNI: fix Sha/256/384/512 ByteBuffer use, cleanup 2017-03-17 15:45:09 -06:00
Chris Conlon 8310887437 JNI: fix Md5 ByteBuffer use, cleanup 2017-03-17 15:44:07 -06:00
Chris Conlon f274fdce55 JNI: Rng changes from code review 2017-03-17 14:17:29 -06:00
Chris Conlon be3bdf66d4 JNI: switch Fips.isFIPSEnabled to Fips.enabled 2017-03-17 13:24:17 -06:00
Moisés Guimarães 718370dc8a adds RSA jni wrappers 2017-03-16 19:37:45 -03:00
Chris Conlon d11ab33ae7 JNI: add isFIPSEnabled() API 2017-03-16 13:31:08 -06:00
Chris Conlon 9e292725f7 JNI: non-FIPS wrapper for RNG 2017-03-16 13:21:30 -06:00
Chris Conlon 43dfb96ab7 JNI: non-FIPS wrappers for MD5 and SHA/256/384/512 2017-03-16 13:09:16 -06:00
Chris Conlon 85af1fffbf Merge pull request #37 from moisesguimaraes/dh-jni
adds DH jni wrappers
2017-03-15 18:12:31 -06:00
Moisés Guimarães ee665c0a2e adds DH jni wrappers 2017-03-15 19:43:13 -03:00
Chris Conlon 72540c3ff4 Merge pull request #36 from moisesguimaraes/aes-jni
adds aes wrappers
2017-03-06 09:41:40 -07:00
Moisés Guimarães e891619098 adds des3 wrappers 2017-03-03 16:45:55 -07:00
Moisés Guimarães efc7466c67 adds aes wrappers 2017-03-03 16:24:50 -07:00
Moisés Guimarães 7c3172aa67 adds hmac wrappers 2017-03-02 15:46:19 -07:00
Moisés Guimarães 0c0c2c936e fixes ifdefs 2017-03-01 15:55:57 -07:00
Moisés Guimarães a2c5340b74 adds private key export/import 2017-03-01 15:47:36 -07:00
Moisés Guimarães 23eb7da8a5 adds key export and encode 2017-03-01 15:08:04 -07:00
Moisés Guimarães b612acb5da error handling improvements. 2017-02-28 16:17:26 -07:00
Moisés Guimarães 986df80f71 ecc jni wrapper 2017-02-28 14:07:25 -07:00
Moisés Guimarães 8d2b935fe2 restore <stdio.h> place. 2016-03-24 23:06:00 -03:00
Moisés Guimarães 4592dbc613 revert __ANDROID__ check removal. 2016-03-24 22:56:05 -03:00
Moisés Guimarães d40171317f Adds <wolfssl/options.h> to Android platform.
Reorders includes to avoid side effects in wolfssl's headers.
2016-03-21 14:42:25 -03:00
Moisés Guimarães a0b9f1da93 fix stdio.h warnings 2016-03-18 22:12:28 -03:00
Moisés Guimarães 3ed3769d1c fixes linux crash; GetLongArrayRegion() expects a jlong, word32 wasn't big enough on linux. Variable types changed to jlong instead. 2016-03-13 20:18:24 -03:00
Moisés Guimarães 6f2ac81712 fixes rsa memory error: The FP_MAX_BITS constant was different in the wolfssl lib (8192) and in the wolfcrypt-jni (4096). The order of the includes affected the constant. 2016-03-04 18:15:16 -03:00
Moisés Guimarães 73311405fd adds logging control at java level. 2016-03-04 15:49:03 -03:00
Moisés Guimarães 32616adf5d updates copyright. 2016-03-04 15:46:10 -03:00
Moisés Guimarães dd35755fd1 improves buffer loggin 2016-02-29 19:54:33 -03:00
Moisés Guimarães f0ba6fdbb5 fixes typo in RsaPublicEncrypt_fips() glue code and adds unit tests 2016-02-18 14:10:00 -03:00
Moisés Guimarães 156d72a69e adds byte[] versions of Asn, Rsa, Dh and Md5;
improves byte[] release usage, copying buffer only when necessary.
2015-12-21 22:49:38 -03:00
Moisés Guimarães daa71176a3 adds byte[] versions of ecc; 2015-12-21 20:05:58 -03:00
Moisés Guimarães 75a9b8f59b adds byte[] versions of AesGcm, Des3, Rng, Hmac and Sha[1, 256, 384, 512]; 2015-12-19 23:38:15 -03:00
Moisés Guimarães 18ace36ee2 adds missing init and free methods for ecc; 2015-11-09 19:17:52 -03:00
Moisés Guimarães 296f43a7ee adds new API for Aes methods using byte[] instead of ByteBuffer; 2015-11-02 16:42:43 -03:00
Moisés Guimarães f95cd413be adds ecc_import_x963() to Java API 2015-10-26 21:10:29 -03:00
Moisés Guimarães da8961fe07 fixes log warnings. 2015-10-09 14:40:38 -03:00
John Safranek b6e000284f added GPL headers to all android non-generated source and header files 2015-06-22 15:16:42 -06:00
Moisés Guimarães 31a63ff905 adds wolfCrypt_SetStatus_fips wrapper. 2015-05-13 10:42:51 -03:00
Moisés Guimarães 53f364cb2f adds RSA CAVP SigGen tests. 2015-04-30 20:20:07 -03:00
Moisés Guimarães 33ebb4cddd adds Rsa.exportRawPublicKey(); 2015-04-30 19:02:42 -03:00
Moisés Guimarães 59efcc109d adds Rsa.makeKey(); 2015-04-30 18:21:46 -03:00
Chris Conlon eebbd3ad61 Android: add WolfCryptError class to wolfcrypt-jni, wraps error-crypt.h 2015-04-16 10:12:16 -06:00
Moisés Guimarães 78079089d4 adds wolfCrypt_GetCoreHash_fips wrapper and renames fips methods to reserved names. 2015-04-10 10:56:04 -03:00
Moisés Guimarães b0ba01ef9a adds error callback to FIPS with jni wrappers. 2015-04-10 10:26:08 -03:00
Chris Conlon fa454e4d15 leave off options.h include for Android builds 2015-04-06 17:12:50 -06:00
Moisés Guimarães cf9eeb4e28 adds ecc with fips wrappers and constructor tests; 2015-04-05 20:24:06 -03:00
Moisés Guimarães 2deb74720c adds DH with fips wrappers and constructor tests; 2015-04-05 18:47:21 -03:00
Moisés Guimarães 34754a6bc0 fixes Md5 native constructor. 2015-04-05 17:17:42 -03:00
Moisés Guimarães a3674e6aaa adds Md5 with fips wrappers and related tests (not the fips ones); 2015-04-05 17:02:58 -03:00
Moisés Guimarães 7bcd2914e6 adds wolfCrypt_GetStatus_fips ini implementation and test. 2015-04-03 14:38:54 -03:00
Chris Conlon 018d68585b move wolfcrypt-jni back into directory of same name 2015-04-01 14:56:40 -06:00