VirtualBox

source: vbox/trunk/src/libs/openssl-3.0.1/crypto/bn/rsaz_exp.h@ 94081

最後變更 在這個檔案從94081是 91772,由 vboxsync 提交於 3 年 前

openssl-1.1.1l: Applied and adjusted our OpenSSL changes to 1.1.1l. bugref:10126

檔案大小: 1.4 KB
 
1/*
2 * Copyright 2013-2018 The OpenSSL Project Authors. All Rights Reserved.
3 * Copyright (c) 2012, Intel Corporation. All Rights Reserved.
4 *
5 * Licensed under the OpenSSL license (the "License"). You may not use
6 * this file except in compliance with the License. You can obtain a copy
7 * in the file LICENSE in the source distribution or at
8 * https://www.openssl.org/source/license.html
9 *
10 * Originally written by Shay Gueron (1, 2), and Vlad Krasnov (1)
11 * (1) Intel Corporation, Israel Development Center, Haifa, Israel
12 * (2) University of Haifa, Israel
13 */
14
15#ifndef OSSL_CRYPTO_BN_RSAZ_EXP_H
16# define OSSL_CRYPTO_BN_RSAZ_EXP_H
17
18# undef RSAZ_ENABLED
19# if defined(OPENSSL_BN_ASM_MONT) && \
20 (defined(__x86_64) || defined(__x86_64__) || \
21 defined(_M_AMD64) || defined(_M_X64))
22# define RSAZ_ENABLED
23
24# include <openssl/bn.h>
25
26void RSAZ_1024_mod_exp_avx2(BN_ULONG result[16],
27 const BN_ULONG base_norm[16],
28 const BN_ULONG exponent[16],
29 const BN_ULONG m_norm[16], const BN_ULONG RR[16],
30 BN_ULONG k0);
31int rsaz_avx2_eligible(void);
32
33void RSAZ_512_mod_exp(BN_ULONG result[8],
34 const BN_ULONG base_norm[8], const BN_ULONG exponent[8],
35 const BN_ULONG m_norm[8], BN_ULONG k0,
36 const BN_ULONG RR[8]);
37
38# endif
39
40#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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