-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passing non-positive-integer secparam in PairingGroup construction #312
Comments
BatchClayderman
added a commit
to BatchClayderman/charm
that referenced
this issue
Feb 1, 2025
Issue JHUISI#313 - Fix the multiple GT element generation issue. - Modify the original recursive logic to a simpler ``if-else`` logic. - Pre-generate the ``__gt`` when the object is instantiated, without having to check whether ``__gt`` has been generated every time a random GT element is required to be generated. - No seeds will be passed to the imported ``random`` function to generate different random elements when multiple elements are required to be generated even though a seed is specified to call the ``random`` method of the ``PairingGroup`` class. Issue JHUISI#312 - Optimize the ``/ 8`` to ``>> 3``.
BatchClayderman
added a commit
to BatchClayderman/charm
that referenced
this issue
Feb 1, 2025
Issue JHUISI#313 - Fix the multiple GT element generation issue. - Modify the original recursive logic to a simpler ``if-else`` logic. - Pre-generate the ``__gt`` when the object is instantiated, without having to check whether ``__gt`` has been generated every time a random GT element is required to be generated. - No seeds will be passed to the imported ``random`` function to generate different random elements when multiple elements are required to be generated even though a seed is specified to call the ``random`` method of the ``PairingGroup`` class. Issue JHUISI#312 - Optimize the ``/ 8`` to ``>> 3``.
jakinyele
pushed a commit
that referenced
this issue
Feb 3, 2025
Issue #313 - Fix the multiple GT element generation issue. - Modify the original recursive logic to a simpler ``if-else`` logic. - Pre-generate the ``__gt`` when the object is instantiated, without having to check whether ``__gt`` has been generated every time a random GT element is required to be generated. - No seeds will be passed to the imported ``random`` function to generate different random elements when multiple elements are required to be generated even though a seed is specified to call the ``random`` method of the ``PairingGroup`` class. Issue #312 - Optimize the ``/ 8`` to ``>> 3``.
jakinyele
pushed a commit
that referenced
this issue
Feb 3, 2025
Issue #313 - Fix the multiple GT element generation issue. - Modify the original recursive logic to a simpler ``if-else`` logic. - Pre-generate the ``__gt`` when the object is instantiated, without having to check whether ``__gt`` has been generated every time a random GT element is required to be generated. - No seeds will be passed to the imported ``random`` function to generate different random elements when multiple elements are required to be generated even though a seed is specified to call the ``random`` method of the ``PairingGroup`` class. Issue #312 - Optimize the ``/ 8`` to ``>> 3``.
Fixed in the merged PR - #313 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, guys.$\lambda$ ) can decide the security level of a system in theory.
Recently, I have been confused about the
secparam
in the classPairingGroup
.I knew that the security parameter (
However, when I passed different values like
-1
,0.5
,7
,512
, and1024
to create aPairingGroup
object, I found there seemed to be no differences in time or communication costs in cryptography schemes.Moreover, I have searched the
secparam
in codes related toPairingGroup
and only foundmessageSize
involves the variablesecparam
.Thus, I am confused about the role the Python parameter
secparam
plays in the class PairingGroup and whether it makes sense to pass values like-1
,0.5
, and7
both in theoretical cryptography schemes and practical Python charm library-related implementations.By the way, if the
secparam
is limited to positive integers in__init__
, it may be better to use>> 3
instead of/ 8
inmessageSize
.Thanks & regards.
The text was updated successfully, but these errors were encountered: