Lines Matching refs:cb
645 const struct teap_tlv_crypto_binding *cb) in eap_teap_validate_crypto_binding() argument
649 subtype = cb->subtype & 0x0f; in eap_teap_validate_crypto_binding()
650 flags = cb->subtype >> 4; in eap_teap_validate_crypto_binding()
654 cb->version, cb->received_version, flags, subtype); in eap_teap_validate_crypto_binding()
656 cb->nonce, sizeof(cb->nonce)); in eap_teap_validate_crypto_binding()
658 cb->emsk_compound_mac, sizeof(cb->emsk_compound_mac)); in eap_teap_validate_crypto_binding()
660 cb->msk_compound_mac, sizeof(cb->msk_compound_mac)); in eap_teap_validate_crypto_binding()
662 if (cb->version != EAP_TEAP_VERSION || in eap_teap_validate_crypto_binding()
663 cb->received_version != data->received_version || in eap_teap_validate_crypto_binding()
668 cb->version, cb->received_version, flags, subtype); in eap_teap_validate_crypto_binding()
672 if (cb->nonce[EAP_TEAP_NONCE_LEN - 1] & 0x01) { in eap_teap_validate_crypto_binding()
685 const struct teap_tlv_crypto_binding *cb, in eap_teap_write_crypto_binding() argument
702 os_memcpy(rbind->nonce, cb->nonce, sizeof(cb->nonce)); in eap_teap_write_crypto_binding()
822 const struct teap_tlv_crypto_binding *cb, size_t bind_len) in eap_teap_process_crypto_binding() argument
833 if (eap_teap_validate_crypto_binding(data, cb) < 0 || in eap_teap_process_crypto_binding()
838 flags = cb->subtype >> 4; in eap_teap_process_crypto_binding()
844 if (eap_teap_compound_mac(data->tls_cs, cb, in eap_teap_process_crypto_binding()
849 res = os_memcmp_const(msk_compound_mac, cb->msk_compound_mac, in eap_teap_process_crypto_binding()
852 cb->msk_compound_mac, EAP_TEAP_COMPOUND_MAC_LEN); in eap_teap_process_crypto_binding()
868 if (eap_teap_compound_mac(data->tls_cs, cb, in eap_teap_process_crypto_binding()
873 res = os_memcmp_const(emsk_compound_mac, cb->emsk_compound_mac, in eap_teap_process_crypto_binding()
876 cb->emsk_compound_mac, EAP_TEAP_COMPOUND_MAC_LEN); in eap_teap_process_crypto_binding()
923 cb, cmk_msk, cmk_emsk_ptr) < 0) { in eap_teap_process_crypto_binding()