Path: blob/main/crypto/openssl/providers/implementations/include/prov/macsignature.h
48534 views
/*1* Copyright 2020-2023 The OpenSSL Project Authors. All Rights Reserved.2*3* Licensed under the Apache License 2.0 (the "License"). You may not use4* this file except in compliance with the License. You can obtain a copy5* in the file LICENSE in the source distribution or at6* https://www.openssl.org/source/license.html7*/89#include <stdlib.h>10#include <openssl/crypto.h>11#include "internal/refcount.h"12#include "prov/provider_util.h"1314struct mac_key_st {15OSSL_LIB_CTX *libctx;16CRYPTO_REF_COUNT refcnt;17unsigned char *priv_key;18size_t priv_key_len;19PROV_CIPHER cipher;20char *properties;21int cmac;22};2324typedef struct mac_key_st MAC_KEY;2526MAC_KEY *ossl_mac_key_new(OSSL_LIB_CTX *libctx, int cmac);27void ossl_mac_key_free(MAC_KEY *mackey);28int ossl_mac_key_up_ref(MAC_KEY *mackey);293031