secure_util.cc 414 B

12345678910111213141516
  1. // 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. #include "crypto/secure_util.h"
  5. #include "third_party/boringssl/src/include/openssl/mem.h"
  6. namespace crypto {
  7. bool SecureMemEqual(const void* s1, const void* s2, size_t n) {
  8. return CRYPTO_memcmp(s1, s2, n) == 0;
  9. }
  10. } // namespace crypto