blob: d52feadb661c29fe6da12a56a47d3e64abedd749 [file] [log] [blame]
[email protected]3cdf6d42011-10-07 17:02:481// Copyright (c) 2011 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]3cdf6d42011-10-07 17:02:485#include "crypto/secure_util.h"
6
David Benjamin9ae51bb2018-09-26 20:30:397#include "third_party/boringssl/src/include/openssl/mem.h"
8
[email protected]3cdf6d42011-10-07 17:02:489namespace crypto {
10
11bool SecureMemEqual(const void* s1, const void* s2, size_t n) {
David Benjamin9ae51bb2018-09-26 20:30:3912 return CRYPTO_memcmp(s1, s2, n) == 0;
[email protected]3cdf6d42011-10-07 17:02:4813}
14
15} // namespace crypto
16