blob: 8579ccf1f901ead6117a06cb46456d57b55254c2 [file] [log] [blame]
// Copyright 2015 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 "base/strings/string_piece.h"
namespace gcm {
struct IncomingMessage;
// Creates an encrypted representation of |payload| using the |peer_public_key|
// (as an octet string in uncompressed form per SEC1 2.3.3) and the
// |auth_secret|. Returns whether the payload could be created and has been
// written to the |*message|.
bool CreateEncryptedPayloadForTesting(const base::StringPiece& payload,
const base::StringPiece& peer_public_key,
const base::StringPiece& auth_secret,
IncomingMessage* message);
} // namespace gcm