ecdh_helper.h (a297641610963bbb238ea77b32a2e958c4f7b184) ecdh_helper.h (c0153b0b901a16663ff91504fea25fb51d57cc29)
1/*
2 * ECDH helper functions - KPP wrappings
3 *
4 * Copyright (C) 2017 Intel Corporation
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation;

--- 9 unchanged lines hidden (view full) ---

18 *
19 * ALL LIABILITY, INCLUDING LIABILITY FOR INFRINGEMENT OF ANY PATENTS,
20 * COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS, RELATING TO USE OF THIS
21 * SOFTWARE IS DISCLAIMED.
22 */
23#include <crypto/kpp.h>
24#include <linux/types.h>
25
1/*
2 * ECDH helper functions - KPP wrappings
3 *
4 * Copyright (C) 2017 Intel Corporation
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation;

--- 9 unchanged lines hidden (view full) ---

18 *
19 * ALL LIABILITY, INCLUDING LIABILITY FOR INFRINGEMENT OF ANY PATENTS,
20 * COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS, RELATING TO USE OF THIS
21 * SOFTWARE IS DISCLAIMED.
22 */
23#include <crypto/kpp.h>
24#include <linux/types.h>
25
26int compute_ecdh_secret(struct crypto_kpp *tfm, const u8 pub_a[64],
27 const u8 priv_b[32], u8 secret[32]);
28int generate_ecdh_keys(struct crypto_kpp *tfm, u8 public_key[64],
29 u8 private_key[32]);
26int compute_ecdh_secret(struct crypto_kpp *tfm, const u8 pair_public_key[64],
27 u8 secret[32]);
28int set_ecdh_privkey(struct crypto_kpp *tfm, const u8 *private_key);
29int generate_ecdh_public_key(struct crypto_kpp *tfm, u8 public_key[64]);
30int generate_ecdh_keys(struct crypto_kpp *tfm, u8 public_key[64]);