| Index: crypto/ec_signature_creator_nss.cc
|
| diff --git a/crypto/ec_signature_creator_nss.cc b/crypto/ec_signature_creator_nss.cc
|
| index 933f1cccf3d329c033d8240056133bedf9ce1696..388870f7fa8cf5aa6f792a3326f8227fe7d0a74a 100644
|
| --- a/crypto/ec_signature_creator_nss.cc
|
| +++ b/crypto/ec_signature_creator_nss.cc
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "crypto/ec_signature_creator.h"
|
| +#include "crypto/ec_signature_creator_impl.h"
|
|
|
| #include <cryptohi.h>
|
| #include <pk11pub.h>
|
| @@ -50,21 +50,16 @@ SECStatus SignData(SECItem* result,
|
|
|
| } // namespace
|
|
|
| -// static
|
| -ECSignatureCreator* ECSignatureCreator::Create(ECPrivateKey* key) {
|
| - return new ECSignatureCreator(key);
|
| -}
|
| -
|
| -ECSignatureCreator::ECSignatureCreator(ECPrivateKey* key)
|
| +ECSignatureCreatorImpl::ECSignatureCreatorImpl(ECPrivateKey* key)
|
| : key_(key) {
|
| EnsureNSSInit();
|
| }
|
|
|
| -ECSignatureCreator::~ECSignatureCreator() { }
|
| +ECSignatureCreatorImpl::~ECSignatureCreatorImpl() {}
|
|
|
| -bool ECSignatureCreator::Sign(const uint8* data,
|
| - int data_len,
|
| - std::vector<uint8>* signature) {
|
| +bool ECSignatureCreatorImpl::Sign(const uint8* data,
|
| + int data_len,
|
| + std::vector<uint8>* signature) {
|
| // Data to be signed
|
| SECItem secret;
|
| secret.type = siBuffer;
|
|
|