Searched refs:rbind (Results 1 – 2 of 2) sorted by relevance
/hostap-latest/src/eap_peer/ |
D | eap_teap.c | 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() [all …]
|
D | eap_fast.c | 643 struct eap_tlv_crypto_binding_tlv *rbind, in eap_fast_write_crypto_binding() argument 646 rbind->tlv_type = host_to_be16(EAP_TLV_TYPE_MANDATORY | in eap_fast_write_crypto_binding() 648 rbind->length = host_to_be16(sizeof(*rbind) - in eap_fast_write_crypto_binding() 650 rbind->version = EAP_FAST_VERSION; in eap_fast_write_crypto_binding() 651 rbind->received_version = _bind->version; in eap_fast_write_crypto_binding() 652 rbind->subtype = EAP_TLV_CRYPTO_BINDING_SUBTYPE_RESPONSE; in eap_fast_write_crypto_binding() 653 os_memcpy(rbind->nonce, _bind->nonce, sizeof(_bind->nonce)); in eap_fast_write_crypto_binding() 654 inc_byte_array(rbind->nonce, sizeof(rbind->nonce)); in eap_fast_write_crypto_binding() 655 hmac_sha1(cmk, EAP_FAST_CMK_LEN, (u8 *) rbind, sizeof(*rbind), in eap_fast_write_crypto_binding() 656 rbind->compound_mac); in eap_fast_write_crypto_binding() [all …]
|