Lines Matching refs:encrypted
688 response->encrypted.checksum = htonl(csum); in rxkad_calc_response_checksum()
731 rxkad_sg_set_buf2(sg, &resp->encrypted, sizeof(resp->encrypted)); in rxkad_encrypt_response()
732 crypto_blkcipher_encrypt_iv(&desc, sg, sg, sizeof(resp->encrypted)); in rxkad_encrypt_response()
789 resp.encrypted.epoch = conn->epoch; in rxkad_respond_to_challenge()
790 resp.encrypted.cid = conn->cid; in rxkad_respond_to_challenge()
791 resp.encrypted.securityIndex = htonl(conn->security_ix); in rxkad_respond_to_challenge()
792 resp.encrypted.call_id[0] = in rxkad_respond_to_challenge()
794 resp.encrypted.call_id[1] = in rxkad_respond_to_challenge()
796 resp.encrypted.call_id[2] = in rxkad_respond_to_challenge()
798 resp.encrypted.call_id[3] = in rxkad_respond_to_challenge()
800 resp.encrypted.inc_nonce = htonl(nonce + 1); in rxkad_respond_to_challenge()
801 resp.encrypted.level = htonl(conn->security_level); in rxkad_respond_to_challenge()
988 rxkad_sg_set_buf2(sg, &resp->encrypted, sizeof(resp->encrypted)); in rxkad_decrypt_response()
989 crypto_blkcipher_decrypt_iv(&desc, sg, sg, sizeof(resp->encrypted)); in rxkad_decrypt_response()
1061 if (response.encrypted.epoch != conn->epoch) in rxkad_verify_response()
1063 if (response.encrypted.cid != conn->cid) in rxkad_verify_response()
1065 if (ntohl(response.encrypted.securityIndex) != conn->security_ix) in rxkad_verify_response()
1067 csum = response.encrypted.checksum; in rxkad_verify_response()
1068 response.encrypted.checksum = 0; in rxkad_verify_response()
1070 if (response.encrypted.checksum != csum) in rxkad_verify_response()
1073 if (ntohl(response.encrypted.call_id[0]) > INT_MAX || in rxkad_verify_response()
1074 ntohl(response.encrypted.call_id[1]) > INT_MAX || in rxkad_verify_response()
1075 ntohl(response.encrypted.call_id[2]) > INT_MAX || in rxkad_verify_response()
1076 ntohl(response.encrypted.call_id[3]) > INT_MAX) in rxkad_verify_response()
1080 if (response.encrypted.inc_nonce != htonl(conn->security_nonce + 1)) in rxkad_verify_response()
1084 level = ntohl(response.encrypted.level); in rxkad_verify_response()