Home
last modified time | relevance | path

Searched full:sm4 (Results 1 – 25 of 105) sorted by relevance

12345

/freebsd/secure/lib/libcrypto/man/man7/
H A DEVP_CIPHER-SM4.757 .IX Title "EVP_CIPHER-SM4 7ossl"
58 .TH EVP_CIPHER-SM4 7ossl 2025-09-30 3.5.4 OpenSSL
64 EVP_CIPHER\-SM4 \- The SM4 EVP_CIPHER implementations
67 Support for SM4 symmetric encryption using the \fBEVP_CIPHER\fR API.
71 .IP """SM4\-CBC:SM4""" 4
72 .IX Item """SM4-CBC:SM4"""
74 .IP """SM4\-ECB""" 4
75 .IX Item """SM4-ECB"""
76 .IP """SM4\-CTR""" 4
77 .IX Item """SM4-CTR"""
[all …]
/freebsd/crypto/openssl/test/recipes/30-test_evp_data/
H A Devpciph_sm4.txt9 Title = SM4 test vectors from IETF draft-ribose-cfrg-sm4
11 Cipher = SM4-ECB
16 Cipher = SM4-CBC
22 Cipher = SM4-CBC
28 Cipher = SM4-CBC
34 Cipher = SM4-OFB
40 Cipher = SM4-CFB
46 Cipher = SM4-CTR
52 Title = SM4 GCM test vectors from RFC8998
54 Cipher = SM4-GCM
[all …]
/freebsd/crypto/openssl/doc/man7/
H A DEVP_CIPHER-SM4.pod5 EVP_CIPHER-SM4 - The SM4 EVP_CIPHER implementations
9 Support for SM4 symmetric encryption using the B<EVP_CIPHER> API.
17 =item "SM4-CBC:SM4"
19 =item "SM4-ECB"
21 =item "SM4-CTR"
23 =item "SM4-OFB" or "SM4-OFB128"
25 =item "SM4-CFB" or "SM4-CFB128"
27 =item "SM4-GCM"
29 =item "SM4-CCM"
31 =item "SM4-XTS"
[all …]
/freebsd/crypto/openssl/providers/implementations/ciphers/
H A Dcipher_sm4.c44 IMPLEMENT_generic_cipher(sm4, SM4, ecb, ECB, 0, 128, 128, 0, block)
46 IMPLEMENT_generic_cipher(sm4, SM4, cbc, CBC, 0, 128, 128, 128, block)
48 IMPLEMENT_generic_cipher(sm4, SM4, ctr, CTR, 0, 128, 8, 128, stream)
50 IMPLEMENT_generic_cipher(sm4, SM4, ofb128, OFB, 0, 128, 8, 128, stream)
52 IMPLEMENT_generic_cipher(sm4, SM4, cfb128, CFB, 0, 128, 8, 128, stream)
H A Dcipher_sm4_xts.h10 #include <crypto/sm4.h>
23 /* SM4 key schedules to use */
30 * XTS standard to use with SM4-XTS algorithm
H A Dcipher_sm4_ccm.h10 #include "crypto/sm4.h"
20 } ks; /* SM4 key schedule to use */
H A Dcipher_sm4_gcm.c10 /* Dispatch functions for SM4 GCM mode */
55 IMPLEMENT_aead_cipher(sm4, gcm, GCM, AEAD_FLAGS, 128, 8, 96);
H A Dcipher_sm4_ccm.c10 /* Dispatch functions for SM4 CCM mode */
54 IMPLEMENT_aead_cipher(sm4, ccm, CCM, AEAD_FLAGS, 128, 8, 96);
/freebsd/crypto/openssl/crypto/sm4/
H A Dbuild.info5 $SM4ASM_aarch64=sm4-armv8.S vpsm4-armv8.S vpsm4_ex-armv8.S
8 $SM4ASM_riscv64=sm4-riscv64-zvksed.s
18 SOURCE[../../libcrypto]= $SM4ASM sm4.c
34 GENERATE[sm4-armv8.S]=asm/sm4-armv8.pl
37 INCLUDE[sm4-armv8.o]=..
40 GENERATE[sm4-riscv64-zvksed.s]=asm/sm4-riscv64-zvksed.pl
/freebsd/crypto/openssl/doc/man3/
H A DEVP_sm4_cbc.pod11 - EVP SM4 cipher
26 The SM4 blockcipher (GB/T 32907-2016) for EVP.
39 The SM4 blockcipher with a 128-bit key in CBC, ECB, CFB, OFB and CTR modes
48 L<EVP_CIPHER_fetch(3)> with L<EVP_CIPHER-SM4(7)> instead.
H A DOPENSSL_riscvcap.pod101 ShangMi Suite: SM4 Block Cipher Instructions
171 ShangMi Suite: SM4 Block Cipher
/freebsd/crypto/openssl/test/recipes/
H A D25-test_pkcs8.t132 skip "SM2, SM3 or SM4 is not supported by this OpenSSL build", 3
133 if disabled("sm2") || disabled("sm3") || disabled("sm4");
137 '-out', 'sm2-pbes2-sm4-hmacWithSM3.key',
139 '-v2', 'sm4', '-v2prf', 'hmacWithSM3']))),
140 "Convert a private key to PKCS#5 v2.0 format using SM4 and hmacWithSM3");
143 '-in', 'sm2-pbes2-sm4-hmacWithSM3.key',
146 '-v2', 'sm4', '-v2prf', 'hmacWithSM3']))),
/freebsd/secure/usr.bin/openssl/man/
H A Dopenssl.1442 .IP "\fBsm4\fR, \fBsm4\-cbc\fR, \fBsm4\-cfb\fR, \fBsm4\-ctr\fR, \fBsm4\-ecb\fR, \fBsm4\-ofb\fR" 4
443 .IX Item "sm4, sm4-cbc, sm4-cfb, sm4-ctr, sm4-ecb, sm4-ofb"
444 SM4 Cipher
H A Dopenssl-enc.1450 \& sm4\-cbc SM4 cipher in CBC mode
451 \& sm4 Alias for sm4\-cbc
452 \& sm4\-cfb SM4 cipher in CFB mode
453 \& sm4\-ctr SM4 cipher in CTR mode
454 \& sm4\-ecb SM4 cipher in ECB mode
455 \& sm4\-ofb SM4 cipher in OFB mode
/freebsd/crypto/openssl/test/
H A Dsm4_internal_test.c12 * Internal tests for the SM4 module.
20 # include "crypto/sm4.h"
36 * and described in Internet Draft draft-ribose-cfrg-sm4-02. in test_sm4_ecb()
45 * and described in Internet Draft draft-ribose-cfrg-sm4-02. in test_sm4_ecb()
/freebsd/secure/lib/libcrypto/man/man3/
H A DEVP_sm4_cbc.370 \&\- EVP SM4 cipher
85 The SM4 blockcipher (GB/T 32907\-2016) for EVP.
90 The SM4 blockcipher with a 128\-bit key in CBC, ECB, CFB, OFB and CTR modes
96 \&\fBEVP_CIPHER_fetch\fR\|(3) with \fBEVP_CIPHER\-SM4\fR\|(7) instead.
H A DOPENSSL_riscvcap.3149 ShangMi Suite: SM4 Block Cipher Instructions
207 ShangMi Suite: SM4 Block Cipher
/freebsd/crypto/openssl/doc/man1/
H A Dopenssl-enc.pod.in416 sm4-cbc SM4 cipher in CBC mode
417 sm4 Alias for sm4-cbc
418 sm4-cfb SM4 cipher in CFB mode
419 sm4-ctr SM4 cipher in CTR mode
420 sm4-ecb SM4 cipher in ECB mode
421 sm4-ofb SM4 cipher in OFB mode
H A Dopenssl.pod495 =item B<sm4>, B<sm4-cbc>, B<sm4-cfb>, B<sm4-ctr>, B<sm4-ecb>, B<sm4-ofb>
497 SM4 Cipher
/freebsd/crypto/openssl/providers/implementations/include/prov/
H A Dnames.h168 #define PROV_NAMES_SM4_ECB "SM4-ECB:1.2.156.10197.1.104.1"
169 #define PROV_NAMES_SM4_CBC "SM4-CBC:SM4:1.2.156.10197.1.104.2"
170 #define PROV_NAMES_SM4_CTR "SM4-CTR:1.2.156.10197.1.104.7"
171 #define PROV_NAMES_SM4_OFB "SM4-OFB:SM4-OFB128:1.2.156.10197.1.104.3"
172 #define PROV_NAMES_SM4_CFB "SM4-CFB:SM4-CFB128:1.2.156.10197.1.104.4"
173 #define PROV_NAMES_SM4_GCM "SM4-GCM:1.2.156.10197.1.104.8"
174 #define PROV_NAMES_SM4_CCM "SM4-CCM:1.2.156.10197.1.104.9"
175 #define PROV_NAMES_SM4_XTS "SM4-XTS:1.2.156.10197.1.104.10"
/freebsd/crypto/openssl/apps/
H A Dprogs.pl204 "sm4-cbc", "sm4-ecb", "sm4-cfb", "sm4-ofb", "sm4-ctr"
H A Dprogs.c389 {FT_cipher, "sm4-cbc", enc_main, enc_options, NULL},
392 {FT_cipher, "sm4-ecb", enc_main, enc_options, NULL},
395 {FT_cipher, "sm4-cfb", enc_main, enc_options, NULL},
398 {FT_cipher, "sm4-ofb", enc_main, enc_options, NULL},
401 {FT_cipher, "sm4-ctr", enc_main, enc_options, NULL},
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64FMV.td82 def : FMVExtension<"sm4", "FEAT_SM4", "+sm4,+fp-armv8,+neon", 106>;
98 def : FMVExtension<"sve2-sm4", "FEAT_SVE_SM4", "+sve2,+sve,+sve2-sm4,+fullfp16,+fp-armv8,+neon", 42…
/freebsd/crypto/openssl/crypto/objects/
H A Dobjects.txt1693 # Definitions for SM4 cipher
1695 sm-scheme 104 1 : SM4-ECB : sm4-ecb
1696 sm-scheme 104 2 : SM4-CBC : sm4-cbc
1697 !Cname sm4-ofb128
1698 sm-scheme 104 3 : SM4-OFB : sm4-ofb
1699 !Cname sm4-cfb128
1700 sm-scheme 104 4 : SM4-CFB : sm4-cfb
1701 sm-scheme 104 5 : SM4-CFB1 : sm4-cfb1
1702 sm-scheme 104 6 : SM4-CFB8 : sm4-cfb8
1703 sm-scheme 104 7 : SM4-CTR : sm4-ctr
[all …]
/freebsd/contrib/llvm-project/clang/lib/Headers/
H A Dsm4intrin.h1 /*===--------------- sm4intrin.h - SM4 intrinsics -----------------===
17 /// This intrinsic performs four rounds of SM4 key expansion. The intrinsic
79 /// This intrinsic performs four rounds of SM4 key expansion. The intrinsic
141 /// This intrinisc performs four rounds of SM4 encryption. The intrinisc
205 /// This intrinisc performs four rounds of SM4 encryption. The intrinisc

12345