提交
This commit is contained in:
1 parent
59fafb92d5
commit
6abfb6e251
1512 files changed
+1565614
-275592
No files matched your search
@@ -228,7 +228,7 @@ class EccKey(object):
|
||||
sinv = rs[1].inverse(order)
|
||||
point1 = self._curve.G * ((sinv * z) % order)
|
||||
point2 = self.pointQ * ((sinv * rs[0]) % order)
|
||||
return (point1 + point2).x == rs[0]
|
||||
return (point1 + point2).x % order == rs[0]
|
||||
|
||||
@property
|
||||
def d(self):
|
||||
|
||||
@@ -32,6 +32,8 @@ class EccKey(object):
|
||||
@property
|
||||
def d(self) -> int: ...
|
||||
@property
|
||||
def seed(self) -> bytes: ...
|
||||
@property
|
||||
def pointQ(self) -> EccPoint: ...
|
||||
def public_key(self) -> EccKey: ...
|
||||
|
||||
|
||||
@@ -548,7 +548,7 @@ def construct(rsa_components, consistency_check=True):
|
||||
|
||||
\begin{align}
|
||||
p*q &= n \\
|
||||
e*d &\equiv 1 ( \text{mod lcm} [(p-1)(q-1)]) \\
|
||||
e*d &\equiv 1 ( \text{mod lcm} [p-1, q-1]) \\
|
||||
p*u &\equiv 1 ( \text{mod } q)
|
||||
\end{align}
|
||||
|
||||
@@ -564,7 +564,7 @@ def construct(rsa_components, consistency_check=True):
|
||||
4. First factor of *n* (*p*).
|
||||
Optional, but the other factor *q* must also be present.
|
||||
5. Second factor of *n* (*q*). Optional.
|
||||
6. CRT coefficient *q*, that is :math:`p^{-1} \text{mod }q`. Optional.
|
||||
6. CRT coefficient *u*, that is :math:`p^{-1} \text{mod }q`. Optional.
|
||||
|
||||
Keyword Args:
|
||||
consistency_check (boolean):
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user