Home
last modified time | relevance | path

Searched +full:no +full:- +full:sm2 (Results 1 – 25 of 83) sorted by relevance

1234

/netbsd-src/crypto/external/bsd/openssl/dist/providers/
H A Dencoders.inc2 * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
14 #define ENCODER_STRUCTURE_type_specific_keypair "type-specific"
15 #define ENCODER_STRUCTURE_type_specific_params "type-specific"
16 #define ENCODER_STRUCTURE_type_specific "type-specific"
17 #define ENCODER_STRUCTURE_type_specific_no_pub "type-specific"
50 ENCODER_TEXT("RSA-PSS", rsapss, yes),
65 ENCODER_TEXT("SM2", sm2, no),
78 * OSSL_ENCODER_CTX_new_for_pkey(pkey, selection, "DER", "type-specific",
86 * OSSL_ENCODER_CTX_new_for_pkey(pkey, selection, "PEM", "type-specific",
114 ENCODER_w_structure("SM2", sm2, no, der, type_specific_no_pub),
[all …]
H A Ddecoders.inc2 * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
14 #define DECODER_STRUCTURE_type_specific_keypair "type-specific"
15 #define DECODER_STRUCTURE_type_specific_params "type-specific"
16 #define DECODER_STRUCTURE_type_specific "type-specific"
17 #define DECODER_STRUCTURE_type_specific_no_pub "type-specific"
70 DECODER_w_structure("SM2", der, PrivateKeyInfo, sm2, no),
71 DECODER_w_structure("SM2", der, SubjectPublicKeyInfo, sm2, no),
78 DECODER_w_structure("RSA-PSS", der, PrivateKeyInfo, rsapss, yes),
79 DECODER_w_structure("RSA-PSS", der, SubjectPublicKeyInfo, rsapss, yes),
/netbsd-src/crypto/external/bsd/openssl/dist/doc/man7/
H A DEVP_PKEY-SM2.pod5 EVP_PKEY-SM2, EVP_KEYMGMT-SM2, SM2
6 - EVP_PKEY keytype support for the Chinese SM2 signature and encryption algorithms
10 The B<SM2> algorithm was first defined by the Chinese national standard GM/T
11 0003-2012 and was later standardized by ISO as ISO/IEC 14888. B<SM2> is actually
15 When doing the B<SM2> signature algorithm, it requires a distinguishing identifier
18 =head2 Common SM2 parameters
20 SM2 uses the parameters defined in L<EVP_PKEY-EC(7)/Common EC parameters>.
27 This parameter is ignored for B<SM2>.
38 B<SM2> signatures can be generated by using the 'DigestSign' series of APIs, for
41 Note that the SM2 algorithm requires the presence of the public key for signatures,
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/test/recipes/
H A D15-test_gensm2.t2 # Copyright 2023-2024 The OpenSSL Project Authors. All Rights Reserved.
17 # These are special key generation tests for SM2 keys specifically,
19 # This is an auxilliary test to 15-test_genec.t
23 plan skip_all => "This test is unsupported in a no-sm2 build"
24 if disabled("sm2");
28 # According to the example in GM/T 0015-2012, appendix D.2,
29 # generating an EC key with the named SM2 curve or generating
30 # an SM2 key should end up with the same encoding (apart from
39 .*?\Qprim: OBJECT :id-ecPublicKey\E\R
40 .*?\Qprim: OBJECT :sm2\E\R
[all …]
H A D25-test_req.t2 # Copyright 2015-2024 The OpenSSL Project Authors. All Rights Reserved.
27 @req_new = ("-newkey", "dsa:".srctop_file("apps", "dsa512.pem"));
29 @req_new = ("-new");
38 # Check for duplicate -addext parameters, and one "working" case.
39 my @addext_args = ( "openssl", "req", "-new", "-out", "testreq.pem",
40 "-key", srctop_file("test", "certs", "ee-key.pem"),
41 "-config", srctop_file("test", "test.cnf"), @req_new );
47 ok( run(app([@addext_args, "-addext", $val])));
48 ok( run(app([@addext_args, "-addext", $val1])));
50 ok(!run(app([@addext_args, "-addext", $val1])));
[all …]
H A D91-test_pkey_check.t2 # Copyright 2017-2024 The OpenSSL Project Authors. All Rights Reserved.
20 my @checkopt = ('-check');
22 @checkopt = ('-pubcheck', '-pubin') if $pubcheck;
24 return run(app(['openssl', 'pkey', @checkopt, '-text',
25 '-in', $f]));
40 if ( -s $f ) {
55 # For EC keys the range for the secret scalar `k` is `1 <= k <= n-1`
61 # For SM2 keys the range for the secret scalar `k` is `1 <= k < n-1`
62 "sm2_bad_neg1.pem", # `k` set to `n-1` (invalid, because SM2 range)
65 )) unless disabled("sm2");
[all …]
H A D25-test_x509.t2 # Copyright 2015-2024 The OpenSSL Project Authors. All Rights Reserved.
29 my $out_msb = "out-cyrillic.msb";
30 my $out_utf8 = "out-cyrillic.utf8";
36 ok(run(app(["openssl", "x509", "-text", "-in", $pem, "-out", $out_msb,
37 "-nameopt", "esc_msb"])));
40 ok(run(app(["openssl", "x509", "-text", "-in", $pem, "-out", $out_utf8,
41 "-nameopt", "utf8"])));
47 skip "Platform doesn't support command line UTF-8", 1 if $^O =~ /^(VMS|msys)$/;
52 ok(run(app(["openssl", "x509", "-text", "-in", $p12, "-out", $out_pem,
53 "-passin", "pass:$p12pass"])));
[all …]
H A D25-test_verify.t2 # Copyright 2015-2023 The OpenSSL Project Authors. All Rights Reserved.
23 my @args = qw(openssl verify -auth_level 1);
24 push(@args, "-purpose", $purpose) if $purpose ne "";
26 for (@$trusted) { push(@args, "-trusted", srctop_file(@path, "$_.pem")) }
27 for (@$untrusted) { push(@args, "-untrusted", srctop_file(@path, "$_.pem")) }
35 ok(verify("ee-cert", "sslserver", ["root-cert"], ["ca-cert"]),
39 ok(!verify("ee-cert", "sslserver", [qw(root-nonca)], [qw(ca-cert)]),
40 "fail trusted non-ca root");
41 ok(!verify("ee-cert", "sslserver", [qw(nroot+serverAuth)], [qw(ca-cert)]),
42 "fail server trust non-ca root");
[all …]
H A D15-test_genec.t2 # Copyright 2017-2020 The OpenSSL Project Authors. All Rights Reserved.
40 plan skip_all => "This test is unsupported in a no-ec build"
64 wap-wsg-idm-ecid-wtls6
65 wap-wsg-idm-ecid-wtls7
66 wap-wsg-idm-ecid-wtls8
67 wap-wsg-idm-ecid-wtls9
68 wap-wsg-idm-ecid-wtls12
120 wap-wsg-idm-ecid-wtls1
121 wap-wsg-idm-ecid-wtls3
122 wap-wsg-idm-ecid-wtls4
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/lib/libcrypto/man/
H A DSM2.71 .\" $NetBSD: SM2.7,v 1.1.1.1 2023/04/18 14:19:14 christos Exp $
20 .\" Set up some character translations and predefined strings. \*(-- will
26 .tr \(*W-
29 . ds -- \(*W-
31 . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
32 . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
39 . ds -- \|\(em\|
75 .\" Fear. Run. Save yourself. No user-serviceable parts.
85 . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
101 . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
[all …]
H A DEVP_PKEY_set1_RSA.320 .\" Set up some character translations and predefined strings. \*(-- will
26 .tr \(*W-
29 . ds -- \(*W-
31 . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
32 . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
39 . ds -- \|\(em\|
75 .\" Fear. Run. Save yourself. No user-serviceable parts.
85 . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
101 . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
102 . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
[all …]
/netbsd-src/crypto/external/bsd/openssl/lib/libcrypto/man/
H A DSM2.71 .\" $NetBSD: SM2.7,v 1.3 2020/12/10 00:33:12 christos Exp $
20 .\" Set up some character translations and predefined strings. \*(-- will
26 .tr \(*W-
29 . ds -- \(*W-
31 . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
32 . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
39 . ds -- \|\(em\|
75 .\" Fear. Run. Save yourself. No user-serviceable parts.
85 . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
101 . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
[all …]
H A Dopenssl-pkeyutl.11 .\" $NetBSD: openssl-pkeyutl.1,v 1.1 2024/07/12 21:01:08 christos Exp $
3 .\" -*- mode: troff; coding: utf-8 -*-
59 .IX Title "OPENSSL-PKEYUTL 1"
60 .TH OPENSSL-PKEYUTL 1 2024-07-11 3.0.14 OpenSSL
66 openssl\-pkeyutl \- public key algorithm command
70 [\fB\-help\fR]
71 [\fB\-in\fR \fIfile\fR]
72 [\fB\-rawin\fR]
73 [\fB\-digest\fR \fIalgorithm\fR]
74 [\fB\-out\fR \fIfile\fR]
[all …]
H A Dopenssl-req.11 .\" $NetBSD: openssl-req.1,v 1.1 2024/07/12 21:01:08 christos Exp $
3 .\" -*- mode: troff; coding: utf-8 -*-
59 .IX Title "OPENSSL-REQ 1"
60 .TH OPENSSL-REQ 1 2024-07-11 3.0.14 OpenSSL
66 openssl\-req \- PKCS#10 certificate request and certificate generating command
70 [\fB\-help\fR]
71 [\fB\-inform\fR \fBDER\fR|\fBPEM\fR]
72 [\fB\-outform\fR \fBDER\fR|\fBPEM\fR]
73 [\fB\-in\fR \fIfilename\fR]
74 [\fB\-passin\fR \fIarg\fR]
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/doc/man7/
H A DSM2.pod5 SM2 - Chinese SM2 signature and encryption algorithm support
9 The B<SM2> algorithm was first defined by the Chinese national standard GM/T
10 0003-2012 and was later standardized by ISO as ISO/IEC 14888. B<SM2> is actually
14 When doing the B<SM2> signature algorithm, it requires a distinguishing identifier
19 B<SM2> signatures can be generated by using the 'DigestSign' series of APIs, for
23 There are several special steps that need to be done before computing an B<SM2>
41 And normally there is no need to pass a B<pctx> parameter to EVP_DigestSignInit()
47 a message with the SM2 signature algorithm and the SM3 hash algorithm:
72 Copyright 2018-2020 The OpenSSL Project Authors. All Rights Reserved.
/netbsd-src/crypto/external/bsd/openssl/dist/doc/man1/
H A Dopenssl-pkeyutl.pod.in2 {- OpenSSL::safe::output_do_not_edit_headers(); -}
6 openssl-pkeyutl - public key algorithm command
11 [B<-help>]
12 [B<-in> I<file>]
13 [B<-rawin>]
14 [B<-digest> I<algorithm>]
15 [B<-out> I<file>]
16 [B<-sigfile> I<file>]
17 [B<-inkey> I<filename>|I<uri>]
18 [B<-keyform> B<DER>|B<PEM>|B<P12>|B<ENGINE>]
[all …]
H A Dopenssl-req.pod.in2 {- OpenSSL::safe::output_do_not_edit_headers(); -}
6 openssl-req - PKCS#10 certificate request and certificate generating command
11 [B<-help>]
12 [B<-inform> B<DER>|B<PEM>]
13 [B<-outform> B<DER>|B<PEM>]
14 [B<-in> I<filename>]
15 [B<-passin> I<arg>]
16 [B<-out> I<filename>]
17 [B<-passout> I<arg>]
18 [B<-text>]
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/
H A Dencode_key2any.c2 * Copyright 2020-2024 The OpenSSL Project Authors. All Rights Reserved.
109 OSSL_LIB_CTX *libctx = PROV_LIBCTX_OF(ctx->provctx); in p8info_to_encp8()
111 if (ctx->cipher == NULL) in p8info_to_encp8()
115 &ctx->pwdata)) { in p8info_to_encp8()
119 /* First argument == -1 means "standard" */ in p8info_to_encp8()
120 p8 = PKCS8_encrypt_ex(-1, ctx->cipher, kstr, klen, NULL, 0, 0, p8info, libctx, NULL); in p8info_to_encp8()
197 if (!ctx->cipher_intent) in key_to_epki_der_priv_bio()
200 if (p2s != NULL && !p2s(key, key_nid, ctx->save_parameters, in key_to_epki_der_priv_bio()
225 if (!ctx->cipher_intent) in key_to_epki_pem_priv_bio()
228 if (p2s != NULL && !p2s(key, key_nid, ctx->save_parameters, in key_to_epki_pem_priv_bio()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/providers/implementations/signature/
H A Dsm2_sig.c2 * Copyright 2020-2022 The OpenSSL Project Authors. All Rights Reserved.
12 * internal use - SM2 implemetation uses ECDSA_size() function.
33 #include "crypto/sm2.h"
88 /* SM2 ID used for calculating the Z value */
95 if (psm2ctx->md == NULL) /* We need an SM3 md to compare with */ in sm2sig_set_mdname()
96 psm2ctx->md = EVP_MD_fetch(psm2ctx->libctx, psm2ctx->mdname, in sm2sig_set_mdname()
97 psm2ctx->propq); in sm2sig_set_mdname()
98 if (psm2ctx->md == NULL) in sm2sig_set_mdname()
104 if (strlen(mdname) >= sizeof(psm2ctx->mdname) in sm2sig_set_mdname()
105 || !EVP_MD_is_a(psm2ctx->md, mdname)) { in sm2sig_set_mdname()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/providers/implementations/keymgmt/
H A Dec_kmgmt.c2 * Copyright 2020-2023 The OpenSSL Project Authors. All Rights Reserved.
32 # include "crypto/sm2.h"
96 return "SM2"; in sm2_query_operation_name()
207 * ------------ in key_to_params()
322 * available, so no extra check is needed other than the previous one in ec_has()
380 * sm2_wanted: import the keys or domparams only on SM2 Curve in common_check_sm2()
381 * !sm2_wanted: import the keys or domparams only not on SM2 Curve in common_check_sm2()
402 * - domain parameters (+optional other params) in common_import()
403 * - public key with associated domain parameters (+optional other params) in common_import()
404 * - private key with associated domain parameters and optional public key in common_import()
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/doc/man3/
H A DEVP_PKEY_set1_RSA.pod12 EVP_PKEY_set1_engine, EVP_PKEY_get0_engine - EVP_PKEY assignment functions
79 alternative non-standard OIDs is now rare so B<EVP_PKEY_RSA2> et al are not
94 to support SM2 keys, which use an identical encoding to ECDSA.
110 Previous versions of this document suggested using EVP_PKEY_type(pkey->type)
112 is no longer possible: the equivalent is EVP_PKEY_base_id(pkey).
139 After loading an ECC key, it is possible to convert it to using SM2
150 Copyright 2002-2019 The OpenSSL Project Authors. All Rights Reserved.
/netbsd-src/sys/altq/
H A Daltq_hfsc.c5 * Copyright (c) 1997-1999 Carnegie Mellon University. All Rights Reserved.
9 * for-profit use), provided that both the copyright notice and this
18 * DISCLAIMED. IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE
34 * H-FSC is described in Proceedings of SIGCOMM'97,
35 * "A Hierarchical Fair Service Curve Algorithm for Link-Sharing,
36 * Real-Time and Priority Service"
39 * Oleg Cherevko <olwi@aq.ml.com.ua> added the upperlimit for link-sharing.
40 * when a class has an upperlimit, the fit-time is computed from the
41 * upperlimit service curve. the link-sharing scheduler does not schedule
42 * a class whose fit-tim
[all...]
/netbsd-src/crypto/external/bsd/openssl/dist/providers/common/der/
H A Dder_sm2_key.c2 * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
18 /* No parameters (yet?) */ in ossl_DER_w_algorithmIdentifier_SM2()
19 /* It seems SM2 identifier is the same as id_ecPublidKey */ in ossl_DER_w_algorithmIdentifier_SM2()
20 && ossl_DER_w_precompiled(pkt, -1, ossl_der_oid_id_ecPublicKey, in ossl_DER_w_algorithmIdentifier_SM2()
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/recipes/
H A D15-test_genec.t2 # Copyright 2017-2020 The OpenSSL Project Authors. All Rights Reserved.
19 plan skip_all => "This test is unsupported in a no-ec build"
43 wap-wsg-idm-ecid-wtls6
44 wap-wsg-idm-ecid-wtls7
45 wap-wsg-idm-ecid-wtls8
46 wap-wsg-idm-ecid-wtls9
47 wap-wsg-idm-ecid-wtls12
99 wap-wsg-idm-ecid-wtls1
100 wap-wsg-idm-ecid-wtls3
101 wap-wsg-idm-ecid-wtls4
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/
H A Dappveyor.yml2 - Visual Studio 2017
5 - x64
6 - x86
11 - VSVER: 15
14 - shared
15 - plain
16 - minimal
19 - ps: >-
20 Install-Module VSSetup -Scope CurrentUser
21 - ps: >-
[all …]

1234