/third_party/openssl/crypto/rsa/ |
D | rsa_pk1.c | 19 const unsigned char *from, int flen) in RSA_padding_add_PKCS1_type_1() argument 24 if (flen > (tlen - RSA_PKCS1_PADDING_SIZE)) { in RSA_padding_add_PKCS1_type_1() 36 j = tlen - 3 - flen; in RSA_padding_add_PKCS1_type_1() 40 memcpy(p, from, (unsigned int)flen); in RSA_padding_add_PKCS1_type_1() 45 const unsigned char *from, int flen, in RSA_padding_check_PKCS1_type_1() argument 64 if (num == flen) { in RSA_padding_check_PKCS1_type_1() 70 flen--; in RSA_padding_check_PKCS1_type_1() 73 if ((num != (flen + 1)) || (*(p++) != 0x01)) { in RSA_padding_check_PKCS1_type_1() 80 j = flen - 1; /* one for type. */ in RSA_padding_check_PKCS1_type_1() 118 const unsigned char *from, int flen) in RSA_padding_add_PKCS1_type_2() argument [all …]
|
D | rsa_none.c | 15 const unsigned char *from, int flen) in RSA_padding_add_none() argument 17 if (flen > tlen) { in RSA_padding_add_none() 22 if (flen < tlen) { in RSA_padding_add_none() 27 memcpy(to, from, (unsigned int)flen); in RSA_padding_add_none() 32 const unsigned char *from, int flen, int num) in RSA_padding_check_none() argument 35 if (flen > tlen) { in RSA_padding_check_none() 40 memset(to, 0, tlen - flen); in RSA_padding_check_none() 41 memcpy(to + tlen - flen, from, flen); in RSA_padding_check_none()
|
D | rsa_x931.c | 17 const unsigned char *from, int flen) in RSA_padding_add_X931() argument 27 j = tlen - flen - 2; in RSA_padding_add_X931() 47 memcpy(p, from, (unsigned int)flen); in RSA_padding_add_X931() 48 p += flen; in RSA_padding_add_X931() 54 const unsigned char *from, int flen, int num) in RSA_padding_check_X931() argument 60 if ((num != flen) || ((*p != 0x6A) && (*p != 0x6B))) { in RSA_padding_check_X931() 66 j = flen - 3; in RSA_padding_check_X931() 85 j = flen - 2; in RSA_padding_check_X931()
|
D | rsa_oaep.c | 34 const unsigned char *from, int flen, in RSA_padding_add_PKCS1_OAEP() argument 37 return RSA_padding_add_PKCS1_OAEP_mgf1(to, tlen, from, flen, in RSA_padding_add_PKCS1_OAEP() 42 const unsigned char *from, int flen, in RSA_padding_add_PKCS1_OAEP_mgf1() argument 60 if (flen > emlen - 2 * mdlen - 1) { in RSA_padding_add_PKCS1_OAEP_mgf1() 78 memset(db + mdlen, 0, emlen - flen - 2 * mdlen - 1); in RSA_padding_add_PKCS1_OAEP_mgf1() 79 db[emlen - flen - mdlen - 1] = 0x01; in RSA_padding_add_PKCS1_OAEP_mgf1() 80 memcpy(db + emlen - flen - mdlen, from, (unsigned int)flen); in RSA_padding_add_PKCS1_OAEP_mgf1() 109 const unsigned char *from, int flen, int num, in RSA_padding_check_PKCS1_OAEP() argument 112 return RSA_padding_check_PKCS1_OAEP_mgf1(to, tlen, from, flen, num, in RSA_padding_check_PKCS1_OAEP() 117 const unsigned char *from, int flen, in RSA_padding_check_PKCS1_OAEP_mgf1() argument [all …]
|
D | rsa_ssl.c | 18 const unsigned char *from, int flen) in RSA_padding_add_SSLv23() argument 23 if (flen > (tlen - RSA_PKCS1_PADDING_SIZE)) { in RSA_padding_add_SSLv23() 35 j = tlen - 3 - 8 - flen; in RSA_padding_add_SSLv23() 52 memcpy(p, from, (unsigned int)flen); in RSA_padding_add_SSLv23() 62 const unsigned char *from, int flen, int num) in RSA_padding_check_SSLv23() argument 70 if (tlen <= 0 || flen <= 0) in RSA_padding_check_SSLv23() 73 if (flen > num || num < RSA_PKCS1_PADDING_SIZE) { in RSA_padding_check_SSLv23() 89 for (from += flen, em += num, i = 0; i < num; i++) { in RSA_padding_check_SSLv23() 90 mask = ~constant_time_is_zero(flen); in RSA_padding_check_SSLv23() 91 flen -= 1 & mask; in RSA_padding_check_SSLv23()
|
D | rsa_crpt.c | 27 int RSA_public_encrypt(int flen, const unsigned char *from, unsigned char *to, in RSA_public_encrypt() argument 30 return rsa->meth->rsa_pub_enc(flen, from, to, rsa, padding); in RSA_public_encrypt() 33 int RSA_private_encrypt(int flen, const unsigned char *from, in RSA_private_encrypt() argument 36 return rsa->meth->rsa_priv_enc(flen, from, to, rsa, padding); in RSA_private_encrypt() 39 int RSA_private_decrypt(int flen, const unsigned char *from, in RSA_private_decrypt() argument 42 return rsa->meth->rsa_priv_dec(flen, from, to, rsa, padding); in RSA_private_decrypt() 45 int RSA_public_decrypt(int flen, const unsigned char *from, unsigned char *to, in RSA_public_decrypt() argument 48 return rsa->meth->rsa_pub_dec(flen, from, to, rsa, padding); in RSA_public_decrypt()
|
D | rsa_meth.c | 101 (int flen, const unsigned char *from, in RSA_meth_get_pub_enc() 108 int (*pub_enc) (int flen, const unsigned char *from, in RSA_meth_set_pub_enc() 117 (int flen, const unsigned char *from, in RSA_meth_get_pub_dec() 124 int (*pub_dec) (int flen, const unsigned char *from, in RSA_meth_set_pub_dec() 133 (int flen, const unsigned char *from, in RSA_meth_get_priv_enc() 140 int (*priv_enc) (int flen, const unsigned char *from, in RSA_meth_set_priv_enc() 149 (int flen, const unsigned char *from, in RSA_meth_get_priv_dec() 156 int (*priv_dec) (int flen, const unsigned char *from, in RSA_meth_set_priv_dec()
|
D | rsa_ossl.c | 15 static int rsa_ossl_public_encrypt(int flen, const unsigned char *from, 17 static int rsa_ossl_private_encrypt(int flen, const unsigned char *from, 19 static int rsa_ossl_public_decrypt(int flen, const unsigned char *from, 21 static int rsa_ossl_private_decrypt(int flen, const unsigned char *from, 68 static int rsa_ossl_public_encrypt(int flen, const unsigned char *from, in rsa_ossl_public_encrypt() argument 108 i = RSA_padding_add_PKCS1_type_2(buf, num, from, flen); in rsa_ossl_public_encrypt() 111 i = RSA_padding_add_PKCS1_OAEP(buf, num, from, flen, NULL, 0); in rsa_ossl_public_encrypt() 114 i = RSA_padding_add_SSLv23(buf, num, from, flen); in rsa_ossl_public_encrypt() 117 i = RSA_padding_add_none(buf, num, from, flen); in rsa_ossl_public_encrypt() 233 static int rsa_ossl_private_encrypt(int flen, const unsigned char *from, in rsa_ossl_private_encrypt() argument [all …]
|
D | rsa_local.h | 70 int (*rsa_pub_enc) (int flen, const unsigned char *from, 72 int (*rsa_pub_dec) (int flen, const unsigned char *from, 74 int (*rsa_priv_enc) (int flen, const unsigned char *from, 76 int (*rsa_priv_dec) (int flen, const unsigned char *from,
|
/third_party/iptables/extensions/ |
D | libebt_among.c | 127 long flen = 0; in bramong_parse() local 141 flen = stats.st_size; in bramong_parse() 143 optarg = mmap(0, flen, PROT_READ | PROT_WRITE, in bramong_parse() 148 if (optarg[flen-1] != '\n') in bramong_parse() 151 if (strchr(optarg, '\n') != optarg+flen-1) in bramong_parse() 154 optarg[flen-1] = '\0'; in bramong_parse() 187 munmap(argv, flen); in bramong_parse()
|
/third_party/openssl/include/openssl/ |
D | rsa.h | 255 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/ltp/testcases/network/tcp_cmds/sendfile/ |
D | testsf_s.c | 39 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_standard/src/common/ |
D | wpa_helpers.c | 169 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/src/common/ |
D | wpa_helpers.c | 169 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/openssl/engines/ |
D | e_dasync.c | 97 static int dasync_pub_enc(int flen, const unsigned char *from, 99 static int dasync_pub_dec(int flen, const unsigned char *from, 101 static int dasync_rsa_priv_enc(int flen, const unsigned char *from, 103 static int dasync_rsa_priv_dec(int flen, const unsigned char *from, 516 static int dasync_pub_enc(int flen, const unsigned char *from, in dasync_pub_enc() argument 521 (flen, from, to, rsa, padding); in dasync_pub_enc() 524 static int dasync_pub_dec(int flen, const unsigned char *from, in dasync_pub_dec() argument 529 (flen, from, to, rsa, padding); in dasync_pub_dec() 532 static int dasync_rsa_priv_enc(int flen, const unsigned char *from, in dasync_rsa_priv_enc() argument 538 (flen, from, to, rsa, padding); in dasync_rsa_priv_enc() [all …]
|
/third_party/libwebsockets/lib/tls/openssl/ |
D | openssl-server.c | 172 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/ |
D | mbedtls-server.c | 110 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()
|
D | mbedtls-client.c | 177 lws_filepos_t flen; in lws_ssl_client_bio_create() local 197 &data, &flen)) in lws_ssl_client_bio_create() 199 size = (size_t) flen; in lws_ssl_client_bio_create() 220 &data, &flen)) in lws_ssl_client_bio_create() 222 size = (size_t) flen; in lws_ssl_client_bio_create()
|
/third_party/openssl/doc/man3/ |
D | RSA_public_encrypt.pod | 11 int RSA_public_encrypt(int flen, const unsigned char *from, 14 int RSA_private_decrypt(int flen, const unsigned char *from, 19 RSA_public_encrypt() encrypts the B<flen> bytes at B<from> (usually a 51 B<flen> must not be more than RSA_size(B<rsa>) - 11 for the PKCS #1 v1.5 62 RSA_private_decrypt() decrypts the B<flen> bytes at B<from> using the 63 private key B<rsa> and stores the plaintext in B<to>. B<flen> should
|
D | RSA_private_encrypt.pod | 11 int RSA_private_encrypt(int flen, unsigned char *from, 14 int RSA_public_decrypt(int flen, unsigned char *from, 21 RSA_private_encrypt() signs the B<flen> bytes at B<from> (usually a 45 RSA_public_decrypt() recovers the message digest from the B<flen>
|
D | RSA_meth_new.pod | 37 int (*RSA_meth_get_pub_enc(const RSA_METHOD *meth))(int flen, const unsigned char *from, 40 int (*pub_enc)(int flen, const unsigned char *from, 45 (int flen, const unsigned char *from, 48 int (*pub_dec)(int flen, const unsigned char *from, 52 int (*RSA_meth_get_priv_enc(const RSA_METHOD *meth))(int flen, const unsigned char *from, 56 int (*priv_enc)(int flen, const unsigned char *from, 59 int (*RSA_meth_get_priv_dec(const RSA_METHOD *meth))(int flen, const unsigned char *from, 63 int (*priv_dec)(int flen, const unsigned char *from,
|
/third_party/alsa-lib/src/rawmidi/ |
D | rawmidi_hw.c | 199 size_t flen; in read_from_ts_buf() local 222 flen = f->length - hw->buf_fpos; in read_from_ts_buf() 223 if (size < flen) { in read_from_ts_buf() 230 memcpy(buffer, f->data + hw->buf_fpos, flen); in read_from_ts_buf() 232 buffer += flen; in read_from_ts_buf() 233 size -= flen; in read_from_ts_buf() 234 result += flen; in read_from_ts_buf()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/rsn_supp/ |
D | wpa_ie.c | 358 size_t flen; in wpa_gen_rsnxe() local 376 flen = (capab & 0xff00) ? 2 : 1; in wpa_gen_rsnxe() 379 if (rsnxe_len < 2 + flen) in wpa_gen_rsnxe() 381 capab |= flen - 1; /* bit 0-3 = Field length (n - 1) */ in wpa_gen_rsnxe() 384 *pos++ = flen; in wpa_gen_rsnxe()
|
/third_party/alsa-utils/alsactl/ |
D | utils.c | 295 size_t flen; in cleanup_filename_filter() local 302 flen = strlen(dirent->d_name); in cleanup_filename_filter() 303 if (flen <= 5) in cleanup_filename_filter() 306 if (strncmp(&dirent->d_name[flen-5], ".conf", 5) == 0) in cleanup_filename_filter()
|
/third_party/libwebsockets/lib/misc/fts/ |
D | trie-fd.c | 89 uint32_t flen; in lws_fts_filepath() local 122 bp += rq32(&buf[bp], &flen); in lws_fts_filepath() 126 bp += rq32(&buf[bp], &flen); in lws_fts_filepath() 127 bp += rq32(&buf[bp], &flen); in lws_fts_filepath() 129 m = flen; in lws_fts_filepath() 131 m = flen - 1; in lws_fts_filepath() 173 jtf->flen = (jg2_file_offset)ot; in lws_fts_adopt() 175 if (jtf->flen != b32(&buf[8])) { in lws_fts_adopt()
|