| OLD | NEW |
| (Empty) |
| 1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ | |
| 2 /* | |
| 3 * This file is PRIVATE to SSL. | |
| 4 * | |
| 5 * This Source Code Form is subject to the terms of the Mozilla Public | |
| 6 * License, v. 2.0. If a copy of the MPL was not distributed with this | |
| 7 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
| 8 | |
| 9 #ifndef __tls13hkdf_h_ | |
| 10 #define __tls13hkdf_h_ | |
| 11 | |
| 12 #include "keyhi.h" | |
| 13 #include "sslt.h" | |
| 14 | |
| 15 #ifdef __cplusplus | |
| 16 extern "C" { | |
| 17 #endif | |
| 18 | |
| 19 SECStatus tls13_HkdfExtract( | |
| 20 PK11SymKey *ikm1, PK11SymKey *ikm2, SSLHashType baseHash, | |
| 21 PK11SymKey **prkp); | |
| 22 SECStatus tls13_HkdfExpandLabelRaw( | |
| 23 PK11SymKey *prk, SSLHashType baseHash, | |
| 24 const PRUint8 *handshakeHash, unsigned int handshakeHashLen, | |
| 25 const char *label, unsigned int labelLen, | |
| 26 unsigned char *output, unsigned int outputLen); | |
| 27 SECStatus tls13_HkdfExpandLabel( | |
| 28 PK11SymKey *prk, SSLHashType baseHash, | |
| 29 const PRUint8 *handshakeHash, unsigned int handshakeHashLen, | |
| 30 const char *label, unsigned int labelLen, | |
| 31 CK_MECHANISM_TYPE algorithm, unsigned int keySize, | |
| 32 PK11SymKey **keyp); | |
| 33 | |
| 34 #ifdef __cplusplus | |
| 35 } | |
| 36 #endif | |
| 37 | |
| 38 #endif | |
| OLD | NEW |