Lines Matching refs:_bind

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