Searched refs:sm2 (Results 1 - 5 of 5) sorted by relevance

/linux-master/crypto/
H A Dsm2.c5 * described at https://tools.ietf.org/html/draft-shen-sm2-ecdsa-02
17 #include <crypto/sm2.h>
467 static struct akcipher_alg sm2 = { variable in typeref:struct:akcipher_alg
474 .cra_name = "sm2",
475 .cra_driver_name = "sm2-generic",
484 return crypto_register_akcipher(&sm2);
489 crypto_unregister_akcipher(&sm2);
498 MODULE_ALIAS_CRYPTO("sm2-generic");
H A DMakefile51 $(obj)/sm2.o: $(obj)/sm2signature.asn1.h
54 sm2_generic-y += sm2.o
/linux-master/net/sched/
H A Dsch_hfsc.c89 u64 sm2; /* scaled slope of the 2nd segment */ member in struct:internal_sc
101 u64 sm2; /* scaled slope of the 2nd segment */ member in struct:runtime_sc
479 isc->sm2 = m2sm(sc->m2);
496 rtsc->sm2 = isc->sm2;
538 + seg_x2y(x - rtsc->x - rtsc->dx, rtsc->sm2);
552 if (isc->sm1 <= isc->sm2) {
589 * seg_x2y(dx, sm1) == seg_x2y(dx, sm2) + (y1 - y)
592 dsm = isc->sm1 - isc->sm2;
622 if (cl->cl_rsc.sm1 <= cl->cl_rsc.sm2) {
[all...]
/linux-master/crypto/asymmetric_keys/
H A Dx509_public_key.c10 #include <crypto/sm2.h>
67 if (strcmp(cert->pub->pkey_algo, "sm2") == 0) {
H A Dx509_cert_parser.c275 goto sm2;
288 sm2:
289 ctx->cert->sig->pkey_algo = "sm2";
324 strcmp(ctx->cert->sig->pkey_algo, "sm2") == 0 ||
530 ctx->cert->pub->pkey_algo = "sm2";
538 ctx->cert->pub->pkey_algo = "sm2";

Completed in 215 milliseconds