Skip to content

Commit

Permalink
Add calculate_mac_invalid_base64
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasFella committed Aug 30, 2024
1 parent 8287c4b commit 4e7fb44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ mod ffi {
type EstablishedSas;
fn bytes(self: &EstablishedSas, info: &str) -> Box<SasBytes>;
fn calculate_mac(self: &EstablishedSas, input: &str, info: &str) -> Box<Mac>;
fn calculate_mac_invalid_base64(self: &EstablishedSas, input: &str, info: &str) -> String;
fn verify_mac(self: &EstablishedSas, input: &str, info: &str, mac: &Mac) -> Result<()>;

type SasBytes;
Expand Down
4 changes: 4 additions & 0 deletions src/sas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ impl EstablishedSas {
Mac(self.inner.calculate_mac(input, info)).into()
}

pub fn calculate_mac_invalid_base64(&self, input: &str, info: &str) -> String {
self.inner.calculate_mac_invalid_base64(input, info)
}

pub fn verify_mac(
&self,
input: &str,
Expand Down

0 comments on commit 4e7fb44

Please sign in to comment.