VirtualBox

忽略:
時間撮記:
2022-3-3 下午07:17:34 (3 年 以前)
作者:
vboxsync
svn:sync-xref-src-repo-rev:
150325
訊息:

libs/openssl-3.0.1: started applying and adjusting our OpenSSL changes to 3.0.1. bugref:10128

位置:
trunk/src/libs/openssl-3.0.1
檔案:
修改 2 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/libs/openssl-3.0.1

    • 屬性 svn:mergeinfo
      •  

        old new  
        1212/vendor/openssl/1.1.1c:131722-131725
        1313/vendor/openssl/1.1.1k:145841-145843
         14/vendor/openssl/3.0.1:150323-150324
         15/vendor/openssl/current:147554-150322
  • trunk/src/libs/openssl-3.0.1/include/crypto/ec.h

    r91772 r94082  
    11/*
    2  * Copyright 2018 The OpenSSL Project Authors. All Rights Reserved.
     2 * Copyright 2018-2021 The OpenSSL Project Authors. All Rights Reserved.
    33 *
    4  * Licensed under the OpenSSL license (the "License").  You may not use
     4 * Licensed under the Apache License 2.0 (the "License").  You may not use
    55 * this file except in compliance with the License.  You can obtain a copy
    66 * in the file LICENSE in the source distribution or at
     
    1212#ifndef OSSL_CRYPTO_EC_H
    1313# define OSSL_CRYPTO_EC_H
     14# pragma once
     15
    1416# include <openssl/opensslconf.h>
     17# include <openssl/evp.h>
     18
     19int ossl_ec_curve_name2nid(const char *name);
     20const char *ossl_ec_curve_nid2nist_int(int nid);
     21int ossl_ec_curve_nist2nid_int(const char *name);
     22int evp_pkey_ctx_set_ec_param_enc_prov(EVP_PKEY_CTX *ctx, int param_enc);
    1523
    1624# ifndef OPENSSL_NO_EC
    17 
     25#  include <openssl/core.h>
    1826#  include <openssl/ec.h>
     27#  include "crypto/types.h"
    1928
    2029/*-
     
    3948 * implementations for better SCA properties on regular input values).
    4049 */
    41 __owur int ec_group_do_inverse_ord(const EC_GROUP *group, BIGNUM *res,
    42                                    const BIGNUM *x, BN_CTX *ctx);
     50__owur int ossl_ec_group_do_inverse_ord(const EC_GROUP *group, BIGNUM *res,
     51                                        const BIGNUM *x, BN_CTX *ctx);
    4352
    4453/*-
    4554 * ECDH Key Derivation Function as defined in ANSI X9.63
    4655 */
    47 int ecdh_KDF_X9_63(unsigned char *out, size_t outlen,
    48                    const unsigned char *Z, size_t Zlen,
    49                    const unsigned char *sinfo, size_t sinfolen,
    50                    const EVP_MD *md);
     56int ossl_ecdh_kdf_X9_63(unsigned char *out, size_t outlen,
     57                        const unsigned char *Z, size_t Zlen,
     58                        const unsigned char *sinfo, size_t sinfolen,
     59                        const EVP_MD *md, OSSL_LIB_CTX *libctx,
     60                        const char *propq);
     61
     62int ossl_ec_key_public_check(const EC_KEY *eckey, BN_CTX *ctx);
     63int ossl_ec_key_public_check_quick(const EC_KEY *eckey, BN_CTX *ctx);
     64int ossl_ec_key_private_check(const EC_KEY *eckey);
     65int ossl_ec_key_pairwise_check(const EC_KEY *eckey, BN_CTX *ctx);
     66OSSL_LIB_CTX *ossl_ec_key_get_libctx(const EC_KEY *eckey);
     67const char *ossl_ec_key_get0_propq(const EC_KEY *eckey);
     68void ossl_ec_key_set0_libctx(EC_KEY *key, OSSL_LIB_CTX *libctx);
     69
     70/* Backend support */
     71int ossl_ec_group_todata(const EC_GROUP *group, OSSL_PARAM_BLD *tmpl,
     72                         OSSL_PARAM params[], OSSL_LIB_CTX *libctx,
     73                         const char *propq,
     74                         BN_CTX *bnctx, unsigned char **genbuf);
     75int ossl_ec_group_fromdata(EC_KEY *ec, const OSSL_PARAM params[]);
     76int ossl_ec_group_set_params(EC_GROUP *group, const OSSL_PARAM params[]);
     77int ossl_ec_key_fromdata(EC_KEY *ecx, const OSSL_PARAM params[],
     78                         int include_private);
     79int ossl_ec_key_otherparams_fromdata(EC_KEY *ec, const OSSL_PARAM params[]);
     80int ossl_ec_key_is_foreign(const EC_KEY *ec);
     81EC_KEY *ossl_ec_key_dup(const EC_KEY *key, int selection);
     82int ossl_x509_algor_is_sm2(const X509_ALGOR *palg);
     83EC_KEY *ossl_ec_key_param_from_x509_algor(const X509_ALGOR *palg,
     84                                          OSSL_LIB_CTX *libctx,
     85                                          const char *propq);
     86EC_KEY *ossl_ec_key_from_pkcs8(const PKCS8_PRIV_KEY_INFO *p8inf,
     87                               OSSL_LIB_CTX *libctx, const char *propq);
     88
     89int ossl_ec_set_ecdh_cofactor_mode(EC_KEY *ec, int mode);
     90int ossl_ec_encoding_name2id(const char *name);
     91int ossl_ec_encoding_param2id(const OSSL_PARAM *p, int *id);
     92int ossl_ec_pt_format_name2id(const char *name);
     93int ossl_ec_pt_format_param2id(const OSSL_PARAM *p, int *id);
     94char *ossl_ec_pt_format_id2name(int id);
     95
     96char *ossl_ec_check_group_type_id2name(int flags);
     97int ossl_ec_set_check_group_type_from_name(EC_KEY *ec, const char *name);
    5198
    5299# endif /* OPENSSL_NO_EC */
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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