Lines Matching refs:zip

189   uint8_t zip[6];  member
731 uint8_t zip[6]) in cs_str_to_zip()
768 zip[0] = (uint8_t) (indexes[0] << 2 | (indexes[1] & 0x3F) >> 4); in cs_str_to_zip()
769 zip[1] = (uint8_t) (indexes[1] << 4 | (indexes[2] & 0x3F) >> 2); in cs_str_to_zip()
770 zip[2] = (uint8_t) (indexes[2] << 6 | (indexes[3] & 0x3F)); in cs_str_to_zip()
771 zip[3] = (uint8_t) (indexes[4] << 2 | (indexes[5] & 0x3F) >> 4); in cs_str_to_zip()
772 zip[4] = (uint8_t) (indexes[5] << 4 | (indexes[6] & 0x3F) >> 2); in cs_str_to_zip()
773 zip[5] = (uint8_t) (indexes[6] << 6 | (indexes[7] & 0x3F)); in cs_str_to_zip()
778 static int cs_zip_to_str(const uint8_t zip[6], in cs_zip_to_str()
788 indexes[0] = zip[0] >> 2; in cs_zip_to_str()
789 indexes[1] = ((zip[0] << 4) & 0x3F) | zip[1] >> 4; in cs_zip_to_str()
790 indexes[2] = ((zip[1] << 2) & 0x3F) | zip[2] >> 6; in cs_zip_to_str()
791 indexes[3] = ((zip[2] << 0) & 0x3F); in cs_zip_to_str()
792 indexes[4] = zip[3] >> 2; in cs_zip_to_str()
793 indexes[5] = ((zip[3] << 4) & 0x3F) | zip[4] >> 4; in cs_zip_to_str()
794 indexes[6] = ((zip[4] << 2) & 0x3F) | zip[5] >> 6; in cs_zip_to_str()
795 indexes[7] = ((zip[5] << 0) & 0x3F); in cs_zip_to_str()
827 uint8_t zip[6]; in Curl_cipher_suite_lookup_id() local
829 if(cs_len > 0 && cs_str_to_zip(cs_str, cs_len, zip) == 0) { in Curl_cipher_suite_lookup_id()
831 if(memcmp(cs_list[i].zip, zip, sizeof(zip)) == 0) in Curl_cipher_suite_lookup_id()
873 if((cs_list[i].zip[0] >> 2 != CS_TXT_IDX_TLS) == !prefer_rfc) { in Curl_cipher_suite_get_str()
882 r = cs_zip_to_str(cs_list[j].zip, buf, buf_size); in Curl_cipher_suite_get_str()