summaryrefslogtreecommitdiffstats
path: root/test/recipes/03-test_internal_ec.t
diff options
context:
space:
mode:
authorBilly Brumley <bbrumley@gmail.com>2019-02-12 15:00:20 +0100
committerNicola Tuveri <nic.tuv@gmail.com>2019-02-17 20:02:36 +0100
commit8f58ede09572dcc6a7e6c01280dd348240199568 (patch)
tree4a3ab9da4bd1a9ca5d86393ef0f0431b728fd206 /test/recipes/03-test_internal_ec.t
parentSCA hardening for mod. field inversion in EC_GROUP (diff)
downloadopenssl-8f58ede09572dcc6a7e6c01280dd348240199568.tar.xz
openssl-8f58ede09572dcc6a7e6c01280dd348240199568.zip
[test] unit test for field_inv function pointer in EC_METHOD
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com> (Merged from https://github.com/openssl/openssl/pull/8254)
Diffstat (limited to '')
-rw-r--r--test/recipes/03-test_internal_ec.t19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/recipes/03-test_internal_ec.t b/test/recipes/03-test_internal_ec.t
new file mode 100644
index 0000000000..0d31d0ac07
--- /dev/null
+++ b/test/recipes/03-test_internal_ec.t
@@ -0,0 +1,19 @@
+#! /usr/bin/env perl
+# Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
+#
+# Licensed under the Apache License 2.0 (the "License"). You may not use
+# this file except in compliance with the License. You can obtain a copy
+# in the file LICENSE in the source distribution or at
+# https://www.openssl.org/source/license.html
+
+use strict;
+use OpenSSL::Test; # get 'plan'
+use OpenSSL::Test::Simple;
+use OpenSSL::Test::Utils;
+
+setup("test_internal_ec");
+
+plan skip_all => "This test is unsupported in a no-ec build"
+ if disabled("ec");
+
+simple_test("test_internal_ec", "ec_internal_test");