Lines Matching full:encrypted
751 response->encrypted.checksum = htonl(csum); in rxkad_calc_response_checksum()
773 sg_set_buf(sg, &resp->encrypted, sizeof(resp->encrypted)); in rxkad_encrypt_response()
776 skcipher_request_set_crypt(req, sg, sg, sizeof(resp->encrypted), iv.x); in rxkad_encrypt_response()
833 resp->encrypted.epoch = htonl(conn->proto.epoch); in rxkad_respond_to_challenge()
834 resp->encrypted.cid = htonl(conn->proto.cid); in rxkad_respond_to_challenge()
835 resp->encrypted.securityIndex = htonl(conn->security_ix); in rxkad_respond_to_challenge()
836 resp->encrypted.inc_nonce = htonl(nonce + 1); in rxkad_respond_to_challenge()
837 resp->encrypted.level = htonl(conn->security_level); in rxkad_respond_to_challenge()
840 resp->encrypted.call_id[0] = htonl(conn->channels[0].call_counter); in rxkad_respond_to_challenge()
841 resp->encrypted.call_id[1] = htonl(conn->channels[1].call_counter); in rxkad_respond_to_challenge()
842 resp->encrypted.call_id[2] = htonl(conn->channels[2].call_counter); in rxkad_respond_to_challenge()
843 resp->encrypted.call_id[3] = htonl(conn->channels[3].call_counter); in rxkad_respond_to_challenge()
1004 sg_set_buf(sg, &resp->encrypted, sizeof(resp->encrypted)); in rxkad_decrypt_response()
1007 skcipher_request_set_crypt(req, sg, sg, sizeof(resp->encrypted), iv.x); in rxkad_decrypt_response()
1108 if (ntohl(response->encrypted.epoch) != conn->proto.epoch || in rxkad_verify_response()
1109 ntohl(response->encrypted.cid) != conn->proto.cid || in rxkad_verify_response()
1110 ntohl(response->encrypted.securityIndex) != conn->security_ix) { in rxkad_verify_response()
1116 csum = response->encrypted.checksum; in rxkad_verify_response()
1117 response->encrypted.checksum = 0; in rxkad_verify_response()
1119 if (response->encrypted.checksum != csum) { in rxkad_verify_response()
1126 u32 call_id = ntohl(response->encrypted.call_id[i]); in rxkad_verify_response()
1151 if (ntohl(response->encrypted.inc_nonce) != conn->rxkad.nonce + 1) { in rxkad_verify_response()
1157 level = ntohl(response->encrypted.level); in rxkad_verify_response()