aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/unit_ecc.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2015-12-26 22:10:43 -0500
committerJack Lloyd <[email protected]>2015-12-26 22:10:43 -0500
commit629c4970e6e1e85e022edcbb10d992323f7c148b (patch)
tree525ea66d1e7cbba8c959cb5271496b8343e7e7c3 /src/tests/unit_ecc.cpp
parent873b030025d2f77a3090213c562434c76706e3b8 (diff)
Correct copyright info in unit_ecc.cpp file
At some point during the test changeover the (C) info got lost from this file. Also try randomizing the point repr in the copy test, just to spice things up a bit.
Diffstat (limited to 'src/tests/unit_ecc.cpp')
-rw-r--r--src/tests/unit_ecc.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tests/unit_ecc.cpp b/src/tests/unit_ecc.cpp
index 5b4d9058e..4cb585e45 100644
--- a/src/tests/unit_ecc.cpp
+++ b/src/tests/unit_ecc.cpp
@@ -1,5 +1,7 @@
/*
-* (C) 2009,2015 Jack Lloyd
+* (C) 2007 Falko Strenzke
+* 2007 Manuel Hartl
+* 2009,2015 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
@@ -287,6 +289,9 @@ Test::Result test_point_transformation ()
// get a copy
Botan::PointGFp q = p;
+ p.randomize_repr(Test::rng());
+ q.randomize_repr(Test::rng());
+
result.test_eq("affine x after copy", p.get_affine_x(), q.get_affine_x());
result.test_eq("affine y after copy", p.get_affine_y(), q.get_affine_y());
return result;