summaryrefslogtreecommitdiffstats
path: root/test/evp_test.h
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2017-05-11 19:28:09 +0100
committerDr. Stephen Henson <steve@openssl.org>2017-05-19 21:02:24 +0100
commitc3fc7d9ac5d1f424119dd44ce9565735931f452a (patch)
treea2afe806c29049b7f531acb946a9c830c1d0dac9 /test/evp_test.h
parentaabe3a359197d99867abaab8a4beb42003ee7d79 (diff)
Add support for multiple update calls in evp_test
Allow multiple "Input" lines to call the update function multiple times. Add "Ncopy" keyword to copy the input buffer. So for example: Input = "a" Ncopy = 1024 Will create a buffer consisting of 1024 "a" characters. Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3451)
Diffstat (limited to 'test/evp_test.h')
-rw-r--r--test/evp_test.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/evp_test.h b/test/evp_test.h
new file mode 100644
index 0000000000..5402e1e806
--- /dev/null
+++ b/test/evp_test.h
@@ -0,0 +1,11 @@
+/*
+ * Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL license (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
+ */
+
+typedef struct evp_test_buffer_st EVP_TEST_BUFFER;
+DEFINE_STACK_OF(EVP_TEST_BUFFER)