xref: /aosp_15_r20/external/cronet/crypto/secure_util.cc (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2011 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "crypto/secure_util.h"
6 
7 #include "third_party/boringssl/src/include/openssl/mem.h"
8 
9 namespace crypto {
10 
SecureMemEqual(const void * s1,const void * s2,size_t n)11 bool SecureMemEqual(const void* s1, const void* s2, size_t n) {
12   return CRYPTO_memcmp(s1, s2, n) == 0;
13 }
14 
15 }  // namespace crypto
16 
17