1 /* 2 * CDDL HEADER START 3 * 4 * This file and its contents are supplied under the terms of the 5 * Common Development and Distribution License ("CDDL"), version 1.0. 6 * You may only use this file in accordance with the terms of version 7 * 1.0 of the CDDL. 8 * 9 * A full copy of the text of the CDDL should have accompanied this 10 * source. A copy of the CDDL is also available via the Internet at 11 * http://www.illumos.org/license/CDDL. 12 * 13 * CDDL HEADER END 14 */ 15 16 /* 17 * Copyright 2020 Joyent, Inc. 18 */ 19 20 #ifndef _SYS_ZCP_CHANGE_KEY_H 21 #define _SYS_ZCP_CHANGE_KEY_H 22 23 #include <sys/types.h> 24 #include <sys/dmu.h> 25 #include <sys/dsl_crypt.h> 26 27 #ifdef __cplusplus 28 extern "C" { 29 #endif 30 31 void zcp_synctask_change_key_cleanup(void *arg); 32 int zcp_synctask_change_key_check(void *arg, dmu_tx_t *tx); 33 void zcp_synctask_change_key_sync(void *arg, dmu_tx_t *tx); 34 int zcp_synctask_change_key_create_params(const char *key, size_t keylen, 35 zfs_keyformat_t keyformat, dsl_crypto_params_t **dcpp); 36 37 #ifdef __cplusplus 38 } 39 #endif 40 41 #endif /* _SYS_ZCP_CHANGE_KEY_H */ 42