libgpuverify

Signature verification on GPUs (WiP)
Log | Files | Refs | README | LICENSE

commit e96d6ec827703c8213bc5ebc1321f2a4954166dd
parent 8d6bc1cc3d1ee8cef3e277cb2fddb4d775d808b3
Author: Cedric <cedric.zwahlen@students.bfh.ch>
Date:   Mon,  1 Jan 2024 17:14:33 +0100

Improvements

Diffstat:
Msource/Makefile | 2+-
Msource/montmodmult.c | 5+----
Asource/montmodmult.cl | 2++
Msource/montmodmult.h | 4++--
Mxcode/.DS_Store | 0
Mxcode/lib-gpu-verify.xcodeproj/project.xcworkspace/xcuserdata/cedriczwahlen.xcuserdatad/UserInterfaceState.xcuserstate | 0
6 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/source/Makefile b/source/Makefile @@ -1,3 +1,3 @@ all: - gcc -g -O0 -D CL_TARGET_OPENCL_VERSION=100 -o gpu-verify lib-gpu-verify.c rsa-test.c montgomery-test.c reference-test.c util.c gmp.c -lgcrypt -lgmp -lOpenCL -lm + gcc -g -O0 -D CL_TARGET_OPENCL_VERSION=100 -o gpu-verify lib-gpu-verify.c rsa-test.c montgomery-test.c reference-test.c montmodmult.c util.c gmp.c -lgcrypt -lgmp -lOpenCL -lm diff --git a/source/montmodmult.c b/source/montmodmult.c @@ -657,9 +657,6 @@ int mont_modmult_tests(void) { printf("VERIFICATION RESULT: NOT OK!\n"); printf("At least %lu signatures were invalid.\n\n",state.total - res); } - - - - printf(""); + return 0; } diff --git a/source/montmodmult.cl b/source/montmodmult.cl @@ -0,0 +1 @@ +../xcode/montmodmult.cl +\ No newline at end of file diff --git a/source/montmodmult.h b/source/montmodmult.h @@ -9,12 +9,12 @@ #define montmodmult_h #include <stdio.h> -#include "ctype.h" +#include <stdint.h> #include <gmp.h> int mont_modmult_tests(void); -typedef u_int64_t gpu_register; +typedef uint64_t gpu_register; #endif /* montmodmult_h */ diff --git a/xcode/.DS_Store b/xcode/.DS_Store Binary files differ. diff --git a/xcode/lib-gpu-verify.xcodeproj/project.xcworkspace/xcuserdata/cedriczwahlen.xcuserdatad/UserInterfaceState.xcuserstate b/xcode/lib-gpu-verify.xcodeproj/project.xcworkspace/xcuserdata/cedriczwahlen.xcuserdatad/UserInterfaceState.xcuserstate Binary files differ.