![]() |
|
|||
0001 /* 0002 * ECDH helper functions - KPP wrappings 0003 * 0004 * Copyright (C) 2017 Intel Corporation 0005 * 0006 * This program is free software; you can redistribute it and/or modify 0007 * it under the terms of the GNU General Public License version 2 as 0008 * published by the Free Software Foundation; 0009 * 0010 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 0011 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 0012 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. 0013 * IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) AND AUTHOR(S) BE LIABLE FOR ANY 0014 * CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES 0015 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 0016 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 0017 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 0018 * 0019 * ALL LIABILITY, INCLUDING LIABILITY FOR INFRINGEMENT OF ANY PATENTS, 0020 * COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS, RELATING TO USE OF THIS 0021 * SOFTWARE IS DISCLAIMED. 0022 */ 0023 #include <crypto/kpp.h> 0024 #include <linux/types.h> 0025 0026 int compute_ecdh_secret(struct crypto_kpp *tfm, const u8 pair_public_key[64], 0027 u8 secret[32]); 0028 int set_ecdh_privkey(struct crypto_kpp *tfm, const u8 private_key[32]); 0029 int generate_ecdh_public_key(struct crypto_kpp *tfm, u8 public_key[64]); 0030 int generate_ecdh_keys(struct crypto_kpp *tfm, u8 public_key[64]);
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |