Home
last modified time | relevance | path

Searched refs:tmp (Results 1 – 25 of 233) sorted by relevance

12345678910

/openssl/crypto/modes/
H A Dcts128.c115 memset(tmp.c, 0, sizeof(tmp)); in CRYPTO_cts128_encrypt()
151 memset(tmp.c, 0, sizeof(tmp)); in CRYPTO_nistcts128_encrypt()
185 memcpy(tmp.c, tmp.c + 16, 16); in CRYPTO_cts128_decrypt_block()
187 (*block) (tmp.c, tmp.c, key); in CRYPTO_cts128_decrypt_block()
232 memcpy(tmp.c, tmp.c + 16, 16); in CRYPTO_nistcts128_decrypt_block()
234 (*block) (tmp.c, tmp.c, key); in CRYPTO_nistcts128_decrypt_block()
243 out[n] = tmp.c[n] ^ tmp.c[n - 16]; in CRYPTO_nistcts128_decrypt_block()
272 memset(tmp.c, 0, sizeof(tmp)); in CRYPTO_cts128_decrypt()
282 (*cbc) (tmp.c, tmp.c, 32, key, ivec, 0); in CRYPTO_cts128_decrypt()
316 memset(tmp.c, 0, sizeof(tmp)); in CRYPTO_nistcts128_decrypt()
[all …]
H A Docb128.c289 ocb_block16_xor(&ctx->sess.offset_aad, &tmp, &tmp); in CRYPTO_ocb128_aad()
290 ctx->encrypt(tmp.c, tmp.c, ctx->keyenc); in CRYPTO_ocb128_aad()
309 ocb_block16_xor(&ctx->sess.offset_aad, &tmp, &tmp); in CRYPTO_ocb128_aad()
312 ctx->encrypt(tmp.c, tmp.c, ctx->keyenc); in CRYPTO_ocb128_aad()
374 ocb_block16_xor(&ctx->sess.offset, &tmp, &tmp); in CRYPTO_ocb128_encrypt()
375 ctx->encrypt(tmp.c, tmp.c, ctx->keyenc); in CRYPTO_ocb128_encrypt()
376 ocb_block16_xor(&ctx->sess.offset, &tmp, &tmp); in CRYPTO_ocb128_encrypt()
464 ctx->decrypt(tmp.c, tmp.c, ctx->keydec); in CRYPTO_ocb128_decrypt()
518 ocb_block16_xor(&ctx->l_dollar, &tmp, &tmp); in ocb_finish()
519 ctx->encrypt(tmp.c, tmp.c, ctx->keyenc); in ocb_finish()
[all …]
/openssl/crypto/ec/
H A Decp_nistp224.c592 widefelem tmp; in felem_square_reduce() local
599 widefelem tmp; in felem_mul_reduce() local
620 tmp[0] -= a; in felem_contract()
647 tmp[2] += tmp[1] >> 56; in felem_contract()
650 tmp[3] += tmp[2] >> 56; in felem_contract()
667 widefelem tmp; in felem_neg() local
669 memset(tmp, 0, sizeof(tmp)); in felem_neg()
1179 nq[0], nq[1], nq[2], 1, tmp[0], tmp[1], tmp[2]); in batch_mul()
1194 1 /* mixed */ , tmp[0], tmp[1], tmp[2]); in batch_mul()
1213 copy_conditional(tmp[1], tmp[3], sign); in batch_mul()
[all …]
H A Decp_nistp256.c401 tmp[3] = (u64)tmp[3]; in felem_shrink()
409 tmp[3] = (u64)tmp[3]; in felem_shrink()
457 tmp[1] += ((u64)(tmp[0] >> 64)); in felem_shrink()
458 tmp[0] = (u64)tmp[0]; in felem_shrink()
459 tmp[2] += ((u64)(tmp[1] >> 64)); in felem_shrink()
460 tmp[1] = (u64)tmp[1]; in felem_shrink()
461 tmp[3] += ((u64)(tmp[2] >> 64)); in felem_shrink()
462 tmp[2] = (u64)tmp[2]; in felem_shrink()
1083 felem_inv(tmp, tmp); in smallfelem_inv_contract()
1732 nq[0], nq[1], nq[2], 1, tmp[0], tmp[1], tmp[2]); in batch_mul()
[all …]
H A Decp_nistp521.c731 largefelem tmp; in felem_square_reduce() local
738 largefelem tmp; in felem_mul_reduce() local
754 largefelem tmp; in felem_inv() local
1090 largefelem tmp, tmp2; in point_double() local
1190 out[i] ^= tmp; in copy_conditional()
1589 felem nq[3], tmp[4]; in batch_mul() local
1621 nq[0], nq[1], nq[2], 1, tmp[0], tmp[1], tmp[2]); in batch_mul()
1644 felem_neg(tmp[3], tmp[1]); /* (X, -Y, Z) is the negative in batch_mul()
1646 copy_conditional(tmp[1], tmp[3], (-(limb) sign)); in batch_mul()
1651 mixed, tmp[0], tmp[1], tmp[2]); in batch_mul()
[all …]
H A Decp_nistp384.c887 tmp[2] += tmp[1] >> 56; in felem_contract()
890 tmp[3] += tmp[2] >> 56; in felem_contract()
893 tmp[4] += tmp[3] >> 56; in felem_contract()
896 tmp[5] += tmp[4] >> 56; in felem_contract()
907 …cond[0] = ((tmp[6] | 0xff000000000000) & tmp[5] & tmp[4] & tmp[3] & (tmp[2] | 0x0000000001ffff)) +… in felem_contract()
965 tmp[2] += tmp[1] >> 56; in felem_contract()
968 tmp[3] += tmp[2] >> 56; in felem_contract()
971 tmp[4] += tmp[3] >> 56; in felem_contract()
974 tmp[5] += tmp[4] >> 56; in felem_contract()
1414 tmp[0], tmp[1], tmp[2]); in batch_mul()
[all …]
/openssl/test/recipes/95-test_external_oqsprovider_data/
H A Doqsprovider-pkcs12gen.sh37 if [[ -f tmp/$1_CA.crt && -f tmp/$1_CA.key ]]; then
47 $OPENSSL_APP pkcs12 -export -in tmp/$1_srv.crt -inkey tmp/$1_srv.key -passout pass: -out tmp/$1_srv…
49 if [ $? -ne 0 ] || [ ! -f tmp/$1_srv_1.p12 ]; then
55 sed -e 's/^oqsprovider/# oqsprovider/' $OPENSSL_CONF > tmp/openssl-ca-no-oqsprovider.cnf
58tmp/openssl-ca-no-oqsprovider.cnf $OPENSSL_APP pkcs12 -provider default -provider oqsprovider -exp…
60 if [ $? -ne 0 ] || [ ! -f tmp/$1_srv_2.p12 ]; then
65 if [ $(cat tmp/$1_srv_1.p12 | $OPENSSL_APP sha256) -neq $(cat tmp/$1_srv_2.p12 | $OPENSSL_APP sha25…
/openssl/test/
H A Dasn1_internal_test.c37 const ASN1_STRING_TABLE *tmp; in test_tbl_standard() local
41 for (tmp = tbl_standard, i = 0; i < OSSL_NELEM(tbl_standard); i++, tmp++) { in test_tbl_standard()
42 if (tmp->nid < last_nid) { in test_tbl_standard()
46 last_nid = tmp->nid; in test_tbl_standard()
55 for (tmp = tbl_standard, i = 0; i < OSSL_NELEM(tbl_standard); i++, tmp++) in test_tbl_standard()
57 i, tmp->nid, OBJ_nid2ln(tmp->nid)); in test_tbl_standard()
79 i++, tmp++) { in test_standard_methods()
94 if (!TEST_true(((*tmp)->pem_str == NULL && ((*tmp)->pkey_flags & ASN1_PKEY_ALIAS) != 0) in test_standard_methods()
97 i, (*tmp)->pkey_id, OBJ_nid2sn((*tmp)->pkey_id)); in test_standard_methods()
109 i++, tmp++) in test_standard_methods()
[all …]
H A Dasn1_string_table_test.c20 const ASN1_STRING_TABLE *tmp = NULL; in test_string_tbl() local
23 tmp = ASN1_STRING_TABLE_get(nid); in test_string_tbl()
24 if (!TEST_ptr_null(tmp)) { in test_string_tbl()
41 tmp = ASN1_STRING_TABLE_get(nid); in test_string_tbl()
42 if (!TEST_ptr(tmp)) { in test_string_tbl()
47 tmp = ASN1_STRING_TABLE_get(nid2); in test_string_tbl()
48 if (!TEST_ptr(tmp)) { in test_string_tbl()
56 tmp = ASN1_STRING_TABLE_get(nid); in test_string_tbl()
57 if (!TEST_ptr_null(tmp)) { in test_string_tbl()
62 tmp = ASN1_STRING_TABLE_get(nid2); in test_string_tbl()
[all …]
H A Dx509_internal_test.c33 const X509V3_EXT_METHOD **tmp; in test_standard_exts() local
35 tmp = standard_exts; in test_standard_exts()
36 for (i = 0; i < OSSL_NELEM(standard_exts); i++, tmp++) { in test_standard_exts()
37 if ((*tmp)->ext_nid < prev) in test_standard_exts()
39 prev = (*tmp)->ext_nid; in test_standard_exts()
43 tmp = standard_exts; in test_standard_exts()
45 for (i = 0; i < STANDARD_EXTENSION_COUNT; i++, tmp++) in test_standard_exts()
46 TEST_note("%d : %s", (*tmp)->ext_nid, OBJ_nid2sn((*tmp)->ext_nid)); in test_standard_exts()
/openssl/crypto/modes/asm/
H A Dghash-s390x.pl78 $tmp="%r12";
148 lghi $tmp,0
152 xgr $Zhi,$tmp
160 ngr $nlo,$tmp
163 ngr $nhi,$tmp
170 ngr $nlo,$tmp
172 ngr $xi,$tmp
181 xgr $Zlo,$tmp
196 xgr $Zlo,$tmp
208 xgr $Zlo,$tmp
[all …]
H A Dghash-sparcv9.pl66 $tmp="%o5";
134 sllx $Zhi,60,$tmp
137 xor $Zlo,$tmp,$Zlo
154 sllx $Zhi,60,$tmp
169 sllx $Zhi,60,$tmp
188 sllx $Zhi,60,$tmp
205 sllx $Zhi,60,$tmp
226 sllx $Zhi,60,$tmp
270 sllx $Zhi,60,$tmp
289 sllx $Zhi,60,$tmp
[all …]
/openssl/crypto/asn1/
H A Da_strnid.c164 if (tmp != NULL && tmp->flags & STABLE_FLAGS_MALLOC) in stable_get()
165 return tmp; in stable_get()
172 if (tmp != NULL) { in stable_get()
173 rv->nid = tmp->nid; in stable_get()
176 rv->mask = tmp->mask; in stable_get()
191 ASN1_STRING_TABLE *tmp; in ASN1_STRING_TABLE_add() local
193 tmp = stable_get(nid); in ASN1_STRING_TABLE_add()
194 if (tmp == NULL) { in ASN1_STRING_TABLE_add()
203 tmp->mask = mask; in ASN1_STRING_TABLE_add()
213 tmp = stable; in ASN1_STRING_TABLE_cleanup()
[all …]
/openssl/crypto/aes/asm/
H A Daesp8-ppc.pl261 vxor $tmp,$tmp,$in1
291 vxor $tmp,$tmp,$in1
2091 vsldoi $tmp,$tmp,$tmp,15
2092 vand $tmp,$tmp,$eighty7
2132 vsldoi $tmp,$tmp,$tmp,15
2133 vand $tmp,$tmp,$eighty7
2299 vsldoi $tmp,$tmp,$tmp,15
2300 vand $tmp,$tmp,$eighty7
2317 vsldoi $tmp,$tmp,$tmp,15
2388 vsldoi $tmp,$tmp,$tmp,15
[all …]
H A Daes-586.pl458 &movz ($tmp,&BP(-128,$te,$tmp,1));
467 &movz ($tmp,&BP(-128,$te,$tmp,1));
475 &movz ($tmp,&BP(-128,$te,$tmp,1));
829 &mov ($tmp,&DWP(0,$te,$tmp,8));
838 &mov ($tmp,&DWP(0,$te,$tmp,8));
846 &mov ($tmp,&DWP(2,$te,$tmp,8));
1256 &movz ($tmp,&BP(-128,$td,$tmp,1));
1264 &movz ($tmp,&BP(-128,$td,$tmp,1));
1654 &movz ($tmp,&BP(0,$td,$tmp,1));
1662 &movz ($tmp,&BP(0,$td,$tmp,1));
[all …]
/openssl/crypto/bn/
H A Dbn_exp.c907 bn_mul_mont_t4(tmp.d, tmp.d, tmp.d, np, n0, top); in BN_mod_exp_mont_consttime()
908 bn_mul_mont_t4(tmp.d, tmp.d, tmp.d, np, n0, top); in BN_mod_exp_mont_consttime()
909 bn_mul_mont_t4(tmp.d, tmp.d, tmp.d, np, n0, top); in BN_mod_exp_mont_consttime()
910 bn_mul_mont_t4(tmp.d, tmp.d, tmp.d, np, n0, top); in BN_mod_exp_mont_consttime()
911 bn_mul_mont_t4(tmp.d, tmp.d, tmp.d, np, n0, top); in BN_mod_exp_mont_consttime()
985 bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top); in BN_mod_exp_mont_consttime()
993 bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top); in BN_mod_exp_mont_consttime()
1000 bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top); in BN_mod_exp_mont_consttime()
1026 bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top); in BN_mod_exp_mont_consttime()
1027 bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top); in BN_mod_exp_mont_consttime()
[all …]
H A Dbn_sqr.c31 BIGNUM *tmp, *rr; in bn_sqr_fixed_top() local
44 tmp = BN_CTX_get(ctx); in bn_sqr_fixed_top()
45 if (rr == NULL || tmp == NULL) in bn_sqr_fixed_top()
78 if (bn_wexpand(tmp, k * 2) == NULL) in bn_sqr_fixed_top()
82 if (bn_wexpand(tmp, max) == NULL) in bn_sqr_fixed_top()
84 bn_sqr_normal(rr->d, a->d, al, tmp->d); in bn_sqr_fixed_top()
88 if (bn_wexpand(tmp, max) == NULL) in bn_sqr_fixed_top()
90 bn_sqr_normal(rr->d, a->d, al, tmp->d); in bn_sqr_fixed_top()
103 bn_check_top(tmp); in bn_sqr_fixed_top()
139 bn_sqr_words(tmp, a, n); in bn_sqr_normal()
[all …]
H A Dbn_gcd.c84 BIGNUM *tmp; in bn_mod_inverse_no_branch() local
142 if (!BN_mul(tmp, D, X, ctx)) in bn_mod_inverse_no_branch()
144 if (!BN_add(tmp, tmp, Y)) in bn_mod_inverse_no_branch()
150 X = tmp; in bn_mod_inverse_no_branch()
359 BIGNUM *tmp; in int_bn_mod_inverse() local
450 if (!BN_add(tmp, X, Y)) in int_bn_mod_inverse()
468 if (!BN_add(tmp, tmp, Y)) in int_bn_mod_inverse()
474 X = tmp; in int_bn_mod_inverse()
552 BIGNUM *tmp; in BN_are_coprime() local
555 tmp = BN_CTX_get(ctx); in BN_are_coprime()
[all …]
/openssl/crypto/ffc/
H A Dffc_key_validate.c23 BIGNUM *tmp = NULL; in ossl_ffc_validate_public_key_partial() local
37 tmp = BN_CTX_get(ctx); in ossl_ffc_validate_public_key_partial()
39 if (tmp == NULL in ossl_ffc_validate_public_key_partial()
40 || !BN_set_word(tmp, 1)) in ossl_ffc_validate_public_key_partial()
42 if (BN_cmp(pub_key, tmp) <= 0) in ossl_ffc_validate_public_key_partial()
46 || !BN_sub_word(tmp, 1)) in ossl_ffc_validate_public_key_partial()
48 if (BN_cmp(pub_key, tmp) >= 0) in ossl_ffc_validate_public_key_partial()
66 BIGNUM *tmp = NULL; in ossl_ffc_validate_public_key() local
77 tmp = BN_CTX_get(ctx); in ossl_ffc_validate_public_key()
80 if (tmp == NULL in ossl_ffc_validate_public_key()
[all …]
/openssl/providers/implementations/ciphers/
H A Dcipher_aes_gcm_siv_polyval.c63 uint64_t tmp[2]; in ossl_polyval_ghash_init() local
66 byte_reverse16((uint8_t *)tmp, (const uint8_t *)H); in ossl_polyval_ghash_init()
67 mulx_ghash(tmp); in ossl_polyval_ghash_init()
70 tmp[0] = GSWAP8(tmp[0]); in ossl_polyval_ghash_init()
71 tmp[1] = GSWAP8(tmp[1]); in ossl_polyval_ghash_init()
74 ossl_gcm_init_4bit(Htable, (u64*)tmp); in ossl_polyval_ghash_init()
81 uint64_t tmp[2]; in ossl_polyval_ghash_hash() local
91 byte_reverse16((uint8_t *)tmp, &inp[i]); in ossl_polyval_ghash_hash()
92 ossl_gcm_ghash_4bit((u64*)out, Htable, (uint8_t *)tmp, 16); in ossl_polyval_ghash_hash()
/openssl/crypto/aes/
H A Daes_ige.c89 aes_block_t tmp, tmp2; in AES_ige_encrypt() local
97 load_block(tmp, in); in AES_ige_encrypt()
106 iv2 = tmp; in AES_ige_encrypt()
123 aes_block_t tmp; in AES_ige_encrypt() local
142 aes_block_t tmp, tmp2; in AES_ige_encrypt() local
150 load_block(tmp, in); in AES_ige_encrypt()
151 tmp2 = tmp; in AES_ige_encrypt()
158 store_block(out, tmp); in AES_ige_encrypt()
160 iv2 = tmp; in AES_ige_encrypt()
271 tmp[n] ^= iv2[n]; in AES_bi_ige_encrypt()
[all …]
/openssl/crypto/srp/
H A Dsrp_lib.c30 unsigned char *tmp = NULL; in srp_Calc_xy() local
44 if (BN_bn2binpad(x, tmp, numN) < 0 in srp_Calc_xy()
45 || BN_bn2binpad(y, tmp + numN, numN) < 0 in srp_Calc_xy()
51 OPENSSL_free(tmp); in srp_Calc_xy()
79 BIGNUM *tmp = NULL, *S = NULL; in SRP_Calc_server_key() local
90 if (!BN_mod_exp(tmp, v, u, N, bn_ctx)) in SRP_Calc_server_key()
92 if (!BN_mod_mul(tmp, A, tmp, N, bn_ctx)) in SRP_Calc_server_key()
102 BN_clear_free(tmp); in SRP_Calc_server_key()
224 if ((tmp = BN_new()) == NULL || in SRP_Calc_client_key_ex()
231 BN_set_flags(tmp, BN_FLG_CONSTTIME); in SRP_Calc_client_key_ex()
[all …]
/openssl/crypto/cms/
H A Dcms_pwri.c205 unsigned char *tmp; in kek_unwrap_key() local
219 if ((tmp = OPENSSL_malloc(inlen)) == NULL) in kek_unwrap_key()
222 if (!EVP_DecryptUpdate(ctx, tmp + inlen - 2 * blocklen, &outl, in kek_unwrap_key()
229 || !EVP_DecryptUpdate(ctx, tmp, &outl, in kek_unwrap_key()
230 tmp + inlen - blocklen, blocklen) in kek_unwrap_key()
237 || !EVP_DecryptUpdate(ctx, tmp, &outl, tmp, inlen)) in kek_unwrap_key()
240 if (((tmp[1] ^ tmp[4]) & (tmp[2] ^ tmp[5]) & (tmp[3] ^ tmp[6])) != 0xff) { in kek_unwrap_key()
244 if (inlen < (size_t)(tmp[0] - 4)) { in kek_unwrap_key()
248 *outlen = (size_t)tmp[0]; in kek_unwrap_key()
249 memcpy(out, tmp + 4, *outlen); in kek_unwrap_key()
[all …]
/openssl/crypto/x509/
H A Dv3_prn.c55 char *tmp; in X509V3_EXT_val_prn() local
57 tmp = OPENSSL_malloc(len); in X509V3_EXT_val_prn()
58 if (tmp != NULL) { in X509V3_EXT_val_prn()
59 ascii2ebcdic(tmp, nval->value, len); in X509V3_EXT_val_prn()
60 BIO_printf(out, "%s:%s", nval->name, tmp); in X509V3_EXT_val_prn()
61 OPENSSL_free(tmp); in X509V3_EXT_val_prn()
106 char *tmp; in X509V3_EXT_print() local
108 tmp = OPENSSL_malloc(len); in X509V3_EXT_print()
109 if (tmp != NULL) { in X509V3_EXT_print()
110 ascii2ebcdic(tmp, value, len); in X509V3_EXT_print()
[all …]
/openssl/ssl/
H A Dt1_enc.c133 c = s->s3.tmp.new_sym_enc; in tls1_change_cipher_state()
134 m = s->s3.tmp.new_hash; in tls1_change_cipher_state()
137 comp = s->s3.tmp.new_compression; in tls1_change_cipher_state()
140 p = s->s3.tmp.key_block; in tls1_change_cipher_state()
169 if (n > s->s3.tmp.key_block_length) { in tls1_change_cipher_state()
266 if (s->s3.tmp.key_block_length != 0) in tls1_setup_key_block()
278 s->s3.tmp.new_sym_enc = c; in tls1_setup_key_block()
279 ssl_evp_md_free(s->s3.tmp.new_hash); in tls1_setup_key_block()
280 s->s3.tmp.new_hash = hash; in tls1_setup_key_block()
298 s->s3.tmp.key_block_length = num; in tls1_setup_key_block()
[all …]

Completed in 73 milliseconds

12345678910