publicKey
The public key a shared secret can be derived from for message encryption.
var publicKey: P256.KeyAgreement.PublicKey
The public key a shared secret can be derived from for message encryption.
var publicKey: P256.KeyAgreement.PublicKey
s7WebPush20UserAgentKeyMaterialV06publicE06Crypto4P256O0E9AgreementO06PublicE0Vvp
What are these?3SHLI
import WebPush
struct UserAgentKeyMaterial
The set of cryptographic secrets shared by the browser (is. user agent) along with a subscription.
enum P256
An elliptic curve that enables NIST P-256 signatures and key agreement.
enum KeyAgreement
A mechanism used to create a shared secret between two users by performing NIST P-256 elliptic curve Diffie Hellman (ECDH) key exchange.
struct PublicKey
A P-256 public key used for key agreement.
init(from decoder: Decoder) throws
init(publicKey: P256.KeyAgreement.PublicKey, authenticationSecret: Salt)
Initialize key material with a public key and authentication secret from a user agent.
init(publicKey: String, authenticationSecret: String) throws(UserAgentKeyMaterialError)
Initialize key material with a public key and authentication secret from a user agent.
var authenticationSecret: Salt
The authentication secret to validate our ability to send a subscriber push messages.
static func == (lhs: UserAgentKeyMaterial, rhs: UserAgentKeyMaterial) -> Bool
func encode(to encoder: any Encoder) throws
func hash(into hasher: inout Hasher)
enum CodingKeys
The encoded representation of a subscriber’s key material.
typealias Salt = Data
The underlying type of an authentication secret.