VirtualBox

source: vbox/trunk/src/libs/openssl-3.1.4/providers/implementations/include/prov/seeding.h@ 103285

最後變更 在這個檔案從103285是 102863,由 vboxsync 提交於 10 月 前

openssl-3.1.4: Applied and adjusted our OpenSSL changes to 3.1.3. bugref:10577

檔案大小: 1.2 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#include "prov/provider_ctx.h"
11#include "crypto/rand_pool.h"
12
13/* Hardware-based seeding functions. */
14size_t ossl_prov_acquire_entropy_from_tsc(RAND_POOL *pool);
15size_t ossl_prov_acquire_entropy_from_cpu(RAND_POOL *pool);
16
17/*
18 * External seeding functions from the core dispatch table.
19 */
20int ossl_prov_seeding_from_dispatch(const OSSL_DISPATCH *fns);
21
22size_t ossl_prov_get_entropy(PROV_CTX *prov_ctx, unsigned char **pout,
23 int entropy, size_t min_len, size_t max_len);
24void ossl_prov_cleanup_entropy(PROV_CTX *prov_ctx, unsigned char *buf,
25 size_t len);
26size_t ossl_prov_get_nonce(PROV_CTX *prov_ctx, unsigned char **pout,
27 size_t min_len, size_t max_len,
28 const void *salt, size_t salt_len);
29void ossl_prov_cleanup_nonce(PROV_CTX *prov_ctx, unsigned char *buf,
30 size_t len);
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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