From 25c303602d8cbc0dfb4b32a27870b7eda362d992 Mon Sep 17 00:00:00 2001 From: Vincent Hanquez Date: Sun, 3 May 2015 19:51:21 +0100 Subject: [PATCH] [P256] add comment to `toPoint' --- Crypto/PubKey/ECC/P256.hs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Crypto/PubKey/ECC/P256.hs b/Crypto/PubKey/ECC/P256.hs index 2c3706a..66d5f92 100644 --- a/Crypto/PubKey/ECC/P256.hs +++ b/Crypto/PubKey/ECC/P256.hs @@ -53,6 +53,13 @@ data P256X ------------------------------------------------------------------------ -- Point methods ------------------------------------------------------------------------ + +-- | Lift to curve a scalar +-- +-- Using the curve generator as base point compute: +-- +-- > scalar * G +-- toPoint :: Scalar -> Point toPoint s = withNewPoint $ \px py -> withScalar s $ \p -> ccryptonite_p256_basepoint_mul p px py