Fix SyntaxWarning: invalid escape sequence
This commit is contained in:
parent
38f53edc2b
commit
23321bd300
3 changed files with 7 additions and 7 deletions
|
@ -64,7 +64,7 @@ def pow2(x, p):
|
|||
|
||||
|
||||
def inv(z):
|
||||
"""$= z^{-1} \mod q$, for z != 0"""
|
||||
r"""$= z^{-1} \mod q$, for z != 0"""
|
||||
# Adapted from curve25519_athlon.c in djb's Curve25519.
|
||||
z2 = z * z % q # 2
|
||||
z9 = pow2(z2, 2) * z % q # 9
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue