]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - include/openssl/core_names.h
Prepare EVP_MAC infrastructure for moving all MACs to providers
[thirdparty/openssl.git] / include / openssl / core_names.h
index bf57d15d38db51cdd6e1d72ee4130e5a0ac1e926..e2d16be9641117cafe0387acd8697fd51d359757 100644 (file)
@@ -59,6 +59,26 @@ extern "C" {
 #define OSSL_DIGEST_PARAM_SIZE      "size" /* OSSL_PARAM_INTEGER */
 #define OSSL_DIGEST_PARAM_FLAGS     "flags" /* OSSL_PARAM_UNSIGNED_INTEGER */
 
+/* MAC parameters */
+#define OSSL_MAC_PARAM_KEY          "key"       /* octet string */
+#define OSSL_MAC_PARAM_IV           "iv"        /* octet string */
+#define OSSL_MAC_PARAM_CUSTOM       "custom"    /* utf8 string */
+#define OSSL_MAC_PARAM_SALT         "salt"      /* octet string */
+#define OSSL_MAC_PARAM_XOF          "xof"       /* int, 0 or 1 */
+#define OSSL_MAC_PARAM_FLAGS        "flags"     /* int */
+/* Note that "md" and "digest" are equivalent */
+#define OSSL_MAC_PARAM_MD           "md"        /* utf8 string */
+#define OSSL_MAC_PARAM_DIGEST       "digest"    /* utf8 string */
+#define OSSL_MAC_PARAM_CIPHER       "cipher"    /* utf8 string */
+/* Note that "algorithm" can be used instead of "md", "digest" or "cipher" */
+#define OSSL_MAC_PARAM_ALGORITHM    "algorithm" /* utf8 string */
+#define OSSL_MAC_PARAM_ENGINE       "engine"    /* utf8 string */
+#define OSSL_MAC_PARAM_PROPERTIES   "properties" /* utf8 string */
+/* Note that "size", "digestsize" and "outlen" are equivalent */
+#define OSSL_MAC_PARAM_SIZE         "size"      /* size_t */
+#define OSSL_MAC_PARAM_DIGESTSIZE   "digestsize" /* size_t */
+#define OSSL_MAC_PARAM_OUTLEN       "outlen"    /* size_t */
+
 /* PKEY parameters */
 /* Diffie-Hellman Parameters */
 #define OSSL_PKEY_PARAM_DH_P         "dh-p"