Make the EVP Key Exchange code provider aware
[openssl.git] / include / openssl / core_names.h
1 /*
2  * Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
3  *
4  * Licensed under the Apache License 2.0 (the "License").  You may not use
5  * this file except in compliance with the License.  You can obtain a copy
6  * in the file LICENSE in the source distribution or at
7  * https://www.openssl.org/source/license.html
8  */
9
10 #ifndef OSSL_CORE_NAMES_H
11 # define OSSL_CORE_NAMES_H
12
13 # ifdef __cplusplus
14 extern "C" {
15 # endif
16
17 /*
18  * Well known parameter names that Providers can define
19  */
20
21 /*
22  * A printable name for this provider
23  * Type: OSSL_PARAM_UTF8_STRING
24  */
25 #define OSSL_PROV_PARAM_NAME        "name"
26 /*
27  * A version string for this provider
28  * Type: OSSL_PARAM_UTF8_STRING
29  */
30 #define OSSL_PROV_PARAM_VERSION     "version"
31 /*
32  * A string providing provider specific build information
33  * Type: OSSL_PARAM_UTF8_STRING
34  */
35 #define OSSL_PROV_PARAM_BUILDINFO   "buildinfo"
36
37
38 /* cipher parameters */
39 #define OSSL_CIPHER_PARAM_PADDING   "padding"    /* int */
40 #define OSSL_CIPHER_PARAM_MODE      "mode"       /* int */
41 #define OSSL_CIPHER_PARAM_BLOCK_SIZE "blocksize" /* int */
42 #define OSSL_CIPHER_PARAM_FLAGS     "flags"      /* ulong */
43 #define OSSL_CIPHER_PARAM_KEYLEN    "keylen"     /* int */
44 #define OSSL_CIPHER_PARAM_IVLEN     "ivlen"      /* int */
45 #define OSSL_CIPHER_PARAM_IV        "iv"         /* octet_string OR octet_ptr */
46 #define OSSL_CIPHER_PARAM_NUM       "num"        /* int */
47 #define OSSL_CIPHER_PARAM_AEAD_TAG           "tag"        /* octet_string */
48 #define OSSL_CIPHER_PARAM_AEAD_TLS1_AAD      "tlsaad"     /* octet_string */
49 #define OSSL_CIPHER_PARAM_AEAD_TLS1_AAD_PAD  "tlsaadpad"  /* size_t */
50 #define OSSL_CIPHER_PARAM_AEAD_TLS1_IV_FIXED "tlsivfixed" /* octet_string */
51 #define OSSL_CIPHER_PARAM_AEAD_IVLEN         "aeadivlen"  /* size_t */
52
53 /* digest parameters */
54 #define OSSL_DIGEST_PARAM_XOFLEN    "xoflen"
55 #define OSSL_DIGEST_PARAM_SSL3_MS   "ssl3-ms"
56 #define OSSL_DIGEST_PARAM_PAD_TYPE  "pad_type"
57 #define OSSL_DIGEST_PARAM_MICALG    "micalg"
58
59 /* PKEY parameters */
60 /* Diffie-Hellman Parameters */
61 #define OSSL_PKEY_PARAM_DH_P         "dh-p"
62 #define OSSL_PKEY_PARAM_DH_G         "dh-g"
63 #define OSSL_PKEY_PARAM_DH_Q         "dh-q"
64 /* Diffie-Hellman Keys */
65 #define OSSL_PKEY_PARAM_DH_PUB_KEY   "dh-pub"
66 #define OSSL_PKEY_PARAM_DH_PRIV_KEY  "dh-priv"
67
68 # ifdef __cplusplus
69 }
70 # endif
71
72 #endif