blob: 498338a397323e87ede92148d94b3cd148818706 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "device/fido/opaque_public_key.h"
namespace device {
OpaquePublicKey::OpaquePublicKey(
base::span<const uint8_t> cose_encoded_public_key)
: cose_encoding_(cose_encoded_public_key.begin(),
cose_encoded_public_key.end()) {}
OpaquePublicKey::~OpaquePublicKey() = default;
std::vector<uint8_t> OpaquePublicKey::EncodeAsCOSEKey() const {
return cose_encoding_;
}
} // namespace device