Skip to content

Commit

Permalink
Upgrade base64 to 0.21
Browse files Browse the repository at this point in the history
Reviewed By: zertosh

Differential Revision: D61737689
  • Loading branch information
capickett authored and facebook-github-bot committed Aug 27, 2024
1 parent eb53698 commit 64debfa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion protocol/src/dpmc/helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ use std::path::Path;
use std::sync::Arc;
use std::sync::RwLock;

use base64::engine::general_purpose::URL_SAFE;
use base64::Engine;
use common::permutations::gen_permute_pattern;
use common::permutations::permute;
use common::permutations::undo_permute;
Expand Down Expand Up @@ -162,7 +164,7 @@ impl HelperDpmcProtocol for HelperDpmc {
let y = self.ec_cipher.to_bytes(&x);
y[0].buffer.clone()
};
base64::encode_config(aes_key_bytes, base64::URL_SAFE)
URL_SAFE.encode(aes_key_bytes)
};

let alpha_t = {
Expand Down
4 changes: 3 additions & 1 deletion protocol/src/dpmc/partner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ use std::convert::TryInto;
use std::sync::Arc;
use std::sync::RwLock;

use base64::engine::general_purpose::URL_SAFE;
use base64::Engine;
use common::permutations::gen_permute_pattern;
use common::permutations::permute;
use common::timer;
Expand Down Expand Up @@ -120,7 +122,7 @@ impl PartnerDpmc {
.ec_cipher
.to_bytes(&[self.partner_scalar * (*helper_pk)]);
let aes_key_bytes = x[0].buffer.clone();
base64::encode_config(aes_key_bytes, base64::URL_SAFE)
URL_SAFE.encode(aes_key_bytes)
};
Ok(())
}
Expand Down

0 comments on commit 64debfa

Please sign in to comment.