Lines Matching refs:encrypted
716 response->encrypted.checksum = htonl(csum); in rxkad_calc_response_checksum()
729 size_t encsize = sizeof(((struct rxkad_response *)0)->encrypted); in rxkad_encrypt_response()
735 offsetof(struct rxkad_response, encrypted), encsize); in rxkad_encrypt_response()
838 h.resp.encrypted.epoch = htonl(conn->proto.epoch); in rxkad_insert_response_header()
839 h.resp.encrypted.cid = htonl(conn->proto.cid); in rxkad_insert_response_header()
840 h.resp.encrypted.checksum = 0; in rxkad_insert_response_header()
841 h.resp.encrypted.securityIndex = htonl(conn->security_ix); in rxkad_insert_response_header()
842 h.resp.encrypted.call_id[0] = htonl(conn->channels[0].call_counter); in rxkad_insert_response_header()
843 h.resp.encrypted.call_id[1] = htonl(conn->channels[1].call_counter); in rxkad_insert_response_header()
844 h.resp.encrypted.call_id[2] = htonl(conn->channels[2].call_counter); in rxkad_insert_response_header()
845 h.resp.encrypted.call_id[3] = htonl(conn->channels[3].call_counter); in rxkad_insert_response_header()
846 h.resp.encrypted.inc_nonce = htonl(csp->chall.rxkad_nonce + 1); in rxkad_insert_response_header()
847 h.resp.encrypted.level = htonl(conn->security_level); in rxkad_insert_response_header()
1095 sg_set_buf(sg, &resp->encrypted, sizeof(resp->encrypted)); in rxkad_decrypt_response()
1098 skcipher_request_set_crypt(req, sg, sg, sizeof(resp->encrypted), iv.x); in rxkad_decrypt_response()
1199 if (ntohl(response->encrypted.epoch) != conn->proto.epoch || in rxkad_verify_response()
1200 ntohl(response->encrypted.cid) != conn->proto.cid || in rxkad_verify_response()
1201 ntohl(response->encrypted.securityIndex) != conn->security_ix) { in rxkad_verify_response()
1207 csum = response->encrypted.checksum; in rxkad_verify_response()
1208 response->encrypted.checksum = 0; in rxkad_verify_response()
1210 if (response->encrypted.checksum != csum) { in rxkad_verify_response()
1217 u32 call_id = ntohl(response->encrypted.call_id[i]); in rxkad_verify_response()
1242 if (ntohl(response->encrypted.inc_nonce) != conn->rxkad.nonce + 1) { in rxkad_verify_response()
1248 level = ntohl(response->encrypted.level); in rxkad_verify_response()