| /crypto/modes/ |
| A D | cts128.c | 115 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 …]
|
| A D | ocb128.c | 289 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 …]
|
| /crypto/ec/ |
| A D | ecp_nistp224.c | 592 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 …]
|
| A D | ecp_nistp256.c | 401 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 …]
|
| A D | ecp_nistp521.c | 731 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 …]
|
| A D | ecp_nistp384.c | 923 tmp[2] += tmp[1] >> 56; in felem_contract() 926 tmp[3] += tmp[2] >> 56; in felem_contract() 929 tmp[4] += tmp[3] >> 56; in felem_contract() 932 tmp[5] += tmp[4] >> 56; in felem_contract() 943 …cond[0] = ((tmp[6] | 0xff000000000000) & tmp[5] & tmp[4] & tmp[3] & (tmp[2] | 0x0000000001ffff)) +… in felem_contract() 1001 tmp[2] += tmp[1] >> 56; in felem_contract() 1004 tmp[3] += tmp[2] >> 56; in felem_contract() 1007 tmp[4] += tmp[3] >> 56; in felem_contract() 1010 tmp[5] += tmp[4] >> 56; in felem_contract() 1450 tmp[0], tmp[1], tmp[2]); in batch_mul() [all …]
|
| /crypto/bn/asm/ |
| A D | rsaz-4k-avxifma.pl | 99 my $tmp = "%ymm13"; 364 vmovmskpd $tmp,%r9d 376 vmovmskpd $tmp,%r9d 378 vmovmskpd $tmp,%r8d 383 vmovmskpd $tmp,%r8d 385 vmovmskpd $tmp,%edx 390 vmovmskpd $tmp,%edx 392 vmovmskpd $tmp,%ecx 397 vmovmskpd $tmp,%ecx 399 vmovmskpd $tmp,%ebx [all …]
|
| /crypto/modes/asm/ |
| A D | ghash-s390x.pl | 78 $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 …]
|
| A D | ghash-sparcv9.pl | 66 $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 …]
|
| /crypto/asn1/ |
| A D | a_strnid.c | 169 if (tmp != NULL && tmp->flags & STABLE_FLAGS_MALLOC) in stable_get() 170 return tmp; in stable_get() 177 if (tmp != NULL) { in stable_get() 178 rv->nid = tmp->nid; in stable_get() 181 rv->mask = tmp->mask; in stable_get() 196 ASN1_STRING_TABLE *tmp; in ASN1_STRING_TABLE_add() local 203 tmp = stable_get(nid); in ASN1_STRING_TABLE_add() 204 if (tmp == NULL) { in ASN1_STRING_TABLE_add() 213 tmp->mask = mask; in ASN1_STRING_TABLE_add() 223 tmp = stable; in ASN1_STRING_TABLE_cleanup() [all …]
|
| /crypto/aes/asm/ |
| A D | aesp8-ppc.pl | 261 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 …]
|
| A D | aes-586.pl | 458 &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 …]
|
| A D | aesfx-sparcv9.pl | 64 sll $tmp, 3, $tmp 105 srl $mask, $tmp, $mask 107 sll $tmp, 3, $tmp 128 orn %g0, $mask, $tmp 154 sll $tmp, 3, $tmp 195 srl $mask, $tmp, $mask 197 sll $tmp, 3, $tmp 218 orn %g0, $mask, $tmp 251 and $inp, 7, $tmp 253 sll $tmp, 3, $tmp [all …]
|
| /crypto/bn/ |
| A D | bn_exp.c | 903 bn_mul_mont_t4(tmp.d, tmp.d, tmp.d, np, n0, top); in bn_mod_exp_mont_fixed_top() 904 bn_mul_mont_t4(tmp.d, tmp.d, tmp.d, np, n0, top); in bn_mod_exp_mont_fixed_top() 905 bn_mul_mont_t4(tmp.d, tmp.d, tmp.d, np, n0, top); in bn_mod_exp_mont_fixed_top() 906 bn_mul_mont_t4(tmp.d, tmp.d, tmp.d, np, n0, top); in bn_mod_exp_mont_fixed_top() 907 bn_mul_mont_t4(tmp.d, tmp.d, tmp.d, np, n0, top); in bn_mod_exp_mont_fixed_top() 981 bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top); in bn_mod_exp_mont_fixed_top() 989 bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top); in bn_mod_exp_mont_fixed_top() 996 bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top); in bn_mod_exp_mont_fixed_top() 1022 bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top); in bn_mod_exp_mont_fixed_top() 1023 bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top); in bn_mod_exp_mont_fixed_top() [all …]
|
| A D | bn_sqr.c | 31 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 …]
|
| A D | bn_gcd.c | 84 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 …]
|
| /crypto/ffc/ |
| A D | ffc_key_validate.c | 23 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 …]
|
| /crypto/aes/ |
| A D | aes_ige.c | 89 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 …]
|
| /crypto/srp/ |
| A D | srp_lib.c | 30 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 …]
|
| /crypto/x509/ |
| A D | v3_prn.c | 55 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 …]
|
| A D | v3_akid.c | 43 char *tmp = NULL; in STACK_OF() local 47 tmp = i2s_ASN1_OCTET_STRING(NULL, akeyid->keyid); in STACK_OF() 48 if (tmp == NULL) { in STACK_OF() 53 tmp, &extlist)) { in STACK_OF() 54 OPENSSL_free(tmp); in STACK_OF() 58 OPENSSL_free(tmp); in STACK_OF() 69 tmp = i2s_ASN1_OCTET_STRING(NULL, akeyid->serial); in STACK_OF() 70 if (tmp == NULL) { in STACK_OF() 74 if (!X509V3_add_value("serial", tmp, &extlist)) { in STACK_OF() 75 OPENSSL_free(tmp); in STACK_OF() [all …]
|
| /crypto/slh_dsa/ |
| A D | slh_wots.c | 103 uint8_t *tmp; /* Pointer into the |wpkt| buffer */ in slh_wots_chain() local 109 if (!WPACKET_allocate_bytes(wpkt, tmp_len, &tmp)) in slh_wots_chain() 113 if (!F(ctx, pk_seed, adrs, in, n, tmp, tmp_len)) in slh_wots_chain() 119 if (!F(ctx, pk_seed, adrs, tmp, n, tmp, tmp_len)) in slh_wots_chain() 147 uint8_t tmp[SLH_WOTS_LEN_MAX * SLH_MAX_N]; in ossl_slh_wots_pk_gen() local 158 if (!WPACKET_init_static_len(tmp_wpkt, tmp, sizeof(tmp), 0)) in ossl_slh_wots_pk_gen() 179 ret = hashf->T(ctx, pk_seed, wots_pk_adrs, tmp, tmp_len, pk_out, pk_out_len); in ossl_slh_wots_pk_gen() 182 OPENSSL_cleanse(tmp, sizeof(tmp)); in ossl_slh_wots_pk_gen() 279 uint8_t tmp[SLH_WOTS_LEN_MAX * SLH_MAX_N]; in ossl_slh_wots_pk_from_sig() local 288 if (!WPACKET_init_static_len(tmp_pkt, tmp, sizeof(tmp), 0)) in ossl_slh_wots_pk_from_sig() [all …]
|
| /crypto/cms/ |
| A D | cms_pwri.c | 207 unsigned char *tmp; in kek_unwrap_key() local 221 if ((tmp = OPENSSL_malloc(inlen)) == NULL) in kek_unwrap_key() 224 if (!EVP_DecryptUpdate(ctx, tmp + inlen - 2 * blocklen, &outl, in kek_unwrap_key() 231 || !EVP_DecryptUpdate(ctx, tmp, &outl, in kek_unwrap_key() 232 tmp + inlen - blocklen, blocklen) in kek_unwrap_key() 239 || !EVP_DecryptUpdate(ctx, tmp, &outl, tmp, (int)inlen)) in kek_unwrap_key() 242 if (((tmp[1] ^ tmp[4]) & (tmp[2] ^ tmp[5]) & (tmp[3] ^ tmp[6])) != 0xff) { in kek_unwrap_key() 246 if (inlen < (size_t)(tmp[0] - 4)) { in kek_unwrap_key() 250 *outlen = (size_t)tmp[0]; in kek_unwrap_key() 251 memcpy(out, tmp + 4, *outlen); in kek_unwrap_key() [all …]
|
| /crypto/rsa/ |
| A D | rsa_gen.c | 95 BIGNUM *tmp = NULL; in DEFINE_STACK_OF() local 145 tmp = BN_dup(r1); in DEFINE_STACK_OF() 146 if (tmp == NULL) in DEFINE_STACK_OF() 150 tmp = NULL; in DEFINE_STACK_OF() 157 tmp = BN_dup(r1); in DEFINE_STACK_OF() 158 if (tmp == NULL) in DEFINE_STACK_OF() 162 tmp = NULL; in DEFINE_STACK_OF() 252 BN_free(tmp); in DEFINE_STACK_OF() 518 if (tmp == NULL) in rsa_multiprime_keygen() 525 tmp = rsa->p; in rsa_multiprime_keygen() [all …]
|
| A D | rsa_sp800_56b_gen.c | 61 BIGNUM *Xpo = NULL, *Xqo = NULL, *tmp = NULL; in ossl_rsa_fips186_4_gen_prob_primes() local 104 tmp = BN_CTX_get(ctx); in ossl_rsa_fips186_4_gen_prob_primes() 107 if (tmp == NULL || Xpo == NULL || Xqo == NULL) in ossl_rsa_fips186_4_gen_prob_primes() 152 BN_clear(tmp); in ossl_rsa_fips186_4_gen_prob_primes() 373 BIGNUM *tmp; in ossl_rsa_sp800_56b_generate_key() local 408 tmp = rsa->p; in ossl_rsa_sp800_56b_generate_key() 410 rsa->q = tmp; in ossl_rsa_sp800_56b_generate_key() 440 BIGNUM *k, *tmp; in ossl_rsa_sp800_56b_pairwise_test() local 443 tmp = BN_CTX_get(ctx); in ossl_rsa_sp800_56b_pairwise_test() 451 && BN_mod_exp(tmp, tmp, rsa->d, rsa->n, ctx) in ossl_rsa_sp800_56b_pairwise_test() [all …]
|