chromium/third_party/boringssl/src/crypto/evp/p_x25519_asn1.c

/* Copyright (c) 2019, Google Inc.
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
 * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */

#include <openssl/evp.h>

#include <openssl/bytestring.h>
#include <openssl/curve25519.h>
#include <openssl/err.h>
#include <openssl/mem.h>

#include "internal.h"
#include "../internal.h"


static void x25519_free(EVP_PKEY *pkey) {}

static int x25519_set_priv_raw(EVP_PKEY *pkey, const uint8_t *in, size_t len) {}

static int x25519_set_pub_raw(EVP_PKEY *pkey, const uint8_t *in, size_t len) {}

static int x25519_get_priv_raw(const EVP_PKEY *pkey, uint8_t *out,
                               size_t *out_len) {}

static int x25519_get_pub_raw(const EVP_PKEY *pkey, uint8_t *out,
                               size_t *out_len) {}

static int x25519_set1_tls_encodedpoint(EVP_PKEY *pkey, const uint8_t *in,
                                        size_t len) {}

static size_t x25519_get1_tls_encodedpoint(const EVP_PKEY *pkey,
                                           uint8_t **out_ptr) {}

static int x25519_pub_decode(EVP_PKEY *out, CBS *params, CBS *key) {}

static int x25519_pub_encode(CBB *out, const EVP_PKEY *pkey) {}

static int x25519_pub_cmp(const EVP_PKEY *a, const EVP_PKEY *b) {}

static int x25519_priv_decode(EVP_PKEY *out, CBS *params, CBS *key) {}

static int x25519_priv_encode(CBB *out, const EVP_PKEY *pkey) {}

static int x25519_size(const EVP_PKEY *pkey) {}

static int x25519_bits(const EVP_PKEY *pkey) {}

const EVP_PKEY_ASN1_METHOD x25519_asn1_meth =;