Lines Matching refs:rbind
624 struct teap_tlv_crypto_binding *rbind,
630 rbind->tlv_type = host_to_be16(TEAP_TLV_MANDATORY |
632 rbind->length = host_to_be16(sizeof(*rbind) -
634 rbind->version = EAP_TEAP_VERSION;
635 rbind->received_version = data->received_version;
641 rbind->subtype = (flags << 4) | subtype;
642 os_memcpy(rbind->nonce, cb->nonce, sizeof(cb->nonce));
643 inc_byte_array(rbind->nonce, sizeof(rbind->nonce));
644 os_memset(rbind->emsk_compound_mac, 0, EAP_TEAP_COMPOUND_MAC_LEN);
645 os_memset(rbind->msk_compound_mac, 0, EAP_TEAP_COMPOUND_MAC_LEN);
647 if (eap_teap_compound_mac(data->tls_cs, rbind, data->server_outer_tlvs,
649 rbind->msk_compound_mac) < 0)
652 eap_teap_compound_mac(data->tls_cs, rbind, data->server_outer_tlvs,
654 rbind->emsk_compound_mac) < 0)
659 rbind->version, rbind->received_version, flags, subtype);
661 rbind->nonce, sizeof(rbind->nonce));
663 rbind->emsk_compound_mac, sizeof(rbind->emsk_compound_mac));
665 rbind->msk_compound_mac, sizeof(rbind->msk_compound_mac));