chromium/components/gcm_driver/crypto/p256_key_util_unittest.cc

// Copyright 2015 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/gcm_driver/crypto/p256_key_util.h"

#include <stddef.h>

#include <set>

#include "base/base64.h"
#include "crypto/ec_private_key.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace gcm {

namespace {

// A P-256 point in uncompressed form consists of 0x04 (to denote that the point
// is uncompressed per SEC1 2.3.3) followed by two, 32-byte field elements.
const size_t kUncompressedPointBytes =;

// Precomputed private/public key-pair. Keys are stored on disk, so previously
// created values must continue to be usable for computing shared secrets.
const char kBobPrivateKey[] =;
const char kBobPublicKey[] =;

const char kCarolPrivateKey[] =;
const char kCarolPublicKey[] =;

// The shared secret between Bob and Carol.
const char kBobCarolSharedSecret[] =;

TEST(P256KeyUtilTest, UniqueKeyPairGeneration) {}

TEST(P256KeyUtilTest, SharedSecretCalculation) {}

TEST(P256KeyUtilTest, SharedSecretWithPreExistingKey) {}

}  // namespace

}  // namespace gcm