Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validating the encrypted reports generated on ios can be decrypted in rust #1071

Merged
merged 4 commits into from
May 21, 2024

Conversation

richajaindce
Copy link
Contributor

@richajaindce richajaindce commented May 16, 2024

For now, this process is manual needing copy pasta of the bytes generated as proper integration testing will take more work

Copy link

codecov bot commented May 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.95%. Comparing base (b7761ec) to head (dce69f9).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1071      +/-   ##
==========================================
+ Coverage   90.87%   90.95%   +0.08%     
==========================================
  Files         183      183              
  Lines       25691    25882     +191     
==========================================
+ Hits        23346    23541     +195     
+ Misses       2345     2341       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


#[test]
fn check_compatibility_conversion_with_ios_encryption() {
let enc_report_bytes1 = hex::decode("741cd5012df1cf8f337258066a55c408d1052297af27a35bdef571773215ad7cbd367eab689145a24ad9666a12731a221ff5548cc7591a5ce50da4dcde203cc614175759ef230641adac977187143471b512f1c8fd95eafeb53602d90a69a6411f3af9cb44e02417f6f27b7162f08bff009e82b1c2c2aaaf156f010000007777772e6162632e636f6d").unwrap();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you end a line in a string literal with a backslash, rustc removes the backslash and any leading whitespace on the following line. This can be used to embed blobs like this while keeping the line length manageable.

@richajaindce richajaindce merged commit 711ebcd into private-attribution:main May 21, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants