134 #define P11_ENABLE_C_VERIFYINIT 135 #define P11_ENABLE_C_VERIFY 136 #define P11_ENABLE_C_VERIFYUPDATE 137 #define P11_ENABLE_C_VERIFYFINAL 138 #define P11_ENABLE_C_VERIFYRECOVERINIT 139 #define P11_ENABLE_C_VERIFYRECOVER 140 #undef P11_ENABLE_C_DIGESTENCRYPTUPDATE 141 #undef P11_ENABLE_C_DECRYPTDIGESTUPDATE 142 #undef P11_ENABLE_C_SIGNENCRYPTUPDATE 143 #undef P11_ENABLE_C_DECRYPTVERIFYUPDATE 144 #define P11_ENABLE_C_GENERATEKEY 145 #define P11_ENABLE_C_GENERATEKEYPAIR 146 #define P11_ENABLE_C_WRAPKEY 147 #define P11_ENABLE_C_UNWRAPKEY 148 #define P11_ENABLE_C_DERIVEKEY 149 #define P11_ENABLE_C_SEEDRANDOM 150 #define P11_ENABLE_C_GENERATERANDOM 151 #undef P11_ENABLE_C_GETFUNCTIONSTATUS 152 #undef P11_ENABLE_C_CANCELFUNCTION 153 #undef P11_ENABLE_C_WAITFORSLOTEVENT 154 155 /* include the platform dependent part of the header */ 156 #include "p11_md.h" 157 158 #include "pkcs11.h" 159 #include "pkcs-11v2-20a3.h" 160 #include <jni.h> 161 #include <jni_util.h> 162 #include <stdarg.h> 163 164 #define MAX_STACK_BUFFER_LEN (4 * 1024) 165 #define MAX_HEAP_BUFFER_LEN (64 * 1024) 166 167 #define MAX_DIGEST_LEN (64) 168 169 #ifndef min 170 #define min(a, b) (((a) < (b)) ? (a) : (b)) 171 #endif 172 173 #define ckBBoolToJBoolean(x) ((x == TRUE) ? JNI_TRUE : JNI_FALSE); | 134 #define P11_ENABLE_C_VERIFYINIT 135 #define P11_ENABLE_C_VERIFY 136 #define P11_ENABLE_C_VERIFYUPDATE 137 #define P11_ENABLE_C_VERIFYFINAL 138 #define P11_ENABLE_C_VERIFYRECOVERINIT 139 #define P11_ENABLE_C_VERIFYRECOVER 140 #undef P11_ENABLE_C_DIGESTENCRYPTUPDATE 141 #undef P11_ENABLE_C_DECRYPTDIGESTUPDATE 142 #undef P11_ENABLE_C_SIGNENCRYPTUPDATE 143 #undef P11_ENABLE_C_DECRYPTVERIFYUPDATE 144 #define P11_ENABLE_C_GENERATEKEY 145 #define P11_ENABLE_C_GENERATEKEYPAIR 146 #define P11_ENABLE_C_WRAPKEY 147 #define P11_ENABLE_C_UNWRAPKEY 148 #define P11_ENABLE_C_DERIVEKEY 149 #define P11_ENABLE_C_SEEDRANDOM 150 #define P11_ENABLE_C_GENERATERANDOM 151 #undef P11_ENABLE_C_GETFUNCTIONSTATUS 152 #undef P11_ENABLE_C_CANCELFUNCTION 153 #undef P11_ENABLE_C_WAITFORSLOTEVENT 154 #define P11_ENABLE_GETNATIVEKEYINFO 155 #define P11_ENABLE_CREATENATIVEKEY 156 157 /* include the platform dependent part of the header */ 158 #include "p11_md.h" 159 160 #include "pkcs11.h" 161 #include "pkcs-11v2-20a3.h" 162 #include <jni.h> 163 #include <jni_util.h> 164 #include <stdarg.h> 165 166 #define MAX_STACK_BUFFER_LEN (4 * 1024) 167 #define MAX_HEAP_BUFFER_LEN (64 * 1024) 168 169 #define MAX_DIGEST_LEN (64) 170 171 #ifndef min 172 #define min(a, b) (((a) < (b)) ? (a) : (b)) 173 #endif 174 175 #define ckBBoolToJBoolean(x) ((x == TRUE) ? JNI_TRUE : JNI_FALSE); |