md5_test.cc
Go to the documentation of this file.
1 /* Copyright (c) 2018, 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 <openssl/md5.h>
16 
17 #include <gtest/gtest.h>
18 
19 #include "internal.h"
20 #include "../../test/abi_test.h"
21 
22 
23 #if defined(MD5_ASM) && defined(SUPPORTS_ABI_TEST)
24 TEST(MD5Test, ABI) {
25  MD5_CTX ctx;
26  MD5_Init(&ctx);
27 
28  static const uint8_t kBuf[MD5_CBLOCK * 8] = {0};
33 }
34 #endif // MD5_ASM && SUPPORTS_ABI_TEST
ctx
Definition: benchmark-async.c:30
md5_block_asm_data_order
#define md5_block_asm_data_order
Definition: boringssl_prefix_symbols.h:3321
internal.h
md5_state_st
Definition: md5.h:97
ctx
static struct test_ctx ctx
Definition: test-ipc-send-recv.c:65
uint8_t
unsigned char uint8_t
Definition: stdint-msvc2008.h:78
MD5_Init
#define MD5_Init
Definition: boringssl_prefix_symbols.h:1813
MD5_CBLOCK
#define MD5_CBLOCK
Definition: md5.h:71
TEST
#define TEST(name, init_size,...)
Definition: arena_test.cc:75
md5.h
CHECK_ABI
#define CHECK_ABI(...)
Definition: abi_test.h:472


grpc
Author(s):
autogenerated on Fri May 16 2025 02:59:23