mirror of
https://github.com/apple/swift-crypto
synced 2026-11-24 04:37:48 +00:00
Update BoringSSL to aefa5d24da34ef77ac797bdbe684734e5bd870f4, and modify the vendoring script to reduce our warnings.
29 lines
1.4 KiB
C++
29 lines
1.4 KiB
C++
/* Copyright 2019 The BoringSSL Authors
|
|
*
|
|
* 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 <stdint.h>
|
|
|
|
|
|
#if defined(BORINGSSL_FIPS) && defined(BORINGSSL_SHARED_LIBRARY)
|
|
// BORINGSSL_bcm_text_hash is is default hash value for the FIPS integrity check
|
|
// that must be replaced with the real value during the build process. This
|
|
// value need only be distinct, i.e. so that we can safely search-and-replace it
|
|
// in an object file.
|
|
extern const uint8_t BORINGSSL_bcm_text_hash[32] = {
|
|
0xae, 0x2c, 0xea, 0x2a, 0xbd, 0xa6, 0xf3, 0xec, 0x97, 0x7f, 0x9b,
|
|
0xf6, 0x94, 0x9a, 0xfc, 0x83, 0x68, 0x27, 0xcb, 0xa0, 0xa0, 0x9f,
|
|
0x6b, 0x6f, 0xde, 0x52, 0xcd, 0xe2, 0xcd, 0xff, 0x31, 0x80,
|
|
};
|
|
#endif // FIPS && SHARED_LIBRARY
|