Lines Matching defs:_bind
617 struct eap_tlv_crypto_binding_tlv *_bind)
621 _bind->version, _bind->received_version, _bind->subtype);
623 _bind->nonce, sizeof(_bind->nonce));
625 _bind->compound_mac, sizeof(_bind->compound_mac));
627 if (_bind->version != EAP_FAST_VERSION ||
628 _bind->received_version != EAP_FAST_VERSION ||
629 _bind->subtype != EAP_TLV_CRYPTO_BINDING_SUBTYPE_REQUEST) {
633 _bind->version, _bind->received_version,
634 _bind->subtype);
644 struct eap_tlv_crypto_binding_tlv *_bind, const u8 *cmk)
651 rbind->received_version = _bind->version;
653 os_memcpy(rbind->nonce, _bind->nonce, sizeof(_bind->nonce));
766 struct eap_tlv_crypto_binding_tlv *_bind, size_t bind_len)
774 if (eap_fast_validate_crypto_binding(_bind) < 0)
781 os_memcpy(cmac, _bind->compound_mac, sizeof(cmac));
782 os_memset(_bind->compound_mac, 0, sizeof(cmac));
784 "MAC calculation", (u8 *) _bind, bind_len);
785 hmac_sha1(cmk, EAP_FAST_CMK_LEN, (u8 *) _bind, bind_len,
786 _bind->compound_mac);
787 res = os_memcmp_const(cmac, _bind->compound_mac, sizeof(cmac));
791 _bind->compound_mac, sizeof(cmac));
794 os_memcpy(_bind->compound_mac, cmac, sizeof(cmac));
835 pos, _bind, cmk);