xref: /illumos-gate/usr/src/uts/common/fs/zfs/sys/hkdf.h (revision eb633035)
1*eb633035STom Caputi /*
2*eb633035STom Caputi  * CDDL HEADER START
3*eb633035STom Caputi  *
4*eb633035STom Caputi  * This file and its contents are supplied under the terms of the
5*eb633035STom Caputi  * Common Development and Distribution License ("CDDL"), version 1.0.
6*eb633035STom Caputi  * You may only use this file in accordance with the terms of version
7*eb633035STom Caputi  * 1.0 of the CDDL.
8*eb633035STom Caputi  *
9*eb633035STom Caputi  * A full copy of the text of the CDDL should have accompanied this
10*eb633035STom Caputi  * source.  A copy of the CDDL is also available via the Internet at
11*eb633035STom Caputi  * http://www.illumos.org/license/CDDL.
12*eb633035STom Caputi  *
13*eb633035STom Caputi  * CDDL HEADER END
14*eb633035STom Caputi  */
15*eb633035STom Caputi 
16*eb633035STom Caputi /*
17*eb633035STom Caputi  * Copyright (c) 2017, Datto, Inc. All rights reserved.
18*eb633035STom Caputi  */
19*eb633035STom Caputi 
20*eb633035STom Caputi #ifndef	_SYS_HKDF_H_
21*eb633035STom Caputi #define	_SYS_HKDF_H_
22*eb633035STom Caputi 
23*eb633035STom Caputi #include <sys/types.h>
24*eb633035STom Caputi 
25*eb633035STom Caputi int hkdf_sha512(uint8_t *key_material, uint_t km_len, uint8_t *salt,
26*eb633035STom Caputi     uint_t salt_len, uint8_t *info, uint_t info_len, uint8_t *output_key,
27*eb633035STom Caputi     uint_t out_len);
28*eb633035STom Caputi 
29*eb633035STom Caputi #endif	/* _SYS_HKDF_H_ */
30