| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "crypto/signature_creator.h" | 5 #include "crypto/signature_creator.h" |
| 6 | 6 |
| 7 #include <openssl/evp.h> | 7 #include <openssl/evp.h> |
| 8 #include <openssl/rsa.h> | 8 #include <openssl/rsa.h> |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 // Sign it. | 107 // Sign it. |
| 108 if (!EVP_DigestSignFinal(sign_context_, signature->data(), &len)) { | 108 if (!EVP_DigestSignFinal(sign_context_, signature->data(), &len)) { |
| 109 signature->clear(); | 109 signature->clear(); |
| 110 return false; | 110 return false; |
| 111 } | 111 } |
| 112 signature->resize(len); | 112 signature->resize(len); |
| 113 return true; | 113 return true; |
| 114 } | 114 } |
| 115 | 115 |
| 116 } // namespace crypto | 116 } // namespace crypto |
| OLD | NEW |