Home
last modified time | relevance | path

Searched refs:flen (Results 1 – 25 of 89) sorted by relevance

1234

/third_party/openssl/crypto/rsa/
Drsa_pk1.c29 const unsigned char *from, int flen) in RSA_padding_add_PKCS1_type_1() argument
34 if (flen > (tlen - RSA_PKCS1_PADDING_SIZE)) { in RSA_padding_add_PKCS1_type_1()
45 j = tlen - 3 - flen; in RSA_padding_add_PKCS1_type_1()
49 memcpy(p, from, (unsigned int)flen); in RSA_padding_add_PKCS1_type_1()
54 const unsigned char *from, int flen, in RSA_padding_check_PKCS1_type_1() argument
73 if (num == flen) { in RSA_padding_check_PKCS1_type_1()
78 flen--; in RSA_padding_check_PKCS1_type_1()
81 if ((num != (flen + 1)) || (*(p++) != 0x01)) { in RSA_padding_check_PKCS1_type_1()
87 j = flen - 1; /* one for type. */ in RSA_padding_check_PKCS1_type_1()
123 int flen) in ossl_rsa_padding_add_PKCS1_type_2_ex() argument
[all …]
Drsa_none.c21 const unsigned char *from, int flen) in RSA_padding_add_none() argument
23 if (flen > tlen) { in RSA_padding_add_none()
28 if (flen < tlen) { in RSA_padding_add_none()
33 memcpy(to, from, (unsigned int)flen); in RSA_padding_add_none()
38 const unsigned char *from, int flen, int num) in RSA_padding_check_none() argument
41 if (flen > tlen) { in RSA_padding_check_none()
46 memset(to, 0, tlen - flen); in RSA_padding_check_none()
47 memcpy(to + tlen - flen, from, flen); in RSA_padding_check_none()
Drsa_oaep.c40 const unsigned char *from, int flen, in RSA_padding_add_PKCS1_OAEP() argument
43 return ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex(NULL, to, tlen, from, flen, in RSA_padding_add_PKCS1_OAEP()
56 const unsigned char *from, int flen, in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex() argument
86 if (flen > emlen - 2 * mdlen - 1) { in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
105 memset(db + mdlen, 0, emlen - flen - 2 * mdlen - 1); in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
107 db[emlen - flen - mdlen - 1] = 0x01; in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
108 memcpy(db + emlen - flen - mdlen, from, (unsigned int)flen); in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
142 const unsigned char *from, int flen, in RSA_padding_add_PKCS1_OAEP_mgf1() argument
146 return ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex(NULL, to, tlen, from, flen, in RSA_padding_add_PKCS1_OAEP_mgf1()
151 const unsigned char *from, int flen, int num, in RSA_padding_check_PKCS1_OAEP() argument
[all …]
Drsa_x931.c23 const unsigned char *from, int flen) in RSA_padding_add_X931() argument
33 j = tlen - flen - 2; in RSA_padding_add_X931()
53 memcpy(p, from, (unsigned int)flen); in RSA_padding_add_X931()
54 p += flen; in RSA_padding_add_X931()
60 const unsigned char *from, int flen, int num) in RSA_padding_check_X931() argument
66 if ((num != flen) || ((*p != 0x6A) && (*p != 0x6B))) { in RSA_padding_check_X931()
72 j = flen - 3; in RSA_padding_check_X931()
91 j = flen - 2; in RSA_padding_check_X931()
Drsa_crpt.c33 int RSA_public_encrypt(int flen, const unsigned char *from, unsigned char *to, in RSA_public_encrypt() argument
36 return rsa->meth->rsa_pub_enc(flen, from, to, rsa, padding); in RSA_public_encrypt()
39 int RSA_private_encrypt(int flen, const unsigned char *from, in RSA_private_encrypt() argument
42 return rsa->meth->rsa_priv_enc(flen, from, to, rsa, padding); in RSA_private_encrypt()
45 int RSA_private_decrypt(int flen, const unsigned char *from, in RSA_private_decrypt() argument
48 return rsa->meth->rsa_priv_dec(flen, from, to, rsa, padding); in RSA_private_decrypt()
51 int RSA_public_decrypt(int flen, const unsigned char *from, unsigned char *to, in RSA_public_decrypt() argument
54 return rsa->meth->rsa_pub_dec(flen, from, to, rsa, padding); in RSA_public_decrypt()
Drsa_meth.c107 (int flen, const unsigned char *from, in RSA_meth_get_pub_enc()
114 int (*pub_enc) (int flen, const unsigned char *from, in RSA_meth_set_pub_enc()
123 (int flen, const unsigned char *from, in RSA_meth_get_pub_dec()
130 int (*pub_dec) (int flen, const unsigned char *from, in RSA_meth_set_pub_dec()
139 (int flen, const unsigned char *from, in RSA_meth_get_priv_enc()
146 int (*priv_enc) (int flen, const unsigned char *from, in RSA_meth_set_priv_enc()
155 (int flen, const unsigned char *from, in RSA_meth_get_priv_dec()
162 int (*priv_dec) (int flen, const unsigned char *from, in RSA_meth_set_priv_dec()
Drsa_ossl.c21 static int rsa_ossl_public_encrypt(int flen, const unsigned char *from,
23 static int rsa_ossl_private_encrypt(int flen, const unsigned char *from,
25 static int rsa_ossl_public_decrypt(int flen, const unsigned char *from,
27 static int rsa_ossl_private_decrypt(int flen, const unsigned char *from,
74 static int rsa_ossl_public_encrypt(int flen, const unsigned char *from, in rsa_ossl_public_encrypt() argument
115 from, flen); in rsa_ossl_public_encrypt()
119 from, flen, NULL, 0, in rsa_ossl_public_encrypt()
123 i = RSA_padding_add_none(buf, num, from, flen); in rsa_ossl_public_encrypt()
242 static int rsa_ossl_private_encrypt(int flen, const unsigned char *from, in rsa_ossl_private_encrypt() argument
272 i = RSA_padding_add_PKCS1_type_1(buf, num, from, flen); in rsa_ossl_private_encrypt()
[all …]
Drsa_local.h105 int (*rsa_pub_enc) (int flen, const unsigned char *from,
107 int (*rsa_pub_dec) (int flen, const unsigned char *from,
109 int (*rsa_priv_enc) (int flen, const unsigned char *from,
111 int (*rsa_priv_dec) (int flen, const unsigned char *from,
194 int flen);
/third_party/node/deps/openssl/openssl/crypto/rsa/
Drsa_pk1.c29 const unsigned char *from, int flen) in RSA_padding_add_PKCS1_type_1() argument
34 if (flen > (tlen - RSA_PKCS1_PADDING_SIZE)) { in RSA_padding_add_PKCS1_type_1()
45 j = tlen - 3 - flen; in RSA_padding_add_PKCS1_type_1()
49 memcpy(p, from, (unsigned int)flen); in RSA_padding_add_PKCS1_type_1()
54 const unsigned char *from, int flen, in RSA_padding_check_PKCS1_type_1() argument
73 if (num == flen) { in RSA_padding_check_PKCS1_type_1()
78 flen--; in RSA_padding_check_PKCS1_type_1()
81 if ((num != (flen + 1)) || (*(p++) != 0x01)) { in RSA_padding_check_PKCS1_type_1()
87 j = flen - 1; /* one for type. */ in RSA_padding_check_PKCS1_type_1()
123 int flen) in ossl_rsa_padding_add_PKCS1_type_2_ex() argument
[all …]
Drsa_none.c21 const unsigned char *from, int flen) in RSA_padding_add_none() argument
23 if (flen > tlen) { in RSA_padding_add_none()
28 if (flen < tlen) { in RSA_padding_add_none()
33 memcpy(to, from, (unsigned int)flen); in RSA_padding_add_none()
38 const unsigned char *from, int flen, int num) in RSA_padding_check_none() argument
41 if (flen > tlen) { in RSA_padding_check_none()
46 memset(to, 0, tlen - flen); in RSA_padding_check_none()
47 memcpy(to + tlen - flen, from, flen); in RSA_padding_check_none()
Drsa_oaep.c40 const unsigned char *from, int flen, in RSA_padding_add_PKCS1_OAEP() argument
43 return ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex(NULL, to, tlen, from, flen, in RSA_padding_add_PKCS1_OAEP()
56 const unsigned char *from, int flen, in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex() argument
86 if (flen > emlen - 2 * mdlen - 1) { in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
105 memset(db + mdlen, 0, emlen - flen - 2 * mdlen - 1); in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
107 db[emlen - flen - mdlen - 1] = 0x01; in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
108 memcpy(db + emlen - flen - mdlen, from, (unsigned int)flen); in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
142 const unsigned char *from, int flen, in RSA_padding_add_PKCS1_OAEP_mgf1() argument
146 return ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex(NULL, to, tlen, from, flen, in RSA_padding_add_PKCS1_OAEP_mgf1()
151 const unsigned char *from, int flen, int num, in RSA_padding_check_PKCS1_OAEP() argument
[all …]
Drsa_x931.c23 const unsigned char *from, int flen) in RSA_padding_add_X931() argument
33 j = tlen - flen - 2; in RSA_padding_add_X931()
53 memcpy(p, from, (unsigned int)flen); in RSA_padding_add_X931()
54 p += flen; in RSA_padding_add_X931()
60 const unsigned char *from, int flen, int num) in RSA_padding_check_X931() argument
66 if ((num != flen) || ((*p != 0x6A) && (*p != 0x6B))) { in RSA_padding_check_X931()
72 j = flen - 3; in RSA_padding_check_X931()
91 j = flen - 2; in RSA_padding_check_X931()
Drsa_crpt.c33 int RSA_public_encrypt(int flen, const unsigned char *from, unsigned char *to, in RSA_public_encrypt() argument
36 return rsa->meth->rsa_pub_enc(flen, from, to, rsa, padding); in RSA_public_encrypt()
39 int RSA_private_encrypt(int flen, const unsigned char *from, in RSA_private_encrypt() argument
42 return rsa->meth->rsa_priv_enc(flen, from, to, rsa, padding); in RSA_private_encrypt()
45 int RSA_private_decrypt(int flen, const unsigned char *from, in RSA_private_decrypt() argument
48 return rsa->meth->rsa_priv_dec(flen, from, to, rsa, padding); in RSA_private_decrypt()
51 int RSA_public_decrypt(int flen, const unsigned char *from, unsigned char *to, in RSA_public_decrypt() argument
54 return rsa->meth->rsa_pub_dec(flen, from, to, rsa, padding); in RSA_public_decrypt()
Drsa_meth.c107 (int flen, const unsigned char *from, in RSA_meth_get_pub_enc()
114 int (*pub_enc) (int flen, const unsigned char *from, in RSA_meth_set_pub_enc()
123 (int flen, const unsigned char *from, in RSA_meth_get_pub_dec()
130 int (*pub_dec) (int flen, const unsigned char *from, in RSA_meth_set_pub_dec()
139 (int flen, const unsigned char *from, in RSA_meth_get_priv_enc()
146 int (*priv_enc) (int flen, const unsigned char *from, in RSA_meth_set_priv_enc()
155 (int flen, const unsigned char *from, in RSA_meth_get_priv_dec()
162 int (*priv_dec) (int flen, const unsigned char *from, in RSA_meth_set_priv_dec()
Drsa_ossl.c21 static int rsa_ossl_public_encrypt(int flen, const unsigned char *from,
23 static int rsa_ossl_private_encrypt(int flen, const unsigned char *from,
25 static int rsa_ossl_public_decrypt(int flen, const unsigned char *from,
27 static int rsa_ossl_private_decrypt(int flen, const unsigned char *from,
74 static int rsa_ossl_public_encrypt(int flen, const unsigned char *from, in rsa_ossl_public_encrypt() argument
115 from, flen); in rsa_ossl_public_encrypt()
119 from, flen, NULL, 0, in rsa_ossl_public_encrypt()
123 i = RSA_padding_add_none(buf, num, from, flen); in rsa_ossl_public_encrypt()
242 static int rsa_ossl_private_encrypt(int flen, const unsigned char *from, in rsa_ossl_private_encrypt() argument
272 i = RSA_padding_add_PKCS1_type_1(buf, num, from, flen); in rsa_ossl_private_encrypt()
[all …]
Drsa_local.h105 int (*rsa_pub_enc) (int flen, const unsigned char *from,
107 int (*rsa_pub_dec) (int flen, const unsigned char *from,
109 int (*rsa_priv_enc) (int flen, const unsigned char *from,
111 int (*rsa_priv_dec) (int flen, const unsigned char *from,
194 int flen);
/third_party/openssl/ohos_lite/include/openssl/
Drsa.h255 int RSA_public_encrypt(int flen, const unsigned char *from,
257 int RSA_private_encrypt(int flen, const unsigned char *from,
259 int RSA_public_decrypt(int flen, const unsigned char *from,
261 int RSA_private_decrypt(int flen, const unsigned char *from,
354 const unsigned char *from, int flen,
358 const unsigned char *from, int flen,
432 (int flen, const unsigned char *from,
435 int (*pub_enc) (int flen, const unsigned char *from,
439 (int flen, const unsigned char *from,
442 int (*pub_dec) (int flen, const unsigned char *from,
[all …]
/third_party/openssl/include/openssl/
Drsa.h282 int RSA_public_encrypt(int flen, const unsigned char *from, unsigned char *to,
285 int RSA_private_encrypt(int flen, const unsigned char *from, unsigned char *to,
288 int RSA_public_decrypt(int flen, const unsigned char *from, unsigned char *to,
291 int RSA_private_decrypt(int flen, const unsigned char *from, unsigned char *to,
402 const unsigned char *from, int flen,
407 const unsigned char *from, int flen,
485 int (*RSA_meth_get_pub_enc(const RSA_METHOD *meth)) (int flen,
491 int (*pub_enc) (int flen, const unsigned char *from,
495 int (*RSA_meth_get_pub_dec(const RSA_METHOD *meth)) (int flen,
501 int (*pub_dec) (int flen, const unsigned char *from,
[all …]
/third_party/node/deps/openssl/openssl/include/openssl/
Drsa.h282 int RSA_public_encrypt(int flen, const unsigned char *from, unsigned char *to,
285 int RSA_private_encrypt(int flen, const unsigned char *from, unsigned char *to,
288 int RSA_public_decrypt(int flen, const unsigned char *from, unsigned char *to,
291 int RSA_private_decrypt(int flen, const unsigned char *from, unsigned char *to,
402 const unsigned char *from, int flen,
407 const unsigned char *from, int flen,
485 int (*RSA_meth_get_pub_enc(const RSA_METHOD *meth)) (int flen,
491 int (*pub_enc) (int flen, const unsigned char *from,
495 int (*RSA_meth_get_pub_dec(const RSA_METHOD *meth)) (int flen,
501 int (*pub_dec) (int flen, const unsigned char *from,
[all …]
/third_party/ltp/testcases/network/tcp_cmds/sendfile/
Dtestsf_s.c39 int pid, nbytes, flen, count; in main() local
130 count = flen = 0; in main()
138 flen = strtol(number, NULL, 10); in main()
153 if ((rc = sendfile(as, fd, offset, flen)) != flen) { in main()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/
Dwpa_helpers.c169 size_t len, flen; in get_wpa_status() local
183 flen = strlen(field); in get_wpa_status()
185 while (pos + flen < buf + len) { in get_wpa_status()
193 if (strncmp(pos, field, flen) != 0 || pos[flen] != '=') { in get_wpa_status()
197 pos += flen + 1; in get_wpa_status()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/
Dwpa_helpers.c169 size_t len, flen; in get_wpa_status() local
183 flen = strlen(field); in get_wpa_status()
185 while (pos + flen < buf + len) { in get_wpa_status()
193 if (strncmp(pos, field, flen) != 0 || pos[flen] != '=') { in get_wpa_status()
197 pos += flen + 1; in get_wpa_status()
/third_party/libwebsockets/lib/tls/openssl/
Dopenssl-server.c172 lws_filepos_t flen; local
263 mem_cert_len, &p, &flen)) {
276 flen, p);
279 (uint8_t *)p, (int)flen,
291 &p, &flen)) {
304 flen);
313 flen);
316 ret = wolfSSL_CTX_use_PrivateKey_buffer(vhost->tls.ssl_ctx, p, flen,
339 mem_cert_len, &p, &flen)) {
344 (int)flen,
[all …]
/third_party/libwebsockets/lib/tls/mbedtls/
Dmbedtls-server.c110 lws_filepos_t flen; in lws_tls_server_certs_load() local
150 mem_cert_len, &p, &flen)) { in lws_tls_server_certs_load()
156 err = SSL_CTX_use_certificate_ASN1(vhost->tls.ssl_ctx, (int)flen, p); in lws_tls_server_certs_load()
165 &p, &flen)) { in lws_tls_server_certs_load()
171 err = SSL_CTX_use_PrivateKey_ASN1(0, vhost->tls.ssl_ctx, p, (long)flen); in lws_tls_server_certs_load()
190 lws_filepos_t flen; in lws_tls_server_vhost_backend_init() local
207 info->ssl_ca_filepath, NULL, 0, &p, &flen)) { in lws_tls_server_vhost_backend_init()
214 if (SSL_CTX_add_client_CA_ASN1(vhost->tls.ssl_ctx, (int)flen, p) != 1) { in lws_tls_server_vhost_backend_init()
/third_party/rust/crates/rust-openssl/openssl-sys/src/handwritten/
Drsa.rs64 flen: c_int, in RSA_public_encrypt()
71 flen: c_int, in RSA_private_encrypt()
78 flen: c_int, in RSA_public_decrypt()
85 flen: c_int, in RSA_private_decrypt()

1234