VirtualBox

source: vbox/trunk/src/libs/openssl-3.1.3/providers/implementations/include/prov/macsignature.h@ 101211

Last change on this file since 101211 was 101211, checked in by vboxsync, 19 months ago

openssl-3.1.3: Applied and adjusted our OpenSSL changes to 3.1.2. bugref:10527

File size: 840 bytes
Line 
1/*
2 * Copyright 2020 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#include <stdlib.h>
11#include <openssl/crypto.h>
12#include "internal/refcount.h"
13#include "prov/provider_util.h"
14
15struct mac_key_st {
16 CRYPTO_RWLOCK *lock;
17 OSSL_LIB_CTX *libctx;
18 CRYPTO_REF_COUNT refcnt;
19 unsigned char *priv_key;
20 size_t priv_key_len;
21 PROV_CIPHER cipher;
22 char *properties;
23 int cmac;
24};
25
26typedef struct mac_key_st MAC_KEY;
27
28MAC_KEY *ossl_mac_key_new(OSSL_LIB_CTX *libctx, int cmac);
29void ossl_mac_key_free(MAC_KEY *mackey);
30int ossl_mac_key_up_ref(MAC_KEY *mackey);
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette