Lines Matching refs:encrypted

774 	response->encrypted.checksum = htonl(csum);  in rxkad_calc_response_checksum()
796 sg_set_buf(sg, &resp->encrypted, sizeof(resp->encrypted)); in rxkad_encrypt_response()
799 skcipher_request_set_crypt(req, sg, sg, sizeof(resp->encrypted), iv.x); in rxkad_encrypt_response()
863 resp->encrypted.epoch = htonl(conn->proto.epoch); in rxkad_respond_to_challenge()
864 resp->encrypted.cid = htonl(conn->proto.cid); in rxkad_respond_to_challenge()
865 resp->encrypted.securityIndex = htonl(conn->security_ix); in rxkad_respond_to_challenge()
866 resp->encrypted.inc_nonce = htonl(nonce + 1); in rxkad_respond_to_challenge()
867 resp->encrypted.level = htonl(conn->params.security_level); in rxkad_respond_to_challenge()
870 resp->encrypted.call_id[0] = htonl(conn->channels[0].call_counter); in rxkad_respond_to_challenge()
871 resp->encrypted.call_id[1] = htonl(conn->channels[1].call_counter); in rxkad_respond_to_challenge()
872 resp->encrypted.call_id[2] = htonl(conn->channels[2].call_counter); in rxkad_respond_to_challenge()
873 resp->encrypted.call_id[3] = htonl(conn->channels[3].call_counter); in rxkad_respond_to_challenge()
1071 sg_set_buf(sg, &resp->encrypted, sizeof(resp->encrypted)); in rxkad_decrypt_response()
1074 skcipher_request_set_crypt(req, sg, sg, sizeof(resp->encrypted), iv.x); in rxkad_decrypt_response()
1159 if (ntohl(response->encrypted.epoch) != conn->proto.epoch) in rxkad_verify_response()
1161 if (ntohl(response->encrypted.cid) != conn->proto.cid) in rxkad_verify_response()
1163 if (ntohl(response->encrypted.securityIndex) != conn->security_ix) in rxkad_verify_response()
1165 csum = response->encrypted.checksum; in rxkad_verify_response()
1166 response->encrypted.checksum = 0; in rxkad_verify_response()
1169 if (response->encrypted.checksum != csum) in rxkad_verify_response()
1175 u32 call_id = ntohl(response->encrypted.call_id[i]); in rxkad_verify_response()
1199 if (ntohl(response->encrypted.inc_nonce) != conn->security_nonce + 1) in rxkad_verify_response()
1204 level = ntohl(response->encrypted.level); in rxkad_verify_response()