[P256] add comment to `toPoint'

This commit is contained in:
Vincent Hanquez 2015-05-03 19:51:21 +01:00
parent 98463b6dad
commit 25c303602d

View File

@ -53,6 +53,13 @@ data P256X
------------------------------------------------------------------------ ------------------------------------------------------------------------
-- Point methods -- Point methods
------------------------------------------------------------------------ ------------------------------------------------------------------------
-- | Lift to curve a scalar
--
-- Using the curve generator as base point compute:
--
-- > scalar * G
--
toPoint :: Scalar -> Point toPoint :: Scalar -> Point
toPoint s = withNewPoint $ \px py -> withScalar s $ \p -> toPoint s = withNewPoint $ \px py -> withScalar s $ \p ->
ccryptonite_p256_basepoint_mul p px py ccryptonite_p256_basepoint_mul p px py