decrepit/evp/evp_test.cc
Go to the documentation of this file.
1 /* Copyright (c) 2021, Google Inc.
2  *
3  * Permission to use, copy, modify, and/or distribute this software for any
4  * purpose with or without fee is hereby granted, provided that the above
5  * copyright notice and this permission notice appear in all copies.
6  *
7  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
10  * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
12  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
13  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
14 
15 #include <gtest/gtest.h>
16 
17 #include <openssl/cipher.h>
18 #include <openssl/digest.h>
19 #include <openssl/evp.h>
20 
21 
22 // Node.js assumes every cipher in |EVP_CIPHER_do_all_sorted| is accessible via
23 // |EVP_get_cipherby*|.
24 TEST(EVPTest, CipherDoAll) {
26  [](const EVP_CIPHER *cipher, const char *name, const char *unused,
27  void *arg) {
31  },
32  nullptr);
33 }
34 
35 // Node.js assumes every digest in |EVP_MD_do_all_sorted| is accessible via
36 // |EVP_get_digestby*|.
37 TEST(EVPTest, MDDoAll) {
39  [](const EVP_MD *md, const char *name, const char *unused, void *arg) {
43  },
44  nullptr);
45 }
EVP_get_cipherbyname
#define EVP_get_cipherbyname
Definition: boringssl_prefix_symbols.h:1724
EVP_get_digestbyname
#define EVP_get_digestbyname
Definition: boringssl_prefix_symbols.h:1726
env_md_st
Definition: third_party/boringssl-with-bazel/src/crypto/fipsmodule/digest/internal.h:67
evp.h
EVP_MD_nid
#define EVP_MD_nid
Definition: boringssl_prefix_symbols.h:1578
EVP_get_digestbynid
#define EVP_get_digestbynid
Definition: boringssl_prefix_symbols.h:1727
EVP_CIPHER_nid
#define EVP_CIPHER_nid
Definition: boringssl_prefix_symbols.h:1488
setup.name
name
Definition: setup.py:542
EXPECT_EQ
#define EXPECT_EQ(a, b)
Definition: iomgr/time_averaged_stats_test.cc:27
evp_cipher_st
Definition: cipher.h:585
SCOPED_TRACE
#define SCOPED_TRACE(message)
Definition: bloaty/third_party/googletest/googletest/include/gtest/gtest.h:2264
TEST
TEST(EVPTest, CipherDoAll)
Definition: decrepit/evp/evp_test.cc:24
cipher.h
arg
Definition: cmdline.cc:40
EVP_CIPHER_do_all_sorted
void EVP_CIPHER_do_all_sorted(void(*callback)(const EVP_CIPHER *cipher, const char *name, const char *unused, void *arg), void *arg)
Definition: evp_do_all.c:18
EVP_MD_do_all_sorted
void EVP_MD_do_all_sorted(void(*callback)(const EVP_MD *cipher, const char *name, const char *unused, void *arg), void *arg)
Definition: evp_do_all.c:70
benchmark.md
md
Definition: benchmark.py:86
digest.h
EVP_get_cipherbynid
#define EVP_get_cipherbynid
Definition: boringssl_prefix_symbols.h:1725


grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:20