Searched refs:bin_len (Results 1 – 6 of 6) sorted by relevance
/external/python/cpython2/Modules/ |
D | binascii.c | 197 Py_ssize_t ascii_len, bin_len; in binascii_a2b_uu() local 207 bin_len = (*ascii_data++ - ' ') & 077; in binascii_a2b_uu() 211 if ( (rv=PyString_FromStringAndSize(NULL, bin_len)) == NULL ) { in binascii_a2b_uu() 217 for( ; bin_len > 0 ; ascii_len--, ascii_data++ ) { in binascii_a2b_uu() 250 bin_len--; in binascii_a2b_uu() 283 Py_ssize_t bin_len; in binascii_b2a_uu() local 288 bin_len = pbin.len; in binascii_b2a_uu() 289 if ( bin_len > 45 ) { in binascii_b2a_uu() 297 if ( (rv=PyString_FromStringAndSize(NULL, 2 + (bin_len+2)/3*4)) == NULL ) { in binascii_b2a_uu() 304 *ascii_data++ = ' ' + (bin_len & 077); in binascii_b2a_uu() [all …]
|
/external/python/cpython3/Modules/ |
D | binascii.c | 282 Py_ssize_t ascii_len, bin_len; in binascii_a2b_uu_impl() local 291 bin_len = (*ascii_data++ - ' ') & 077; in binascii_a2b_uu_impl() 295 if ( (rv=PyBytes_FromStringAndSize(NULL, bin_len)) == NULL ) in binascii_a2b_uu_impl() 299 for( ; bin_len > 0 ; ascii_len--, ascii_data++ ) { in binascii_a2b_uu_impl() 335 bin_len--; in binascii_a2b_uu_impl() 380 Py_ssize_t bin_len, out_len; in binascii_b2a_uu_impl() local 385 bin_len = data->len; in binascii_b2a_uu_impl() 386 if ( bin_len > 45 ) { in binascii_b2a_uu_impl() 397 out_len = 2 + (bin_len + 2) / 3 * 4; in binascii_b2a_uu_impl() 403 if (backtick && !bin_len) in binascii_b2a_uu_impl() [all …]
|
/external/fsverity-utils/programs/ |
D | utils.c | 199 bool hex2bin(const char *hex, u8 *bin, size_t bin_len) in hex2bin() argument 203 if (strlen(hex) != 2 * bin_len) in hex2bin() 206 for (i = 0; i < bin_len; i++) { in hex2bin() 226 void bin2hex(const u8 *bin, size_t bin_len, char *hex) in bin2hex() argument 230 for (i = 0; i < bin_len; i++) { in bin2hex()
|
D | utils.h | 48 bool hex2bin(const char *hex, u8 *bin, size_t bin_len); 49 void bin2hex(const u8 *bin, size_t bin_len, char *hex);
|
/external/python/cryptography/src/cryptography/hazmat/backends/openssl/ |
D | backend.py | 323 bin_len = self._lib.BN_bn2bin(bn, bin_ptr) 325 self.openssl_assert(bin_len >= 0) 326 return int.from_bytes(self._ffi.buffer(bin_ptr)[:bin_len], "big")
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | dpp_supplicant.c | 3904 size_t bin_len; in wpas_dpp_ca_set() local 3955 bin = base64_decode(value, os_strlen(value), &bin_len); in wpas_dpp_ca_set() 3958 buf = wpabuf_alloc_copy(bin, bin_len); in wpas_dpp_ca_set()
|