Skip to content
Commit 8cd0fc1e authored by Nina Satragno's avatar Nina Satragno Committed by Copybara-Service
Browse files

[webauthn] Compress & Uncompress large blobs

This patch implements gzip compression and decompression for WebAuthn's
large blobs extension.

Compression needs to happen 1) when receiving a large blob through the
WebAuthn API, 2) when setting a large blob through the virtual
authenticator (exposed through webdriver and devtools) and 3) when
directly setting a large blob in unit tests. To satisfy the rule of two
for cases 1) and 2), this patch introduces a Gzipper interface to the
data decoder service, which runs in a sandboxed utility process. Case 3)
is simply handled by compressing in tests.

This feature is guarded behind the WebAuthenticationLargeBlobExtension
feature flag.

https://w3c.github.io/webauthn/#sctn-large-blob-extension

Bug: 1114875
Change-Id: I52c9031f1927a1bd4819d4d075fd59036fd3187a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2464011


Commit-Queue: Nina Satragno <nsatragno@chromium.org>
Reviewed-by: default avatarAdam Langley <agl@chromium.org>
Reviewed-by: default avatarMartin Kreichgauer <martinkr@google.com>
Reviewed-by: default avatarChris Palmer <palmer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#817700}
GitOrigin-RevId: aed99fb1abbdccdb74de4992ba5c4100b6a382de
parent 26211a5a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment