equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2009, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
24 */ |
24 */ |
25 |
25 |
26 #include <jni.h> |
26 #include <jni.h> |
27 #include "jni_util.h" |
27 #include "jni_util.h" |
28 #include "impl/ecc_impl.h" |
28 #include "impl/ecc_impl.h" |
|
29 #include "sun_security_ec_ECDHKeyAgreement.h" |
|
30 #include "sun_security_ec_ECKeyPairGenerator.h" |
|
31 #include "sun_security_ec_ECDSASignature.h" |
29 |
32 |
30 #define ILLEGAL_STATE_EXCEPTION "java/lang/IllegalStateException" |
33 #define ILLEGAL_STATE_EXCEPTION "java/lang/IllegalStateException" |
31 #define INVALID_ALGORITHM_PARAMETER_EXCEPTION \ |
34 #define INVALID_ALGORITHM_PARAMETER_EXCEPTION \ |
32 "java/security/InvalidAlgorithmParameterException" |
35 "java/security/InvalidAlgorithmParameterException" |
33 #define INVALID_PARAMETER_EXCEPTION \ |
36 #define INVALID_PARAMETER_EXCEPTION \ |