equal
deleted
inserted
replaced
157 |
157 |
158 |
158 |
159 /* include the platform dependent part of the header */ |
159 /* include the platform dependent part of the header */ |
160 #include "p11_md.h" |
160 #include "p11_md.h" |
161 |
161 |
162 #include "pkcs11.h" |
|
163 #include <jni.h> |
162 #include <jni.h> |
164 #include <jni_util.h> |
163 #include <jni_util.h> |
165 #include <stdarg.h> |
164 #include <stdarg.h> |
166 |
165 |
167 #define MAX_STACK_BUFFER_LEN (4 * 1024) |
166 #define MAX_STACK_BUFFER_LEN (4 * 1024) |
294 #define CLASS_SSL3_KEY_MAT_PARAMS "sun/security/pkcs11/wrapper/CK_SSL3_KEY_MAT_PARAMS" |
293 #define CLASS_SSL3_KEY_MAT_PARAMS "sun/security/pkcs11/wrapper/CK_SSL3_KEY_MAT_PARAMS" |
295 #define CLASS_TLS12_KEY_MAT_PARAMS "sun/security/pkcs11/wrapper/CK_TLS12_KEY_MAT_PARAMS" |
294 #define CLASS_TLS12_KEY_MAT_PARAMS "sun/security/pkcs11/wrapper/CK_TLS12_KEY_MAT_PARAMS" |
296 #define CLASS_TLS_PRF_PARAMS "sun/security/pkcs11/wrapper/CK_TLS_PRF_PARAMS" |
295 #define CLASS_TLS_PRF_PARAMS "sun/security/pkcs11/wrapper/CK_TLS_PRF_PARAMS" |
297 #define CLASS_TLS_MAC_PARAMS "sun/security/pkcs11/wrapper/CK_TLS_MAC_PARAMS" |
296 #define CLASS_TLS_MAC_PARAMS "sun/security/pkcs11/wrapper/CK_TLS_MAC_PARAMS" |
298 |
297 |
|
298 /* function to update the CK_NSS_GCM_PARAMS in mechanism pointer with |
|
299 * CK_GCM_PARAMS |
|
300 */ |
|
301 CK_MECHANISM_PTR updateGCMParams(JNIEnv *env, CK_MECHANISM_PTR mechPtr); |
299 |
302 |
300 /* function to convert a PKCS#11 return value other than CK_OK into a Java Exception |
303 /* function to convert a PKCS#11 return value other than CK_OK into a Java Exception |
301 * or to throw a PKCS11RuntimeException |
304 * or to throw a PKCS11RuntimeException |
302 */ |
305 */ |
303 |
306 |