Lines Matching defs:rbind
684 struct teap_tlv_crypto_binding *rbind,
690 rbind->tlv_type = host_to_be16(TEAP_TLV_MANDATORY |
692 rbind->length = host_to_be16(sizeof(*rbind) -
694 rbind->version = EAP_TEAP_VERSION;
695 rbind->received_version = data->received_version;
701 rbind->subtype = (flags << 4) | subtype;
702 os_memcpy(rbind->nonce, cb->nonce, sizeof(cb->nonce));
703 inc_byte_array(rbind->nonce, sizeof(rbind->nonce));
704 os_memset(rbind->emsk_compound_mac, 0, EAP_TEAP_COMPOUND_MAC_LEN);
705 os_memset(rbind->msk_compound_mac, 0, EAP_TEAP_COMPOUND_MAC_LEN);
707 if (eap_teap_compound_mac(data->tls_cs, rbind, data->server_outer_tlvs,
709 rbind->msk_compound_mac) < 0)
712 eap_teap_compound_mac(data->tls_cs, rbind, data->server_outer_tlvs,
714 rbind->emsk_compound_mac) < 0)
719 rbind->version, rbind->received_version, flags, subtype);
721 rbind->nonce, sizeof(rbind->nonce));
723 rbind->emsk_compound_mac, sizeof(rbind->emsk_compound_mac));
725 rbind->msk_compound_mac, sizeof(rbind->msk_compound_mac));