Lines Matching refs:rbind

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