Lines Matching refs:encrypted
858 response->encrypted.checksum = htonl(csum); in rxkad_calc_response_checksum()
880 sg_set_buf(sg, &resp->encrypted, sizeof(resp->encrypted)); in rxkad_encrypt_response()
883 skcipher_request_set_crypt(req, sg, sg, sizeof(resp->encrypted), iv.x); in rxkad_encrypt_response()
947 resp->encrypted.epoch = htonl(conn->proto.epoch); in rxkad_respond_to_challenge()
948 resp->encrypted.cid = htonl(conn->proto.cid); in rxkad_respond_to_challenge()
949 resp->encrypted.securityIndex = htonl(conn->security_ix); in rxkad_respond_to_challenge()
950 resp->encrypted.inc_nonce = htonl(nonce + 1); in rxkad_respond_to_challenge()
951 resp->encrypted.level = htonl(conn->params.security_level); in rxkad_respond_to_challenge()
954 resp->encrypted.call_id[0] = htonl(conn->channels[0].call_counter); in rxkad_respond_to_challenge()
955 resp->encrypted.call_id[1] = htonl(conn->channels[1].call_counter); in rxkad_respond_to_challenge()
956 resp->encrypted.call_id[2] = htonl(conn->channels[2].call_counter); in rxkad_respond_to_challenge()
957 resp->encrypted.call_id[3] = htonl(conn->channels[3].call_counter); in rxkad_respond_to_challenge()
1143 sg_set_buf(sg, &resp->encrypted, sizeof(resp->encrypted)); in rxkad_decrypt_response()
1146 skcipher_request_set_crypt(req, sg, sg, sizeof(resp->encrypted), iv.x); in rxkad_decrypt_response()
1250 if (ntohl(response->encrypted.epoch) != conn->proto.epoch) in rxkad_verify_response()
1252 if (ntohl(response->encrypted.cid) != conn->proto.cid) in rxkad_verify_response()
1254 if (ntohl(response->encrypted.securityIndex) != conn->security_ix) in rxkad_verify_response()
1256 csum = response->encrypted.checksum; in rxkad_verify_response()
1257 response->encrypted.checksum = 0; in rxkad_verify_response()
1260 if (response->encrypted.checksum != csum) in rxkad_verify_response()
1266 u32 call_id = ntohl(response->encrypted.call_id[i]); in rxkad_verify_response()
1290 if (ntohl(response->encrypted.inc_nonce) != conn->rxkad.nonce + 1) in rxkad_verify_response()
1295 level = ntohl(response->encrypted.level); in rxkad_verify_response()