Skip to main content

parse_keys

Function parse_keys 

Source
pub fn parse_keys(p256dh: &str, auth: &str) -> Result<(String, String), String>
Expand description

The subscription’s public key and secret (base64url, padded or not), in the form they are stored: base64url without padding, so delivery decodes them one way. Err unless they are a P-256 point, uncompressed, and 16 bytes (RFC 8291 §3.2).