Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit 79455d2

Browse files
committed
Fail sig verify if public key is small order
1 parent 8c14000 commit 79455d2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cuda-ecc-ed25519/verify.cu

+4
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ ed25519_verify_device(const unsigned char *signature,
130130
return 0;
131131
}
132132

133+
if (0 != ge_is_small_order(&A)) {
134+
return 0;
135+
}
136+
133137
sha512_init(&hash);
134138
sha512_update(&hash, signature, 32);
135139
sha512_update(&hash, public_key, 32);

0 commit comments

Comments
 (0)