TLS PRF (SHA1 + MD5). More...
#include "includes.h"#include "common.h"#include "sha1.h"#include "md5.h"#include "crypto.h"
Go to the source code of this file.
Functions | |
| int | tls_prf (const u8 *secret, size_t secret_len, const char *label, const u8 *seed, size_t seed_len, u8 *out, size_t outlen) |
| Pseudo-Random Function for TLS (TLS-PRF, RFC 2246). | |
TLS PRF (SHA1 + MD5).
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
Alternatively, this software may be distributed under the terms of BSD license.
See README and COPYING for more details.
Definition in file sha1-tlsprf.c.
| int tls_prf | ( | const u8 * | secret, | |
| size_t | secret_len, | |||
| const char * | label, | |||
| const u8 * | seed, | |||
| size_t | seed_len, | |||
| u8 * | out, | |||
| size_t | outlen | |||
| ) |
Pseudo-Random Function for TLS (TLS-PRF, RFC 2246).
| secret | Key for PRF | |
| secret_len | Length of the key in bytes | |
| label | A unique label for each purpose of the PRF | |
| seed | Seed value to bind into the key | |
| seed_len | Length of the seed | |
| out | Buffer for the generated pseudo-random key | |
| outlen | Number of bytes of key to generate |
This function is used to derive new, cryptographically separate keys from a given key in TLS. This PRF is defined in RFC 2246, Chapter 5.
Definition at line 39 of file sha1-tlsprf.c.

1.6.1