|
||||
Warning, file /include/nettle/hkdf.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* hkdf.h 0002 0003 TLS PRF code (RFC-5246, RFC-2246). 0004 0005 Copyright (C) 2017 Red Hat, Inc. 0006 0007 This file is part of GNU Nettle. 0008 0009 GNU Nettle is free software: you can redistribute it and/or 0010 modify it under the terms of either: 0011 0012 * the GNU Lesser General Public License as published by the Free 0013 Software Foundation; either version 3 of the License, or (at your 0014 option) any later version. 0015 0016 or 0017 0018 * the GNU General Public License as published by the Free 0019 Software Foundation; either version 2 of the License, or (at your 0020 option) any later version. 0021 0022 or both in parallel, as here. 0023 0024 GNU Nettle is distributed in the hope that it will be useful, 0025 but WITHOUT ANY WARRANTY; without even the implied warranty of 0026 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0027 General Public License for more details. 0028 0029 You should have received copies of the GNU General Public License and 0030 the GNU Lesser General Public License along with this program. If 0031 not, see http://www.gnu.org/licenses/. 0032 */ 0033 0034 #ifndef NETTLE_HKDF_H_INCLUDED 0035 #define NETTLE_HKDF_H_INCLUDED 0036 0037 #include "nettle-types.h" 0038 0039 #ifdef __cplusplus 0040 extern "C" { 0041 #endif 0042 0043 /* Namespace mangling */ 0044 #define hkdf_extract nettle_hkdf_extract 0045 #define hkdf_expand nettle_hkdf_expand 0046 0047 void 0048 hkdf_extract(void *mac_ctx, 0049 nettle_hash_update_func *update, 0050 nettle_hash_digest_func *digest, 0051 size_t digest_size, 0052 size_t secret_size, const uint8_t *secret, 0053 uint8_t *dst); 0054 0055 void 0056 hkdf_expand(void *mac_ctx, 0057 nettle_hash_update_func *update, 0058 nettle_hash_digest_func *digest, 0059 size_t digest_size, 0060 size_t info_size, const uint8_t *info, 0061 size_t length, uint8_t *dst); 0062 0063 #ifdef __cplusplus 0064 } 0065 #endif 0066 0067 #endif /* NETTLE_HKDF_H_INCLUDED */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |