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
3 // found in the LICENSE file.
5 #include "crypto/ec_signature_creator_impl.h"
7 #include "base/logging.h"
11 ECSignatureCreatorImpl::ECSignatureCreatorImpl(ECPrivateKey
* key
)
16 ECSignatureCreatorImpl::~ECSignatureCreatorImpl() {}
18 bool ECSignatureCreatorImpl::Sign(const uint8
* data
,
20 std::vector
<uint8
>* signature
) {
25 bool ECSignatureCreatorImpl::DecodeSignature(const std::vector
<uint8
>& der_sig
,
26 std::vector
<uint8
>* out_raw_sig
) {