Home
last modified time | relevance | path

Searched refs:dlen (Results 1 – 25 of 63) sorted by relevance

123

/external/openssl/crypto/ecdsa/
Decs_sign.c62 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, int dlen, EC_KEY *eckey) in ECDSA_do_sign() argument
64 return ECDSA_do_sign_ex(dgst, dlen, NULL, NULL, eckey); in ECDSA_do_sign()
67 ECDSA_SIG *ECDSA_do_sign_ex(const unsigned char *dgst, int dlen, in ECDSA_do_sign_ex() argument
73 return ecdsa->meth->ecdsa_do_sign(dgst, dlen, kinv, rp, eckey); in ECDSA_do_sign_ex()
76 int ECDSA_sign(int type, const unsigned char *dgst, int dlen, unsigned char in ECDSA_sign() argument
79 return ECDSA_sign_ex(type, dgst, dlen, sig, siglen, NULL, NULL, eckey); in ECDSA_sign()
82 int ECDSA_sign_ex(int type, const unsigned char *dgst, int dlen, unsigned char in ECDSA_sign_ex() argument
87 RAND_seed(dgst, dlen); in ECDSA_sign_ex()
88 s = ECDSA_do_sign_ex(dgst, dlen, kinv, r, eckey); in ECDSA_sign_ex()
/external/dropbear/libtomcrypt/src/pk/asn1/der/bit/
Dder_decode_bit_string.c32 unsigned long dlen, blen, x, y; in der_decode_bit_string() local
62 dlen = 0; in der_decode_bit_string()
64 dlen = (dlen << 8) | (unsigned long)in[x++]; in der_decode_bit_string()
68 dlen = in[x++] & 0x7F; in der_decode_bit_string()
72 if ((dlen == 0) || (dlen + x > inlen)) { in der_decode_bit_string()
77 blen = ((dlen - 1) << 3) - (in[x++] & 7); in der_decode_bit_string()
/external/tcpdump/missing/
Dstrlcat.c56 size_t dlen; in strlcat() local
61 dlen = d - dst; in strlcat()
62 n = siz - dlen; in strlcat()
65 return(dlen + strlen(s)); in strlcat()
75 return(dlen + (s - src)); /* count does not include NUL */ in strlcat()
/external/openssl/crypto/dsa/
Ddsa_sign.c65 DSA_SIG * DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa) in DSA_do_sign() argument
67 return dsa->meth->dsa_do_sign(dgst, dlen, dsa); in DSA_do_sign()
70 int DSA_sign(int type, const unsigned char *dgst, int dlen, unsigned char *sig, in DSA_sign() argument
74 RAND_seed(dgst, dlen); in DSA_sign()
75 s=DSA_do_sign(dgst,dlen,dsa); in DSA_sign()
Ddsa_ossl.c69 static DSA_SIG *dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa);
131 static DSA_SIG *dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa) in dsa_do_sign() argument
167 if (dlen > BN_num_bytes(dsa->q)) in dsa_do_sign()
171 dlen = BN_num_bytes(dsa->q); in dsa_do_sign()
172 if (BN_bin2bn(dgst,dlen,&m) == NULL) in dsa_do_sign()
Ddsa.h117 DSA_SIG * (*dsa_do_sign)(const unsigned char *dgst, int dlen, DSA *dsa);
182 DSA_SIG * DSA_do_sign(const unsigned char *dgst,int dlen,DSA *dsa);
200 int DSA_sign(int type,const unsigned char *dgst,int dlen,
/external/skia/src/effects/
DSkDashPathEffect.cpp113 SkScalar dlen = SkScalarMul(fInitialDashLength, scale); in filterPath() local
116 SkASSERT(dlen >= 0); in filterPath()
118 if (is_even(index) && dlen > 0 && !skipFirstSegment) { in filterPath()
120 meas.getSegment(distance, distance + dlen, dst, true); in filterPath()
122 distance += dlen; in filterPath()
135 dlen = SkScalarMul(intervals[index], scale); in filterPath()
/external/wpa_supplicant_6/wpa_supplicant/src/crypto/
Dcrypto_cryptoapi.c167 DWORD dlen; in des_encrypt() local
214 dlen = 8; in des_encrypt()
215 if (!CryptEncrypt(ckey, 0, FALSE, 0, cypher, &dlen, 8)) { in des_encrypt()
303 DWORD dlen; in aes_encrypt() local
306 dlen = 16; in aes_encrypt()
307 if (!CryptEncrypt(akey->ckey, 0, FALSE, 0, crypt, &dlen, 16)) { in aes_encrypt()
335 DWORD dlen; in aes_decrypt() local
338 dlen = 16; in aes_decrypt()
340 if (!CryptDecrypt(akey->ckey, 0, FALSE, 0, plain, &dlen)) { in aes_decrypt()
603 DWORD dlen; in crypto_cipher_encrypt() local
[all …]
/external/wpa_supplicant_8/src/crypto/
Dcrypto_cryptoapi.c165 DWORD dlen; in des_encrypt() local
212 dlen = 8; in des_encrypt()
213 if (!CryptEncrypt(ckey, 0, FALSE, 0, cypher, &dlen, 8)) { in des_encrypt()
300 DWORD dlen; in aes_encrypt() local
303 dlen = 16; in aes_encrypt()
304 if (!CryptEncrypt(akey->ckey, 0, FALSE, 0, crypt, &dlen, 16)) { in aes_encrypt()
332 DWORD dlen; in aes_decrypt() local
335 dlen = 16; in aes_decrypt()
337 if (!CryptDecrypt(akey->ckey, 0, FALSE, 0, plain, &dlen)) { in aes_decrypt()
599 DWORD dlen; in crypto_cipher_encrypt() local
[all …]
/external/wpa_supplicant/
Dcrypto_cryptoapi.c182 DWORD dlen; in des_encrypt() local
229 dlen = 8; in des_encrypt()
230 if (!CryptEncrypt(ckey, 0, FALSE, 0, cypher, &dlen, 8)) { in des_encrypt()
318 DWORD dlen; in aes_encrypt() local
321 dlen = 16; in aes_encrypt()
322 if (!CryptEncrypt(akey->ckey, 0, FALSE, 0, crypt, &dlen, 16)) { in aes_encrypt()
350 DWORD dlen; in aes_decrypt() local
353 dlen = 16; in aes_decrypt()
355 if (!CryptDecrypt(akey->ckey, 0, FALSE, 0, plain, &dlen)) { in aes_decrypt()
618 DWORD dlen; in crypto_cipher_encrypt() local
[all …]
Deap_ttls.c1224 size_t pad, dlen; in eap_ttls_decrypt() local
1247 dlen = avp_length - sizeof(*avp); in eap_ttls_decrypt()
1249 if (dlen < 4) { in eap_ttls_decrypt()
1259 dlen -= 4; in eap_ttls_decrypt()
1262 wpa_hexdump(MSG_DEBUG, "EAP-TTLS: AVP data", dpos, dlen); in eap_ttls_decrypt()
1267 eapdata = os_malloc(dlen); in eap_ttls_decrypt()
1275 os_memcpy(eapdata, dpos, dlen); in eap_ttls_decrypt()
1276 eap_len = dlen; in eap_ttls_decrypt()
1279 eap_len + dlen); in eap_ttls_decrypt()
1287 os_memcpy(neweap + eap_len, dpos, dlen); in eap_ttls_decrypt()
[all …]
Dradius.c1097 size_t i, dlen; in radius_msg_get_attr() local
1109 dlen = attr->length - sizeof(*attr); in radius_msg_get_attr()
1111 os_memcpy(buf, (attr + 1), dlen > len ? len : dlen); in radius_msg_get_attr()
1112 return dlen; in radius_msg_get_attr()
1175 size_t dlen; in radius_msg_get_vlanid() local
1182 dlen = attr->length - sizeof(*attr); in radius_msg_get_vlanid()
1207 dlen--; in radius_msg_get_vlanid()
1209 if (dlen >= sizeof(buf)) in radius_msg_get_vlanid()
1211 os_memcpy(buf, data, dlen); in radius_msg_get_vlanid()
1212 buf[dlen] = '\0'; in radius_msg_get_vlanid()
/external/dropbear/
Dcompat.c135 size_t dlen; local
140 dlen = d - dst;
141 n = siz - dlen;
144 return(dlen + strlen(s));
154 return(dlen + (s - src)); /* count does not include NUL */
/external/iproute2/tc/
Dtc_stab.c147 unsigned i, j, dlen; in print_size_table()
149 dlen = RTA_PAYLOAD(tb[TCA_STAB_DATA]) / sizeof(__u16); in print_size_table()
152 for (i = 0; i < dlen/12; i++) { in print_size_table()
154 for (j = 0; i * 12 + j < dlen; j++) in print_size_table()
Dm_ematch.c371 int dlen; in print_ematch_seq() local
378 dlen = RTA_PAYLOAD(tb[i]) - sizeof(*hdr); in print_ematch_seq()
381 if (dlen < 0) in print_ematch_seq()
392 if (dlen < sizeof(__u32)) in print_ematch_seq()
414 if (e->print_eopt(fd, hdr, data, dlen) < 0) in print_ematch_seq()
/external/wpa_supplicant_6/wpa_supplicant/src/eap_server/
Deap_ttls.c179 size_t pad, dlen; in eap_ttls_avp_parse() local
200 dlen = avp_length - sizeof(*avp); in eap_ttls_avp_parse()
202 if (dlen < 4) { in eap_ttls_avp_parse()
211 dlen -= 4; in eap_ttls_avp_parse()
214 wpa_hexdump(MSG_DEBUG, "EAP-TTLS: AVP data", dpos, dlen); in eap_ttls_avp_parse()
219 parse->eap = os_malloc(dlen); in eap_ttls_avp_parse()
226 os_memcpy(parse->eap, dpos, dlen); in eap_ttls_avp_parse()
227 parse->eap_len = dlen; in eap_ttls_avp_parse()
230 parse->eap_len + dlen); in eap_ttls_avp_parse()
237 os_memcpy(neweap + parse->eap_len, dpos, dlen); in eap_ttls_avp_parse()
[all …]
/external/wpa_supplicant_8/src/eap_server/
Deap_server_ttls.c179 size_t pad, dlen; in eap_ttls_avp_parse() local
200 dlen = avp_length - sizeof(*avp); in eap_ttls_avp_parse()
202 if (dlen < 4) { in eap_ttls_avp_parse()
211 dlen -= 4; in eap_ttls_avp_parse()
214 wpa_hexdump(MSG_DEBUG, "EAP-TTLS: AVP data", dpos, dlen); in eap_ttls_avp_parse()
219 parse->eap = os_malloc(dlen); in eap_ttls_avp_parse()
226 os_memcpy(parse->eap, dpos, dlen); in eap_ttls_avp_parse()
227 parse->eap_len = dlen; in eap_ttls_avp_parse()
230 parse->eap_len + dlen); in eap_ttls_avp_parse()
237 os_memcpy(neweap + parse->eap_len, dpos, dlen); in eap_ttls_avp_parse()
[all …]
/external/qemu/telephony/
Dsms.c501 int dlen, adjust = 0; in sms_get_sc_address() local
520 for (dlen = 0; dlen < len; dlen+=1) in sms_get_sc_address()
522 int c = cur[dlen]; in sms_get_sc_address()
526 if (dlen >= sizeof(address->data)) { in sms_get_sc_address()
536 address->data[dlen] = (byte_t) c; in sms_get_sc_address()
543 address->len = 2*dlen + adjust; in sms_get_sc_address()
582 int len, dlen; in sms_get_address() local
587 dlen = *cur++; in sms_get_address()
589 if (dlen == 0) { in sms_get_address()
596 if (cur + 1 + (dlen+1)/2 > end) in sms_get_address()
[all …]
/external/qemu/audio/
Dwavcapture.c35 uint8_t dlen[4]; in wav_destroy() local
41 le_store (dlen, datalen, 4); in wav_destroy()
47 qemu_put_buffer (wav->f, dlen, 4); in wav_destroy()
/external/wpa_supplicant_6/wpa_supplicant/src/eap_peer/
Deap_ttls.c1065 static int eap_ttls_parse_attr_eap(const u8 *dpos, size_t dlen, in eap_ttls_parse_attr_eap() argument
1070 parse->eapdata = os_malloc(dlen); in eap_ttls_parse_attr_eap()
1076 os_memcpy(parse->eapdata, dpos, dlen); in eap_ttls_parse_attr_eap()
1077 parse->eap_len = dlen; in eap_ttls_parse_attr_eap()
1079 u8 *neweap = os_realloc(parse->eapdata, parse->eap_len + dlen); in eap_ttls_parse_attr_eap()
1085 os_memcpy(neweap + parse->eap_len, dpos, dlen); in eap_ttls_parse_attr_eap()
1087 parse->eap_len += dlen; in eap_ttls_parse_attr_eap()
1100 size_t dlen; in eap_ttls_parse_avp() local
1125 dlen = avp_length - sizeof(*avp); in eap_ttls_parse_avp()
1127 if (dlen < 4) { in eap_ttls_parse_avp()
[all …]
/external/wpa_supplicant_8/src/eap_peer/
Deap_ttls.c1068 static int eap_ttls_parse_attr_eap(const u8 *dpos, size_t dlen, in eap_ttls_parse_attr_eap() argument
1073 parse->eapdata = os_malloc(dlen); in eap_ttls_parse_attr_eap()
1079 os_memcpy(parse->eapdata, dpos, dlen); in eap_ttls_parse_attr_eap()
1080 parse->eap_len = dlen; in eap_ttls_parse_attr_eap()
1082 u8 *neweap = os_realloc(parse->eapdata, parse->eap_len + dlen); in eap_ttls_parse_attr_eap()
1088 os_memcpy(neweap + parse->eap_len, dpos, dlen); in eap_ttls_parse_attr_eap()
1090 parse->eap_len += dlen; in eap_ttls_parse_attr_eap()
1103 size_t dlen; in eap_ttls_parse_avp() local
1128 dlen = avp_length - sizeof(*avp); in eap_ttls_parse_avp()
1130 if (dlen < 4) { in eap_ttls_parse_avp()
[all …]
/external/ipsec-tools/src/racoon/
Disakmp_xauth.c1452 size_t dlen = 0; local
1487 dlen = 0;
1498 dlen = iph1->rmconf->xauth->login->l - 1;
1538 dlen = pwd->l;
1543 dlen = ntohs(attr->lorv);
1544 if (dlen > 0) {
1546 mdata = binsanitize(mraw, dlen);
1566 if ((buffer = vmalloc(sizeof(*attr) + dlen)) == NULL) {
1580 attr->lorv = htons(dlen);
1589 memcpy(data, iph1->rmconf->xauth->login->v, dlen);
[all …]
/external/wpa_supplicant_8/src/radius/
Dradius.c1143 size_t i, dlen; in radius_msg_get_attr() local
1156 dlen = attr->length - sizeof(*attr); in radius_msg_get_attr()
1158 os_memcpy(buf, (attr + 1), dlen > len ? len : dlen); in radius_msg_get_attr()
1159 return dlen; in radius_msg_get_attr()
1223 size_t dlen; in radius_msg_get_vlanid() local
1230 dlen = attr->length - sizeof(*attr); in radius_msg_get_vlanid()
1254 dlen--; in radius_msg_get_vlanid()
1256 if (dlen >= sizeof(buf)) in radius_msg_get_vlanid()
1258 os_memcpy(buf, data, dlen); in radius_msg_get_vlanid()
1259 buf[dlen] = '\0'; in radius_msg_get_vlanid()
/external/wpa_supplicant_6/wpa_supplicant/src/radius/
Dradius.c1101 size_t i, dlen; in radius_msg_get_attr() local
1114 dlen = attr->length - sizeof(*attr); in radius_msg_get_attr()
1116 os_memcpy(buf, (attr + 1), dlen > len ? len : dlen); in radius_msg_get_attr()
1117 return dlen; in radius_msg_get_attr()
1181 size_t dlen; in radius_msg_get_vlanid() local
1188 dlen = attr->length - sizeof(*attr); in radius_msg_get_vlanid()
1212 dlen--; in radius_msg_get_vlanid()
1214 if (dlen >= sizeof(buf)) in radius_msg_get_vlanid()
1216 os_memcpy(buf, data, dlen); in radius_msg_get_vlanid()
1217 buf[dlen] = '\0'; in radius_msg_get_vlanid()
/external/openssl/include/openssl/
Ddsa.h117 DSA_SIG * (*dsa_do_sign)(const unsigned char *dgst, int dlen, DSA *dsa);
182 DSA_SIG * DSA_do_sign(const unsigned char *dgst,int dlen,DSA *dsa);
200 int DSA_sign(int type,const unsigned char *dgst,int dlen,

123