From 8e6f45a3524f095b29e2b6bf009f4bfe66a287b7 Mon Sep 17 00:00:00 2001 Message-Id: <8e6f45a3524f095b29e2b6bf009f4bfe66a287b7.1716314626.git.mdw@distorted.org.uk> From: Mark Wooding Date: Thu, 11 May 2017 10:42:15 +0100 Subject: [PATCH] catacomb/__init__.py: Calculate `X25519_BASE' and `X448_BASE'. Organization: Straylight/Edgeware From: Mark Wooding Easier on the eyes and brain. --- catacomb/__init__.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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') -- [mdw]