| 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/ec_private_key.h" | 5 #include "crypto/ec_private_key.h" |
| 6 | 6 |
| 7 #include <openssl/bytestring.h> | 7 #include <openssl/bytestring.h> |
| 8 #include <openssl/ec.h> | 8 #include <openssl/ec.h> |
| 9 #include <openssl/evp.h> | 9 #include <openssl/evp.h> |
| 10 #include <openssl/mem.h> | 10 #include <openssl/mem.h> |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 return false; | 217 return false; |
| 218 } | 218 } |
| 219 output->assign(der, der + der_len); | 219 output->assign(der, der + der_len); |
| 220 OPENSSL_free(der); | 220 OPENSSL_free(der); |
| 221 return true; | 221 return true; |
| 222 } | 222 } |
| 223 | 223 |
| 224 ECPrivateKey::ECPrivateKey() : key_(NULL) {} | 224 ECPrivateKey::ECPrivateKey() : key_(NULL) {} |
| 225 | 225 |
| 226 } // namespace crypto | 226 } // namespace crypto |
| OLD | NEW |