VirtualBox

source: vbox/trunk/src/libs/openssl-3.1.7/include/crypto/decoder.h@ 107278

最後變更 在這個檔案從107278是 104078,由 vboxsync 提交於 11 月 前

openssl-3.1.5: Applied and adjusted our OpenSSL changes to 3.1.4. bugref:10638

檔案大小: 1.8 KB
 
1/*
2 * Copyright 2020-2022 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_CRYPTO_DECODER_H
11# define OSSL_CRYPTO_DECODER_H
12# ifndef RT_WITHOUT_PRAGMA_ONCE /* VBOX */
13# pragma once
14# endif /* VBOX */
15
16# include <openssl/decoder.h>
17
18/*
19 * These are specially made for the 'file:' provider-native loader, which
20 * uses this to install a DER to anything decoder, which doesn't do much
21 * except read a DER blob and pass it on as a provider object abstraction
22 * (provider-object(7)).
23 */
24void *ossl_decoder_from_algorithm(int id, const OSSL_ALGORITHM *algodef,
25 OSSL_PROVIDER *prov);
26
27OSSL_DECODER_INSTANCE *
28ossl_decoder_instance_new(OSSL_DECODER *decoder, void *decoderctx);
29void ossl_decoder_instance_free(OSSL_DECODER_INSTANCE *decoder_inst);
30int ossl_decoder_ctx_add_decoder_inst(OSSL_DECODER_CTX *ctx,
31 OSSL_DECODER_INSTANCE *di);
32
33int ossl_decoder_ctx_setup_for_pkey(OSSL_DECODER_CTX *ctx,
34 EVP_PKEY **pkey, const char *keytype,
35 OSSL_LIB_CTX *libctx,
36 const char *propquery);
37
38int ossl_decoder_get_number(const OSSL_DECODER *encoder);
39int ossl_decoder_store_cache_flush(OSSL_LIB_CTX *libctx);
40int ossl_decoder_store_remove_all_provided(const OSSL_PROVIDER *prov);
41
42#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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