chromium/components/os_crypt/async/common/encryptor_mojom_traits.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/os_crypt/async/common/encryptor_mojom_traits.h"

#include <algorithm>
#include <map>
#include <optional>
#include <string>
#include <vector>

#include "components/os_crypt/async/common/algorithm.mojom.h"
#include "components/os_crypt/async/common/encryptor.h"
#include "components/os_crypt/async/common/encryptor.mojom.h"
#include "mojo/public/cpp/bindings/struct_traits.h"

#if BUILDFLAG(IS_WIN)
#include <windows.h>

#include <dpapi.h>

#include "base/feature_list.h"
#include "components/os_crypt/async/common/encryptor_features.h"
#endif

namespace mojo {

// static
bool StructTraits<os_crypt_async::mojom::EncryptorDataView,
                  os_crypt_async::Encryptor>::
    Read(os_crypt_async::mojom::EncryptorDataView data,
         os_crypt_async::Encryptor* out) {}

// static
const std::string& StructTraits<os_crypt_async::mojom::EncryptorDataView,
                                os_crypt_async::Encryptor>::
    provider_for_encryption(const os_crypt_async::Encryptor& in) {}

// static
const std::map<std::string, os_crypt_async::Encryptor::Key>& StructTraits<
    os_crypt_async::mojom::EncryptorDataView,
    os_crypt_async::Encryptor>::key_entries(const os_crypt_async::Encryptor&
                                                in) {}

// static
bool StructTraits<os_crypt_async::mojom::KeyDataView,
                  os_crypt_async::Encryptor::Key>::
    Read(os_crypt_async::mojom::KeyDataView data,
         os_crypt_async::Encryptor::Key* out) {}

// static
const os_crypt_async::mojom::Algorithm&
StructTraits<os_crypt_async::mojom::KeyDataView,
             os_crypt_async::Encryptor::Key>::
    algorithm(const os_crypt_async::Encryptor::Key& in) {}

// static
base::UnsafeSharedMemoryRegion StructTraits<os_crypt_async::mojom::KeyDataView,
                                            os_crypt_async::Encryptor::Key>::
    key(const os_crypt_async::Encryptor::Key& in) {}

}  // namespace mojo