blob: 59b8cc7eb0673fac89c8aafcc750ea5d80560d0c [file] [log] [blame]
// Copyright 2018 The Chromium OS 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 "cryptohome/mock_signature_sealing_backend.h"
using brillo::Blob;
namespace cryptohome {
MockSignatureSealingBackend::MockSignatureSealingBackend() = default;
MockSignatureSealingBackend::~MockSignatureSealingBackend() = default;
std::unique_ptr<SignatureSealingBackend::UnsealingSession>
MockSignatureSealingBackend::CreateUnsealingSession(
const SignatureSealedData& sealed_secret_data,
const Blob& public_key_spki_der,
const std::vector<ChallengeSignatureAlgorithm>& key_algorithms,
const Blob& delegate_blob,
const Blob& delegate_secret) {
return std::unique_ptr<UnsealingSession>(CreateUnsealingSessionImpl(
sealed_secret_data, public_key_spki_der, key_algorithms, delegate_blob,
delegate_secret));
}
MockUnsealingSession::MockUnsealingSession() = default;
MockUnsealingSession::~MockUnsealingSession() = default;
} // namespace cryptohome