--- a/src/jdk.crypto.ec/share/native/libsunec/impl/ec.c Sat Nov 24 01:05:11 2018 +0100
+++ b/src/jdk.crypto.ec/share/native/libsunec/impl/ec.c Mon Nov 26 08:27:49 2018 +0800
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
* This library is free software; you can redistribute it and/or
@@ -43,11 +43,11 @@
#include <sys/types.h>
#ifndef _KERNEL
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifndef _WIN32
-#include <stdio.h>
#include <strings.h>
#endif /* _WIN32 */
@@ -109,16 +109,16 @@
printf("\n");
if (k1 != NULL) {
- mp_tohex(k1, mpstr);
+ mp_tohex((mp_int*)k1, mpstr);
printf("ec_points_mul: scalar k1: %s\n", mpstr);
- mp_todecimal(k1, mpstr);
+ mp_todecimal((mp_int*)k1, mpstr);
printf("ec_points_mul: scalar k1: %s (dec)\n", mpstr);
}
if (k2 != NULL) {
- mp_tohex(k2, mpstr);
+ mp_tohex((mp_int*)k2, mpstr);
printf("ec_points_mul: scalar k2: %s\n", mpstr);
- mp_todecimal(k2, mpstr);
+ mp_todecimal((mp_int*)k2, mpstr);
printf("ec_points_mul: scalar k2: %s (dec)\n", mpstr);
}
--- a/src/jdk.crypto.ec/share/native/libsunec/impl/ecdecode.c Sat Nov 24 01:05:11 2018 +0100
+++ b/src/jdk.crypto.ec/share/native/libsunec/impl/ecdecode.c Mon Nov 26 08:27:49 2018 +0800
@@ -49,6 +49,7 @@
#ifdef _KERNEL
#include <sys/kmem.h>
#else
+#include <stdio.h>
#include <string.h>
#endif
#include "ec.h"