Lines Matching defs:_bind
596 struct eap_tlv_crypto_binding_tlv *_bind)
600 _bind->version, _bind->received_version, _bind->subtype);
602 _bind->nonce, sizeof(_bind->nonce));
604 _bind->compound_mac, sizeof(_bind->compound_mac));
606 if (_bind->version != EAP_FAST_VERSION ||
607 _bind->received_version != EAP_FAST_VERSION ||
608 _bind->subtype != EAP_TLV_CRYPTO_BINDING_SUBTYPE_REQUEST) {
612 _bind->version, _bind->received_version,
613 _bind->subtype);
623 struct eap_tlv_crypto_binding_tlv *_bind, const u8 *cmk)
630 rbind->received_version = _bind->version;
632 os_memcpy(rbind->nonce, _bind->nonce, sizeof(_bind->nonce));
756 struct eap_tlv_crypto_binding_tlv *_bind, size_t bind_len)
764 if (eap_fast_validate_crypto_binding(_bind) < 0)
771 os_memcpy(cmac, _bind->compound_mac, sizeof(cmac));
772 os_memset(_bind->compound_mac, 0, sizeof(cmac));
774 "MAC calculation", (u8 *) _bind, bind_len);
775 hmac_sha1(cmk, EAP_FAST_CMK_LEN, (u8 *) _bind, bind_len,
776 _bind->compound_mac);
777 res = os_memcmp_const(cmac, _bind->compound_mac, sizeof(cmac));
781 _bind->compound_mac, sizeof(cmac));
784 os_memcpy(_bind->compound_mac, cmac, sizeof(cmac));
825 pos, _bind, cmk);