From b756aa49c10414079f7a68c6ecc82d155c85e1db Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Tue, 11 Sep 2018 13:51:45 +0900 Subject: [PATCH] update comment for subgroup attack --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 43e0d17..a8a90ea 100644 --- a/readme.md +++ b/readme.md @@ -280,9 +280,9 @@ getStr() method gets * `3 ` ; compressed format for odd y ## Verify an element in G2 -`G2::isValid()` checks that the element is in the curve of G2 and the order of it is r. +`G2::isValid()` checks that the element is in the curve of G2 and the order of it is r for subgroup attack. `G2::set()`, `G2::setStr` and `operator<<` also check the order. -If you check it out of the library, then you can stop the verification by calling `G2::setOrder(0)`. +If you check it out of the library, then you can stop the verification by calling `G2::verifyOrderG2(false)`. # How to make asm files (optional) The asm files generated by this way are already put in `src/asm`, then it is not necessary to do this.