Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
beltram committed Nov 28, 2023
1 parent 68c92de commit a2e538e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crypto-ffi/src/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1792,7 +1792,7 @@ impl CoreCrypto {
let this = self.inner.clone();
future_to_promise(
async move {
let kp = KeyPackageIn::tls_deserialize(keypackage)
let kp = KeyPackageIn::tls_deserialize(&mut keypackage.as_ref())
.map_err(MlsError::from)
.map_err(CryptoError::from)
.map_err(CoreCryptoError::from)?;
Expand Down Expand Up @@ -1902,7 +1902,7 @@ impl CoreCrypto {
let this = self.inner.clone();
future_to_promise(
async move {
let group_info = VerifiableGroupInfo::tls_deserialize(&group_info)
let group_info = VerifiableGroupInfo::tls_deserialize(&mut group_info.as_ref())
.map_err(MlsError::from)
.map_err(CryptoError::from)
.map_err(CoreCryptoError::from)?;
Expand Down
2 changes: 1 addition & 1 deletion crypto/benches/utils/mls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ pub async fn add_clients(
.unwrap();

let group_info = commit_bundle.group_info.payload.bytes();
let group_info = openmls::prelude::MlsMessageIn::tls_deserialize(&group_info[..]).unwrap();
let group_info = openmls::prelude::MlsMessageIn::tls_deserialize(&mut group_info.as_slice()).unwrap();
let MlsMessageInBody::GroupInfo(group_info) = group_info.extract() else {
panic!("error")
};
Expand Down

0 comments on commit a2e538e

Please sign in to comment.