Home
last modified time | relevance | path

Searched refs:dat (Results 1 – 25 of 47) sorted by relevance

12

/openssl/crypto/sm4/asm/
H A Dsm4-armv8.pl284 &enc_4blks(@dat[0],@dat[1],@dat[2],@dat[3]);
285 &enc_4blks(@dat[4],@dat[5],@dat[6],@dat[7]);
309 &enc_4blks(@dat[0],@dat[1],@dat[2],@dat[3]);
403 ld1 {@dat[0].4s,@dat[1].4s,@dat[2].4s,@dat[3].4s},[$inp]
408 ld1 {@dat[4].4s,@dat[5].4s,@dat[6].4s,@dat[7].4s},[$inp]
419 &enc_4blks(@dat[0],@dat[1],@dat[2],@dat[3]);
420 &enc_4blks(@dat[4],@dat[5],@dat[6],@dat[7]);
451 &enc_4blks(@dat[0],@dat[1],@dat[2],@dat[3]);
539 &enc_4blks(@dat[0],@dat[1],@dat[2],@dat[3]);
540 &enc_4blks(@dat[4],@dat[5],@dat[6],@dat[7]);
[all …]
H A Dvpsm4-armv8.pl127 my $dat = shift;
136 tbl $dat.16b,{@sbox[0].16b,@sbox[1].16b,@sbox[2].16b,@sbox[3].16b},$dat.16b
161 my $dat = shift;
174 add $dat.2d,@vtmp[2].2d,$dat.2d
175 add $dat.2d,@vtmp[1].2d,$dat.2d
406 my $dat = shift;
411 mov $word0,$dat.s[0]
412 mov $word1,$dat.s[1]
413 mov $word2,$dat.s[2]
429 my $dat = shift;
[all …]
H A Dvpsm4_ex-armv8.pl146 my $dat = shift;
173 eor $dat.16b,$dat.16b,$vtmp4.16b
179 my $dat = shift;
214 eor $dat.16b,$dat.16b,$vtmp4.16b
407 my $dat = shift;
412 mov $word0,$dat.s[0]
413 mov $word1,$dat.s[1]
414 mov $word2,$dat.s[2]
415 mov $word3,$dat.s[3]
430 my $dat = shift;
[all …]
/openssl/providers/implementations/ciphers/
H A Dciphercommon_hw.c20 (*dat->stream.cbc) (in, out, len, dat->ks, dat->iv, dat->enc); in ossl_cipher_hw_generic_cbc()
22 CRYPTO_cbc128_encrypt(in, out, len, dat->ks, dat->iv, dat->block); in ossl_cipher_hw_generic_cbc()
24 CRYPTO_cbc128_decrypt(in, out, len, dat->ks, dat->iv, dat->block); in ossl_cipher_hw_generic_cbc()
38 (*dat->stream.ecb) (in, out, len, dat->ks, dat->enc); in ossl_cipher_hw_generic_ecb()
42 (*dat->block) (in + i, out + i, dat->ks); in ossl_cipher_hw_generic_ecb()
53 CRYPTO_ofb128_encrypt(in, out, len, dat->ks, dat->iv, &num, dat->block); in ossl_cipher_hw_generic_ofb128()
64 CRYPTO_cfb128_encrypt(in, out, len, dat->ks, dat->iv, &num, dat->enc, in ossl_cipher_hw_generic_cfb128()
76 CRYPTO_cfb128_8_encrypt(in, out, len, dat->ks, dat->iv, &num, dat->enc, in ossl_cipher_hw_generic_cfb8()
97 dat->iv, &num, dat->enc, dat->block); in ossl_cipher_hw_generic_cfb1()
117 CRYPTO_ctr128_encrypt_ctr32(in, out, len, dat->ks, dat->iv, dat->buf, in ossl_cipher_hw_generic_ctr()
[all …]
H A Dcipher_aes_hw.c23 PROV_AES_CTX *adat = (PROV_AES_CTX *)dat; in cipher_hw_aes_initkey()
26 dat->ks = ks; in cipher_hw_aes_initkey()
28 if ((dat->mode == EVP_CIPH_ECB_MODE || dat->mode == EVP_CIPH_CBC_MODE) in cipher_hw_aes_initkey()
29 && !dat->enc) { in cipher_hw_aes_initkey()
34 dat->stream.cbc = NULL; in cipher_hw_aes_initkey()
56 dat->stream.cbc = (dat->mode == EVP_CIPH_CBC_MODE) in cipher_hw_aes_initkey()
63 dat->stream.cbc = (dat->mode == EVP_CIPH_CBC_MODE) in cipher_hw_aes_initkey()
71 dat->stream.cbc = NULL; in cipher_hw_aes_initkey()
73 if (dat->mode == EVP_CIPH_CBC_MODE) in cipher_hw_aes_initkey()
101 dat->stream.cbc = (dat->mode == EVP_CIPH_CBC_MODE) in cipher_hw_aes_initkey()
[all …]
H A Dcipher_aes_hw_t4.inc19 PROV_AES_CTX *adat = (PROV_AES_CTX *)dat;
25 if ((dat->mode == EVP_CIPH_ECB_MODE || dat->mode == EVP_CIPH_CBC_MODE)
26 && !dat->enc) {
29 dat->block = (block128_f)aes_t4_decrypt;
32 dat->stream.cbc = dat->mode == EVP_CIPH_CBC_MODE ?
36 dat->stream.cbc = dat->mode == EVP_CIPH_CBC_MODE ?
40 dat->stream.cbc = dat->mode == EVP_CIPH_CBC_MODE ?
52 if (dat->mode == EVP_CIPH_CBC_MODE)
57 dat->stream.cbc = NULL;
65 dat->stream.cbc = NULL;
[all …]
H A Dcipher_aes_hw_rv64i.inc30 dat->ks = ks;
32 if ((dat->mode == EVP_CIPH_ECB_MODE || dat->mode == EVP_CIPH_CBC_MODE)
33 && !dat->enc) {
36 dat->stream.cbc = NULL;
40 dat->stream.cbc = NULL;
72 dat->ks = ks;
86 if (dat->mode == EVP_CIPH_CBC_MODE) {
87 if (dat->enc) {
97 if (dat->enc) {
105 if ((dat->mode == EVP_CIPH_ECB_MODE || dat->mode == EVP_CIPH_CBC_MODE) &&
[all …]
H A Dcipher_aes_hw_rv32i.inc35 PROV_AES_CTX *adat = (PROV_AES_CTX *)dat;
38 dat->ks = ks;
40 if ((dat->mode == EVP_CIPH_ECB_MODE || dat->mode == EVP_CIPH_CBC_MODE)
41 && !dat->enc) {
44 dat->stream.cbc = NULL;
48 dat->stream.cbc = NULL;
66 dat->ks = ks;
68 if ((dat->mode == EVP_CIPH_ECB_MODE || dat->mode == EVP_CIPH_CBC_MODE)
69 && !dat->enc) {
72 dat->stream.cbc = NULL;
[all …]
H A Dcipher_aes_hw_s390x.inc36 PROV_AES_CTX *adat = (PROV_AES_CTX *)dat;
68 int n = dat->num;
71 memcpy(adat->plat.s390x.param.kmo_kmf.cv, dat->iv, dat->ivlen);
103 memcpy(dat->iv, adat->plat.s390x.param.kmo_kmf.cv, dat->ivlen);
104 dat->num = n;
124 int n = dat->num;
128 memcpy(adat->plat.s390x.param.kmo_kmf.cv, dat->iv, dat->ivlen);
164 memcpy(dat->iv, adat->plat.s390x.param.kmo_kmf.cv, dat->ivlen);
165 dat->num = n;
186 memcpy(adat->plat.s390x.param.kmo_kmf.cv, dat->iv, dat->ivlen);
[all …]
H A Dcipher_camellia_hw_t4.inc15 static int cipher_hw_camellia_t4_initkey(PROV_CIPHER_CTX *dat,
19 int ret = 0, bits, mode = dat->mode;
20 PROV_CAMELLIA_CTX *adat = (PROV_CAMELLIA_CTX *)dat;
23 dat->ks = ks;
29 dat->block = (block128_f) cmll_t4_encrypt;
33 dat->stream.cbc = (cbc128_f) cmll128_t4_cbc_encrypt;
37 dat->stream.cbc = NULL;
46 dat->stream.cbc = NULL;
53 dat->block = (block128_f) cmll_t4_decrypt;
56 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ?
[all …]
H A Dcipher_aes_hw_aesni.inc21 static int cipher_hw_aesni_initkey(PROV_CIPHER_CTX *dat,
25 PROV_AES_CTX *adat = (PROV_AES_CTX *)dat;
28 dat->ks = ks;
30 if ((dat->mode == EVP_CIPH_ECB_MODE || dat->mode == EVP_CIPH_CBC_MODE)
31 && !dat->enc) {
33 dat->block = (block128_f) aesni_decrypt;
34 dat->stream.cbc = dat->mode == EVP_CIPH_CBC_MODE ?
38 dat->block = (block128_f) aesni_encrypt;
39 if (dat->mode == EVP_CIPH_CBC_MODE)
41 else if (dat->mode == EVP_CIPH_CTR_MODE)
[all …]
H A Dcipher_camellia_hw.c20 static int cipher_hw_camellia_initkey(PROV_CIPHER_CTX *dat, in cipher_hw_camellia_initkey() argument
23 int ret, mode = dat->mode; in cipher_hw_camellia_initkey()
24 PROV_CAMELLIA_CTX *adat = (PROV_CAMELLIA_CTX *)dat; in cipher_hw_camellia_initkey()
27 dat->ks = ks; in cipher_hw_camellia_initkey()
33 if (dat->enc || (mode != EVP_CIPH_ECB_MODE && mode != EVP_CIPH_CBC_MODE)) { in cipher_hw_camellia_initkey()
34 dat->block = (block128_f) Camellia_encrypt; in cipher_hw_camellia_initkey()
35 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ? in cipher_hw_camellia_initkey()
38 dat->block = (block128_f) Camellia_decrypt; in cipher_hw_camellia_initkey()
39 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ? in cipher_hw_camellia_initkey()
H A Dcipher_aria_hw.c13 static int cipher_hw_aria_initkey(PROV_CIPHER_CTX *dat, in cipher_hw_aria_initkey() argument
16 int ret, mode = dat->mode; in cipher_hw_aria_initkey()
17 PROV_ARIA_CTX *adat = (PROV_ARIA_CTX *)dat; in cipher_hw_aria_initkey()
20 if (dat->enc || (mode != EVP_CIPH_ECB_MODE && mode != EVP_CIPH_CBC_MODE)) in cipher_hw_aria_initkey()
28 dat->ks = ks; in cipher_hw_aria_initkey()
29 dat->block = (block128_f)ossl_aria_encrypt; in cipher_hw_aria_initkey()
H A Dcipher_aes_hw_armv8.inc15 static int cipher_hw_aes_arm_initkey(PROV_CIPHER_CTX *dat,
19 int ret = cipher_hw_aes_initkey(dat, key, keylen);
20 if (AES_UNROLL12_EOR3_CAPABLE && dat->mode == EVP_CIPH_CTR_MODE)
21 dat->stream.ctr = (ctr128_f)HWAES_ctr32_encrypt_blocks_unroll12_eor3;
/openssl/crypto/evp/
H A De_sm4.c69 dat->stream.cbc = NULL; in sm4_init_key()
84 dat->stream.cbc = NULL; in sm4_init_key()
100 dat->stream.cbc = NULL; in sm4_init_key()
123 dat->stream.cbc = NULL; in sm4_init_key()
144 if (dat->stream.cbc) in sm4_cbc_cipher()
145 (*dat->stream.cbc) (in, out, len, &dat->ks.ks, ctx->iv, in sm4_cbc_cipher()
149 dat->block); in sm4_cbc_cipher()
179 if (dat->stream.ecb != NULL) in sm4_ecb_cipher()
180 (*dat->stream.ecb) (in, out, len, &dat->ks.ks, in sm4_ecb_cipher()
184 (*dat->block) (in + i, out + i, &dat->ks); in sm4_ecb_cipher()
[all …]
H A De_camellia.c55 EVP_CAMELLIA_KEY *dat = in cmll_t4_init_key() local
90 dat->stream.cbc = NULL; in cmll_t4_init_key()
99 dat->stream.cbc = NULL; in cmll_t4_init_key()
199 &dat->ks); in camellia_init_key()
225 if (dat->stream.cbc) in camellia_cbc_cipher()
226 (*dat->stream.cbc) (in, out, len, &dat->ks, ctx->iv, in camellia_cbc_cipher()
229 CRYPTO_cbc128_encrypt(in, out, len, &dat->ks, ctx->iv, dat->block); in camellia_cbc_cipher()
231 CRYPTO_cbc128_decrypt(in, out, len, &dat->ks, ctx->iv, dat->block); in camellia_cbc_cipher()
247 (*dat->block) (in + i, out + i, &dat->ks); in camellia_ecb_cipher()
258 CRYPTO_ofb128_encrypt(in, out, len, &dat->ks, ctx->iv, &num, dat->block); in camellia_ofb_cipher()
[all …]
H A De_des3.c110 DES_EDE_KEY *dat = data(ctx); in des_ede_cbc_cipher() local
112 if (dat->stream.cbc != NULL) { in des_ede_cbc_cipher()
113 (*dat->stream.cbc) (in, out, inl, dat->ks.ks, in des_ede_cbc_cipher()
120 &dat->ks1, &dat->ks2, &dat->ks3, in des_ede_cbc_cipher()
129 &dat->ks1, &dat->ks2, &dat->ks3, in des_ede_cbc_cipher()
229 DES_EDE_KEY *dat = data(ctx); in des_ede_init_key() local
231 dat->stream.cbc = NULL; in des_ede_init_key()
239 memcpy(&dat->ks3, &dat->ks1, sizeof(dat->ks1)); in des_ede_init_key()
248 memcpy(&dat->ks3, &dat->ks1, sizeof(dat->ks1)); in des_ede_init_key()
256 DES_EDE_KEY *dat = data(ctx); in des_ede3_init_key() local
[all …]
H A De_des.c96 EVP_DES_KEY *dat = (EVP_DES_KEY *) EVP_CIPHER_CTX_get_cipher_data(ctx); in des_cbc_cipher() local
98 if (dat->stream.cbc != NULL) { in des_cbc_cipher()
99 (*dat->stream.cbc) (in, out, inl, &dat->ks.ks, ctx->iv); in des_cbc_cipher()
214 EVP_DES_KEY *dat = (EVP_DES_KEY *) EVP_CIPHER_CTX_get_cipher_data(ctx); in des_init_key() local
216 dat->stream.cbc = NULL; in des_init_key()
222 des_t4_key_expand(key, &dat->ks.ks); in des_init_key()
223 dat->stream.cbc = enc ? des_t4_cbc_encrypt : des_t4_cbc_decrypt; in des_init_key()
H A De_aes.c170 dat->stream.cbc = NULL; in aesni_init_key()
517 dat->stream.cbc = NULL; in aes_t4_init_key()
525 dat->stream.cbc = NULL; in aes_t4_init_key()
533 dat->stream.cbc = NULL; in aes_t4_init_key()
2422 dat->stream.cbc = NULL; in aes_init_key()
2455 dat->stream.cbc = NULL; in aes_init_key()
2508 if (dat->stream.cbc) in aes_cbc_cipher()
2509 (*dat->stream.cbc) (in, out, len, &dat->ks, ctx->iv, in aes_cbc_cipher()
2513 dat->block); in aes_cbc_cipher()
2532 (*dat->block) (in + i, out + i, &dat->ks); in aes_ecb_cipher()
[all …]
/openssl/crypto/rc4/asm/
H A Drc4-x86_64.pl174 lea 8($dat),$dat
176 mov -4($dat),$YY#b
177 cmpl \$-1,256($dat)
372 xor ($dat,$TY),%r8b
391 xor ($dat,$TY),%r9b
435 movl $YY#d,-4($dat)
462 lea 8($dat),$dat
500 mov %al,($dat,%rax)
520 movl \$-1,256($dat)
525 mov %eax,-8($dat)
[all …]
H A Drc4-md5-x86_64.pl166 lea 8($dat),$dat
167 mov -8($dat),$XX[0]#b
168 mov -4($dat),$YY#b
184 movl ($dat,$YY,4),$TY#d
436 movl ($dat,$YY,4),$TY#d
490 lea 8($dat),$dat
502 mov %eax,($dat,%rax,4)
510 mov ($dat,$ido,4),%r10d
514 mov ($dat,$idx,4),%r11d
522 mov %eax,-8($dat)
[all …]
H A Drc4-586.pl81 $dat="edi";
88 &mov ($ty,&DWP(0,$dat,$yy,4));
89 &mov (&DWP(0,$dat,$yy,4),$tx);
90 &mov (&DWP(0,$dat,$xx,4),$ty);
121 &mov ($ty,&DWP(0,$dat,$yy,4));
122 &mov (&DWP(0,$dat,$yy,4),$tx);
143 &mov ($ty,&DWP(0,$dat,$yy,4));
180 &add ($dat,8);
189 &cmp (&DWP(256,$dat),-1);
224 &cmp ($inp,&DWP(-4,$dat));
[all …]
H A Drc4-c64xplus.pl31 ($KEYB,$YY,$TX,$tx,$SUM,$dat)=map("B$_",(5,7,8,9,1,2));
80 LDBU *$INP++,$dat
84 XOR.L $dat,$ret,$ret
115 LDBU *${INP}++,$dat
139 ADD4 $dat,$YY,$YY
146 LDBU *${INP}++,$dat
H A Drc4-s390x.pl178 $dat="%r6";
204 llgc $dat,0($iinp,$inp)
207 la $idx,0($idx,$dat)
211 llgc $dat,2($idx,$key)
212 stc $dat,2+256-1($ikey,$key)
/openssl/crypto/aes/asm/
H A Daesv8-armx.pl1293 aesmc $dat,$dat
1301 aesmc $dat,$dat
1305 aesmc $dat,$dat
1307 aesmc $dat,$dat
1311 aesmc $dat,$dat
1316 aesmc $dat,$dat
1319 aesmc $dat,$dat
1325 aesmc $dat,$dat
1328 aesmc $dat,$dat
1331 aesmc $dat,$dat
[all …]

Completed in 59 milliseconds

12