Searched defs:flen (Results 1 - 25 of 44) sorted by relevance

12

/external/openssl/crypto/rsa/
H A Drsa_none.c66 const unsigned char *from, int flen)
68 if (flen > tlen)
74 if (flen < tlen)
80 memcpy(to,from,(unsigned int)flen);
85 const unsigned char *from, int flen, int num)
88 if (flen > tlen)
94 memset(to,0,tlen-flen);
95 memcpy(to+tlen-flen,from,flen);
65 RSA_padding_add_none(unsigned char *to, int tlen, const unsigned char *from, int flen) argument
84 RSA_padding_check_none(unsigned char *to, int tlen, const unsigned char *from, int flen, int num) argument
H A Drsa_null.c72 static int RSA_null_public_encrypt(int flen, const unsigned char *from,
74 static int RSA_null_private_encrypt(int flen, const unsigned char *from,
76 static int RSA_null_public_decrypt(int flen, const unsigned char *from,
78 static int RSA_null_private_decrypt(int flen, const unsigned char *from,
107 static int RSA_null_public_encrypt(int flen, const unsigned char *from, argument
114 static int RSA_null_private_encrypt(int flen, const unsigned char *from, argument
121 static int RSA_null_private_decrypt(int flen, const unsigned char *from, argument
128 static int RSA_null_public_decrypt(int flen, const unsigned char *from, argument
H A Drsa_ssl.c66 const unsigned char *from, int flen)
71 if (flen > (tlen-11))
83 j=tlen-3-8-flen;
101 memcpy(p,from,(unsigned int)flen);
106 const unsigned char *from, int flen, int num)
112 if (flen < 10)
117 if ((num != (flen+1)) || (*(p++) != 02))
124 j=flen-1; /* one for type */
65 RSA_padding_add_SSLv23(unsigned char *to, int tlen, const unsigned char *from, int flen) argument
105 RSA_padding_check_SSLv23(unsigned char *to, int tlen, const unsigned char *from, int flen, int num) argument
H A Drsa_x931.c67 const unsigned char *from, int flen)
76 j = tlen - flen - 2;
99 memcpy(p,from,(unsigned int)flen);
100 p += flen;
106 const unsigned char *from, int flen, int num)
112 if ((num != flen) || ((*p != 0x6A) && (*p != 0x6B)))
120 j=flen-3;
143 else j = flen - 2;
66 RSA_padding_add_X931(unsigned char *to, int tlen, const unsigned char *from, int flen) argument
105 RSA_padding_check_X931(unsigned char *to, int tlen, const unsigned char *from, int flen, int num) argument
H A Drsa_pk1.c68 const unsigned char *from, int flen)
73 if (flen > (tlen-RSA_PKCS1_PADDING_SIZE))
85 j=tlen-3-flen;
89 memcpy(p,from,(unsigned int)flen);
94 const unsigned char *from, int flen, int num)
100 if ((num != (flen+1)) || (*(p++) != 01))
107 j=flen-1; /* one for type. */
146 const unsigned char *from, int flen)
151 if (flen > (tlen-11))
163 j=tlen-3-flen;
67 RSA_padding_add_PKCS1_type_1(unsigned char *to, int tlen, const unsigned char *from, int flen) argument
93 RSA_padding_check_PKCS1_type_1(unsigned char *to, int tlen, const unsigned char *from, int flen, int num) argument
145 RSA_padding_add_PKCS1_type_2(unsigned char *to, int tlen, const unsigned char *from, int flen) argument
183 RSA_padding_check_PKCS1_type_2(unsigned char *to, int tlen, const unsigned char *from, int flen, int num) argument
[all...]
H A Drsa_crpt.c75 int RSA_public_encrypt(int flen, const unsigned char *from, unsigned char *to, argument
86 return(rsa->meth->rsa_pub_enc(flen, from, to, rsa, padding));
89 int RSA_private_encrypt(int flen, const unsigned char *from, unsigned char *to, argument
100 return(rsa->meth->rsa_priv_enc(flen, from, to, rsa, padding));
103 int RSA_private_decrypt(int flen, const unsigned char *from, unsigned char *to, argument
114 return(rsa->meth->rsa_priv_dec(flen, from, to, rsa, padding));
117 int RSA_public_decrypt(int flen, const unsigned char *from, unsigned char *to, argument
128 return(rsa->meth->rsa_pub_dec(flen, from, to, rsa, padding));
H A Drsa_oaep.c36 const unsigned char *from, int flen,
43 if (flen > emlen - 2 * SHA_DIGEST_LENGTH - 1)
63 emlen - flen - 2 * SHA_DIGEST_LENGTH - 1);
64 db[emlen - flen - SHA_DIGEST_LENGTH - 1] = 0x01;
65 memcpy(db + emlen - flen - SHA_DIGEST_LENGTH, from, (unsigned int) flen);
96 const unsigned char *from, int flen, int num,
107 if (tlen <= 0 || flen <= 0)
111 * |num| is the length of the modulus; |flen| is the length of the
113 * decrypting a ciphertext, we must have |flen| <
35 RSA_padding_add_PKCS1_OAEP(unsigned char *to, int tlen, const unsigned char *from, int flen, const unsigned char *param, int plen) argument
95 RSA_padding_check_PKCS1_OAEP(unsigned char *to, int tlen, const unsigned char *from, int flen, int num, const unsigned char *param, int plen) argument
[all...]
H A Drsa_eay.c120 static int RSA_eay_public_encrypt(int flen, const unsigned char *from,
122 static int RSA_eay_private_encrypt(int flen, const unsigned char *from,
124 static int RSA_eay_public_decrypt(int flen, const unsigned char *from,
126 static int RSA_eay_private_decrypt(int flen, const unsigned char *from,
153 static int RSA_eay_public_encrypt(int flen, const unsigned char *from, argument
198 i=RSA_padding_add_PKCS1_type_2(buf,num,from,flen);
202 i=RSA_padding_add_PKCS1_OAEP(buf,num,from,flen,NULL,0);
206 i=RSA_padding_add_SSLv23(buf,num,from,flen);
209 i=RSA_padding_add_none(buf,num,from,flen);
350 static int RSA_eay_private_encrypt(int flen, cons argument
492 RSA_eay_private_decrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument
633 RSA_eay_public_decrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument
[all...]
/external/chromium_org/third_party/yasm/source/patched-yasm/libyasm/
H A Dbc-incbin.c137 unsigned long start = 0, maxlen = 0xFFFFFFFFUL, flen; local
179 flen = (unsigned long)ftell(f);
183 if (start > flen) {
187 start = flen;
189 flen -= start;
191 if (maxlen < flen)
192 flen = maxlen;
193 bc->len += flen;
/external/wpa_supplicant_8/hostapd/src/common/
H A Dwpa_helpers.c169 size_t len, flen; local
182 flen = strlen(field);
184 while (pos + flen < buf + len) {
192 if (strncmp(pos, field, flen) != 0 || pos[flen] != '=') {
196 pos += flen + 1;
/external/wpa_supplicant_8/hostapd/src/eap_peer/
H A Deap_pax.c332 u16 flen, mlen; local
341 flen = len - EAP_PAX_ICV_LEN;
434 resp = eap_pax_process_std_1(data, ret, id, req, flen);
437 resp = eap_pax_process_std_3(data, ret, id, req, flen);
/external/wpa_supplicant_8/src/common/
H A Dwpa_helpers.c169 size_t len, flen; local
182 flen = strlen(field);
184 while (pos + flen < buf + len) {
192 if (strncmp(pos, field, flen) != 0 || pos[flen] != '=') {
196 pos += flen + 1;
/external/wpa_supplicant_8/src/eap_peer/
H A Deap_pax.c332 u16 flen, mlen; local
341 flen = len - EAP_PAX_ICV_LEN;
434 resp = eap_pax_process_std_1(data, ret, id, req, flen);
437 resp = eap_pax_process_std_3(data, ret, id, req, flen);
/external/wpa_supplicant_8/wpa_supplicant/src/common/
H A Dwpa_helpers.c169 size_t len, flen; local
182 flen = strlen(field);
184 while (pos + flen < buf + len) {
192 if (strncmp(pos, field, flen) != 0 || pos[flen] != '=') {
196 pos += flen + 1;
/external/wpa_supplicant_8/wpa_supplicant/src/eap_peer/
H A Deap_pax.c332 u16 flen, mlen; local
341 flen = len - EAP_PAX_ICV_LEN;
434 resp = eap_pax_process_std_1(data, ret, id, req, flen);
437 resp = eap_pax_process_std_3(data, ret, id, req, flen);
/external/chromium_org/third_party/boringssl/src/crypto/rsa/
H A Dpadding.c69 const uint8_t *from, unsigned flen) {
79 if (flen > tlen - RSA_PKCS1_PADDING_SIZE) {
91 j = tlen - 3 - flen;
95 memcpy(p, from, (unsigned int)flen);
100 const uint8_t *from, unsigned flen) {
104 if (flen < 2) {
118 j = flen - 2; /* one for leading 00, one for type. */
158 const uint8_t *from, unsigned flen) {
168 if (flen > tlen - RSA_PKCS1_PADDING_SIZE) {
180 j = tlen - 3 - flen;
68 RSA_padding_add_PKCS1_type_1(uint8_t *to, unsigned tlen, const uint8_t *from, unsigned flen) argument
99 RSA_padding_check_PKCS1_type_1(uint8_t *to, unsigned tlen, const uint8_t *from, unsigned flen) argument
157 RSA_padding_add_PKCS1_type_2(uint8_t *to, unsigned tlen, const uint8_t *from, unsigned flen) argument
262 RSA_padding_check_PKCS1_type_2(uint8_t *to, unsigned tlen, const uint8_t *from, unsigned flen) argument
294 RSA_padding_add_none(uint8_t *to, unsigned tlen, const uint8_t *from, unsigned flen) argument
311 RSA_padding_check_none(uint8_t *to, unsigned tlen, const uint8_t *from, unsigned flen) argument
365 RSA_padding_add_PKCS1_OAEP_mgf1(uint8_t *to, unsigned tlen, const uint8_t *from, unsigned flen, const uint8_t *param, unsigned plen, const EVP_MD *md, const EVP_MD *mgf1md) argument
445 RSA_padding_check_PKCS1_OAEP_mgf1(uint8_t *to, unsigned tlen, const uint8_t *from, unsigned flen, const uint8_t *param, unsigned plen, const EVP_MD *md, const EVP_MD *mgf1md) argument
[all...]
H A Drsa.c177 int RSA_public_encrypt(int flen, const uint8_t *from, uint8_t *to, RSA *rsa, argument
181 if (!RSA_encrypt(rsa, &out_len, to, RSA_size(rsa), from, flen, padding)) {
198 int RSA_private_encrypt(int flen, const uint8_t *from, uint8_t *to, RSA *rsa, argument
202 if (!RSA_sign_raw(rsa, &out_len, to, RSA_size(rsa), from, flen, padding)) {
219 int RSA_private_decrypt(int flen, const uint8_t *from, uint8_t *to, RSA *rsa, argument
223 if (!RSA_decrypt(rsa, &out_len, to, RSA_size(rsa), from, flen, padding)) {
240 int RSA_public_decrypt(int flen, const uint8_t *from, uint8_t *to, RSA *rsa, argument
244 if (!RSA_verify_raw(rsa, &out_len, to, RSA_size(rsa), from, flen, padding)) {
/external/chromium_org/third_party/mesa/src/src/egl/main/
H A Degldriver.c326 size_t flen = strlen(filename); local
329 if (len + flen + 2 > sizeof(path))
335 memcpy(path + len, filename, flen);
336 len += flen;
345 p = filename + flen - slen;
/external/libpng/contrib/gregbook/
H A Drpng-win.c171 int rc, alen, flen; local
393 flen = strlen(filename);
394 if (alen + flen + 3 > 1023)
395 sprintf(titlebar, "%s: ...%s", appname, filename+(alen+flen+6-1023));
H A Drpng-x.c168 int rc, alen, flen; local
342 flen = strlen(filename);
343 if (alen + flen + 3 > 1023)
344 sprintf(titlebar, "%s: ...%s", appname, filename+(alen+flen+6-1023));
/external/mesa3d/src/egl/main/
H A Degldriver.c326 size_t flen = strlen(filename); local
329 if (len + flen + 2 > sizeof(path))
335 memcpy(path + len, filename, flen);
336 len += flen;
345 p = filename + flen - slen;
/external/qemu/distrib/sdl-1.2.15/src/file/
H A DSDL_rwops.c446 int flen = SDL_strlen(file); local
447 char *path = SDL_malloc(flen + 2);
458 while(src < file + flen) {
462 end = file + flen; /* last component */
473 if(end < file + flen)
/external/srec/srec_jni/
H A Dandroid_speech_srec_Recognizer.cpp439 size_t flen = sizeof(filename) - 1; local
440 checkEsrError(env, ESR_SessionGetLCHAR ( L("cmdline.vocabulary"), filename, &flen ));
/external/mksh/src/
H A Deval.c429 mksh_ari_t from = 0, num = -1, flen, finc = 0; local
460 flen = utflen(beg);
462 if (-from < flen)
463 finc = flen + from;
465 finc = from < flen ? from : flen;
469 flen = utflen(beg);
470 if (num < 0 || num > flen)
471 num = flen;
/external/wpa_supplicant_8/hostapd/
H A Dhostapd_cli.c136 int flen; local
141 flen = strlen(ctrl_iface_dir) + strlen(ifname) + 2;
142 cfile = malloc(flen);
145 snprintf(cfile, flen, "%s/%s", ctrl_iface_dir, ifname);

Completed in 2016 milliseconds

12