VirtualBox

source: vbox/trunk/src/libs/openssl-3.1.7/crypto/ec/ecx_backend.h@ 108344

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

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

檔案大小: 1017 位元組
 
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#define ISX448(id) ((id) == EVP_PKEY_X448)
11#define IS25519(id) ((id) == EVP_PKEY_X25519 || (id) == EVP_PKEY_ED25519)
12#define KEYLENID(id) (IS25519(id) ? X25519_KEYLEN \
13 : ((id) == EVP_PKEY_X448 ? X448_KEYLEN \
14 : ED448_KEYLEN))
15#define KEYNID2TYPE(id) \
16 (IS25519(id) ? ((id) == EVP_PKEY_X25519 ? ECX_KEY_TYPE_X25519 \
17 : ECX_KEY_TYPE_ED25519) \
18 : ((id) == EVP_PKEY_X448 ? ECX_KEY_TYPE_X448 \
19 : ECX_KEY_TYPE_ED448))
20#define KEYLEN(p) KEYLENID((p)->ameth->pkey_id)
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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