Lines Matching defs:auth_data_len
711 encode_adata_len(ulong_t auth_data_len, uint8_t *encoded, size_t *encoded_len)
720 if (auth_data_len < ((1ULL<<16) - (1ULL<<8))) {
723 encoded[0] = (auth_data_len & 0xff00) >> 8;
724 encoded[1] = auth_data_len & 0xff;
726 } else if ((auth_data_len >= ((1ULL<<16) - (1ULL<<8))) &&
727 (auth_data_len < (1ULL << 31))) {
734 *lencoded_ptr = htonl(auth_data_len);
736 encoded[2] = (auth_data_len & 0xff000000) >> 24;
737 encoded[3] = (auth_data_len & 0xff0000) >> 16;
738 encoded[4] = (auth_data_len & 0xff00) >> 8;
739 encoded[5] = auth_data_len & 0xff;
750 *llencoded_ptr = htonl(auth_data_len);
752 encoded[2] = (auth_data_len & 0xff00000000000000) >> 56;
753 encoded[3] = (auth_data_len & 0xff000000000000) >> 48;
754 encoded[4] = (auth_data_len & 0xff0000000000) >> 40;
755 encoded[5] = (auth_data_len & 0xff00000000) >> 32;
756 encoded[6] = (auth_data_len & 0xff000000) >> 24;
757 encoded[7] = (auth_data_len & 0xff0000) >> 16;
758 encoded[8] = (auth_data_len & 0xff00) >> 8;
759 encoded[9] = auth_data_len & 0xff;
771 unsigned char *auth_data, size_t auth_data_len, size_t block_size,
790 auth_data_len, mac_buf, ctx);
802 if (auth_data_len == 0) {
806 encode_adata_len(auth_data_len, encoded_a, &encoded_a_len);
808 remainder = auth_data_len;
815 if (processed > auth_data_len) {
817 processed = auth_data_len;