Home
last modified time | relevance | path

Searched refs:rv (Results 1 – 25 of 122) sorted by relevance

12345

/openssl/providers/implementations/ciphers/
H A Dciphercommon_ccm_hw.c35 int rv; in ossl_ccm_generic_auth_encrypt() local
38 rv = CRYPTO_ccm128_encrypt_ccm64(&ctx->ccm_ctx, in, in ossl_ccm_generic_auth_encrypt()
41 rv = CRYPTO_ccm128_encrypt(&ctx->ccm_ctx, in, out, len) == 0; in ossl_ccm_generic_auth_encrypt()
43 if (rv == 1 && tag != NULL) in ossl_ccm_generic_auth_encrypt()
44 rv = (CRYPTO_ccm128_tag(&ctx->ccm_ctx, tag, taglen) > 0); in ossl_ccm_generic_auth_encrypt()
45 return rv; in ossl_ccm_generic_auth_encrypt()
52 int rv = 0; in ossl_ccm_generic_auth_decrypt() local
59 if (rv) { in ossl_ccm_generic_auth_decrypt()
64 rv = 0; in ossl_ccm_generic_auth_decrypt()
66 if (rv == 0) in ossl_ccm_generic_auth_decrypt()
[all …]
/openssl/ssl/
H A Dssl_conf.c193 int rv; in cmd_SignatureAlgorithms() local
205 int rv; in cmd_ClientSignatureAlgorithms() local
216 int rv; in cmd_Groups() local
234 int rv = 1; in cmd_ECDHParameters() local
259 int rv = 1; in cmd_CipherString() local
270 int rv = 1; in cmd_Ciphersuites() local
439 int rv = 1; in cmd_Certificate() local
469 int rv = 1; in cmd_PrivateKey() local
695 return rv; in cmd_RecordPadding()
710 return rv; in cmd_NumTickets()
[all …]
/openssl/crypto/
H A Dpariscid.pl29 $rv="%r28";
53 mfctl %cr16,$rv
96 ldo 0($sp),$rv
154 xor $rv,$rv,$rv
163 or %r29,$rv,$rv
165 sub %r0,$rv,%r29
166 extru %r29,0,1,$rv
186 copy $cnt,$rv
210 sub $rv,$cnt,$rv
219 copy $cnt,$rv
[all …]
/openssl/apps/
H A Dpkeyutl.c142 int ret = 1, rv = -1; in pkeyutl_main() local
517 if (rv == 1) { in pkeyutl_main()
532 rv = 1; in pkeyutl_main()
546 if (rv <= 0) { in pkeyutl_main()
640 int rv = -1; in init_ctx() local
731 if (rv <= 0) { in init_ctx()
765 int rv = 0; in do_keyop() local
797 return rv; in do_keyop()
807 int rv = 0; in do_raw_keyop() local
856 if (rv != 1) { in do_raw_keyop()
[all …]
H A Dgenpkey.c118 int outformat = FORMAT_PEM, text = 0, ret = 1, rv, do_param = 0; in genpkey_main() local
260 rv = PEM_write_bio_Parameters(out, pkey); in genpkey_main()
264 if (rv > 0 && outpubkey != NULL) in genpkey_main()
265 rv = PEM_write_bio_PUBKEY(outpubkey, pkey); in genpkey_main()
268 rv = i2d_PrivateKey_bio(out, pkey); in genpkey_main()
269 if (rv > 0 && outpubkey != NULL) in genpkey_main()
270 rv = i2d_PUBKEY_bio(outpubkey, pkey); in genpkey_main()
278 if (rv <= 0) { in genpkey_main()
285 rv = EVP_PKEY_print_params(out, pkey, 0, NULL); in genpkey_main()
287 rv = EVP_PKEY_print_private(out, pkey, 0, NULL); in genpkey_main()
[all …]
H A Drsautl.c84 int keyformat = FORMAT_UNDEF, keysize, ret = 1, rv; in rsautl_main() local
223 rv = BIO_read(in, rsa_in, keysize * 2); in rsautl_main()
224 if (rv < 0) { in rsautl_main()
228 rsa_inlen = rv; in rsautl_main()
245 rv = EVP_PKEY_verify_recover_init(ctx) > 0 in rsautl_main()
251 rv = EVP_PKEY_sign_init(ctx) > 0 in rsautl_main()
256 rv = EVP_PKEY_encrypt_init(ctx) > 0 in rsautl_main()
261 rv = EVP_PKEY_decrypt_init(ctx) > 0 in rsautl_main()
267 if (!rv) { in rsautl_main()
/openssl/crypto/asn1/
H A Da_strnid.c155 ASN1_STRING_TABLE *tmp, *rv; in stable_get() local
166 if ((rv = OPENSSL_zalloc(sizeof(*rv))) == NULL) in stable_get()
169 OPENSSL_free(rv); in stable_get()
173 rv->nid = tmp->nid; in stable_get()
174 rv->minsize = tmp->minsize; in stable_get()
175 rv->maxsize = tmp->maxsize; in stable_get()
176 rv->mask = tmp->mask; in stable_get()
179 rv->nid = nid; in stable_get()
180 rv->minsize = -1; in stable_get()
181 rv->maxsize = -1; in stable_get()
[all …]
H A Da_sign.c128 int rv = 0; in ASN1_item_sign_ex() local
139 rv = ASN1_item_sign_ctx(it, algor1, algor2, signature, data, ctx); in ASN1_item_sign_ex()
144 return rv; in ASN1_item_sign_ex()
156 int rv, pkey_id; in ASN1_item_sign_ctx() local
209 rv = 3; in ASN1_item_sign_ctx()
211 rv = pkey->ameth->item_sign(ctx, it, data, algor1, algor2, signature); in ASN1_item_sign_ctx()
212 if (rv == 1) in ASN1_item_sign_ctx()
221 if (rv <= 0) in ASN1_item_sign_ctx()
223 if (rv <= 1) in ASN1_item_sign_ctx()
226 rv = 2; in ASN1_item_sign_ctx()
[all …]
H A Dasn_mstbl.c60 int nid, i, rv = 0; in do_tcreate() local
98 rv = 1; in do_tcreate()
100 if (rv == 0) { in do_tcreate()
110 rv = ASN1_STRING_TABLE_add(nid, tbl_min, tbl_max, in do_tcreate()
112 if (!rv) in do_tcreate()
116 return rv; in do_tcreate()
/openssl/crypto/objects/
H A Dobj_xref.c70 const nid_triple *rv; in ossl_obj_find_sigid_algs() local
78 if (rv == NULL) { in ossl_obj_find_sigid_algs()
88 rv = sk_nid_triple_value(sig_app, idx); in ossl_obj_find_sigid_algs()
92 if (rv == NULL) in ossl_obj_find_sigid_algs()
97 *pdig_nid = rv->hash_id; in ossl_obj_find_sigid_algs()
99 *ppkey_nid = rv->pkey_id; in ossl_obj_find_sigid_algs()
112 const nid_triple **rv; in OBJ_find_sigid_by_algs() local
123 if (rv == NULL) { in OBJ_find_sigid_by_algs()
134 rv = &t; in OBJ_find_sigid_by_algs()
138 if (rv == NULL) in OBJ_find_sigid_by_algs()
[all …]
/openssl/demos/bio/
H A Dserver-arg.c42 int rv; in main() local
44 rv = SSL_CONF_cmd_argv(cctx, &nargs, &args); in main()
45 if (rv == -3) { in main()
49 if (rv < 0) { in main()
55 if (rv > 0) in main()
84 int rv; in main() local
85 rv = SSL_CTX_set_current_cert(ctx, SSL_CERT_SET_FIRST); in main()
86 while (rv) { in main()
91 rv = SSL_CTX_set_current_cert(ctx, SSL_CERT_SET_NEXT); in main()
H A Dclient-arg.c32 int rv; in main() local
34 rv = SSL_CONF_cmd_argv(cctx, &nargs, &args); in main()
35 if (rv == -3) { in main()
39 if (rv < 0) { in main()
45 if (rv > 0) in main()
H A Dserver-conf.c63 int rv; in main() local
65 rv = SSL_CONF_cmd(cctx, cnf->name, cnf->value); in main()
66 if (rv > 0) in main()
68 if (rv != -2) { in main()
/openssl/crypto/x509/
H A Dx509_cmp.c92 int rv; in X509_CRL_match() local
100 return rv < 0 ? -1 : rv > 0; in X509_CRL_match()
157 int rv = 0; in X509_cmp() local
169 if (rv != 0) in X509_cmp()
170 return rv < 0 ? -1 : 1; in X509_cmp()
181 return rv < 0 ? -1 : rv > 0; in X509_cmp()
476 int rv, i, sign_nid; in X509_chain_check_suiteb() local
510 if (rv != X509_V_OK) { in X509_chain_check_suiteb()
524 if (rv != X509_V_OK) in X509_chain_check_suiteb()
531 if (rv != X509_V_OK) { in X509_chain_check_suiteb()
[all …]
/openssl/crypto/evp/
H A Dp_verify.c30 int rv = 0; in EVP_VerifyFinal_ex() local
37 rv = EVP_MD_CTX_copy_ex(tmp_ctx, ctx); in EVP_VerifyFinal_ex()
38 if (rv) in EVP_VerifyFinal_ex()
39 rv = EVP_DigestFinal_ex(tmp_ctx, m, &m_len); in EVP_VerifyFinal_ex()
41 rv = EVP_DigestFinal_ex(ctx, m, &m_len); in EVP_VerifyFinal_ex()
43 if (!rv) in EVP_VerifyFinal_ex()
H A Dp_sign.c32 int rv = 0; in EVP_SignFinal_ex() local
39 rv = EVP_MD_CTX_copy_ex(tmp_ctx, ctx); in EVP_SignFinal_ex()
40 if (rv) in EVP_SignFinal_ex()
41 rv = EVP_DigestFinal_ex(tmp_ctx, m, &m_len); in EVP_SignFinal_ex()
43 rv = EVP_DigestFinal_ex(ctx, m, &m_len); in EVP_SignFinal_ex()
45 if (!rv) in EVP_SignFinal_ex()
H A Dencode.c306 int seof = 0, eof = 0, rv = -1, ret = 0, i, v, tmp, n, decoded_len; in EVP_DecodeUpdate() local
321 rv = 0; in EVP_DecodeUpdate()
334 rv = -1; in EVP_DecodeUpdate()
342 rv = -1; in EVP_DecodeUpdate()
347 rv = -1; in EVP_DecodeUpdate()
364 rv = -1; in EVP_DecodeUpdate()
375 rv = -1; in EVP_DecodeUpdate()
394 rv = -1; in EVP_DecodeUpdate()
400 rv = -1; in EVP_DecodeUpdate()
405 rv = seof || (n == 0 && eof) ? 0 : 1; in EVP_DecodeUpdate()
[all …]
H A Dp5_crpt2.c28 int rv = 1, mode = 1; in ossl_pkcs5_pbkdf2_hmac_ex() local
61 rv = 0; in ossl_pkcs5_pbkdf2_hmac_ex()
80 return rv; in ossl_pkcs5_pbkdf2_hmac_ex()
123 int rv = 0; in PKCS5_v2_PBE_keyivgen_ex() local
166 rv = kdf(ctx, pass, passlen, pbe2->keyfunc->parameter, NULL, NULL, en_de, libctx, propq); in PKCS5_v2_PBE_keyivgen_ex()
170 return rv; in PKCS5_v2_PBE_keyivgen_ex()
187 int rv = 0; in PKCS5_v2_PBKDF2_keyivgen_ex() local
257 rv = EVP_CipherInit_ex(ctx, NULL, NULL, key, NULL, en_de); in PKCS5_v2_PBKDF2_keyivgen_ex()
262 return rv; in PKCS5_v2_PBKDF2_keyivgen_ex()
/openssl/test/
H A Dx509_time_test.c355 int result, rv = 0; in test_x509_time() local
395 rv = 1; in test_x509_time()
399 return rv; in test_x509_time()
541 int ret = 0, rv; in test_x509_time_print_rfc_822() local
555 if (!TEST_int_ne(rv = BIO_get_mem_data(m, &pp), 0) in test_x509_time_print_rfc_822()
556 || !TEST_int_eq(rv, (int)strlen(readable)) in test_x509_time_print_rfc_822()
557 || !TEST_strn_eq(pp, readable, rv)) in test_x509_time_print_rfc_822()
569 int ret = 0, rv; in test_x509_time_print_iso_8601() local
583 if (!TEST_int_ne(rv = BIO_get_mem_data(m, &pp), 0) in test_x509_time_print_iso_8601()
584 || !TEST_int_eq(rv, (int)strlen(readable)) in test_x509_time_print_iso_8601()
[all …]
H A Dnamemap_internal_test.c136 int rv = 1; in test_cipher_is_a() local
142 rv = 0; in test_cipher_is_a()
145 rv = 0; in test_cipher_is_a()
148 return rv; in test_cipher_is_a()
158 int rv = 1; in test_digest_is_a() local
164 rv = 0; in test_digest_is_a()
167 rv = 0; in test_digest_is_a()
170 return rv; in test_digest_is_a()
H A Ddtls_mtu_test.c57 int rv = 0; in mtu_test() local
138 rv = 1; in mtu_test()
140 rv = 2; in mtu_test()
144 return rv; in mtu_test()
198 int rv = 0; in test_server_mtu_larger_than_max_fragment_length() local
226 rv = 1; in test_server_mtu_larger_than_max_fragment_length()
232 return rv; in test_server_mtu_larger_than_max_fragment_length()
/openssl/crypto/cms/
H A Dcms_kari.c217 int rv = 0; in cms_kek_cipher() local
240 rv = 1; in cms_kek_cipher()
244 if (!rv) in cms_kek_cipher()
250 return rv; in cms_kek_cipher()
276 rv = 1; in CMS_RecipientInfo_kari_decrypt()
279 return rv; in CMS_RecipientInfo_kari_decrypt()
307 rv = 1; in cms_kari_create_ephemeral_key()
309 if (!rv) in cms_kari_create_ephemeral_key()
312 return rv; in cms_kari_create_ephemeral_key()
332 rv = 1; in cms_kari_set_originator_private_key()
[all …]
H A Dcms_dh.c27 int rv = 0; in dh_cms_set_peerkey() local
72 rv = 1; in dh_cms_set_peerkey()
78 return rv; in dh_cms_set_peerkey()
83 int rv = 0; in dh_cms_set_shared_info() local
154 rv = 1; in dh_cms_set_shared_info()
159 return rv; in dh_cms_set_shared_info()
205 int rv = 0; in dh_cms_encrypt() local
319 rv = X509_ALGOR_set0(talg, OBJ_nid2obj(NID_id_smime_alg_ESDH), in dh_cms_encrypt()
321 if (!rv) in dh_cms_encrypt()
328 return rv; in dh_cms_encrypt()
H A Dcms_ec.c79 int rv = 0; in ecdh_cms_set_peerkey() local
118 rv = 1; in ecdh_cms_set_peerkey()
121 return rv; in ecdh_cms_set_peerkey()
161 int rv = 0; in ecdh_cms_set_shared_info() local
212 rv = 1; in ecdh_cms_set_shared_info()
217 return rv; in ecdh_cms_set_shared_info()
263 int rv = 0; in ecdh_cms_encrypt() local
372 rv = X509_ALGOR_set0(talg, OBJ_nid2obj(kdf_nid), V_ASN1_SEQUENCE, wrap_str); in ecdh_cms_encrypt()
373 if (!rv) in ecdh_cms_encrypt()
379 return rv; in ecdh_cms_encrypt()
/openssl/apps/lib/
H A Dengine.c87 int rv = 1; in init_engine() local
90 rv = ENGINE_init(e); in init_engine()
92 return rv; in init_engine()
97 int rv = 1; in finish_engine() local
100 rv = ENGINE_finish(e); in finish_engine()
102 return rv; in finish_engine()

Completed in 126 milliseconds

12345