From: Mark Wooding Date: Thu, 11 May 2017 09:42:15 +0000 (+0100) Subject: catacomb/__init__.py: Calculate `X25519_BASE' and `X448_BASE'. X-Git-Tag: 1.2.0~16 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb-python/commitdiff_plain/8e6f45a3524f095b29e2b6bf009f4bfe66a287b7 catacomb/__init__.py: Calculate `X25519_BASE' and `X448_BASE'. Easier on the eyes and brain. --- diff --git a/catacomb/__init__.py b/catacomb/__init__.py index da7ff15..860cfb5 100644 --- a/catacomb/__init__.py +++ b/catacomb/__init__.py @@ -735,12 +735,8 @@ _augment(KCDSAPriv, _tmp) ###-------------------------------------------------------------------------- ### Bernstein's elliptic curve crypto and related schemes. -X25519_BASE = \ - bytes('0900000000000000000000000000000000000000000000000000000000000000') - -X448_BASE = \ - bytes('05000000000000000000000000000000000000000000000000000000' - '00000000000000000000000000000000000000000000000000000000') +X25519_BASE = MP(9).storel(32) +X448_BASE = MP(5).storel(56) Z128 = bytes('00000000000000000000000000000000')