mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-08-07 21:53:41 +08:00
Update CPK sub-lib
Use simple NID as arguments, and fix some bugs
This commit is contained in:
@@ -1,3 +1,2 @@
|
||||
LIBS=../../libcrypto
|
||||
SOURCE[../../libcrypto]=cpk_asn1.c cpk_err.c cpk_kap.c cpk_lib.c cpk_map.c \
|
||||
cpk_prn.c
|
||||
SOURCE[../../libcrypto]=cpk_asn1.c cpk_err.c cpk_lib.c cpk_map.c cpk_prn.c
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Generated by util/mkerr.pl DO NOT EDIT
|
||||
* Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.
|
||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
@@ -19,26 +19,42 @@
|
||||
# define ERR_REASON(reason) ERR_PACK(ERR_LIB_CPK,0,reason)
|
||||
|
||||
static ERR_STRING_DATA CPK_str_functs[] = {
|
||||
{ERR_FUNC(CPK_F_CPK_MAP_GET_MD), "CPK_MAP_get_md"},
|
||||
{ERR_FUNC(CPK_F_CPK_MAP_IS_VALID), "CPK_MAP_is_valid"},
|
||||
{ERR_FUNC(CPK_F_CPK_MAP_NEW), "CPK_MAP_new"},
|
||||
{ERR_FUNC(CPK_F_CPK_MAP_NEW_DEFAULT), "CPK_MAP_new_default"},
|
||||
{ERR_FUNC(CPK_F_CPK_MAP_NUM_FACTORS), "CPK_MAP_num_factors"},
|
||||
{ERR_FUNC(CPK_F_CPK_MAP_NUM_INDEXES), "CPK_MAP_num_indexes"},
|
||||
{ERR_FUNC(CPK_F_CPK_MAP_NUM_SUBSET), "CPK_MAP_num_subset"},
|
||||
{ERR_FUNC(CPK_F_CPK_MAP_STR2INDEX), "CPK_MAP_str2index"},
|
||||
{ERR_FUNC(CPK_F_CPK_MASTER_SECRET_CREATE), "CPK_MASTER_SECRET_create"},
|
||||
{ERR_FUNC(CPK_F_CPK_MASTER_SECRET_EXTRACT_PRIVATE_KEY),
|
||||
"CPK_MASTER_SECRET_extract_private_key"},
|
||||
{ERR_FUNC(CPK_F_CPK_MASTER_SECRET_EXTRACT_PUBLIC_PARAMS),
|
||||
"CPK_MASTER_SECRET_extract_public_params"},
|
||||
{ERR_FUNC(CPK_F_CPK_MASTER_SECRET_PRINT), "CPK_MASTER_SECRET_print"},
|
||||
{ERR_FUNC(CPK_F_CPK_MASTER_SECRET_VALIDATE_PUBLIC_PARAMS),
|
||||
"CPK_MASTER_SECRET_validate_public_params"},
|
||||
{ERR_FUNC(CPK_F_CPK_PUBLIC_PARAMS_COMPUTE_SHARE_KEY),
|
||||
"CPK_PUBLIC_PARAMS_compute_share_key"},
|
||||
{ERR_FUNC(CPK_F_CPK_PUBLIC_PARAMS_EXTRACT_PUBLIC_KEY),
|
||||
"CPK_PUBLIC_PARAMS_extract_public_key"},
|
||||
{ERR_FUNC(CPK_F_CPK_PUBLIC_PARAMS_PRINT), "CPK_PUBLIC_PARAMS_print"},
|
||||
{ERR_FUNC(CPK_F_CPK_PUBLIC_PARAMS_VALIDATE_PRIVATE_KEY),
|
||||
"CPK_PUBLIC_PARAMS_validate_private_key"},
|
||||
{ERR_FUNC(CPK_F_EXTRACT_EC_PARAMS), "extract_ec_params"},
|
||||
{ERR_FUNC(CPK_F_EXTRACT_EC_PRIV_KEY), "extract_ec_priv_key"},
|
||||
{ERR_FUNC(CPK_F_EXTRACT_EC_PUB_KEY), "extract_ec_pub_key"},
|
||||
{ERR_FUNC(CPK_F_X509_ALGOR_GET1_EC_KEY), "X509_ALGOR_get1_EC_KEY"},
|
||||
{0, NULL}
|
||||
};
|
||||
|
||||
static ERR_STRING_DATA CPK_str_reasons[] = {
|
||||
{ERR_REASON(CPK_R_BAD_ARGUMENT), "bad argument"},
|
||||
{ERR_REASON(CPK_R_BAD_ARGUMENTS), "bad arguments"},
|
||||
{ERR_REASON(CPK_R_BAD_DATA), "bad data"},
|
||||
{ERR_REASON(CPK_R_INVALID_ALGORITHM), "invalid algorithm"},
|
||||
{ERR_REASON(CPK_R_INVALID_ARGUMENT), "invalid argument"},
|
||||
{ERR_REASON(CPK_R_INVALID_ID_LENGTH), "invalid id length"},
|
||||
{ERR_REASON(CPK_R_INVALID_MAP_ALGOR), "invalid map algor"},
|
||||
{ERR_REASON(CPK_R_INVALID_PKEY_TYPE), "invalid pkey type"},
|
||||
|
||||
@@ -1,96 +0,0 @@
|
||||
/* ====================================================================
|
||||
* Copyright (c) 2007 - 2016 The GmSSL Project. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in
|
||||
* the documentation and/or other materials provided with the
|
||||
* distribution.
|
||||
*
|
||||
* 3. All advertising materials mentioning features or use of this
|
||||
* software must display the following acknowledgment:
|
||||
* "This product includes software developed by the GmSSL Project.
|
||||
* (http://gmssl.org/)"
|
||||
*
|
||||
* 4. The name "GmSSL Project" must not be used to endorse or promote
|
||||
* products derived from this software without prior written
|
||||
* permission. For written permission, please contact
|
||||
* guanzhi1980@gmail.com.
|
||||
*
|
||||
* 5. Products derived from this software may not be called "GmSSL"
|
||||
* nor may "GmSSL" appear in their names without prior written
|
||||
* permission of the GmSSL Project.
|
||||
*
|
||||
* 6. Redistributions of any form whatsoever must retain the following
|
||||
* acknowledgment:
|
||||
* "This product includes software developed by the GmSSL Project
|
||||
* (http://gmssl.org/)"
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE GmSSL PROJECT ``AS IS'' AND ANY
|
||||
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE GmSSL PROJECT OR
|
||||
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
||||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
* ====================================================================
|
||||
*/
|
||||
|
||||
#include <openssl/evp.h>
|
||||
#include <openssl/ecdh.h>
|
||||
#include <openssl/objects.h>
|
||||
#include <openssl/cpk.h>
|
||||
#include "cpk_lcl.h"
|
||||
|
||||
int CPK_PUBLIC_PARAMS_compute_share_key(CPK_PUBLIC_PARAMS *params,
|
||||
void *out, size_t outlen, const char *id, EVP_PKEY *priv_key,
|
||||
void *(*kdf)(const void *in, size_t inlen, void *out, size_t *outlen))
|
||||
{
|
||||
int ret = 0;
|
||||
EVP_PKEY *pub_key = NULL;
|
||||
int pkey_type = OBJ_obj2nid(params->pkey_algor->algorithm);
|
||||
|
||||
OPENSSL_assert(kdf != NULL);
|
||||
|
||||
printf("%d\n", __LINE__);
|
||||
if (EVP_PKEY_id(priv_key) != pkey_type) {
|
||||
CPKerr(CPK_F_CPK_PUBLIC_PARAMS_COMPUTE_SHARE_KEY,
|
||||
ERR_R_MALLOC_FAILURE); //FIXME: ERR_R_XXX
|
||||
goto err;
|
||||
}
|
||||
if (!(pub_key = CPK_PUBLIC_PARAMS_extract_public_key(params, id))) {
|
||||
CPKerr(CPK_F_CPK_PUBLIC_PARAMS_COMPUTE_SHARE_KEY,
|
||||
ERR_R_MALLOC_FAILURE); //FIXME: ERR_R_XXX
|
||||
goto err;
|
||||
}
|
||||
if (pkey_type == EVP_PKEY_EC) {
|
||||
|
||||
if (!ECDH_compute_key(out, outlen,
|
||||
EC_KEY_get0_public_key((EC_KEY *)EVP_PKEY_get0(pub_key)),
|
||||
(EC_KEY *)EVP_PKEY_get0(priv_key), kdf)) {
|
||||
CPKerr(CPK_F_CPK_PUBLIC_PARAMS_COMPUTE_SHARE_KEY,
|
||||
ERR_R_MALLOC_FAILURE); //FIXME: ERR_R_XXX
|
||||
goto err;
|
||||
}
|
||||
} else if (pkey_type == EVP_PKEY_DH) {
|
||||
// not supported yet
|
||||
goto err;
|
||||
}
|
||||
|
||||
|
||||
ret = 1;
|
||||
err:
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -68,3 +68,11 @@ struct cpk_public_params_st {
|
||||
X509_ALGOR *map_algor;
|
||||
ASN1_OCTET_STRING *public_factors;
|
||||
};
|
||||
|
||||
X509_ALGOR *CPK_MAP_new(int type);
|
||||
X509_ALGOR * CPK_MAP_new_default(void);
|
||||
int CPK_MAP_is_valid(const X509_ALGOR *algor);
|
||||
int CPK_MAP_num_factors(const X509_ALGOR *algor);
|
||||
int CPK_MAP_num_indexes(const X509_ALGOR *algor);
|
||||
int CPK_MAP_str2index(const X509_ALGOR *algor, const char *str, int *index);
|
||||
|
||||
|
||||
@@ -62,30 +62,27 @@
|
||||
#include "../x509/x509_lcl.h"
|
||||
#include "cpk_lcl.h"
|
||||
|
||||
#define ASN1_STRING_data(a) ((a)->data)
|
||||
|
||||
|
||||
static EC_KEY *X509_ALGOR_get1_EC_KEY(X509_ALGOR *algor);
|
||||
static int extract_ec_params(CPK_MASTER_SECRET *master, CPK_PUBLIC_PARAMS *param);
|
||||
static EC_KEY *extract_ec_priv_key(CPK_MASTER_SECRET *master, const char *id);
|
||||
static EC_KEY *extract_ec_pub_key(CPK_PUBLIC_PARAMS *param, const char *id);
|
||||
|
||||
|
||||
|
||||
CPK_MASTER_SECRET *CPK_MASTER_SECRET_create(const char *domain_id,
|
||||
EVP_PKEY *pkey, X509_ALGOR *map_algor)
|
||||
CPK_MASTER_SECRET *CPK_MASTER_SECRET_create(const char *domain_id, int pkey_nid, int map_nid)
|
||||
{
|
||||
int e = 1;
|
||||
CPK_MASTER_SECRET *master = NULL;
|
||||
BIGNUM *bn = NULL;
|
||||
BIGNUM *order = NULL;
|
||||
X509_PUBKEY *pubkey = NULL;
|
||||
const X509_ALGOR *pkey_algor;
|
||||
X509_ALGOR *pkey_algor;
|
||||
int pkey_type;
|
||||
int i, bn_size, num_factors;
|
||||
unsigned char *bn_ptr;
|
||||
EVP_PKEY *pkey = NULL;
|
||||
X509_ALGOR *map_algor = NULL;
|
||||
|
||||
if (!domain_id || !pkey || !map_algor) {
|
||||
if (!domain_id) {
|
||||
CPKerr(CPK_F_CPK_MASTER_SECRET_CREATE, ERR_R_PASSED_NULL_PARAMETER);
|
||||
return NULL;
|
||||
}
|
||||
@@ -94,6 +91,21 @@ CPK_MASTER_SECRET *CPK_MASTER_SECRET_create(const char *domain_id,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* pkey type and domain parameters is required
|
||||
* EC:curve
|
||||
* SM9:curve ...
|
||||
*
|
||||
* so we do not check pkey_nid
|
||||
*/
|
||||
|
||||
//FIXME: merge into ec routine
|
||||
EC_KEY *ec = EC_KEY_new_by_curve_name(NID_sm2p256v1);
|
||||
EC_KEY_generate_key(ec);
|
||||
pkey = EVP_PKEY_new();
|
||||
EVP_PKEY_set1_EC_KEY(pkey, ec);
|
||||
//FIXME: free ec
|
||||
map_algor = CPK_MAP_new(map_nid);
|
||||
|
||||
pkey_type = EVP_PKEY_id(pkey);
|
||||
if (pkey_type == EVP_PKEY_EC) {
|
||||
const EC_GROUP *ec_group;
|
||||
@@ -190,7 +202,7 @@ err:
|
||||
CPK_MASTER_SECRET_free(master);
|
||||
master = NULL;
|
||||
}
|
||||
if (pubkey) X509_PUBKEY_free(pubkey);
|
||||
X509_PUBKEY_free(pubkey);
|
||||
if (order && pkey_type == EVP_PKEY_EC) BN_free(order);
|
||||
if (bn) BN_free(bn);
|
||||
return master;
|
||||
@@ -302,7 +314,6 @@ EVP_PKEY *CPK_PUBLIC_PARAMS_extract_public_key(CPK_PUBLIC_PARAMS *param,
|
||||
{
|
||||
EVP_PKEY *pkey = NULL;
|
||||
int pkey_type;
|
||||
//char domain_id[CPK_MAX_ID_LENGTH + 1];
|
||||
|
||||
if (!(pkey = EVP_PKEY_new())) {
|
||||
CPKerr(CPK_F_CPK_PUBLIC_PARAMS_EXTRACT_PUBLIC_KEY,
|
||||
@@ -340,28 +351,6 @@ err:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int CPK_MASTER_SECRET_digest(CPK_MASTER_SECRET *master, const EVP_MD *md,
|
||||
unsigned char *dgst, unsigned int *dgstlen)
|
||||
{
|
||||
if (!EVP_Digest(ASN1_STRING_data(master->secret_factors),
|
||||
ASN1_STRING_length(master->secret_factors),
|
||||
dgst, dgstlen, md, NULL)) {
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
int CPK_PUBLIC_PARAMS_digest(CPK_PUBLIC_PARAMS *params, const EVP_MD *md,
|
||||
unsigned char *dgst, unsigned int *dgstlen)
|
||||
{
|
||||
if (!EVP_Digest(ASN1_STRING_data(params->public_factors),
|
||||
ASN1_STRING_length(params->public_factors),
|
||||
dgst, dgstlen, md, NULL)) {
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
char *CPK_MASTER_SECRET_get_name(CPK_MASTER_SECRET *master, char *buf, int size)
|
||||
{
|
||||
return X509_NAME_oneline(master->id, buf, size);
|
||||
@@ -379,15 +368,15 @@ int CPK_MASTER_SECRET_validate_public_params(CPK_MASTER_SECRET *master,
|
||||
CPK_PUBLIC_PARAMS *tmp = NULL;
|
||||
|
||||
if (!(tmp = CPK_MASTER_SECRET_extract_public_params(master))) {
|
||||
fprintf(stderr, "shit1\n");
|
||||
CPKerr(CPK_F_CPK_MASTER_SECRET_VALIDATE_PUBLIC_PARAMS, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
if (tmp->version != params->version) {
|
||||
fprintf(stderr, "shit2\n");
|
||||
CPKerr(CPK_F_CPK_MASTER_SECRET_VALIDATE_PUBLIC_PARAMS, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
if (X509_NAME_cmp(tmp->id, params->id)) {
|
||||
fprintf(stderr, "shit3\n");
|
||||
CPKerr(CPK_F_CPK_MASTER_SECRET_VALIDATE_PUBLIC_PARAMS, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
|
||||
@@ -398,23 +387,23 @@ int CPK_MASTER_SECRET_validate_public_params(CPK_MASTER_SECRET *master,
|
||||
*/
|
||||
if (OBJ_obj2nid(tmp->pkey_algor->algorithm) !=
|
||||
OBJ_obj2nid(params->pkey_algor->algorithm)) {
|
||||
fprintf(stderr, "shit4\n");
|
||||
CPKerr(CPK_F_CPK_MASTER_SECRET_VALIDATE_PUBLIC_PARAMS, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
// FIXME: pkey_algor->parameters
|
||||
if (OBJ_obj2nid(tmp->map_algor->algorithm) !=
|
||||
OBJ_obj2nid(params->map_algor->algorithm)) {
|
||||
fprintf(stderr, "shit5\n");
|
||||
CPKerr(CPK_F_CPK_MASTER_SECRET_VALIDATE_PUBLIC_PARAMS, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
if (ASN1_STRING_cmp(tmp->public_factors, params->public_factors)) {
|
||||
fprintf(stderr, "shit6\n");
|
||||
CPKerr(CPK_F_CPK_MASTER_SECRET_VALIDATE_PUBLIC_PARAMS, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
|
||||
ret = 1;
|
||||
err:
|
||||
if (tmp) CPK_PUBLIC_PARAMS_free(tmp);
|
||||
CPK_PUBLIC_PARAMS_free(tmp);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -495,49 +484,60 @@ static int extract_ec_params(CPK_MASTER_SECRET *master, CPK_PUBLIC_PARAMS *param
|
||||
unsigned char *pt_ptr;
|
||||
|
||||
if (!bn || !order || !ctx) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PARAMS, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
|
||||
if (!(ec_key = X509_ALGOR_get1_EC_KEY(master->pkey_algor))) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PARAMS, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
ec_group = EC_KEY_get0_group(ec_key);
|
||||
if (!(EC_GROUP_get_order(ec_group, order, ctx))) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PARAMS, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
bn_size = BN_num_bytes(order);
|
||||
pt_size = bn_size + 1;
|
||||
|
||||
if ((num_factors = CPK_MAP_num_factors(master->map_algor)) <= 0) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PARAMS, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
if (ASN1_STRING_length(master->secret_factors) != bn_size * num_factors) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PARAMS, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
if (!ASN1_STRING_set(param->public_factors, NULL, pt_size * num_factors)) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PARAMS, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
|
||||
bn_ptr = ASN1_STRING_data(master->secret_factors);
|
||||
pt_ptr = ASN1_STRING_data(param->public_factors);
|
||||
bn_ptr = ASN1_STRING_get0_data(master->secret_factors);
|
||||
pt_ptr = ASN1_STRING_get0_data(param->public_factors);
|
||||
memset(pt_ptr, 0, ASN1_STRING_length(param->public_factors));
|
||||
|
||||
if (!(pt = EC_POINT_new(ec_group))) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PARAMS, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
for (i = 0; i < num_factors; i++) {
|
||||
if (!BN_bin2bn(bn_ptr, bn_size, bn)) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PARAMS, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
if (BN_is_zero(bn) || BN_cmp(bn, order) >= 0) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PARAMS, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
if (!EC_POINT_mul(ec_group, pt, bn, NULL, NULL, ctx)) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PARAMS, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
|
||||
if (!EC_POINT_point2oct(ec_group, pt,
|
||||
POINT_CONVERSION_COMPRESSED, pt_ptr, pt_size, ctx)) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PARAMS, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
bn_ptr += bn_size;
|
||||
@@ -569,56 +569,69 @@ static EC_KEY *extract_ec_priv_key(CPK_MASTER_SECRET *master, const char *id)
|
||||
|
||||
|
||||
if (!priv_key || !bn || !order || !ctx) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PRIV_KEY, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
|
||||
if (!(ec_key = X509_ALGOR_get1_EC_KEY(master->pkey_algor))) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PRIV_KEY, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
ec_group = EC_KEY_get0_group(ec_key);
|
||||
if (!(pub_key = EC_POINT_new(ec_group))) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PRIV_KEY, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
|
||||
if ((num_indexes = CPK_MAP_num_indexes(master->map_algor)) <= 0) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PRIV_KEY, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
if (!(index = OPENSSL_malloc(sizeof(int) * num_indexes))) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PRIV_KEY, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
if (!CPK_MAP_str2index(master->map_algor, id, index)) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PRIV_KEY, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
|
||||
BN_zero(priv_key);
|
||||
if (!(EC_GROUP_get_order(EC_KEY_get0_group(ec_key), order, ctx))) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PRIV_KEY, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
bn_size = BN_num_bytes(order);
|
||||
|
||||
for (i = 0; i < num_indexes; i++) {
|
||||
const unsigned char *p =
|
||||
ASN1_STRING_data(master->secret_factors) +
|
||||
ASN1_STRING_get0_data(master->secret_factors) +
|
||||
bn_size * index[i];
|
||||
|
||||
if (!BN_bin2bn(p, bn_size, bn)) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PRIV_KEY, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
if (BN_is_zero(bn) || BN_cmp(bn, order) >= 0) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PRIV_KEY, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
if (!BN_mod_add(priv_key, priv_key, bn, order, ctx)) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PRIV_KEY, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
if (!EC_KEY_set_private_key(ec_key, priv_key)) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PRIV_KEY, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
|
||||
if (!EC_POINT_mul(ec_group, pub_key, priv_key, NULL, NULL, ctx)) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PRIV_KEY, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
if (!EC_KEY_set_public_key(ec_key, pub_key)) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PRIV_KEY, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
e = 0;
|
||||
@@ -651,55 +664,70 @@ static EC_KEY *extract_ec_pub_key(CPK_PUBLIC_PARAMS *param, const char *id)
|
||||
int i, bn_size, pt_size, num_indexes, num_factors;
|
||||
|
||||
if (!(ec_key = X509_ALGOR_get1_EC_KEY(param->pkey_algor))) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PUB_KEY, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
ec_group = EC_KEY_get0_group(ec_key);
|
||||
|
||||
if (!(pub_key = EC_POINT_new(ec_group))) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PUB_KEY, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
if (!(pt = EC_POINT_new(ec_group))) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PUB_KEY, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
if (!EC_GROUP_get_order(ec_group, order, ctx)) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PUB_KEY, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
bn_size = BN_num_bytes(order);
|
||||
pt_size = bn_size + 1;
|
||||
|
||||
if ((num_factors = CPK_MAP_num_factors(param->map_algor)) <= 0) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PUB_KEY, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
if (ASN1_STRING_length(param->public_factors) != pt_size * num_factors) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PUB_KEY, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
|
||||
if ((num_indexes = CPK_MAP_num_indexes(param->map_algor)) <= 0) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PUB_KEY, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
if (!(index = OPENSSL_malloc(sizeof(int) * num_indexes))) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PUB_KEY, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
if (!CPK_MAP_str2index(param->map_algor, id, index)) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PUB_KEY, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
|
||||
if (!EC_POINT_set_to_infinity(ec_group, pub_key)) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PUB_KEY, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
for (i = 0; i < num_indexes; i++) {
|
||||
const unsigned char *p =
|
||||
ASN1_STRING_data(param->public_factors) +
|
||||
ASN1_STRING_get0_data(param->public_factors) +
|
||||
pt_size * index[i];
|
||||
|
||||
if (!EC_POINT_oct2point(ec_group, pt, p, pt_size, ctx)) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PUB_KEY, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
|
||||
if (!EC_POINT_add(ec_group, pub_key, pub_key, pt, ctx)) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PUB_KEY, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
|
||||
if (!EC_KEY_set_public_key(ec_key, pub_key)) {
|
||||
CPKerr(CPK_F_EXTRACT_EC_PUB_KEY, ERR_R_CPK_LIB);
|
||||
goto err;
|
||||
}
|
||||
e = 0;
|
||||
|
||||
@@ -45,7 +45,6 @@
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
* ====================================================================
|
||||
*
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
@@ -53,77 +52,119 @@
|
||||
#include <openssl/objects.h>
|
||||
#include <openssl/cpk.h>
|
||||
#include "cpk_lcl.h"
|
||||
#include "../../e_os.h"
|
||||
|
||||
X509_ALGOR *CPK_MAP_new_default()
|
||||
/* Currently we only support fixed 32 indexes
|
||||
* this means EC_POINT_add() called 32 times */
|
||||
#define CPK_NUM_INDEXES 32
|
||||
|
||||
typedef struct {
|
||||
int map_nid;
|
||||
int md_nid;
|
||||
} CPK_MAP_TABLE;
|
||||
|
||||
static CPK_MAP_TABLE map_table[] = {
|
||||
{NID_cpk_map_sm3, NID_sm3},
|
||||
{NID_cpk_map_sha1, NID_sha1},
|
||||
{NID_cpk_map_sha256, NID_sha256},
|
||||
{NID_cpk_map_sha384, NID_sha384},
|
||||
{NID_cpk_map_sha512, NID_sha512}
|
||||
};
|
||||
|
||||
static const EVP_MD *cpk_map2md(int type)
|
||||
{
|
||||
X509_ALGOR *algor = NULL;
|
||||
const EVP_MD *md = EVP_sha1();
|
||||
int i;
|
||||
for (i = 0; i < OSSL_NELEM(map_table); i++) {
|
||||
if (map_table[i].map_nid == type) {
|
||||
return EVP_get_digestbynid(map_table[i].md_nid);
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (md != EVP_sha1() && md != EVP_sha384()) {
|
||||
CPKerr(CPK_F_CPK_MAP_NEW_DEFAULT, CPK_R_BAD_ARGUMENT);
|
||||
goto end;
|
||||
static const EVP_MD *CPK_MAP_get_md(const X509_ALGOR *algor)
|
||||
{
|
||||
const EVP_MD *md;
|
||||
if (!algor->algorithm) {
|
||||
CPKerr(CPK_F_CPK_MAP_GET_MD, CPK_R_INVALID_ARGUMENT);
|
||||
return NULL;
|
||||
}
|
||||
if (!(md = cpk_map2md(OBJ_obj2nid(algor->algorithm)))) {
|
||||
CPKerr(CPK_F_CPK_MAP_GET_MD, ERR_R_CPK_LIB);
|
||||
return NULL;
|
||||
}
|
||||
return md;
|
||||
}
|
||||
|
||||
X509_ALGOR *CPK_MAP_new(int type)
|
||||
{
|
||||
X509_ALGOR *ret = NULL;
|
||||
X509_ALGOR *algor = NULL;
|
||||
|
||||
if (!cpk_map2md(type)) {
|
||||
CPKerr(CPK_F_CPK_MAP_NEW, CPK_R_INVALID_MAP_ALGOR);
|
||||
return NULL;
|
||||
}
|
||||
if (!(algor = X509_ALGOR_new())) {
|
||||
CPKerr(CPK_F_CPK_MAP_NEW_DEFAULT, ERR_R_X509_LIB);
|
||||
CPKerr(CPK_F_CPK_MAP_NEW, ERR_R_X509_LIB);
|
||||
goto end;
|
||||
}
|
||||
if (!X509_ALGOR_set0(algor, OBJ_nid2obj(EVP_MD_nid(md)),
|
||||
V_ASN1_UNDEF, NULL)) {
|
||||
X509_ALGOR_free(algor);
|
||||
if (!X509_ALGOR_set0(algor, OBJ_nid2obj(type), V_ASN1_UNDEF, NULL)) {
|
||||
CPKerr(CPK_F_CPK_MAP_NEW, ERR_R_X509_LIB);
|
||||
goto end;
|
||||
}
|
||||
|
||||
ret = algor;
|
||||
algor = NULL;
|
||||
CPKerr(CPK_F_CPK_MAP_NEW_DEFAULT, ERR_R_X509_LIB);
|
||||
goto end;
|
||||
}
|
||||
|
||||
end:
|
||||
return algor;
|
||||
X509_ALGOR_free(algor);
|
||||
return ret;
|
||||
}
|
||||
|
||||
X509_ALGOR *CPK_MAP_new_default(void)
|
||||
{
|
||||
return CPK_MAP_new(NID_cpk_map_sha1);
|
||||
}
|
||||
|
||||
int CPK_MAP_is_valid(const X509_ALGOR *algor)
|
||||
{
|
||||
OPENSSL_assert(algor);
|
||||
OPENSSL_assert(algor->algorithm);
|
||||
switch (OBJ_obj2nid(algor->algorithm)) {
|
||||
case NID_sha1:
|
||||
case NID_sha384:
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
int CPK_MAP_num_subset(const X509_ALGOR *algor)
|
||||
{
|
||||
OPENSSL_assert(algor);
|
||||
OPENSSL_assert(algor->algorithm);
|
||||
switch (OBJ_obj2nid(algor->algorithm)) {
|
||||
case NID_sha1:
|
||||
return 32;
|
||||
case NID_sha384:
|
||||
return 4096;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
int CPK_MAP_num_factors(const X509_ALGOR *algor)
|
||||
{
|
||||
return 1024;
|
||||
return CPK_MAP_get_md(algor) != NULL;
|
||||
}
|
||||
|
||||
int CPK_MAP_num_indexes(const X509_ALGOR *algor)
|
||||
{
|
||||
return 32;
|
||||
if (!CPK_MAP_is_valid(algor)) {
|
||||
CPKerr(CPK_F_CPK_MAP_NUM_INDEXES, CPK_R_INVALID_MAP_ALGOR);
|
||||
return 0;
|
||||
}
|
||||
/* current only use fixed num_indexes */
|
||||
return CPK_NUM_INDEXES;
|
||||
}
|
||||
|
||||
int CPK_MAP_num_index(const X509_ALGOR *algor)
|
||||
int CPK_MAP_num_subset(const X509_ALGOR *algor)
|
||||
{
|
||||
OPENSSL_assert(algor);
|
||||
OPENSSL_assert(algor->algorithm);
|
||||
switch (OBJ_obj2nid(algor->algorithm)) {
|
||||
case NID_sha1:
|
||||
return 32;
|
||||
case NID_sha384:
|
||||
return 32;
|
||||
const EVP_MD *md;
|
||||
if (!(md = CPK_MAP_get_md(algor))) {
|
||||
CPKerr(CPK_F_CPK_MAP_NUM_SUBSET, ERR_R_CPK_LIB);
|
||||
return 0;
|
||||
}
|
||||
return -1;
|
||||
return 1 << ((EVP_MD_size(md) * 8) / CPK_MAP_num_indexes(algor));
|
||||
}
|
||||
|
||||
int CPK_MAP_num_factors(const X509_ALGOR *algor)
|
||||
{
|
||||
int num_indexes;
|
||||
int num_subset;
|
||||
if (!(num_indexes = CPK_MAP_num_indexes(algor))) {
|
||||
CPKerr(CPK_F_CPK_MAP_NUM_FACTORS, ERR_R_CPK_LIB);
|
||||
return 0;
|
||||
}
|
||||
if (!(num_subset = CPK_MAP_num_subset(algor))) {
|
||||
CPKerr(CPK_F_CPK_MAP_NUM_FACTORS, ERR_R_CPK_LIB);
|
||||
return 0;
|
||||
}
|
||||
return num_indexes * num_subset;
|
||||
}
|
||||
|
||||
int CPK_MAP_str2index(const X509_ALGOR *algor, const char *str, int *index)
|
||||
@@ -133,46 +174,46 @@ int CPK_MAP_str2index(const X509_ALGOR *algor, const char *str, int *index)
|
||||
unsigned char dgst[EVP_MAX_MD_SIZE];
|
||||
unsigned int dgstlen;
|
||||
BIGNUM *bn = NULL;
|
||||
int i, num_index, num_subset;
|
||||
int i;
|
||||
int num_indexes, num_subset;
|
||||
|
||||
OPENSSL_assert(algor);
|
||||
OPENSSL_assert(algor->algorithm);
|
||||
OPENSSL_assert(str);
|
||||
OPENSSL_assert(strlen(str) > 0);
|
||||
|
||||
if (!CPK_MAP_is_valid(algor)) {
|
||||
if (!(md = CPK_MAP_get_md(algor))
|
||||
|| !(num_indexes = CPK_MAP_num_indexes(algor))
|
||||
|| !(num_subset = CPK_MAP_num_subset(algor))) {
|
||||
CPKerr(CPK_F_CPK_MAP_STR2INDEX, CPK_R_INVALID_MAP_ALGOR);
|
||||
goto err;
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!index) {
|
||||
ret = CPK_MAP_num_index(algor);
|
||||
goto err;
|
||||
}
|
||||
if (!(md = EVP_get_digestbyobj(algor->algorithm))) {
|
||||
CPKerr(CPK_F_CPK_MAP_STR2INDEX, ERR_R_EVP_LIB);
|
||||
goto err;
|
||||
return CPK_MAP_num_indexes(algor);
|
||||
}
|
||||
|
||||
if (!EVP_Digest(str, strlen(str), dgst, &dgstlen, md, NULL)) {
|
||||
CPKerr(CPK_F_CPK_MAP_STR2INDEX, ERR_R_EVP_LIB);
|
||||
return 0;
|
||||
}
|
||||
if (!(bn = BN_new())) {
|
||||
CPKerr(CPK_F_CPK_MAP_STR2INDEX, ERR_R_BN_LIB);
|
||||
goto err;
|
||||
CPKerr(CPK_F_CPK_MAP_STR2INDEX, ERR_R_MALLOC_FAILURE);
|
||||
goto end;
|
||||
}
|
||||
if (!BN_bin2bn(dgst, dgstlen, bn)) {
|
||||
CPKerr(CPK_F_CPK_MAP_STR2INDEX, ERR_R_BN_LIB);
|
||||
goto err;
|
||||
goto end;
|
||||
}
|
||||
num_index = CPK_MAP_num_index(algor);
|
||||
num_subset = CPK_MAP_num_subset(algor);
|
||||
|
||||
for (i = 0; i < num_index; i++) {
|
||||
for (i = 0; i < num_indexes; i++) {
|
||||
int r = BN_mod_word(bn, num_subset);
|
||||
BN_div_word(bn, num_subset);
|
||||
index[i] = num_subset * i + r;
|
||||
}
|
||||
ret = num_index;
|
||||
err:
|
||||
if (bn) BN_free(bn);
|
||||
|
||||
ret = num_indexes;
|
||||
end:
|
||||
BN_free(bn);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -50,13 +50,50 @@
|
||||
#include <string.h>
|
||||
#include <openssl/bio.h>
|
||||
#include <openssl/cpk.h>
|
||||
#include <openssl/objects.h>
|
||||
#include "cpk_lcl.h"
|
||||
|
||||
int CPK_MASTER_SECRET_print(BIO *out, CPK_MASTER_SECRET *master,
|
||||
int indent, unsigned long flags)
|
||||
{
|
||||
char name[1024] = {0};
|
||||
int num_factors;
|
||||
const unsigned char *p;
|
||||
int i, len;
|
||||
|
||||
BIO_printf(out, "%s() not implemented\n", __FUNCTION__);
|
||||
if (!X509_NAME_oneline(master->id, name, sizeof(name))) {
|
||||
CPKerr(CPK_F_CPK_MASTER_SECRET_PRINT, ERR_R_CPK_LIB);
|
||||
return 0;
|
||||
}
|
||||
|
||||
BIO_printf(out, "CPK_MASTER_SECRET\n");
|
||||
BIO_printf(out, " Version : %ld\n", master->version);
|
||||
BIO_printf(out, " Domain-ID : %s\n", name);
|
||||
BIO_printf(out, " Public-Key-Algor : %s\n", OBJ_nid2sn(OBJ_obj2nid(master->pkey_algor->algorithm)));
|
||||
BIO_printf(out, " Map-Algor : %s\n", OBJ_nid2sn(OBJ_obj2nid(master->map_algor->algorithm)));
|
||||
BIO_printf(out, " Secret-Factors :\n");
|
||||
|
||||
if ((num_factors = CPK_MAP_num_factors(master->map_algor)) <= 0) {
|
||||
fprintf(stderr, "%s %d\n", __FILE__, __LINE__);
|
||||
return 0;
|
||||
}
|
||||
p = ASN1_STRING_get0_data(master->secret_factors);
|
||||
|
||||
len = ASN1_STRING_length(master->secret_factors)/num_factors;
|
||||
if (ASN1_STRING_length(master->secret_factors) % num_factors) {
|
||||
CPKerr(CPK_F_CPK_MASTER_SECRET_PRINT, ERR_R_CPK_LIB);
|
||||
return 0;
|
||||
}
|
||||
|
||||
for (i = 0; i < num_factors; i++) {
|
||||
int j;
|
||||
printf(" %-8d ", i);
|
||||
for (j = 0; j < len; j++) {
|
||||
BIO_printf(out, "%02X", p[j]);
|
||||
}
|
||||
printf("\n");
|
||||
p += len;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
@@ -64,7 +101,44 @@ int CPK_MASTER_SECRET_print(BIO *out, CPK_MASTER_SECRET *master,
|
||||
int CPK_PUBLIC_PARAMS_print(BIO *out, CPK_PUBLIC_PARAMS *params,
|
||||
int indent, unsigned long flags)
|
||||
{
|
||||
BIO_printf(out, "%s() not implemented\n", __FUNCTION__);
|
||||
return 1;
|
||||
char name[1024] = {0};
|
||||
int num_factors;
|
||||
const unsigned char *p;
|
||||
int len, i;
|
||||
|
||||
if (!X509_NAME_oneline(params->id, name, sizeof(name))) {
|
||||
CPKerr(CPK_F_CPK_PUBLIC_PARAMS_PRINT, ERR_R_CPK_LIB);
|
||||
return 0;
|
||||
}
|
||||
|
||||
BIO_printf(out, "CPK_PUBLIC_PARAMS\n");
|
||||
BIO_printf(out, " Version : %ld\n", params->version);
|
||||
BIO_printf(out, " Domain-ID : %s\n", name);
|
||||
BIO_printf(out, " Public-Key-Algor : %s\n", OBJ_nid2sn(OBJ_obj2nid(params->pkey_algor->algorithm)));
|
||||
BIO_printf(out, " Map-Algor : %s\n", OBJ_nid2sn(OBJ_obj2nid(params->map_algor->algorithm)));
|
||||
BIO_printf(out, " Secret-Factors :\n");
|
||||
|
||||
if ((num_factors = CPK_MAP_num_factors(params->map_algor)) <= 0) {
|
||||
fprintf(stderr, "%s %d\n", __FILE__, __LINE__);
|
||||
return 0;
|
||||
}
|
||||
p = ASN1_STRING_get0_data(params->public_factors);
|
||||
|
||||
len = ASN1_STRING_length(params->public_factors)/num_factors;
|
||||
if (ASN1_STRING_length(params->public_factors) % num_factors) {
|
||||
CPKerr(CPK_F_CPK_PUBLIC_PARAMS_PRINT, ERR_R_CPK_LIB);
|
||||
return 0;
|
||||
}
|
||||
|
||||
for (i = 0; i < num_factors; i++) {
|
||||
int j;
|
||||
printf(" %-8d ", i);
|
||||
for (j = 0; j < len; j++) {
|
||||
BIO_printf(out, "%02X", p[j]);
|
||||
}
|
||||
printf("\n");
|
||||
p += len;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -151,12 +151,13 @@ int EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl)
|
||||
int EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *data, size_t count)
|
||||
{
|
||||
#ifndef OPENSSL_NO_SM2
|
||||
if (ctx->pctx && !EVP_MD_CTX_test_flags(ctx, EVP_MD_CTX_FLAG_UPDATED)) {
|
||||
if (ctx->pctx && !EVP_MD_CTX_test_flags(ctx, EVP_MD_CTX_FLAG_UPDATED)
|
||||
&& EVP_PKEY_id(EVP_PKEY_CTX_get0_pkey(ctx->pctx)) == EVP_PKEY_EC) {
|
||||
const unsigned char *zid;
|
||||
if (1 == EVP_PKEY_CTX_get_signer_zid(ctx->pctx, &zid)) {
|
||||
ctx->update(ctx, zid, 32);
|
||||
# ifdef SM2_DEBUG
|
||||
fprintf(stderr, " %s() first update with SM2 ZID\n",
|
||||
fprintf(stderr, "[SM2_DEBUG] %s() first update with SM2 ZID\n",
|
||||
__FUNCTION__);
|
||||
# endif
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
*/
|
||||
|
||||
/* Serialized OID's */
|
||||
static const unsigned char so[7905] = {
|
||||
static const unsigned char so[7927] = {
|
||||
0x2A,0x86,0x48,0x86,0xF7,0x0D, /* [ 0] OBJ_rsadsi */
|
||||
0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01, /* [ 6] OBJ_pkcs */
|
||||
0x2A,0x86,0x48,0x86,0xF7,0x0D,0x02,0x02, /* [ 13] OBJ_md2 */
|
||||
@@ -1050,62 +1050,64 @@ static const unsigned char so[7905] = {
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2D,0x02, /* [ 7425] OBJ_sm2exchange */
|
||||
0x2B,0x06,0x01,0x04,0x01,0x83,0x83,0x0D, /* [ 7434] OBJ_GmSSL */
|
||||
0x2B,0x06,0x01,0x04,0x01,0x83,0x83,0x0D,0x01,0x01, /* [ 7442] OBJ_cpk_map */
|
||||
0x2B,0x06,0x01,0x04,0x01,0x83,0x83,0x0D,0x01,0x01,0x01, /* [ 7452] OBJ_cpk_sha1_map */
|
||||
0x2B,0x06,0x01,0x04,0x01,0x83,0x83,0x0D,0x01,0x01,0x02, /* [ 7463] OBJ_cpk_sha256_map */
|
||||
0x2B,0x06,0x01,0x04,0x01,0x83,0x83,0x0D,0x01,0x01,0x03, /* [ 7474] OBJ_cpk_sm3_map */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2D,0x03,0x02,0x01, /* [ 7485] OBJ_sm2encrypt_with_sm3 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2D,0x03,0x02,0x02, /* [ 7496] OBJ_sm2encrypt_with_sha1 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2D,0x03,0x02,0x03, /* [ 7507] OBJ_sm2encrypt_with_sha224 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2D,0x03,0x02,0x04, /* [ 7518] OBJ_sm2encrypt_with_sha256 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2D,0x03,0x02,0x05, /* [ 7529] OBJ_sm2encrypt_with_sha384 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2D,0x03,0x02,0x06, /* [ 7540] OBJ_sm2encrypt_with_sha512 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2D,0x03,0x02,0x07, /* [ 7551] OBJ_sm2encrypt_with_rmd160 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2D,0x03,0x02,0x08, /* [ 7562] OBJ_sm2encrypt_with_whirlpool */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2D,0x03,0x02,0x09, /* [ 7573] OBJ_sm2encrypt_with_blake2b512 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2D,0x03,0x02,0x0A, /* [ 7584] OBJ_sm2encrypt_with_blake2s256 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2D,0x03,0x02,0x0B, /* [ 7595] OBJ_sm2encrypt_with_md5 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x84,0x08, /* [ 7606] OBJ_sm2sign_with_whirlpool */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x84,0x09, /* [ 7614] OBJ_sm2sign_with_blake2b512 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x84,0x0A, /* [ 7622] OBJ_sm2sign_with_blake2s256 */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x01, /* [ 7630] OBJ_ecies_with_x9_63_sha1_xor_hmac */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x02, /* [ 7636] OBJ_ecies_with_x9_63_sha256_xor_hmac */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x03, /* [ 7642] OBJ_ecies_with_x9_63_sha512_xor_hmac */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x04, /* [ 7648] OBJ_ecies_with_x9_63_sha1_aes128_cbc_hmac */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x05, /* [ 7654] OBJ_ecies_with_x9_63_sha256_aes128_cbc_hmac */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x06, /* [ 7660] OBJ_ecies_with_x9_63_sha512_aes256_cbc_hmac */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x07, /* [ 7666] OBJ_ecies_with_x9_63_sha256_aes128_ctr_hmac */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x08, /* [ 7672] OBJ_ecies_with_x9_63_sha512_aes256_ctr_hmac */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x09, /* [ 7678] OBJ_ecies_with_x9_63_sha256_aes128_cbc_hmac_half */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x0A, /* [ 7684] OBJ_ecies_with_x9_63_sha512_aes256_cbc_hmac_half */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x0B, /* [ 7690] OBJ_ecies_with_x9_63_sha256_aes128_ctr_hmac_half */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x0C, /* [ 7696] OBJ_ecies_with_x9_63_sha512_aes256_ctr_hmac_half */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x0D, /* [ 7702] OBJ_ecies_with_x9_63_sha1_aes128_cbc_cmac */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x0E, /* [ 7708] OBJ_ecies_with_x9_63_sha256_aes128_cbc_cmac */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x0F, /* [ 7714] OBJ_ecies_with_x9_63_sha512_aes256_cbc_cmac */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x10, /* [ 7720] OBJ_ecies_with_x9_63_sha256_aes128_ctr_cmac */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x11, /* [ 7726] OBJ_ecies_with_x9_63_sha512_aes256_ctr_cmac */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x86,0x20,0x01, /* [ 7732] OBJ_zuc_128eea3 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x86,0x20,0x02, /* [ 7741] OBJ_zuc_128eia3 */
|
||||
0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x0C,0x01,0x64, /* [ 7750] OBJ_pbe_WithSM3AndSMS4_CBC */
|
||||
0x2A,0x81,0x1C,0xD7,0x63, /* [ 7760] OBJ_bwips */
|
||||
0x2A,0x81,0x1C,0xD7,0x63,0x01, /* [ 7765] OBJ_wapi_crypto */
|
||||
0x2A,0x81,0x1C,0xD7,0x63,0x01,0x01, /* [ 7771] OBJ_wapi_ec */
|
||||
0x2A,0x81,0x1C,0xD7,0x63,0x01,0x01,0x01, /* [ 7778] OBJ_wapi_ecdsa192_sha256 */
|
||||
0x2B,0x06,0x01,0x04,0x01,0x83,0x83,0x0D,0x09,0x01, /* [ 7786] OBJ_sm9bn256v1 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2E,0x04, /* [ 7796] OBJ_sm9hash1 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2E,0x04,0x01, /* [ 7805] OBJ_sm9hash1_with_sm3 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2E,0x04,0x02, /* [ 7815] OBJ_sm9hash1_with_sha256 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2E,0x01,0x01, /* [ 7825] OBJ_sm9sign_with_sm3 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2E,0x01,0x02, /* [ 7835] OBJ_sm9sign_with_sha256 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2E,0x03,0x01, /* [ 7845] OBJ_sm9encrypt_with_sm3_xor */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2E,0x03,0x02, /* [ 7855] OBJ_sm9encrypt_with_sm3_sms4_cbc */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2E,0x03,0x03, /* [ 7865] OBJ_sm9encrypt_with_sm3_sms4_ctr */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2E,0x05, /* [ 7875] OBJ_sm9kdf */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2E,0x05,0x01, /* [ 7884] OBJ_sm9kdf_with_sm3 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2E,0x05,0x02, /* [ 7894] OBJ_sm9kdf_with_sha256 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2D,0x03,0x02,0x01, /* [ 7452] OBJ_sm2encrypt_with_sm3 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2D,0x03,0x02,0x02, /* [ 7463] OBJ_sm2encrypt_with_sha1 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2D,0x03,0x02,0x03, /* [ 7474] OBJ_sm2encrypt_with_sha224 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2D,0x03,0x02,0x04, /* [ 7485] OBJ_sm2encrypt_with_sha256 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2D,0x03,0x02,0x05, /* [ 7496] OBJ_sm2encrypt_with_sha384 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2D,0x03,0x02,0x06, /* [ 7507] OBJ_sm2encrypt_with_sha512 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2D,0x03,0x02,0x07, /* [ 7518] OBJ_sm2encrypt_with_rmd160 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2D,0x03,0x02,0x08, /* [ 7529] OBJ_sm2encrypt_with_whirlpool */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2D,0x03,0x02,0x09, /* [ 7540] OBJ_sm2encrypt_with_blake2b512 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2D,0x03,0x02,0x0A, /* [ 7551] OBJ_sm2encrypt_with_blake2s256 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2D,0x03,0x02,0x0B, /* [ 7562] OBJ_sm2encrypt_with_md5 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x84,0x08, /* [ 7573] OBJ_sm2sign_with_whirlpool */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x84,0x09, /* [ 7581] OBJ_sm2sign_with_blake2b512 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x84,0x0A, /* [ 7589] OBJ_sm2sign_with_blake2s256 */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x01, /* [ 7597] OBJ_ecies_with_x9_63_sha1_xor_hmac */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x02, /* [ 7603] OBJ_ecies_with_x9_63_sha256_xor_hmac */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x03, /* [ 7609] OBJ_ecies_with_x9_63_sha512_xor_hmac */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x04, /* [ 7615] OBJ_ecies_with_x9_63_sha1_aes128_cbc_hmac */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x05, /* [ 7621] OBJ_ecies_with_x9_63_sha256_aes128_cbc_hmac */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x06, /* [ 7627] OBJ_ecies_with_x9_63_sha512_aes256_cbc_hmac */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x07, /* [ 7633] OBJ_ecies_with_x9_63_sha256_aes128_ctr_hmac */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x08, /* [ 7639] OBJ_ecies_with_x9_63_sha512_aes256_ctr_hmac */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x09, /* [ 7645] OBJ_ecies_with_x9_63_sha256_aes128_cbc_hmac_half */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x0A, /* [ 7651] OBJ_ecies_with_x9_63_sha512_aes256_cbc_hmac_half */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x0B, /* [ 7657] OBJ_ecies_with_x9_63_sha256_aes128_ctr_hmac_half */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x0C, /* [ 7663] OBJ_ecies_with_x9_63_sha512_aes256_ctr_hmac_half */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x0D, /* [ 7669] OBJ_ecies_with_x9_63_sha1_aes128_cbc_cmac */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x0E, /* [ 7675] OBJ_ecies_with_x9_63_sha256_aes128_cbc_cmac */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x0F, /* [ 7681] OBJ_ecies_with_x9_63_sha512_aes256_cbc_cmac */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x10, /* [ 7687] OBJ_ecies_with_x9_63_sha256_aes128_ctr_cmac */
|
||||
0x2B,0x81,0x04,0x01,0x08,0x11, /* [ 7693] OBJ_ecies_with_x9_63_sha512_aes256_ctr_cmac */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x86,0x20,0x01, /* [ 7699] OBJ_zuc_128eea3 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x86,0x20,0x02, /* [ 7708] OBJ_zuc_128eia3 */
|
||||
0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x0C,0x01,0x64, /* [ 7717] OBJ_pbe_WithSM3AndSMS4_CBC */
|
||||
0x2A,0x81,0x1C,0xD7,0x63, /* [ 7727] OBJ_bwips */
|
||||
0x2A,0x81,0x1C,0xD7,0x63,0x01, /* [ 7732] OBJ_wapi_crypto */
|
||||
0x2A,0x81,0x1C,0xD7,0x63,0x01,0x01, /* [ 7738] OBJ_wapi_ec */
|
||||
0x2A,0x81,0x1C,0xD7,0x63,0x01,0x01,0x01, /* [ 7745] OBJ_wapi_ecdsa192_sha256 */
|
||||
0x2B,0x06,0x01,0x04,0x01,0x83,0x83,0x0D,0x09,0x01, /* [ 7753] OBJ_sm9bn256v1 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2E,0x04, /* [ 7763] OBJ_sm9hash1 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2E,0x04,0x01, /* [ 7772] OBJ_sm9hash1_with_sm3 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2E,0x04,0x02, /* [ 7782] OBJ_sm9hash1_with_sha256 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2E,0x01,0x01, /* [ 7792] OBJ_sm9sign_with_sm3 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2E,0x01,0x02, /* [ 7802] OBJ_sm9sign_with_sha256 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2E,0x03,0x01, /* [ 7812] OBJ_sm9encrypt_with_sm3_xor */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2E,0x03,0x02, /* [ 7822] OBJ_sm9encrypt_with_sm3_sms4_cbc */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2E,0x03,0x03, /* [ 7832] OBJ_sm9encrypt_with_sm3_sms4_ctr */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2E,0x05, /* [ 7842] OBJ_sm9kdf */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2E,0x05,0x01, /* [ 7851] OBJ_sm9kdf_with_sm3 */
|
||||
0x2A,0x81,0x1C,0xCF,0x55,0x01,0x82,0x2E,0x05,0x02, /* [ 7861] OBJ_sm9kdf_with_sha256 */
|
||||
0x2B,0x06,0x01,0x04,0x01,0x83,0x83,0x0D,0x01,0x01,0x01, /* [ 7871] OBJ_cpk_map_sha1 */
|
||||
0x2B,0x06,0x01,0x04,0x01,0x83,0x83,0x0D,0x01,0x01,0x02, /* [ 7882] OBJ_cpk_map_sha256 */
|
||||
0x2B,0x06,0x01,0x04,0x01,0x83,0x83,0x0D,0x01,0x01,0x03, /* [ 7893] OBJ_cpk_map_sm3 */
|
||||
0x2B,0x06,0x01,0x04,0x01,0x83,0x83,0x0D,0x01,0x01,0x04, /* [ 7904] OBJ_cpk_map_sha384 */
|
||||
0x2B,0x06,0x01,0x04,0x01,0x83,0x83,0x0D,0x01,0x01,0x05, /* [ 7915] OBJ_cpk_map_sha512 */
|
||||
};
|
||||
|
||||
#define NUM_NID 1212
|
||||
#define NUM_NID 1223
|
||||
static const ASN1_OBJECT nid_objs[NUM_NID] = {
|
||||
{"UNDEF", "undefined", NID_undef},
|
||||
{"rsadsi", "RSA Data Security, Inc.", NID_rsadsi, 6, &so[0]},
|
||||
@@ -2259,40 +2261,40 @@ static const ASN1_OBJECT nid_objs[NUM_NID] = {
|
||||
{"sm2exchange", "sm2exchange", NID_sm2exchange, 9, &so[7425]},
|
||||
{"gmssl", "GmSSL", NID_GmSSL, 8, &so[7434]},
|
||||
{"cpk-map", "cpk-map", NID_cpk_map, 10, &so[7442]},
|
||||
{"cpk-sha1-map", "cpk-sha1-map", NID_cpk_sha1_map, 11, &so[7452]},
|
||||
{"cpk-sha256-map", "cpk-sha256-map", NID_cpk_sha256_map, 11, &so[7463]},
|
||||
{"cpk-sm3-map", "cpk-sm3-map", NID_cpk_sm3_map, 11, &so[7474]},
|
||||
{"sm2encrypt-with-sm3", "sm2encrypt-with-sm3", NID_sm2encrypt_with_sm3, 11, &so[7485]},
|
||||
{"sm2encrypt-with-sha1", "sm2encrypt-with-sha1", NID_sm2encrypt_with_sha1, 11, &so[7496]},
|
||||
{"sm2encrypt-with-sha224", "sm2encrypt-with-sha224", NID_sm2encrypt_with_sha224, 11, &so[7507]},
|
||||
{"sm2encrypt-with-sha256", "sm2encrypt-with-sha256", NID_sm2encrypt_with_sha256, 11, &so[7518]},
|
||||
{"sm2encrypt-with-sha384", "sm2encrypt-with-sha384", NID_sm2encrypt_with_sha384, 11, &so[7529]},
|
||||
{"sm2encrypt-with-sha512", "sm2encrypt-with-sha512", NID_sm2encrypt_with_sha512, 11, &so[7540]},
|
||||
{"sm2encrypt-with-rmd160", "sm2encrypt-with-rmd160", NID_sm2encrypt_with_rmd160, 11, &so[7551]},
|
||||
{"sm2encrypt-with-whirlpool", "sm2encrypt-with-whirlpool", NID_sm2encrypt_with_whirlpool, 11, &so[7562]},
|
||||
{"sm2encrypt-with-blake2b512", "sm2encrypt-with-blake2b512", NID_sm2encrypt_with_blake2b512, 11, &so[7573]},
|
||||
{"sm2encrypt-with-blake2s256", "sm2encrypt-with-blake2s256", NID_sm2encrypt_with_blake2s256, 11, &so[7584]},
|
||||
{"sm2encrypt-with-md5", "sm2encrypt-with-md5", NID_sm2encrypt_with_md5, 11, &so[7595]},
|
||||
{"SM2Sign-with-Whirlpool", "sm2sign-with-whirlpool", NID_sm2sign_with_whirlpool, 8, &so[7606]},
|
||||
{"SM2Sign-with-Blake2b512", "sm2sign-with-blake2b512", NID_sm2sign_with_blake2b512, 8, &so[7614]},
|
||||
{"SM2Sign-with-Blake2s256", "sm2sign-with-blake2s256", NID_sm2sign_with_blake2s256, 8, &so[7622]},
|
||||
{"ecies-with-x9-63-sha1-xor-hmac", "ecies-with-x9-63-sha1-xor-hmac", NID_ecies_with_x9_63_sha1_xor_hmac, 6, &so[7630]},
|
||||
{"ecies-with-x9-63-sha256-xor-hmac", "ecies-with-x9-63-sha256-xor-hmac", NID_ecies_with_x9_63_sha256_xor_hmac, 6, &so[7636]},
|
||||
{"ecies-with-x9-63-sha512-xor-hmac", "ecies-with-x9-63-sha512-xor-hmac", NID_ecies_with_x9_63_sha512_xor_hmac, 6, &so[7642]},
|
||||
{"ecies-with-x9-63-sha1-aes128-cbc-hmac", "ecies-with-x9-63-sha1-aes128-cbc-hmac", NID_ecies_with_x9_63_sha1_aes128_cbc_hmac, 6, &so[7648]},
|
||||
{"ecies-with-x9-63-sha256-aes128-cbc-hmac", "ecies-with-x9-63-sha256-aes128-cbc-hmac", NID_ecies_with_x9_63_sha256_aes128_cbc_hmac, 6, &so[7654]},
|
||||
{"ecies-with-x9-63-sha512-aes256-cbc-hmac", "ecies-with-x9-63-sha512-aes256-cbc-hmac", NID_ecies_with_x9_63_sha512_aes256_cbc_hmac, 6, &so[7660]},
|
||||
{"ecies-with-x9-63-sha256-aes128-ctr-hmac", "ecies-with-x9-63-sha256-aes128-ctr-hmac", NID_ecies_with_x9_63_sha256_aes128_ctr_hmac, 6, &so[7666]},
|
||||
{"ecies-with-x9-63-sha512-aes256-ctr-hmac", "ecies-with-x9-63-sha512-aes256-ctr-hmac", NID_ecies_with_x9_63_sha512_aes256_ctr_hmac, 6, &so[7672]},
|
||||
{"ecies-with-x9-63-sha256-aes128-cbc-hmac-half", "ecies-with-x9-63-sha256-aes128-cbc-hmac-half", NID_ecies_with_x9_63_sha256_aes128_cbc_hmac_half, 6, &so[7678]},
|
||||
{"ecies-with-x9-63-sha512-aes256-cbc-hmac-half", "ecies-with-x9-63-sha512-aes256-cbc-hmac-half", NID_ecies_with_x9_63_sha512_aes256_cbc_hmac_half, 6, &so[7684]},
|
||||
{"ecies-with-x9-63-sha256-aes128-ctr-hmac-half", "ecies-with-x9-63-sha256-aes128-ctr-hmac-half", NID_ecies_with_x9_63_sha256_aes128_ctr_hmac_half, 6, &so[7690]},
|
||||
{"ecies-with-x9-63-sha512-aes256-ctr-hmac-half", "ecies-with-x9-63-sha512-aes256-ctr-hmac-half", NID_ecies_with_x9_63_sha512_aes256_ctr_hmac_half, 6, &so[7696]},
|
||||
{"ecies-with-x9-63-sha1-aes128-cbc-cmac", "ecies-with-x9-63-sha1-aes128-cbc-cmac", NID_ecies_with_x9_63_sha1_aes128_cbc_cmac, 6, &so[7702]},
|
||||
{"ecies-with-x9-63-sha256-aes128-cbc-cmac", "ecies-with-x9-63-sha256-aes128-cbc-cmac", NID_ecies_with_x9_63_sha256_aes128_cbc_cmac, 6, &so[7708]},
|
||||
{"ecies-with-x9-63-sha512-aes256-cbc-cmac", "ecies-with-x9-63-sha512-aes256-cbc-cmac", NID_ecies_with_x9_63_sha512_aes256_cbc_cmac, 6, &so[7714]},
|
||||
{"ecies-with-x9-63-sha256-aes128-ctr-cmac", "ecies-with-x9-63-sha256-aes128-ctr-cmac", NID_ecies_with_x9_63_sha256_aes128_ctr_cmac, 6, &so[7720]},
|
||||
{"ecies-with-x9-63-sha512-aes256-ctr-cmac", "ecies-with-x9-63-sha512-aes256-ctr-cmac", NID_ecies_with_x9_63_sha512_aes256_ctr_cmac, 6, &so[7726]},
|
||||
{ NULL, NULL, NID_undef },
|
||||
{ NULL, NULL, NID_undef },
|
||||
{ NULL, NULL, NID_undef },
|
||||
{"sm2encrypt-with-sm3", "sm2encrypt-with-sm3", NID_sm2encrypt_with_sm3, 11, &so[7452]},
|
||||
{"sm2encrypt-with-sha1", "sm2encrypt-with-sha1", NID_sm2encrypt_with_sha1, 11, &so[7463]},
|
||||
{"sm2encrypt-with-sha224", "sm2encrypt-with-sha224", NID_sm2encrypt_with_sha224, 11, &so[7474]},
|
||||
{"sm2encrypt-with-sha256", "sm2encrypt-with-sha256", NID_sm2encrypt_with_sha256, 11, &so[7485]},
|
||||
{"sm2encrypt-with-sha384", "sm2encrypt-with-sha384", NID_sm2encrypt_with_sha384, 11, &so[7496]},
|
||||
{"sm2encrypt-with-sha512", "sm2encrypt-with-sha512", NID_sm2encrypt_with_sha512, 11, &so[7507]},
|
||||
{"sm2encrypt-with-rmd160", "sm2encrypt-with-rmd160", NID_sm2encrypt_with_rmd160, 11, &so[7518]},
|
||||
{"sm2encrypt-with-whirlpool", "sm2encrypt-with-whirlpool", NID_sm2encrypt_with_whirlpool, 11, &so[7529]},
|
||||
{"sm2encrypt-with-blake2b512", "sm2encrypt-with-blake2b512", NID_sm2encrypt_with_blake2b512, 11, &so[7540]},
|
||||
{"sm2encrypt-with-blake2s256", "sm2encrypt-with-blake2s256", NID_sm2encrypt_with_blake2s256, 11, &so[7551]},
|
||||
{"sm2encrypt-with-md5", "sm2encrypt-with-md5", NID_sm2encrypt_with_md5, 11, &so[7562]},
|
||||
{"SM2Sign-with-Whirlpool", "sm2sign-with-whirlpool", NID_sm2sign_with_whirlpool, 8, &so[7573]},
|
||||
{"SM2Sign-with-Blake2b512", "sm2sign-with-blake2b512", NID_sm2sign_with_blake2b512, 8, &so[7581]},
|
||||
{"SM2Sign-with-Blake2s256", "sm2sign-with-blake2s256", NID_sm2sign_with_blake2s256, 8, &so[7589]},
|
||||
{"ecies-with-x9-63-sha1-xor-hmac", "ecies-with-x9-63-sha1-xor-hmac", NID_ecies_with_x9_63_sha1_xor_hmac, 6, &so[7597]},
|
||||
{"ecies-with-x9-63-sha256-xor-hmac", "ecies-with-x9-63-sha256-xor-hmac", NID_ecies_with_x9_63_sha256_xor_hmac, 6, &so[7603]},
|
||||
{"ecies-with-x9-63-sha512-xor-hmac", "ecies-with-x9-63-sha512-xor-hmac", NID_ecies_with_x9_63_sha512_xor_hmac, 6, &so[7609]},
|
||||
{"ecies-with-x9-63-sha1-aes128-cbc-hmac", "ecies-with-x9-63-sha1-aes128-cbc-hmac", NID_ecies_with_x9_63_sha1_aes128_cbc_hmac, 6, &so[7615]},
|
||||
{"ecies-with-x9-63-sha256-aes128-cbc-hmac", "ecies-with-x9-63-sha256-aes128-cbc-hmac", NID_ecies_with_x9_63_sha256_aes128_cbc_hmac, 6, &so[7621]},
|
||||
{"ecies-with-x9-63-sha512-aes256-cbc-hmac", "ecies-with-x9-63-sha512-aes256-cbc-hmac", NID_ecies_with_x9_63_sha512_aes256_cbc_hmac, 6, &so[7627]},
|
||||
{"ecies-with-x9-63-sha256-aes128-ctr-hmac", "ecies-with-x9-63-sha256-aes128-ctr-hmac", NID_ecies_with_x9_63_sha256_aes128_ctr_hmac, 6, &so[7633]},
|
||||
{"ecies-with-x9-63-sha512-aes256-ctr-hmac", "ecies-with-x9-63-sha512-aes256-ctr-hmac", NID_ecies_with_x9_63_sha512_aes256_ctr_hmac, 6, &so[7639]},
|
||||
{"ecies-with-x9-63-sha256-aes128-cbc-hmac-half", "ecies-with-x9-63-sha256-aes128-cbc-hmac-half", NID_ecies_with_x9_63_sha256_aes128_cbc_hmac_half, 6, &so[7645]},
|
||||
{"ecies-with-x9-63-sha512-aes256-cbc-hmac-half", "ecies-with-x9-63-sha512-aes256-cbc-hmac-half", NID_ecies_with_x9_63_sha512_aes256_cbc_hmac_half, 6, &so[7651]},
|
||||
{"ecies-with-x9-63-sha256-aes128-ctr-hmac-half", "ecies-with-x9-63-sha256-aes128-ctr-hmac-half", NID_ecies_with_x9_63_sha256_aes128_ctr_hmac_half, 6, &so[7657]},
|
||||
{"ecies-with-x9-63-sha512-aes256-ctr-hmac-half", "ecies-with-x9-63-sha512-aes256-ctr-hmac-half", NID_ecies_with_x9_63_sha512_aes256_ctr_hmac_half, 6, &so[7663]},
|
||||
{"ecies-with-x9-63-sha1-aes128-cbc-cmac", "ecies-with-x9-63-sha1-aes128-cbc-cmac", NID_ecies_with_x9_63_sha1_aes128_cbc_cmac, 6, &so[7669]},
|
||||
{"ecies-with-x9-63-sha256-aes128-cbc-cmac", "ecies-with-x9-63-sha256-aes128-cbc-cmac", NID_ecies_with_x9_63_sha256_aes128_cbc_cmac, 6, &so[7675]},
|
||||
{"ecies-with-x9-63-sha512-aes256-cbc-cmac", "ecies-with-x9-63-sha512-aes256-cbc-cmac", NID_ecies_with_x9_63_sha512_aes256_cbc_cmac, 6, &so[7681]},
|
||||
{"ecies-with-x9-63-sha256-aes128-ctr-cmac", "ecies-with-x9-63-sha256-aes128-ctr-cmac", NID_ecies_with_x9_63_sha256_aes128_ctr_cmac, 6, &so[7687]},
|
||||
{"ecies-with-x9-63-sha512-aes256-ctr-cmac", "ecies-with-x9-63-sha512-aes256-ctr-cmac", NID_ecies_with_x9_63_sha512_aes256_ctr_cmac, 6, &so[7693]},
|
||||
{"KxSM2", "kx-sm2", NID_kx_sm2},
|
||||
{"AuthSM2", "auth-sm2", NID_auth_sm2},
|
||||
{"KxSM9", "kx-sm9", NID_kx_sm9},
|
||||
@@ -2300,28 +2302,39 @@ static const ASN1_OBJECT nid_objs[NUM_NID] = {
|
||||
{"KxSM2DHE", "kx-sm2dhe", NID_kx_sm2dhe},
|
||||
{"KxSM2-PSK", "kx-sm2-psk", NID_kx_sm2_psk},
|
||||
{"KxSM9DHE", "kx-sm9dhe", NID_kx_sm9dhe},
|
||||
{"zuc-128eea3", "zuc-128eea3", NID_zuc_128eea3, 9, &so[7732]},
|
||||
{"zuc-128eia3", "zuc-128eia3", NID_zuc_128eia3, 9, &so[7741]},
|
||||
{"PBE-SM3-SMS4", "pbeWithSM3AndSMS4-CBC", NID_pbe_WithSM3AndSMS4_CBC, 10, &so[7750]},
|
||||
{"bwips", "bwips", NID_bwips, 5, &so[7760]},
|
||||
{"wapi-crypto", "wapi-crypto", NID_wapi_crypto, 6, &so[7765]},
|
||||
{"wapi-ec", "wapi-ec", NID_wapi_ec, 7, &so[7771]},
|
||||
{"wapi-ecdsa192-sha256", "wapi-ecdsa192-sha256", NID_wapi_ecdsa192_sha256, 8, &so[7778]},
|
||||
{"sm9bn256v1", "sm9bn256v1", NID_sm9bn256v1, 10, &so[7786]},
|
||||
{"sm9hash1", "sm9hash1", NID_sm9hash1, 9, &so[7796]},
|
||||
{"sm9hash1-with-sm3", "sm9hash1-with-sm3", NID_sm9hash1_with_sm3, 10, &so[7805]},
|
||||
{"sm9hash1-with-sha256", "sm9hash1-with-sha256", NID_sm9hash1_with_sha256, 10, &so[7815]},
|
||||
{"sm9sign-with-sm3", "sm9sign-with-sm3", NID_sm9sign_with_sm3, 10, &so[7825]},
|
||||
{"sm9sign-with-sha256", "sm9sign-with-sha256", NID_sm9sign_with_sha256, 10, &so[7835]},
|
||||
{"sm9encrypt-with-sm3-xor", "sm9encrypt-with-sm3-xor", NID_sm9encrypt_with_sm3_xor, 10, &so[7845]},
|
||||
{"sm9encrypt-with-sm3-sms4-cbc", "sm9encrypt-with-sm3-sms4-cbc", NID_sm9encrypt_with_sm3_sms4_cbc, 10, &so[7855]},
|
||||
{"sm9encrypt-with-sm3-sms4-ctr", "sm9encrypt-with-sm3-sms4-ctr", NID_sm9encrypt_with_sm3_sms4_ctr, 10, &so[7865]},
|
||||
{"sm9kdf", "sm9kdf", NID_sm9kdf, 9, &so[7875]},
|
||||
{"sm9kdf-with-sm3", "sm9kdf-with-sm3", NID_sm9kdf_with_sm3, 10, &so[7884]},
|
||||
{"sm9kdf-with-sha256", "sm9kdf-with-sha256", NID_sm9kdf_with_sha256, 10, &so[7894]},
|
||||
{"zuc-128eea3", "zuc-128eea3", NID_zuc_128eea3, 9, &so[7699]},
|
||||
{"zuc-128eia3", "zuc-128eia3", NID_zuc_128eia3, 9, &so[7708]},
|
||||
{"PBE-SM3-SMS4", "pbeWithSM3AndSMS4-CBC", NID_pbe_WithSM3AndSMS4_CBC, 10, &so[7717]},
|
||||
{"bwips", "bwips", NID_bwips, 5, &so[7727]},
|
||||
{"wapi-crypto", "wapi-crypto", NID_wapi_crypto, 6, &so[7732]},
|
||||
{"wapi-ec", "wapi-ec", NID_wapi_ec, 7, &so[7738]},
|
||||
{"wapi-ecdsa192-sha256", "wapi-ecdsa192-sha256", NID_wapi_ecdsa192_sha256, 8, &so[7745]},
|
||||
{"sm9bn256v1", "sm9bn256v1", NID_sm9bn256v1, 10, &so[7753]},
|
||||
{"sm9hash1", "sm9hash1", NID_sm9hash1, 9, &so[7763]},
|
||||
{"sm9hash1-with-sm3", "sm9hash1-with-sm3", NID_sm9hash1_with_sm3, 10, &so[7772]},
|
||||
{"sm9hash1-with-sha256", "sm9hash1-with-sha256", NID_sm9hash1_with_sha256, 10, &so[7782]},
|
||||
{"sm9sign-with-sm3", "sm9sign-with-sm3", NID_sm9sign_with_sm3, 10, &so[7792]},
|
||||
{"sm9sign-with-sha256", "sm9sign-with-sha256", NID_sm9sign_with_sha256, 10, &so[7802]},
|
||||
{"sm9encrypt-with-sm3-xor", "sm9encrypt-with-sm3-xor", NID_sm9encrypt_with_sm3_xor, 10, &so[7812]},
|
||||
{"sm9encrypt-with-sm3-sms4-cbc", "sm9encrypt-with-sm3-sms4-cbc", NID_sm9encrypt_with_sm3_sms4_cbc, 10, &so[7822]},
|
||||
{"sm9encrypt-with-sm3-sms4-ctr", "sm9encrypt-with-sm3-sms4-ctr", NID_sm9encrypt_with_sm3_sms4_ctr, 10, &so[7832]},
|
||||
{"sm9kdf", "sm9kdf", NID_sm9kdf, 9, &so[7842]},
|
||||
{"sm9kdf-with-sm3", "sm9kdf-with-sm3", NID_sm9kdf_with_sm3, 10, &so[7851]},
|
||||
{"sm9kdf-with-sha256", "sm9kdf-with-sha256", NID_sm9kdf_with_sha256, 10, &so[7861]},
|
||||
{ NULL, NULL, NID_undef },
|
||||
{ NULL, NULL, NID_undef },
|
||||
{ NULL, NULL, NID_undef },
|
||||
{ NULL, NULL, NID_undef },
|
||||
{ NULL, NULL, NID_undef },
|
||||
{ NULL, NULL, NID_undef },
|
||||
{"cpk-map-sha1", "cpk-map-sha1", NID_cpk_map_sha1, 11, &so[7871]},
|
||||
{"cpk-map-sha256", "cpk-map-sha256", NID_cpk_map_sha256, 11, &so[7882]},
|
||||
{"cpk-map-sm3", "cpk-map-sm3", NID_cpk_map_sm3, 11, &so[7893]},
|
||||
{"cpk-map-sha384", "cpk-map-sha384", NID_cpk_map_sha384, 11, &so[7904]},
|
||||
{"cpk-map-sha512", "cpk-map-sha512", NID_cpk_map_sha512, 11, &so[7915]},
|
||||
};
|
||||
|
||||
#define NUM_SN 1201
|
||||
#define NUM_SN 1203
|
||||
static const unsigned int sn_objs[NUM_SN] = {
|
||||
364, /* "AD_DVCS" */
|
||||
419, /* "AES-128-CBC" */
|
||||
@@ -2702,9 +2715,11 @@ static const unsigned int sn_objs[NUM_SN] = {
|
||||
50, /* "contentType" */
|
||||
53, /* "countersignature" */
|
||||
1151, /* "cpk-map" */
|
||||
1152, /* "cpk-sha1-map" */
|
||||
1153, /* "cpk-sha256-map" */
|
||||
1154, /* "cpk-sm3-map" */
|
||||
1218, /* "cpk-map-sha1" */
|
||||
1219, /* "cpk-map-sha256" */
|
||||
1221, /* "cpk-map-sha384" */
|
||||
1222, /* "cpk-map-sha512" */
|
||||
1220, /* "cpk-map-sm3" */
|
||||
153, /* "crlBag" */
|
||||
103, /* "crlDistributionPoints" */
|
||||
88, /* "crlNumber" */
|
||||
@@ -3526,7 +3541,7 @@ static const unsigned int sn_objs[NUM_SN] = {
|
||||
1194, /* "zuc-128eia3" */
|
||||
};
|
||||
|
||||
#define NUM_LN 1201
|
||||
#define NUM_LN 1203
|
||||
static const unsigned int ln_objs[NUM_LN] = {
|
||||
363, /* "AD Time Stamping" */
|
||||
405, /* "ANSI X9.62" */
|
||||
@@ -3871,9 +3886,11 @@ static const unsigned int ln_objs[NUM_LN] = {
|
||||
14, /* "countryName" */
|
||||
1147, /* "cpk" */
|
||||
1151, /* "cpk-map" */
|
||||
1152, /* "cpk-sha1-map" */
|
||||
1153, /* "cpk-sha256-map" */
|
||||
1154, /* "cpk-sm3-map" */
|
||||
1218, /* "cpk-map-sha1" */
|
||||
1219, /* "cpk-map-sha256" */
|
||||
1221, /* "cpk-map-sha384" */
|
||||
1222, /* "cpk-map-sha512" */
|
||||
1220, /* "cpk-map-sm3" */
|
||||
153, /* "crlBag" */
|
||||
884, /* "crossCertificatePair" */
|
||||
806, /* "cryptocom" */
|
||||
@@ -4731,7 +4748,7 @@ static const unsigned int ln_objs[NUM_LN] = {
|
||||
1194, /* "zuc-128eia3" */
|
||||
};
|
||||
|
||||
#define NUM_OBJ 1098
|
||||
#define NUM_OBJ 1100
|
||||
static const unsigned int obj_objs[NUM_OBJ] = {
|
||||
0, /* OBJ_undef 0 */
|
||||
181, /* OBJ_iso 1 */
|
||||
@@ -5826,9 +5843,11 @@ static const unsigned int obj_objs[NUM_OBJ] = {
|
||||
955, /* OBJ_jurisdictionLocalityName 1 3 6 1 4 1 311 60 2 1 1 */
|
||||
956, /* OBJ_jurisdictionStateOrProvinceName 1 3 6 1 4 1 311 60 2 1 2 */
|
||||
957, /* OBJ_jurisdictionCountryName 1 3 6 1 4 1 311 60 2 1 3 */
|
||||
1152, /* OBJ_cpk_sha1_map 1 3 6 1 4 1 49549 1 1 1 */
|
||||
1153, /* OBJ_cpk_sha256_map 1 3 6 1 4 1 49549 1 1 2 */
|
||||
1154, /* OBJ_cpk_sm3_map 1 3 6 1 4 1 49549 1 1 3 */
|
||||
1218, /* OBJ_cpk_map_sha1 1 3 6 1 4 1 49549 1 1 1 */
|
||||
1219, /* OBJ_cpk_map_sha256 1 3 6 1 4 1 49549 1 1 2 */
|
||||
1220, /* OBJ_cpk_map_sm3 1 3 6 1 4 1 49549 1 1 3 */
|
||||
1221, /* OBJ_cpk_map_sha384 1 3 6 1 4 1 49549 1 1 4 */
|
||||
1222, /* OBJ_cpk_map_sha512 1 3 6 1 4 1 49549 1 1 5 */
|
||||
1056, /* OBJ_blake2b512 1 3 6 1 4 1 1722 12 2 1 16 */
|
||||
1057, /* OBJ_blake2s256 1 3 6 1 4 1 1722 12 2 2 8 */
|
||||
};
|
||||
|
||||
@@ -1209,3 +1209,14 @@ sm9encrypt_with_sm3_sms4_ctr 1208
|
||||
sm9kdf 1209
|
||||
sm9kdf_with_sm3 1210
|
||||
sm9kdf_with_sha256 1211
|
||||
cpk_map32x32_sha1 1212
|
||||
cpk_map32x256_sha256 1213
|
||||
cpk_map32x256_sm3 1214
|
||||
cpk_map_with_sha1 1215
|
||||
cpk_map_with_sha256 1216
|
||||
cpk_map_with_sm3 1217
|
||||
cpk_map_sha1 1218
|
||||
cpk_map_sha256 1219
|
||||
cpk_map_sm3 1220
|
||||
cpk_map_sha384 1221
|
||||
cpk_map_sha512 1222
|
||||
|
||||
@@ -1666,10 +1666,14 @@ ibcs1 3 4 : r-ate-pairing
|
||||
Enterprises 49549 : gmssl : GmSSL
|
||||
|
||||
GmSSL 1 : CPK : cpk
|
||||
|
||||
# map algorithms
|
||||
cpk 1 : cpk-map
|
||||
cpk-map 1 : cpk-sha1-map
|
||||
cpk-map 2 : cpk-sha256-map
|
||||
cpk-map 3 : cpk-sm3-map
|
||||
cpk-map 1 : cpk-map-sha1
|
||||
cpk-map 2 : cpk-map-sha256
|
||||
cpk-map 3 : cpk-map-sm3
|
||||
cpk-map 4 : cpk-map-sha384
|
||||
cpk-map 5 : cpk-map-sha512
|
||||
|
||||
GmSSL 21 : paillier
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
all:
|
||||
gcc cpk-setup.c -lcrypto -o cpk-setup
|
||||
gcc cpk-keygen.c -lcrypto -o cpk-keygen
|
||||
gcc cpk-sign.c -lcrypto -o cpk-sign
|
||||
gcc cpk-verify.c -lcrypto -o cpk-verify
|
||||
gcc cpk-setup.c -L/usr/local/lib -lcrypto -o cpk-setup
|
||||
gcc cpk-keygen.c -L/usr/local/lib -lcrypto -o cpk-keygen
|
||||
gcc cpk-sign.c -L/usr/local/lib -lcrypto -o cpk-sign
|
||||
gcc cpk-verify.c -L/usr/local/lib -lcrypto -o cpk-verify
|
||||
|
||||
test:
|
||||
./cpk-setup sign.mpk sign.msk
|
||||
|
||||
@@ -71,12 +71,7 @@ int main(int argc, char **argv)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!(map = CPK_MAP_new_default())
|
||||
|| !(ec_key = EC_KEY_new_by_curve_name(NID_sm2p256v1))
|
||||
|| !EC_KEY_generate_key(ec_key)
|
||||
|| !(pkey = EVP_PKEY_new())
|
||||
|| !EVP_PKEY_set1_EC_KEY(pkey, ec_key)
|
||||
|| !(msk = CPK_MASTER_SECRET_create("codesign", pkey, map))
|
||||
if (!(msk = CPK_MASTER_SECRET_create("codesign", 0, NID_cpk_map_sha1))
|
||||
|| !(mpk = CPK_MASTER_SECRET_extract_public_params(msk))) {
|
||||
ERR_print_errors_fp(stderr);
|
||||
goto end;
|
||||
|
||||
@@ -52,6 +52,8 @@
|
||||
#include <libgen.h>
|
||||
#include <openssl/cpk.h>
|
||||
#include <openssl/pem.h>
|
||||
#include <openssl/sm2.h>
|
||||
#include <openssl/is_gmssl.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
@@ -100,6 +102,10 @@ int main(int argc, char **argv)
|
||||
ERR_print_errors_fp(stderr);
|
||||
goto end;
|
||||
}
|
||||
if (!EVP_PKEY_CTX_set_ec_scheme(pctx, NID_sm_scheme)) {
|
||||
ERR_print_errors_fp(stderr);
|
||||
goto end;
|
||||
}
|
||||
while ((len = BIO_read(in_bio, buf, sizeof(buf))) > 0) {
|
||||
if (!EVP_DigestSignUpdate(md_ctx, buf, len)) {
|
||||
ERR_print_errors_fp(stderr);
|
||||
|
||||
@@ -51,6 +51,9 @@
|
||||
#include <stdlib.h>
|
||||
#include <libgen.h>
|
||||
#include <openssl/cpk.h>
|
||||
#include <openssl/pem.h>
|
||||
#include <openssl/sm2.h>
|
||||
#include <openssl/is_gmssl.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
@@ -65,7 +68,7 @@ int main(int argc, char **argv)
|
||||
EVP_PKEY_CTX *pctx;
|
||||
unsigned char magicstr[] = "~CPK signature appended~";
|
||||
unsigned char magic[sizeof(magicstr)] = {0};
|
||||
unsigned char id[128];
|
||||
unsigned char id[128] = {0};
|
||||
unsigned char sig[128];
|
||||
unsigned int idlen, siglen, totallen;
|
||||
int datalen;
|
||||
@@ -155,6 +158,10 @@ int main(int argc, char **argv)
|
||||
ERR_print_errors_fp(stderr);
|
||||
goto end;
|
||||
}
|
||||
if (!EVP_PKEY_CTX_set_ec_scheme(pctx, NID_sm_scheme)) {
|
||||
ERR_print_errors_fp(stderr);
|
||||
goto end;
|
||||
}
|
||||
|
||||
while (datalen > 0) {
|
||||
unsigned char buf[1024];
|
||||
@@ -182,7 +189,6 @@ int main(int argc, char **argv)
|
||||
}
|
||||
printf("%s: success\n", argv[1]);
|
||||
|
||||
|
||||
ret = 0;
|
||||
end:
|
||||
return ret;
|
||||
|
||||
@@ -68,37 +68,19 @@ extern "C" {
|
||||
|
||||
#define CPK_MAX_ID_LENGTH 64
|
||||
|
||||
|
||||
X509_ALGOR *CPK_MAP_new_default(void);
|
||||
int CPK_MAP_is_valid(const X509_ALGOR *algor);
|
||||
int CPK_MAP_num_factors(const X509_ALGOR *algor);
|
||||
int CPK_MAP_num_indexes(const X509_ALGOR *algor);
|
||||
int CPK_MAP_str2index(const X509_ALGOR *algor, const char *str, int *index);
|
||||
|
||||
|
||||
typedef struct cpk_master_secret_st CPK_MASTER_SECRET;
|
||||
DECLARE_ASN1_FUNCTIONS(CPK_MASTER_SECRET)
|
||||
|
||||
typedef struct cpk_public_params_st CPK_PUBLIC_PARAMS;
|
||||
DECLARE_ASN1_FUNCTIONS(CPK_PUBLIC_PARAMS)
|
||||
|
||||
//CPK_MASTER_SECERT *CPK_MASTER_SECRET_new(const char *domain, const EC_GROUP *group, int map_algor);
|
||||
|
||||
|
||||
CPK_MASTER_SECRET *CPK_MASTER_SECRET_create(const char *domain_id, EVP_PKEY *pkey, X509_ALGOR *map_algor);
|
||||
CPK_MASTER_SECRET *CPK_MASTER_SECRET_create(const char *domain_id, int pkey_type, int map_algor);
|
||||
CPK_PUBLIC_PARAMS *CPK_MASTER_SECRET_extract_public_params(CPK_MASTER_SECRET *master);
|
||||
EVP_PKEY *CPK_MASTER_SECRET_extract_private_key(CPK_MASTER_SECRET *master, const char *id);
|
||||
EVP_PKEY *CPK_PUBLIC_PARAMS_extract_public_key(CPK_PUBLIC_PARAMS *params, const char *id);
|
||||
|
||||
|
||||
int CPK_PUBLIC_PARAMS_compute_share_key(CPK_PUBLIC_PARAMS *params,
|
||||
void *out, size_t outlen, const char *id, EVP_PKEY *priv_key,
|
||||
void *(*kdf)(const void *in, size_t inlen, void *out, size_t *outlen));
|
||||
|
||||
char *CPK_MASTER_SECRET_get_name(CPK_MASTER_SECRET *master, char *buf, int size);
|
||||
char *CPK_PUBLIC_PARAMS_get_name(CPK_PUBLIC_PARAMS *params, char *buf, int size);
|
||||
int CPK_MASTER_SECRET_digest(CPK_MASTER_SECRET *master, const EVP_MD *type, unsigned char *md, unsigned int *len);
|
||||
int CPK_PUBLIC_PARAMS_digest(CPK_PUBLIC_PARAMS *params, const EVP_MD *type, unsigned char *md, unsigned int *len);
|
||||
int CPK_MASTER_SECRET_print(BIO *out, CPK_MASTER_SECRET *master, int indent, unsigned long flags);
|
||||
int CPK_PUBLIC_PARAMS_print(BIO *out, CPK_PUBLIC_PARAMS *params, int indent, unsigned long flags);
|
||||
int CPK_MASTER_SECRET_validate_public_params(CPK_MASTER_SECRET *master, CPK_PUBLIC_PARAMS *params);
|
||||
@@ -121,19 +103,34 @@ int ERR_load_CPK_strings(void);
|
||||
/* Error codes for the CPK functions. */
|
||||
|
||||
/* Function codes. */
|
||||
# define CPK_F_CPK_MAP_GET_MD 116
|
||||
# define CPK_F_CPK_MAP_IS_VALID 114
|
||||
# define CPK_F_CPK_MAP_NEW 111
|
||||
# define CPK_F_CPK_MAP_NEW_DEFAULT 100
|
||||
# define CPK_F_CPK_MAP_NUM_FACTORS 112
|
||||
# define CPK_F_CPK_MAP_NUM_INDEXES 113
|
||||
# define CPK_F_CPK_MAP_NUM_SUBSET 115
|
||||
# define CPK_F_CPK_MAP_STR2INDEX 101
|
||||
# define CPK_F_CPK_MASTER_SECRET_CREATE 102
|
||||
# define CPK_F_CPK_MASTER_SECRET_EXTRACT_PRIVATE_KEY 103
|
||||
# define CPK_F_CPK_MASTER_SECRET_EXTRACT_PUBLIC_PARAMS 104
|
||||
# define CPK_F_CPK_MASTER_SECRET_PRINT 109
|
||||
# define CPK_F_CPK_MASTER_SECRET_VALIDATE_PUBLIC_PARAMS 117
|
||||
# define CPK_F_CPK_PUBLIC_PARAMS_COMPUTE_SHARE_KEY 105
|
||||
# define CPK_F_CPK_PUBLIC_PARAMS_EXTRACT_PUBLIC_KEY 106
|
||||
# define CPK_F_CPK_PUBLIC_PARAMS_PRINT 110
|
||||
# define CPK_F_CPK_PUBLIC_PARAMS_VALIDATE_PRIVATE_KEY 107
|
||||
# define CPK_F_EXTRACT_EC_PARAMS 118
|
||||
# define CPK_F_EXTRACT_EC_PRIV_KEY 119
|
||||
# define CPK_F_EXTRACT_EC_PUB_KEY 120
|
||||
# define CPK_F_X509_ALGOR_GET1_EC_KEY 108
|
||||
|
||||
/* Reason codes. */
|
||||
# define CPK_R_BAD_ARGUMENT 100
|
||||
# define CPK_R_BAD_ARGUMENTS 105
|
||||
# define CPK_R_BAD_DATA 101
|
||||
# define CPK_R_INVALID_ALGORITHM 106
|
||||
# define CPK_R_INVALID_ARGUMENT 107
|
||||
# define CPK_R_INVALID_ID_LENGTH 102
|
||||
# define CPK_R_INVALID_MAP_ALGOR 103
|
||||
# define CPK_R_INVALID_PKEY_TYPE 104
|
||||
|
||||
@@ -5181,17 +5181,25 @@
|
||||
#define NID_cpk_map 1151
|
||||
#define OBJ_cpk_map OBJ_cpk,1L
|
||||
|
||||
#define SN_cpk_sha1_map "cpk-sha1-map"
|
||||
#define NID_cpk_sha1_map 1152
|
||||
#define OBJ_cpk_sha1_map OBJ_cpk_map,1L
|
||||
#define SN_cpk_map_sha1 "cpk-map-sha1"
|
||||
#define NID_cpk_map_sha1 1218
|
||||
#define OBJ_cpk_map_sha1 OBJ_cpk_map,1L
|
||||
|
||||
#define SN_cpk_sha256_map "cpk-sha256-map"
|
||||
#define NID_cpk_sha256_map 1153
|
||||
#define OBJ_cpk_sha256_map OBJ_cpk_map,2L
|
||||
#define SN_cpk_map_sha256 "cpk-map-sha256"
|
||||
#define NID_cpk_map_sha256 1219
|
||||
#define OBJ_cpk_map_sha256 OBJ_cpk_map,2L
|
||||
|
||||
#define SN_cpk_sm3_map "cpk-sm3-map"
|
||||
#define NID_cpk_sm3_map 1154
|
||||
#define OBJ_cpk_sm3_map OBJ_cpk_map,3L
|
||||
#define SN_cpk_map_sm3 "cpk-map-sm3"
|
||||
#define NID_cpk_map_sm3 1220
|
||||
#define OBJ_cpk_map_sm3 OBJ_cpk_map,3L
|
||||
|
||||
#define SN_cpk_map_sha384 "cpk-map-sha384"
|
||||
#define NID_cpk_map_sha384 1221
|
||||
#define OBJ_cpk_map_sha384 OBJ_cpk_map,4L
|
||||
|
||||
#define SN_cpk_map_sha512 "cpk-map-sha512"
|
||||
#define NID_cpk_map_sha512 1222
|
||||
#define OBJ_cpk_map_sha512 OBJ_cpk_map,5L
|
||||
|
||||
#define SN_paillier "paillier"
|
||||
#define NID_paillier 1148
|
||||
|
||||
9890
util/libcrypto.num
9890
util/libcrypto.num
File diff suppressed because it is too large
Load Diff
820
util/libssl.num
820
util/libssl.num
@@ -1,411 +1,411 @@
|
||||
SSL_SESSION_get0_ticket 1 1_1_0d EXIST::FUNCTION:
|
||||
SSL_certs_clear 2 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_srp_password 3 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSLv3_server_method 4 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,SSL3_METHOD
|
||||
SSL_SESSION_print 5 1_1_0d EXIST::FUNCTION:
|
||||
BIO_new_ssl_connect 6 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_use_certificate 7 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_error 8 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_client_cert_cb 9 1_1_0d EXIST::FUNCTION:
|
||||
SSL_use_PrivateKey_file 10 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_alpn_protos 11 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_ctlog_list_file 12 1_1_0d EXIST::FUNCTION:CT
|
||||
SSL_trace 13 1_1_0d EXIST::FUNCTION:SSL_TRACE
|
||||
SSL_CTX_get0_privatekey 14 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get_security_level 15 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_cookie_generate_cb 16 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_options 17 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_shutdown 18 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_use_psk_identity_hint 19 1_1_0d EXIST::FUNCTION:PSK
|
||||
SSL_dane_tlsa_add 20 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_cipher_list 21 1_1_0d EXIST::FUNCTION:
|
||||
TLSv1_client_method 22 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,TLS1_METHOD
|
||||
SSL_set_tlsext_use_srtp 23 1_1_0d EXIST::FUNCTION:SRTP
|
||||
SSL_set_srp_server_param 24 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_CTX_set_timeout 25 1_1_0d EXIST::FUNCTION:
|
||||
SSL_copy_session_id 26 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_cipher_list 27 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_default_ctlog_list_file 28 1_1_0d EXIST::FUNCTION:CT
|
||||
DTLSv1_server_method 29 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,DTLS1_METHOD
|
||||
SSL_config 30 1_1_0d EXIST::FUNCTION:
|
||||
SSL_use_RSAPrivateKey 31 1_1_0d EXIST::FUNCTION:RSA
|
||||
SSL_CTX_set_alpn_select_cb 32 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get0_alpn_selected 33 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_peer_finished 34 1_1_0d EXIST::FUNCTION:
|
||||
SSL_has_matching_session_id 35 1_1_0d EXIST::FUNCTION:
|
||||
SSL_add_client_CA 36 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_state 37 1_1_0d EXIST::FUNCTION:
|
||||
GMTLS_method 38 1_1_0d EXIST::FUNCTION:GMTLS
|
||||
SSL_new 39 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_default_read_buffer_len 40 1_1_0d EXIST::FUNCTION:
|
||||
SSL_extension_supported 41 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_accept_state 42 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_privatekey 43 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_psk_client_callback 44 1_1_0d EXIST::FUNCTION:PSK
|
||||
SSL_alert_desc_string_long 45 1_1_0d EXIST::FUNCTION:
|
||||
PEM_write_SSL_SESSION 46 1_1_0d EXIST::FUNCTION:STDIO
|
||||
SSL_CTX_set_verify 47 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_default_verify_file 48 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_sigalgs 49 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CONF_cmd_argv 1 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set1_param 2 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_psk_identity 3 1_1_0d EXIST::FUNCTION:PSK
|
||||
SSL_dane_enable 4 1_1_0d EXIST::FUNCTION:
|
||||
SSL_ctrl 5 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_new 6 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_rfd 7 1_1_0d EXIST::FUNCTION:SOCK
|
||||
SSL_CTX_use_RSAPrivateKey_ASN1 8 1_1_0d EXIST::FUNCTION:RSA
|
||||
SSL_CONF_cmd 9 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_load_verify_locations 10 1_1_0d EXIST::FUNCTION:
|
||||
BIO_ssl_shutdown 11 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_current_compression 12 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_use_certificate 13 1_1_0d EXIST::FUNCTION:
|
||||
SSL_select_next_proto 14 1_1_0d EXIST::FUNCTION:
|
||||
SSL_do_handshake 15 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_not_resumable_session_callback 16 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_SSL_CTX 17 1_1_0d EXIST::FUNCTION:
|
||||
SSL_renegotiate_abbreviated 18 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_cookie_generate_cb 19 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_cipher_list 20 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_ctlog_list_file 21 1_1_0d EXIST::FUNCTION:CT
|
||||
DTLS_server_method 22 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_srp_username 23 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_SESSION_set_ex_data 24 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get0_dane 25 1_1_0d EXIST::FUNCTION:
|
||||
SSL_has_pending 26 1_1_0d EXIST::FUNCTION:
|
||||
SSL_renegotiate 27 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_add_server_custom_ext 28 1_1_0d EXIST::FUNCTION:
|
||||
SSLv3_client_method 29 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,SSL3_METHOD
|
||||
SSL_clear_options 30 1_1_0d EXIST::FUNCTION:
|
||||
TLS_client_method 31 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set1_param 32 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_client_CA_list 33 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_has_ticket 34 1_1_0d EXIST::FUNCTION:
|
||||
DTLSv1_server_method 35 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,DTLS1_METHOD
|
||||
SSL_CTX_set_default_verify_paths 36 1_1_0d EXIST::FUNCTION:
|
||||
SSL_connect 37 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_finished 38 1_1_0d EXIST::FUNCTION:
|
||||
GMTLS_client_method 39 1_1_0d EXIST::FUNCTION:GMTLS
|
||||
SSL_get_rfd 40 1_1_0d EXIST::FUNCTION:
|
||||
SSL_free 41 1_1_0d EXIST::FUNCTION:
|
||||
SSL_is_dtls 42 1_1_0d EXIST::FUNCTION:
|
||||
DTLSv1_client_method 43 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,DTLS1_METHOD
|
||||
SSL_CTX_remove_session 44 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_cipher_list 45 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_shared_sigalgs 46 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get_ciphers 47 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_security_callback 48 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_session_id_context 49 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_srtp_profiles 50 1_1_0d EXIST::FUNCTION:SRTP
|
||||
SSL_CTX_set_srp_cb_arg 51 1_1_0d EXIST::FUNCTION:SRP
|
||||
BIO_new_ssl 52 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_all_async_fds 53 1_1_0d EXIST::FUNCTION:
|
||||
DTLSv1_2_server_method 54 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,DTLS1_2_METHOD
|
||||
SSL_use_PrivateKey_ASN1 55 1_1_0d EXIST::FUNCTION:
|
||||
SSL_load_client_CA_file 56 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_set_time 57 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CIPHER_get_id 58 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_dane_set_flags 59 1_1_0d EXIST::FUNCTION:
|
||||
SSL_in_init 60 1_1_0d EXIST::FUNCTION:
|
||||
SSL_alert_type_string_long 61 1_1_0d EXIST::FUNCTION:
|
||||
TLSv1_2_method 62 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,TLS1_2_METHOD
|
||||
SSL_CTX_set_tmp_dh_callback 63 1_1_0d EXIST::FUNCTION:DH
|
||||
SSL_SESSION_get_master_key 64 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_srp_strength 65 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_clear 66 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CIPHER_get_digest_nid 67 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_quiet_shutdown 68 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_server_random 69 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CIPHER_get_auth_nid 70 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_cert_store 71 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_ct_validation_callback 72 1_1_0d EXIST::FUNCTION:CT
|
||||
SSL_get_default_passwd_cb 73 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_free 74 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_get_time 75 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get_info_callback 76 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_cert_cb 77 1_1_0d EXIST::FUNCTION:
|
||||
DTLSv1_2_method 78 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,DTLS1_2_METHOD
|
||||
SSL_CTX_has_client_custom_ext 79 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get_client_cert_cb 80 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_load_verify_locations 81 1_1_0d EXIST::FUNCTION:
|
||||
SSL_use_PrivateKey 82 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_info_callback 83 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_next_proto_select_cb 84 1_1_0d EXIST::FUNCTION:NEXTPROTONEG
|
||||
SSL_CONF_CTX_free 85 1_1_0d EXIST::FUNCTION:
|
||||
SSL_free 86 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_ssl_method 87 1_1_0d EXIST::FUNCTION:
|
||||
SSL_up_ref 88 1_1_0d EXIST::FUNCTION:
|
||||
SSL_dane_set_flags 89 1_1_0d EXIST::FUNCTION:
|
||||
TLSv1_2_client_method 90 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,TLS1_2_METHOD
|
||||
SSL_enable_ct 91 1_1_0d EXIST::FUNCTION:CT
|
||||
SSL_COMP_set0_compression_methods 92 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_security_level 93 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_add_server_custom_ext 94 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_add_client_CA 95 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_print_fp 96 1_1_0d EXIST::FUNCTION:STDIO
|
||||
SSLv3_client_method 97 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,SSL3_METHOD
|
||||
DTLSv1_client_method 98 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,DTLS1_METHOD
|
||||
SSL_CTX_dane_enable 99 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_session 100 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_get_id 101 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CIPHER_get_name 102 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_srp_username 103 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_set_shutdown 104 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SRP_CTX_init 105 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_CTX_use_RSAPrivateKey 106 1_1_0d EXIST::FUNCTION:RSA
|
||||
DTLSv1_listen 107 1_1_0d EXIST::FUNCTION:SOCK
|
||||
SSL_CONF_cmd_value_type 108 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_trust 109 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_verify_result 110 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get_ssl_method 111 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_SSL_CTX 112 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CIPHER_find 113 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get1_session 114 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_info_callback 115 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set1_host 116 1_1_0d EXIST::FUNCTION:
|
||||
SSL_add_file_cert_subjects_to_stack 117 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_ssl_version 118 1_1_0d EXIST::FUNCTION:
|
||||
SSL_dup_CA_list 119 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_srp_server_param_pw 120 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_CTX_set_cookie_verify_cb 121 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_purpose 122 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_srp_username_callback 123 1_1_0d EXIST::FUNCTION:SRP
|
||||
SRP_Calc_A_param 124 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_state_string 125 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_get_protocol_version 126 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get0_next_proto_negotiated 127 1_1_0d EXIST::FUNCTION:NEXTPROTONEG
|
||||
SSL_get_security_callback 128 1_1_0d EXIST::FUNCTION:
|
||||
SSL_use_certificate_ASN1 129 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_check_private_key 130 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_tlsext_use_srtp 131 1_1_0d EXIST::FUNCTION:SRTP
|
||||
SSL_CTX_get_cert_store 132 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_current_cipher 133 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_use_PrivateKey 134 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_fd 135 1_1_0d EXIST::FUNCTION:
|
||||
TLSv1_1_client_method 136 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,TLS1_1_METHOD
|
||||
SSL_get_servername 137 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set0_security_ex_data 138 1_1_0d EXIST::FUNCTION:
|
||||
TLS_client_method 139 1_1_0d EXIST::FUNCTION:
|
||||
SSL_renegotiate 140 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get0_param 141 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_client_CA_list 142 1_1_0d EXIST::FUNCTION:
|
||||
SSL_ctrl 143 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set1_param 144 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_srp_N 145 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_in_before 146 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_verify_result 147 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_cert_verify_callback 148 1_1_0d EXIST::FUNCTION:
|
||||
SSL_peek 149 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_purpose 150 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_psk_server_callback 151 1_1_0d EXIST::FUNCTION:PSK
|
||||
SSL_CTX_SRP_CTX_free 152 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_set_connect_state 153 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CIPHER_get_kx_nid 154 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_security_callback 155 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_options 156 1_1_0d EXIST::FUNCTION:
|
||||
SSL_write 157 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_sess_set_new_cb 158 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_srp_verify_param_callback 159 1_1_0d EXIST::FUNCTION:SRP
|
||||
TLS_server_method 160 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get0_dane_tlsa 161 1_1_0d EXIST::FUNCTION:
|
||||
GMTLS_server_method 162 1_1_0d EXIST::FUNCTION:GMTLS
|
||||
SSL_CTX_dane_clear_flags 163 1_1_0d EXIST::FUNCTION:
|
||||
SSL_COMP_get0_name 164 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_free 165 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_get0_cipher 166 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_msg_callback 167 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get_client_CA_list 168 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_use_certificate_file 169 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_use_PrivateKey_file 170 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_info_callback 171 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_ct_validation_callback 172 1_1_0d EXIST::FUNCTION:CT
|
||||
SSL_get_rbio 173 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_ex_data 174 1_1_0d EXIST::FUNCTION:
|
||||
BIO_ssl_copy_session_id 175 1_1_0d EXIST::FUNCTION:
|
||||
SSL_dup 176 1_1_0d EXIST::FUNCTION:
|
||||
PEM_read_SSL_SESSION 177 1_1_0d EXIST::FUNCTION:STDIO
|
||||
SSL_set_bio 178 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_security_level 179 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set1_param 180 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_verify_depth 181 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get0_peer_scts 182 1_1_0d EXIST::FUNCTION:CT
|
||||
SSL_alert_type_string 183 1_1_0d EXIST::FUNCTION:
|
||||
SSL_is_init_finished 184 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_use_serverinfo 185 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_use_certificate_ASN1 186 1_1_0d EXIST::FUNCTION:
|
||||
TLS_method 187 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get0_security_ex_data 188 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_version 189 1_1_0d EXIST::FUNCTION:
|
||||
DTLS_client_method 190 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_use_RSAPrivateKey_file 191 1_1_0d EXIST::FUNCTION:RSA
|
||||
SSL_CIPHER_description 192 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_SRP_CTX_init 193 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_CTX_flush_sessions 194 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get_ex_data 195 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get0_peername 196 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CONF_CTX_finish 197 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_default_timeout 198 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get1_supported_ciphers 199 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_clear_options 200 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_ex_data_X509_STORE_CTX_idx 201 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CONF_CTX_new 202 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CONF_CTX_set_flags 203 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_shared_sigalgs 204 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_ex_data 205 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_psk_client_callback 206 1_1_0d EXIST::FUNCTION:PSK
|
||||
SSL_test_functions 207 1_1_0d EXIST::FUNCTION:UNIT_TEST
|
||||
SSL_SESSION_get_timeout 208 1_1_0d EXIST::FUNCTION:
|
||||
SSL_check_chain 209 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get_timeout 210 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_use_serverinfo_file 211 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_tmp_dh_callback 212 1_1_0d EXIST::FUNCTION:DH
|
||||
SSL_use_psk_identity_hint 213 1_1_0d EXIST::FUNCTION:PSK
|
||||
SSL_client_version 214 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_security_callback 215 1_1_0d EXIST::FUNCTION:
|
||||
TLSv1_method 216 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,TLS1_METHOD
|
||||
SSL_CTX_set_default_passwd_cb 217 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_use_certificate_chain_file 218 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CONF_cmd 219 1_1_0d EXIST::FUNCTION:
|
||||
SSL_select_next_proto 220 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_srp_userinfo 221 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_CTX_get_verify_mode 222 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CONF_CTX_set_ssl_ctx 223 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_sess_get_remove_cb 224 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_wfd 225 1_1_0d EXIST::FUNCTION:
|
||||
SSLv3_method 226 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,SSL3_METHOD
|
||||
SSL_get_rfd 227 1_1_0d EXIST::FUNCTION:
|
||||
SSL_COMP_get_id 228 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_cipher_list 229 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_psk_identity 230 1_1_0d EXIST::FUNCTION:PSK
|
||||
SSL_use_certificate_chain_file 231 1_1_0d EXIST::FUNCTION:
|
||||
SSL_dane_clear_flags 232 1_1_0d EXIST::FUNCTION:
|
||||
TLSv1_1_method 233 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,TLS1_1_METHOD
|
||||
SSL_set_default_passwd_cb_userdata 234 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_up_ref 235 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get0_dane 236 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_get_ex_data 237 1_1_0d EXIST::FUNCTION:
|
||||
SSL_add_dir_cert_subjects_to_stack 238 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_ctrl 239 1_1_0d EXIST::FUNCTION:
|
||||
GMTLS_client_method 240 1_1_0d EXIST::FUNCTION:GMTLS
|
||||
TLSv1_1_server_method 241 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,TLS1_1_METHOD
|
||||
SSL_CTX_get0_certificate 242 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_session_id_context 243 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_shared_ciphers 244 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_config 245 1_1_0d EXIST::FUNCTION:
|
||||
SSL_add1_host 246 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_set1_id 247 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_session_ticket_ext_cb 248 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get_default_passwd_cb_userdata 249 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_current_expansion 250 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_set_timeout 251 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_dane_mtype_set 252 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_has_ticket 253 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CIPHER_is_aead 254 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get0_security_ex_data 255 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get_default_passwd_cb 256 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_set1_id_context 257 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CONF_CTX_set1_prefix 258 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_SSL_CTX 259 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_read_ahead 260 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_fd 261 1_1_0d EXIST::FUNCTION:SOCK
|
||||
SSL_CTX_get_ciphers 262 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_session 263 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_trust 264 1_1_0d EXIST::FUNCTION:
|
||||
SSL_callback_ctrl 265 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CIPHER_get_bits 266 1_1_0d EXIST::FUNCTION:
|
||||
BIO_new_buffer_ssl_connect 267 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_selected_srtp_profile 268 1_1_0d EXIST::FUNCTION:SRTP
|
||||
SSL_COMP_get_name 269 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_rfd 270 1_1_0d EXIST::FUNCTION:SOCK
|
||||
SSL_renegotiate_pending 271 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_sessions 272 1_1_0d EXIST::FUNCTION:
|
||||
SSL_pending 273 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CIPHER_get_version 274 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_get0_hostname 275 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get0_param 276 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_alpn_protos 277 1_1_0d EXIST::FUNCTION:
|
||||
PEM_read_bio_SSL_SESSION 278 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_not_resumable_session_callback 279 1_1_0d EXIST::FUNCTION:
|
||||
SSL_shutdown 280 1_1_0d EXIST::FUNCTION:
|
||||
SSL_COMP_add_compression_method 281 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_srp_g 282 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_CTX_get_quiet_shutdown 283 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_default_verify_paths 284 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_next_protos_advertised_cb 285 1_1_0d EXIST::FUNCTION:NEXTPROTONEG
|
||||
SSL_CTX_set0_security_ex_data 286 1_1_0d EXIST::FUNCTION:
|
||||
TLSv1_server_method 287 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,TLS1_METHOD
|
||||
SSL_rstate_string_long 288 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get_verify_depth 289 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get0_ctlog_store 290 1_1_0d EXIST::FUNCTION:CT
|
||||
SSL_CTX_set_psk_server_callback 291 1_1_0d EXIST::FUNCTION:PSK
|
||||
SSL_get_psk_identity_hint 292 1_1_0d EXIST::FUNCTION:PSK
|
||||
SSL_version 293 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_client_cert_engine 294 1_1_0d EXIST::FUNCTION:ENGINE
|
||||
DTLSv1_method 295 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,DTLS1_METHOD
|
||||
SSL_set_options 296 1_1_0d EXIST::FUNCTION:
|
||||
SSL_is_server 297 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CIPHER_get_cipher_nid 298 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_verify_mode 299 1_1_0d EXIST::FUNCTION:
|
||||
SSL_COMP_get_compression_methods 300 1_1_0d EXIST::FUNCTION:
|
||||
SSL_accept 301 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set0_rbio 302 1_1_0d EXIST::FUNCTION:
|
||||
TLSv1_2_server_method 303 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,TLS1_2_METHOD
|
||||
SSL_want 304 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set0_ctlog_store 305 1_1_0d EXIST::FUNCTION:CT
|
||||
SSL_CTX_get_options 306 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_verify_callback 307 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_peer_cert_chain 308 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_default_passwd_cb_userdata 309 1_1_0d EXIST::FUNCTION:
|
||||
SSL_is_gmtls 310 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_default_read_buffer_len 311 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_get_compress_id 312 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_session_ticket_ext 313 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_use_RSAPrivateKey_ASN1 314 1_1_0d EXIST::FUNCTION:RSA
|
||||
SSL_CONF_CTX_clear_flags 315 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_up_ref 316 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_quiet_shutdown 317 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_msg_callback 318 1_1_0d EXIST::FUNCTION:
|
||||
DTLS_server_method 319 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_changed_async_fds 320 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CONF_cmd_argv 321 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_session_id_context 322 1_1_0d EXIST::FUNCTION:
|
||||
i2d_SSL_SESSION 323 1_1_0d EXIST::FUNCTION:
|
||||
SSL_srp_server_param_with_username 324 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_CTX_ct_is_enabled 325 1_1_0d EXIST::FUNCTION:CT
|
||||
SSL_connect 326 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SRP_CTX_free 327 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_read 328 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_get_ticket_lifetime_hint 329 1_1_0d EXIST::FUNCTION:
|
||||
SSL_rstate_string 330 1_1_0d EXIST::FUNCTION:
|
||||
DTLS_method 331 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_ciphers 332 1_1_0d EXIST::FUNCTION:
|
||||
SSL_renegotiate_abbreviated 333 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_default_passwd_cb_userdata 334 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_sess_get_get_cb 335 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_srp_client_pwd_callback 336 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_export_keying_material 337 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_sess_set_remove_cb 338 1_1_0d EXIST::FUNCTION:
|
||||
ERR_load_SSL_strings 339 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_sess_get_new_cb 340 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CONF_CTX_set_ssl 341 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_callback_ctrl 342 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_current_compression 343 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_client_CA_list 344 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CIPHER_standard_name 345 1_1_0d EXIST::FUNCTION:SSL_TRACE
|
||||
SSL_get_read_ahead 346 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_verify_depth 347 1_1_0d EXIST::FUNCTION:
|
||||
SSL_session_reused 348 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_not_resumable_session_callback 349 1_1_0d EXIST::FUNCTION:
|
||||
SSL_do_handshake 350 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_wbio 351 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get_verify_callback 352 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get0_dane_authority 353 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_remove_session 354 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_default_verify_dir 355 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_use_PrivateKey_ASN1 356 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_print_keylog 357 1_1_0d EXIST::FUNCTION:
|
||||
SSL_has_pending 358 1_1_0d EXIST::FUNCTION:
|
||||
PEM_write_bio_SSL_SESSION 359 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_client_CA_list 360 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_verify_depth 361 1_1_0d EXIST::FUNCTION:
|
||||
SSL_check_private_key 362 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_ssl_method 363 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_add_client_custom_ext 364 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_client_ciphers 365 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_sess_set_get_cb 366 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_debug 367 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0
|
||||
SSL_CTX_enable_ct 368 1_1_0d EXIST::FUNCTION:CT
|
||||
SSL_get_client_random 369 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_peer_certificate 370 1_1_0d EXIST::FUNCTION:
|
||||
d2i_SSL_SESSION 371 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_set_ex_data 372 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set0_wbio 373 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_session_secret_cb 374 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_srp_username 375 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_is_dtls 376 1_1_0d EXIST::FUNCTION:
|
||||
SSL_dane_enable 377 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_cert_cb 378 1_1_0d EXIST::FUNCTION:
|
||||
SSL_state_string_long 379 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_generate_session_id 380 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_security_level 381 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_wfd 382 1_1_0d EXIST::FUNCTION:SOCK
|
||||
SSL_ct_is_enabled 383 1_1_0d EXIST::FUNCTION:CT
|
||||
SSL_waiting_for_async 384 1_1_0d EXIST::FUNCTION:
|
||||
BIO_ssl_shutdown 385 1_1_0d EXIST::FUNCTION:
|
||||
SSL_use_certificate_file 386 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_quiet_shutdown 387 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_hostflags 388 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_verify 389 1_1_0d EXIST::FUNCTION:
|
||||
OPENSSL_init_ssl 390 1_1_0d EXIST::FUNCTION:
|
||||
SSL_use_RSAPrivateKey_ASN1 391 1_1_0d EXIST::FUNCTION:RSA
|
||||
SSL_get_ex_data 392 1_1_0d EXIST::FUNCTION:
|
||||
SSL_use_certificate 393 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_new 394 1_1_0d EXIST::FUNCTION:
|
||||
SSL_clear_options 395 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_add_session 396 1_1_0d EXIST::FUNCTION:
|
||||
SSL_use_RSAPrivateKey_file 397 1_1_0d EXIST::FUNCTION:RSA
|
||||
SSL_add_ssl_module 398 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_get0_id_context 399 1_1_0d EXIST::FUNCTION:
|
||||
BIO_f_ssl 400 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_finished 401 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get0_verified_chain 402 1_1_0d EXIST::FUNCTION:
|
||||
DTLSv1_2_client_method 403 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,DTLS1_2_METHOD
|
||||
SSL_CTX_get_security_callback 404 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_certificate 405 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_get0_peer 406 1_1_0d EXIST::FUNCTION:
|
||||
SSL_alert_desc_string 407 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_default_passwd_cb 408 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_new 409 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_generate_session_id 410 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_servername_type 411 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_set1_id 51 1_1_0d EXIST::FUNCTION:
|
||||
SSL_extension_supported 52 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CIPHER_description 53 1_1_0d EXIST::FUNCTION:
|
||||
SSL_dup 54 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_hostflags 55 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_sess_set_get_cb 56 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set0_security_ex_data 57 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_peer_certificate 58 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_cookie_verify_cb 59 1_1_0d EXIST::FUNCTION:
|
||||
SSL_add1_host 60 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_client_CA_list 61 1_1_0d EXIST::FUNCTION:
|
||||
TLS_method 62 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_get0_ticket 63 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_server_random 64 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get_ssl_method 65 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_ssl_method 66 1_1_0d EXIST::FUNCTION:
|
||||
TLSv1_method 67 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,TLS1_METHOD
|
||||
SSL_get0_param 68 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_srp_client_pwd_callback 69 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_CTX_use_certificate_file 70 1_1_0d EXIST::FUNCTION:
|
||||
TLSv1_2_server_method 71 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,TLS1_2_METHOD
|
||||
BIO_new_buffer_ssl_connect 72 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get0_peername 73 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_up_ref 74 1_1_0d EXIST::FUNCTION:
|
||||
SSL_alert_desc_string_long 75 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_sess_set_remove_cb 76 1_1_0d EXIST::FUNCTION:
|
||||
TLSv1_2_client_method 77 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,TLS1_2_METHOD
|
||||
SSL_load_client_CA_file 78 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get_verify_callback 79 1_1_0d EXIST::FUNCTION:
|
||||
SRP_Calc_A_param 80 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_CTX_set_quiet_shutdown 81 1_1_0d EXIST::FUNCTION:
|
||||
SSL_trace 82 1_1_0d EXIST::FUNCTION:SSL_TRACE
|
||||
SSL_get_certificate 83 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_sess_set_new_cb 84 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_get_master_key 85 1_1_0d EXIST::FUNCTION:
|
||||
SSL_use_RSAPrivateKey 86 1_1_0d EXIST::FUNCTION:RSA
|
||||
GMTLS_server_method 87 1_1_0d EXIST::FUNCTION:GMTLS
|
||||
SSL_CTX_set_ex_data 88 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_wfd 89 1_1_0d EXIST::FUNCTION:SOCK
|
||||
SSL_check_chain 90 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_tmp_dh_callback 91 1_1_0d EXIST::FUNCTION:DH
|
||||
SSL_set_options 92 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_security_callback 93 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_SRP_CTX_init 94 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_waiting_for_async 95 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CIPHER_is_aead 96 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_options 97 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_srp_verify_param_callback 98 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_CTX_set_default_verify_dir 99 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_timeout 100 1_1_0d EXIST::FUNCTION:
|
||||
SSL_rstate_string_long 101 1_1_0d EXIST::FUNCTION:
|
||||
BIO_f_ssl 102 1_1_0d EXIST::FUNCTION:
|
||||
OPENSSL_init_ssl 103 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_new 104 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CIPHER_get_kx_nid 105 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CIPHER_get_auth_nid 106 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_session_ticket_ext 107 1_1_0d EXIST::FUNCTION:
|
||||
SSL_callback_ctrl 108 1_1_0d EXIST::FUNCTION:
|
||||
SSL_state_string_long 109 1_1_0d EXIST::FUNCTION:
|
||||
SSL_add_dir_cert_subjects_to_stack 110 1_1_0d EXIST::FUNCTION:
|
||||
DTLS_method 111 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get0_dane_tlsa 112 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_shutdown 113 1_1_0d EXIST::FUNCTION:
|
||||
SSL_pending 114 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_ct_is_enabled 115 1_1_0d EXIST::FUNCTION:CT
|
||||
SSL_client_version 116 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_add_session 117 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get_client_CA_list 118 1_1_0d EXIST::FUNCTION:
|
||||
TLS_server_method 119 1_1_0d EXIST::FUNCTION:
|
||||
PEM_read_SSL_SESSION 120 1_1_0d EXIST::FUNCTION:STDIO
|
||||
SSL_SESSION_print_keylog 121 1_1_0d EXIST::FUNCTION:
|
||||
SSL_session_reused 122 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_SSL_CTX 123 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_add_client_CA 124 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_client_cert_engine 125 1_1_0d EXIST::FUNCTION:ENGINE
|
||||
SSL_use_certificate_ASN1 126 1_1_0d EXIST::FUNCTION:
|
||||
SSLv3_server_method 127 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,SSL3_METHOD
|
||||
SSL_config 128 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set0_security_ex_data 129 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_fd 130 1_1_0d EXIST::FUNCTION:SOCK
|
||||
SSL_use_PrivateKey_file 131 1_1_0d EXIST::FUNCTION:
|
||||
SSL_use_PrivateKey 132 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get0_ctlog_store 133 1_1_0d EXIST::FUNCTION:CT
|
||||
SSL_CONF_CTX_new 134 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_ex_data_X509_STORE_CTX_idx 135 1_1_0d EXIST::FUNCTION:
|
||||
SSL_new 136 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get_quiet_shutdown 137 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get0_next_proto_negotiated 138 1_1_0d EXIST::FUNCTION:NEXTPROTONEG
|
||||
SSL_CTX_use_PrivateKey 139 1_1_0d EXIST::FUNCTION:
|
||||
GMTLS_method 140 1_1_0d EXIST::FUNCTION:GMTLS
|
||||
SSL_get_wfd 141 1_1_0d EXIST::FUNCTION:
|
||||
TLSv1_client_method 142 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,TLS1_METHOD
|
||||
SSL_get_sigalgs 143 1_1_0d EXIST::FUNCTION:
|
||||
PEM_write_bio_SSL_SESSION 144 1_1_0d EXIST::FUNCTION:
|
||||
SSL_add_client_CA 145 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_ctrl 146 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get_verify_mode 147 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_psk_identity_hint 148 1_1_0d EXIST::FUNCTION:PSK
|
||||
SSL_CTX_set_cert_store 149 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_default_timeout 150 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_peer_cert_chain 151 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_generate_session_id 152 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_state 153 1_1_0d EXIST::FUNCTION:
|
||||
TLSv1_2_method 154 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,TLS1_2_METHOD
|
||||
SSL_CTX_get0_security_ex_data 155 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_default_ctlog_list_file 156 1_1_0d EXIST::FUNCTION:CT
|
||||
BIO_new_ssl 157 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_print 158 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_connect_state 159 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_all_async_fds 160 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_get_compress_id 161 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_use_serverinfo 162 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_default_passwd_cb 163 1_1_0d EXIST::FUNCTION:
|
||||
SSL_use_RSAPrivateKey_file 164 1_1_0d EXIST::FUNCTION:RSA
|
||||
SSL_CTX_set_security_level 165 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_dane_mtype_set 166 1_1_0d EXIST::FUNCTION:
|
||||
SSL_COMP_set0_compression_methods 167 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_client_cert_cb 168 1_1_0d EXIST::FUNCTION:
|
||||
SSL_renegotiate_pending 169 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_verify_callback 170 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_security_callback 171 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_default_passwd_cb_userdata 172 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_shared_ciphers 173 1_1_0d EXIST::FUNCTION:
|
||||
d2i_SSL_SESSION 174 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_use_serverinfo_file 175 1_1_0d EXIST::FUNCTION:
|
||||
PEM_write_SSL_SESSION 176 1_1_0d EXIST::FUNCTION:STDIO
|
||||
SSL_get_verify_mode 177 1_1_0d EXIST::FUNCTION:
|
||||
DTLSv1_method 178 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,DTLS1_METHOD
|
||||
SSL_want 179 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_srp_username_callback 180 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_in_before 181 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_default_passwd_cb 182 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_changed_async_fds 183 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get1_session 184 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_fd 185 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get_info_callback 186 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_set_time 187 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_use_PrivateKey_file 188 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set0_ctlog_store 189 1_1_0d EXIST::FUNCTION:CT
|
||||
SSL_set_srp_server_param_pw 190 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_CTX_clear_options 191 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_flush_sessions 192 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_use_psk_identity_hint 193 1_1_0d EXIST::FUNCTION:PSK
|
||||
SSL_CTX_get0_certificate 194 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_servername_type 195 1_1_0d EXIST::FUNCTION:
|
||||
SSL_dane_clear_flags 196 1_1_0d EXIST::FUNCTION:
|
||||
SSL_dane_tlsa_add 197 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_psk_server_callback 198 1_1_0d EXIST::FUNCTION:PSK
|
||||
SSL_alert_type_string 199 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_msg_callback 200 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_ciphers 201 1_1_0d EXIST::FUNCTION:
|
||||
SSL_alert_desc_string 202 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_read_ahead 203 1_1_0d EXIST::FUNCTION:
|
||||
SSL_use_psk_identity_hint 204 1_1_0d EXIST::FUNCTION:PSK
|
||||
SSL_CTX_config 205 1_1_0d EXIST::FUNCTION:
|
||||
SSL_COMP_get_name 206 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_info_callback 207 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_ssl_method 208 1_1_0d EXIST::FUNCTION:
|
||||
TLSv1_1_server_method 209 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,TLS1_1_METHOD
|
||||
SSL_CTX_use_RSAPrivateKey 210 1_1_0d EXIST::FUNCTION:RSA
|
||||
SSL_set_accept_state 211 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_version 212 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_cert_cb 213 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_next_protos_advertised_cb 214 1_1_0d EXIST::FUNCTION:NEXTPROTONEG
|
||||
SSL_set_session_ticket_ext_cb 215 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_shutdown 216 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_enable_ct 217 1_1_0d EXIST::FUNCTION:CT
|
||||
SSL_set_verify_depth 218 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CIPHER_get_digest_nid 219 1_1_0d EXIST::FUNCTION:
|
||||
SSL_is_init_finished 220 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get_options 221 1_1_0d EXIST::FUNCTION:
|
||||
DTLSv1_2_client_method 222 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,DTLS1_2_METHOD
|
||||
TLSv1_1_method 223 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,TLS1_1_METHOD
|
||||
SSL_get_peer_finished 224 1_1_0d EXIST::FUNCTION:
|
||||
SSL_dup_CA_list 225 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_verify_depth 226 1_1_0d EXIST::FUNCTION:
|
||||
SSL_COMP_add_compression_method 227 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CIPHER_get_version 228 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_set1_id_context 229 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_dane_clear_flags 230 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_next_proto_select_cb 231 1_1_0d EXIST::FUNCTION:NEXTPROTONEG
|
||||
SSL_set_default_read_buffer_len 232 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_get_timeout 233 1_1_0d EXIST::FUNCTION:
|
||||
SSL_dane_set_flags 234 1_1_0d EXIST::FUNCTION:
|
||||
SSL_test_functions 235 1_1_0d EXIST::FUNCTION:UNIT_TEST
|
||||
SSL_srp_server_param_with_username 236 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_get_quiet_shutdown 237 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get_ex_data 238 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CIPHER_get_name 239 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get0_dane_authority 240 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_srp_password 241 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_CONF_CTX_finish 242 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_use_certificate_chain_file 243 1_1_0d EXIST::FUNCTION:
|
||||
i2d_SSL_SESSION 244 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_purpose 245 1_1_0d EXIST::FUNCTION:
|
||||
DTLSv1_2_server_method 246 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,DTLS1_2_METHOD
|
||||
SSL_CONF_CTX_set1_prefix 247 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CIPHER_standard_name 248 1_1_0d EXIST::FUNCTION:SSL_TRACE
|
||||
SSL_get_current_expansion 249 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_print_fp 250 1_1_0d EXIST::FUNCTION:STDIO
|
||||
SSL_get_verify_result 251 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CONF_CTX_set_flags 252 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_security_level 253 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_purpose 254 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get0_alpn_selected 255 1_1_0d EXIST::FUNCTION:
|
||||
SSL_COMP_get_id 256 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_privatekey 257 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_cipher_list 258 1_1_0d EXIST::FUNCTION:
|
||||
SSL_add_file_cert_subjects_to_stack 259 1_1_0d EXIST::FUNCTION:
|
||||
SSL_rstate_string 260 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_quiet_shutdown 261 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_ct_validation_callback 262 1_1_0d EXIST::FUNCTION:CT
|
||||
SSL_get0_security_ex_data 263 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CIPHER_get_id 264 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_get_ex_data 265 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get0_peer_scts 266 1_1_0d EXIST::FUNCTION:CT
|
||||
SSL_set_bio 267 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_callback_ctrl 268 1_1_0d EXIST::FUNCTION:
|
||||
SSL_COMP_get0_name 269 1_1_0d EXIST::FUNCTION:
|
||||
SSL_clear 270 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_psk_server_callback 271 1_1_0d EXIST::FUNCTION:PSK
|
||||
BIO_new_ssl_connect 272 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_options 273 1_1_0d EXIST::FUNCTION:
|
||||
ERR_load_SSL_strings 274 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CONF_CTX_clear_flags 275 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get0_verified_chain 276 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_psk_client_callback 277 1_1_0d EXIST::FUNCTION:PSK
|
||||
SSL_CTX_sessions 278 1_1_0d EXIST::FUNCTION:
|
||||
TLSv1_1_client_method 279 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,TLS1_1_METHOD
|
||||
SSL_state_string 280 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_verify_depth 281 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get_client_cert_cb 282 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_srp_N 283 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_use_RSAPrivateKey_ASN1 284 1_1_0d EXIST::FUNCTION:RSA
|
||||
SSL_set_trust 285 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CONF_cmd_value_type 286 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_trust 287 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_msg_callback 288 1_1_0d EXIST::FUNCTION:
|
||||
SSL_export_keying_material 289 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_session 290 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_default_passwd_cb_userdata 291 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_tlsext_use_srtp 292 1_1_0d EXIST::FUNCTION:SRTP
|
||||
SSL_CTX_get_cert_store 293 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_ex_data 294 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_SRP_CTX_free 295 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_CTX_get_default_passwd_cb_userdata 296 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_sess_get_remove_cb 297 1_1_0d EXIST::FUNCTION:
|
||||
SSLv3_method 298 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,SSL3_METHOD
|
||||
SSL_set_session 299 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_get0_id_context 300 1_1_0d EXIST::FUNCTION:
|
||||
SSL_shutdown 301 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_get_time 302 1_1_0d EXIST::FUNCTION:
|
||||
TLSv1_server_method 303 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,TLS1_METHOD
|
||||
SSL_set_debug 304 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0
|
||||
SSL_write 305 1_1_0d EXIST::FUNCTION:
|
||||
SSL_is_gmtls 306 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_tlsext_use_srtp 307 1_1_0d EXIST::FUNCTION:SRTP
|
||||
SSL_set_ct_validation_callback 308 1_1_0d EXIST::FUNCTION:CT
|
||||
SSL_get_error 309 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_selected_srtp_profile 310 1_1_0d EXIST::FUNCTION:SRTP
|
||||
SSL_CTX_free 311 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_use_certificate_ASN1 312 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_default_verify_file 313 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get_verify_depth 314 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set1_host 315 1_1_0d EXIST::FUNCTION:
|
||||
SSL_enable_ct 316 1_1_0d EXIST::FUNCTION:CT
|
||||
SSL_ct_is_enabled 317 1_1_0d EXIST::FUNCTION:CT
|
||||
SSL_CTX_use_PrivateKey_ASN1 318 1_1_0d EXIST::FUNCTION:
|
||||
SSL_version 319 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_client_ciphers 320 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get_timeout 321 1_1_0d EXIST::FUNCTION:
|
||||
SSL_add_ssl_module 322 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_tmp_dh_callback 323 1_1_0d EXIST::FUNCTION:DH
|
||||
SSL_CTX_set_alpn_protos 324 1_1_0d EXIST::FUNCTION:
|
||||
SSL_is_server 325 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get0_privatekey 326 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_up_ref 327 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_read_ahead 328 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_check_private_key 329 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_srp_strength 330 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_SESSION_get0_cipher 331 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_client_random 332 1_1_0d EXIST::FUNCTION:
|
||||
SSL_copy_session_id 333 1_1_0d EXIST::FUNCTION:
|
||||
PEM_read_bio_SSL_SESSION 334 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_alpn_protos 335 1_1_0d EXIST::FUNCTION:
|
||||
SSL_COMP_get_compression_methods 336 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_security_level 337 1_1_0d EXIST::FUNCTION:
|
||||
DTLSv1_listen 338 1_1_0d EXIST::FUNCTION:SOCK
|
||||
SSL_SESSION_get_protocol_version 339 1_1_0d EXIST::FUNCTION:
|
||||
BIO_ssl_copy_session_id 340 1_1_0d EXIST::FUNCTION:
|
||||
SSL_peek 341 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CIPHER_get_bits 342 1_1_0d EXIST::FUNCTION:
|
||||
SSL_use_certificate 343 1_1_0d EXIST::FUNCTION:
|
||||
DTLSv1_2_method 344 1_1_0d EXIST::FUNCTION:DEPRECATEDIN_1_1_0,DTLS1_2_METHOD
|
||||
SSL_use_certificate_file 345 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_rbio 346 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SRP_CTX_free 347 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_get_wbio 348 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_default_read_buffer_len 349 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_alpn_select_cb 350 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_set_timeout 351 1_1_0d EXIST::FUNCTION:
|
||||
SSL_use_certificate_chain_file 352 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CONF_CTX_set_ssl 353 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_ex_data 354 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_current_cipher 355 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_session_secret_cb 356 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_verify 357 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_sess_get_new_cb 358 1_1_0d EXIST::FUNCTION:
|
||||
SSL_up_ref 359 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_default_passwd_cb_userdata 360 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CONF_CTX_set_ssl_ctx 361 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_srp_g 362 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_read 363 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_get_id 364 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_dane_set_flags 365 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_generate_session_id 366 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_default_passwd_cb 367 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get_security_level 368 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_srp_cb_arg 369 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_SRP_CTX_init 370 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_set_psk_client_callback 371 1_1_0d EXIST::FUNCTION:PSK
|
||||
SSL_CTX_sess_get_get_cb 372 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get_security_callback 373 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_has_client_custom_ext 374 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_servername 375 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_srp_server_param 376 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_get1_supported_ciphers 377 1_1_0d EXIST::FUNCTION:
|
||||
SSL_accept 378 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_dane_enable 379 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_ssl_version 380 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set0_wbio 381 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set0_rbio 382 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_srp_userinfo 383 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_certs_clear 384 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_srp_username 385 1_1_0d EXIST::FUNCTION:SRP
|
||||
SSL_get_client_CA_list 386 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_info_callback 387 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_session_id_context 388 1_1_0d EXIST::FUNCTION:
|
||||
SSL_get_info_callback 389 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_get0_hostname 390 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_get0_peer 391 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_add_client_custom_ext 392 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_cert_cb 393 1_1_0d EXIST::FUNCTION:
|
||||
DTLS_client_method 394 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_cert_verify_callback 395 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CONF_CTX_free 396 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_verify 397 1_1_0d EXIST::FUNCTION:
|
||||
SSL_in_init 398 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CIPHER_find 399 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CIPHER_get_cipher_nid 400 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get0_param 401 1_1_0d EXIST::FUNCTION:
|
||||
SSL_check_private_key 402 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_get_default_passwd_cb 403 1_1_0d EXIST::FUNCTION:
|
||||
SSL_has_matching_session_id 404 1_1_0d EXIST::FUNCTION:
|
||||
SSL_set_verify_result 405 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_set_not_resumable_session_callback 406 1_1_0d EXIST::FUNCTION:
|
||||
SSL_alert_type_string_long 407 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_get_ticket_lifetime_hint 408 1_1_0d EXIST::FUNCTION:
|
||||
SSL_use_PrivateKey_ASN1 409 1_1_0d EXIST::FUNCTION:
|
||||
SSL_SESSION_free 410 1_1_0d EXIST::FUNCTION:
|
||||
SSL_CTX_use_RSAPrivateKey_file 411 1_1_0d EXIST::FUNCTION:RSA
|
||||
|
||||
Reference in New Issue
Block a user