diff options
author | lloyd <[email protected]> | 2010-03-15 15:30:56 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-03-15 15:30:56 +0000 |
commit | 1935eebb275a9770ba017e519b0e5b9182523159 (patch) | |
tree | de3c502e1a8c4c9d11284cb0192f530fa7ab6d33 /src/math/numbertheory/point_gfp.h | |
parent | de6ce8809c9f7c87981d7588255f65acf8d3b45c (diff) |
Add PointGFp::monty_sqr
Diffstat (limited to 'src/math/numbertheory/point_gfp.h')
-rw-r--r-- | src/math/numbertheory/point_gfp.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/math/numbertheory/point_gfp.h b/src/math/numbertheory/point_gfp.h index 4ed8df160..e4cf6f7d5 100644 --- a/src/math/numbertheory/point_gfp.h +++ b/src/math/numbertheory/point_gfp.h @@ -161,6 +161,14 @@ class BOTAN_DLL PointGFp MemoryRegion<word>& workspace); /** + * Montgomery squaring/reduction + * @param x multiplicand + * @param workspace temp space + */ + BigInt monty_sqr(const BigInt& x, + MemoryRegion<word>& workspace); + + /** * Point addition */ void add(const PointGFp& other, Workspace& workspace); |