Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(451)

Side by Side Diff: components/webcrypto/algorithms/rsa_sign.cc

Issue 1549993003: Switch to standard integer types in components/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stddef.h>
6
5 #include "base/numerics/safe_math.h" 7 #include "base/numerics/safe_math.h"
6 #include "components/webcrypto/algorithms/rsa_sign.h" 8 #include "components/webcrypto/algorithms/rsa_sign.h"
7 #include "components/webcrypto/algorithms/util.h" 9 #include "components/webcrypto/algorithms/util.h"
8 #include "components/webcrypto/blink_key_handle.h" 10 #include "components/webcrypto/blink_key_handle.h"
9 #include "components/webcrypto/crypto_data.h" 11 #include "components/webcrypto/crypto_data.h"
10 #include "components/webcrypto/status.h" 12 #include "components/webcrypto/status.h"
11 #include "crypto/openssl_util.h" 13 #include "crypto/openssl_util.h"
12 #include "crypto/scoped_openssl_types.h" 14 #include "crypto/scoped_openssl_types.h"
13 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h" 15 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h"
14 16
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 138
137 if (!EVP_DigestVerifyUpdate(ctx.get(), data.bytes(), data.byte_length())) 139 if (!EVP_DigestVerifyUpdate(ctx.get(), data.bytes(), data.byte_length()))
138 return Status::OperationError(); 140 return Status::OperationError();
139 141
140 *signature_match = 1 == EVP_DigestVerifyFinal(ctx.get(), signature.bytes(), 142 *signature_match = 1 == EVP_DigestVerifyFinal(ctx.get(), signature.bytes(),
141 signature.byte_length()); 143 signature.byte_length());
142 return Status::Success(); 144 return Status::Success();
143 } 145 }
144 146
145 } // namespace webcrypto 147 } // namespace webcrypto
OLDNEW
« no previous file with comments | « components/webcrypto/algorithms/rsa_pss_unittest.cc ('k') | components/webcrypto/algorithms/rsa_ssa.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698