| 1 | /* |
|---|---|
| 2 | * Copyright (c) 2019, 2022 Apple Inc. |
| 3 | * All rights reserved. |
| 4 | */ |
| 5 | |
| 6 | #ifndef __content_filter_crypto_h |
| 7 | #define __content_filter_crypto_h |
| 8 | |
| 9 | #include <net/content_filter.h> |
| 10 | |
| 11 | extern cfil_crypto_state_t |
| 12 | cfil_crypto_init_client(cfil_crypto_key client_key); |
| 13 | |
| 14 | extern void |
| 15 | cfil_crypto_cleanup_state(cfil_crypto_state_t state); |
| 16 | |
| 17 | extern int |
| 18 | cfil_crypto_sign_data(cfil_crypto_state_t state, cfil_crypto_data_t data, |
| 19 | const struct iovec *extra_data, size_t extra_data_count, |
| 20 | cfil_crypto_signature signature, u_int32_t *signature_length); |
| 21 | |
| 22 | #endif // __content_filter_crypto_h |
| 23 |