Sha256: 3bd3d9757bc2c596c8833d24ce5c44d92c0cd38dc77398e441d397a427ea4d4f

Contents?: true

Size: 1.27 KB

Versions: 18

Compression:

Stored size: 1.27 KB

Contents

/* Copyright (c) 2018, Google Inc.
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
 * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */

#include <openssl/md5.h>

#include <gtest/gtest.h>

#include "internal.h"
#include "../../test/abi_test.h"


#if defined(MD5_ASM) && defined(SUPPORTS_ABI_TEST)
TEST(MD5Test, ABI) {
  MD5_CTX ctx;
  MD5_Init(&ctx);

  static const uint8_t kBuf[MD5_CBLOCK * 8] = {0};
  CHECK_ABI(md5_block_asm_data_order, ctx.h, kBuf, 1);
  CHECK_ABI(md5_block_asm_data_order, ctx.h, kBuf, 2);
  CHECK_ABI(md5_block_asm_data_order, ctx.h, kBuf, 4);
  CHECK_ABI(md5_block_asm_data_order, ctx.h, kBuf, 8);
}
#endif  // MD5_ASM && SUPPORTS_ABI_TEST

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
aws-crt-0.4.0 aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/md5/md5_test.cc
couchbase-3.5.4 ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/crypto/fipsmodule/md5/md5_test.cc
aws-crt-0.3.0 aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/md5/md5_test.cc
couchbase-3.5.3 ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/crypto/fipsmodule/md5/md5_test.cc
couchbase-3.5.2 ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/crypto/fipsmodule/md5/md5_test.cc
aws-crt-0.2.1 aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/md5/md5_test.cc
couchbase-3.5.1 ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/crypto/fipsmodule/md5/md5_test.cc
couchbase-3.5.0 ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/crypto/fipsmodule/md5/md5_test.cc
aws-crt-0.2.0 aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/md5/md5_test.cc
aws-crt-0.1.9 aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/md5/md5_test.cc
aws-crt-0.1.8 aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/md5/md5_test.cc
aws-crt-0.1.7 aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/md5/md5_test.cc
aws-crt-0.1.6 aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/md5/md5_test.cc
aws-crt-0.1.5 aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/md5/md5_test.cc
aws-crt-0.1.4 aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/md5/md5_test.cc
aws-crt-0.1.2 aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/md5/md5_test.cc
aws-crt-0.1.1.pre native/crt/aws-lc/crypto/fipsmodule/md5/md5_test.cc
aws-crt-0.1.0.pre native/crt/aws-lc/crypto/fipsmodule/md5/md5_test.cc