EVP_PKEY-DSA - Online Linux Manual PageSection : 7ossl
Updated : 2023-03-21
Source : 3.0.8
Note : OpenSSL
NAMEEVP_PKEY−DSA, EVP_KEYMGMT−DSA − EVP_PKEY DSA keytype and algorithm support
DESCRIPTIONFor DSA the FIPS186−4 standard specifies that the values used for FFC parameter generation are also required for parameter validation. This means that optional FFC domain parameter values for seed, pcounter and gindex may need to be stored for validation purposes. For DSA these fields are not stored in the ASN1 data so they need to be stored externally if validation is required.
DSA parametersThe DSA key type supports the FFC parameters (see "FFC parameters" in EVP_PKEY−FFC (7)).
DSA key generation parametersThe DSA key type supports the FFC key generation parameters (see "FFC key generation parameters" in EVP_PKEY−FFC (7) The following restrictions apply to the "pbits" field: For "fips186_4" this must be either 2048 or 3072. For "fips186_2" this must be 1024. For "group" this can be any one of 2048, 3072, 4096, 6144 or 8192.
DSA key validationFor DSA keys, EVP_PKEY_param_check (3) behaves in the following way: The OpenSSL FIPS provider conforms to the rules within the FIPS186−4 standard for FFC parameter validation. For backwards compatibility the OpenSSL default provider uses a much simpler check (see below) for parameter validation, unless the seed parameter is set. For DSA keys, EVP_PKEY_param_check_quick (3) behaves in the following way: A simple check of L and N and partial g is performed. The default provider also supports validation of legacy "fips186_2" keys. For DSA keys, EVP_PKEY_public_check (3), EVP_PKEY_private_check (3) and EVP_PKEY_pairwise_check (3) the OpenSSL default and FIPS providers conform to the rules within SP800−56Ar3 for public, private and pairwise tests respectively.
EXAMPLESAn EVP_PKEY context can be obtained by calling: EVP_PKEY_CTX *pctx = EVP_PKEY_CTX_new_from_name(NULL, "DSA", NULL);
The DSA domain parameters can be generated by calling: unsigned int pbits = 2048;
unsigned int qbits = 256;
int gindex = 1;
OSSL_PARAM params[5];
EVP_PKEY *param_key = NULL;
EVP_PKEY_CTX *pctx = NULL;
pctx = EVP_PKEY_CTX_new_from_name(NULL, "DSA", NULL);
EVP_PKEY_paramgen_init(pctx);
params[0] = OSSL_PARAM_construct_uint("pbits", &pbits);
params[1] = OSSL_PARAM_construct_uint("qbits", &qbits);
params[2] = OSSL_PARAM_construct_int("gindex", &gindex);
params[3] = OSSL_PARAM_construct_utf8_string("digest", "SHA384", 0);
params[4] = OSSL_PARAM_construct_end();
EVP_PKEY_CTX_set_params(pctx, params);
EVP_PKEY_generate(pctx, ¶m_key);
EVP_PKEY_CTX_free(pctx);
EVP_PKEY_print_params(bio_out, param_key, 0, NULL);
A DSA key can be generated using domain parameters by calling: EVP_PKEY *key = NULL;
EVP_PKEY_CTX *gctx = NULL;
gctx = EVP_PKEY_CTX_new_from_pkey(NULL, param_key, NULL);
EVP_PKEY_keygen_init(gctx);
EVP_PKEY_generate(gctx, &key);
EVP_PKEY_CTX_free(gctx);
EVP_PKEY_print_private(bio_out, key, 0, NULL);
CONFORMING TOThe following sections of FIPS186−4: A.1.1.2 Generation of Probable Primes p and q Using an Approved Hash Function. A.2.3 Generation of canonical generator g. A.2.1 Unverifiable Generation of the Generator g.
SEE ALSOEVP_PKEY−FFC (7), EVP_SIGNATURE−DSA (7) EVP_PKEY (3), provider−keymgmt (7), EVP_KEYMGMT (3), OSSL_PROVIDER−default (7), OSSL_PROVIDER−FIPS (7)
COPYRIGHTCopyright 2020−2022 The OpenSSL Project Authors. All Rights Reserved. Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>. 0
Johanes Gumabo
Data Size : 13,549 byte
man-EVP_PKEY-DSA.7osslBuild : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 3 / 190,219
Visitor ID : :
Visitor IP : 18.188.218.134 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (parse_manual_page_|249|EVP_PKEY-DSA.7ossl|24/25|el══─{─══.|.el══─{─══. ds C`
) (htmlprn|149|EVP_PKEY-DSA.7ossl|24/25|.el══─{─══. ds C` |.el══─{─══. ds C`
) (parse_manual_page_|249|EVP_PKEY-DSA.7ossl|27|br══─}─══|'br══─}─══
) (htmlprn|149|EVP_PKEY-DSA.7ossl|27|'br══─}─══ |'br══─}─══
)