aboutsummaryrefslogtreecommitdiffstats
path: root/test/fake_cipherprov.h
blob: 54ccd6face07b8551aef3de0abdf55008adaff33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Copyright 2024-2026 The OpenSSL Project Authors. All Rights Reserved.
 *
 * Licensed under the Apache License 2.0 (the "License").  You may not use
 * this file except in compliance with the License.  You can obtain a copy
 * in the file LICENSE in the source distribution or at
 * https://www.openssl.org/source/license.html
 */

#include <openssl/core_dispatch.h>

/* Fake cipher provider implementation */
OSSL_PROVIDER *fake_cipher_start(OSSL_LIB_CTX *libctx);
void fake_cipher_finish(OSSL_PROVIDER *p);

#define FAKE_PROV_NAME "fake-cipher"
#define FAKE_CIPHER_FETCH_PROPS "provider=fake-cipher"

#define FAKE_CIPHER_NO_GETPARAMS "fake_cipher_no_getparams"
#define FAKE_CIPHER_PARAM_KEY_NAME "key_name"