aboutsummaryrefslogtreecommitdiff
path: root/third_party/openssl-nistz256/bench_madd.c
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/openssl-nistz256/bench_madd.c')
-rw-r--r--third_party/openssl-nistz256/bench_madd.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/third_party/openssl-nistz256/bench_madd.c b/third_party/openssl-nistz256/bench_madd.c
new file mode 100644
index 000000000..364663d22
--- /dev/null
+++ b/third_party/openssl-nistz256/bench_madd.c
@@ -0,0 +1,8 @@
+#include <stdint.h>
+#include "nistz256.h"
+
+void bench_madd(unsigned char* buf) {
+ P256_POINT* r = (P256_POINT*) buf;
+ P256_POINT_AFFINE* b = (P256_POINT_AFFINE*) (buf + sizeof(P256_POINT));
+ ecp_nistz256_point_add_affine(r, r, b);
+}