forked from huawei/mindspore2022
193 lines
3.3 KiB
Plaintext
193 lines
3.3 KiB
Plaintext
/**
|
|
* Copyright 2021 Huawei Technologies Co., Ltd
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
namespace mindspore.schema;
|
|
|
|
table PWParams {
|
|
t:int;
|
|
p:[ubyte];
|
|
g:int;
|
|
prime:[ubyte];
|
|
}
|
|
|
|
table DPParams {
|
|
dp_eps:float;
|
|
dp_delta:float;
|
|
dp_norm_clip:float;
|
|
}
|
|
|
|
table DSParams {
|
|
sign_k:float;
|
|
sign_eps:float;
|
|
sign_thr_ratio:float;
|
|
sign_global_lr:float;
|
|
sign_dim_out:int;
|
|
}
|
|
|
|
table CipherPublicParams {
|
|
encrypt_type:string;
|
|
pw_params:PWParams;
|
|
dp_params:DPParams;
|
|
ds_params:DSParams;
|
|
}
|
|
|
|
table ClientPublicKeys {
|
|
fl_id:string;
|
|
c_pk:[ubyte];
|
|
s_pk: [ubyte];
|
|
pw_iv: [ubyte];
|
|
pw_salt: [ubyte];
|
|
timestamp: string;
|
|
iteration: int;
|
|
signature: [ubyte];
|
|
certificate_chain: [string];
|
|
}
|
|
|
|
table ClientShare {
|
|
fl_id:string;
|
|
share:[ubyte];
|
|
index:int;
|
|
}
|
|
|
|
table RequestExchangeKeys{
|
|
fl_id:string;
|
|
c_pk:[ubyte];
|
|
s_pk:[ubyte];
|
|
iteration:int;
|
|
timestamp:string;
|
|
ind_iv:[ubyte];
|
|
pw_iv:[ubyte];
|
|
pw_salt:[ubyte];
|
|
signature:[ubyte];
|
|
certificate_chain:[string];
|
|
}
|
|
|
|
table ResponseExchangeKeys{
|
|
retcode:int;
|
|
reason:string;
|
|
next_req_time:string;
|
|
iteration:int;
|
|
}
|
|
|
|
table GetExchangeKeys{
|
|
fl_id:string;
|
|
iteration:int;
|
|
timestamp:string;
|
|
signature:[ubyte];
|
|
}
|
|
|
|
table ReturnExchangeKeys{
|
|
retcode:int;
|
|
iteration:int;
|
|
remote_publickeys:[ClientPublicKeys];
|
|
next_req_time:string;
|
|
}
|
|
|
|
|
|
table RequestShareSecrets{
|
|
fl_id:string;
|
|
encrypted_shares:[ClientShare];
|
|
iteration:int;
|
|
timestamp:string;
|
|
signature:[ubyte];
|
|
}
|
|
|
|
table ResponseShareSecrets{
|
|
retcode:int;
|
|
reason:string;
|
|
next_req_time:string;
|
|
iteration:int;
|
|
}
|
|
|
|
table GetShareSecrets{
|
|
fl_id:string;
|
|
iteration:int;
|
|
timestamp:string;
|
|
signature:[ubyte];
|
|
}
|
|
|
|
table ReturnShareSecrets{
|
|
retcode:int;
|
|
iteration:int;
|
|
encrypted_shares: [ClientShare];
|
|
next_req_time:string;
|
|
}
|
|
|
|
table GetClientList{
|
|
fl_id:string;
|
|
iteration:int;
|
|
timestamp:string;
|
|
signature:[ubyte];
|
|
}
|
|
|
|
table ReturnClientList{
|
|
retcode:int;
|
|
reason:string;
|
|
clients:[string];
|
|
iteration:int;
|
|
next_req_time:string;
|
|
}
|
|
|
|
table ClientListSign {
|
|
fl_id:string;
|
|
signature:[ubyte];
|
|
}
|
|
|
|
table SendClientListSign{
|
|
fl_id:string;
|
|
iteration:int;
|
|
timestamp:string;
|
|
signature:[ubyte];
|
|
req_signature:[ubyte];
|
|
}
|
|
|
|
table ResponseClientListSign{
|
|
retcode:int;
|
|
reason:string;
|
|
iteration:int;
|
|
next_req_time:string;
|
|
}
|
|
|
|
table RequestAllClientListSign{
|
|
fl_id:string;
|
|
iteration:int;
|
|
timestamp:string;
|
|
signature:[ubyte];
|
|
}
|
|
|
|
table ReturnAllClientListSign{
|
|
retcode:int;
|
|
reason:string;
|
|
client_list_sign:[ClientListSign];
|
|
iteration:int;
|
|
next_req_time:string;
|
|
}
|
|
|
|
table SendReconstructSecret{
|
|
fl_id:string;
|
|
reconstruct_secret_shares:[ClientShare];
|
|
iteration:int;
|
|
timestamp:string;
|
|
signature:[ubyte];
|
|
}
|
|
|
|
table ReconstructSecret{
|
|
retcode:int;
|
|
reason:string;
|
|
iteration:int;
|
|
next_req_time:string;
|
|
}
|