Commit fcb323d 1 parent eb53698 commit fcb323d Copy full SHA for fcb323d
File tree 3 files changed +7
-3
lines changed
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ edition = "2021"
13
13
common = {path = " ../common" , version = " 0.1.0" }
14
14
crypto = {path = " ../crypto" , version = " 0.1.0" }
15
15
16
- base64 = " 0.13 "
16
+ base64 = " 0.21.7 "
17
17
csv = " 1.1.1"
18
18
fernet = " 0.2.1"
19
19
hex = " 0.4.2"
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ use std::path::Path;
10
10
use std:: sync:: Arc ;
11
11
use std:: sync:: RwLock ;
12
12
13
+ use base64:: engine:: general_purpose:: URL_SAFE ;
14
+ use base64:: Engine ;
13
15
use common:: permutations:: gen_permute_pattern;
14
16
use common:: permutations:: permute;
15
17
use common:: permutations:: undo_permute;
@@ -162,7 +164,7 @@ impl HelperDpmcProtocol for HelperDpmc {
162
164
let y = self . ec_cipher . to_bytes ( & x) ;
163
165
y[ 0 ] . buffer . clone ( )
164
166
} ;
165
- base64 :: encode_config ( aes_key_bytes, base64 :: URL_SAFE )
167
+ URL_SAFE . encode ( aes_key_bytes)
166
168
} ;
167
169
168
170
let alpha_t = {
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ use std::convert::TryInto;
5
5
use std:: sync:: Arc ;
6
6
use std:: sync:: RwLock ;
7
7
8
+ use base64:: engine:: general_purpose:: URL_SAFE ;
9
+ use base64:: Engine ;
8
10
use common:: permutations:: gen_permute_pattern;
9
11
use common:: permutations:: permute;
10
12
use common:: timer;
@@ -120,7 +122,7 @@ impl PartnerDpmc {
120
122
. ec_cipher
121
123
. to_bytes ( & [ self . partner_scalar * ( * helper_pk) ] ) ;
122
124
let aes_key_bytes = x[ 0 ] . buffer . clone ( ) ;
123
- base64 :: encode_config ( aes_key_bytes, base64 :: URL_SAFE )
125
+ URL_SAFE . encode ( aes_key_bytes)
124
126
} ;
125
127
Ok ( ( ) )
126
128
}
You can’t perform that action at this time.
0 commit comments