From 27f656f62bfa79c59307476d099c5be16212a0c9 Mon Sep 17 00:00:00 2001 From: Leif Ibsen Date: Mon, 29 Apr 2024 09:16:00 +0200 Subject: [PATCH] Release 2.5.0 --- Package.swift | 6 +- Sources/SwiftHPKE/KEM.swift | 2 +- .../SwiftHPKE.docc/Articles/CryptoKit.md | 6 + Sources/SwiftHPKE/SwiftHPKE.docc/SwiftHPKE.md | 12 +- .../data/documentation/swifthpke.json | 2 +- .../data/documentation/swifthpke/aead.json | 2 +- .../swifthpke/aead/!=(_:_:).json | 2 +- .../swifthpke/aead/aesgcm128.json | 2 +- .../swifthpke/aead/aesgcm256.json | 2 +- .../swifthpke/aead/chachapoly.json | 2 +- .../swifthpke/aead/description.json | 2 +- .../aead/equatable-implementations.json | 2 +- .../swifthpke/aead/exportonly.json | 2 +- .../data/documentation/swifthpke/base64.json | 2 +- .../swifthpke/base64/decode(_:).json | 2 +- .../swifthpke/base64/encode(_:_:).json | 2 +- .../swifthpke/base64/pemdecode(_:_:).json | 2 +- .../swifthpke/base64/pemencode(_:_:).json | 2 +- .../data/documentation/swifthpke/byte.json | 2 +- .../data/documentation/swifthpke/bytes.json | 2 +- .../documentation/swifthpke/ciphersuite.json | 2 +- .../swifthpke/ciphersuite/aead.json | 2 +- .../ciphersuite/derivekeypair(ikm:).json | 2 +- .../swifthpke/ciphersuite/description.json | 2 +- .../ciphersuite/init(kem:kdf:aead:).json | 2 +- .../swifthpke/ciphersuite/kdf.json | 2 +- .../swifthpke/ciphersuite/kem.json | 2 +- .../swifthpke/ciphersuite/makekeypair().json | 2 +- ...ey:info:authentication:ct:aad:encap:).json | 2 +- ...thentication:psk:pskid:ct:aad:encap:).json | 2 +- .../open(privatekey:info:ct:aad:encap:).json | 2 +- ...vatekey:info:psk:pskid:ct:aad:encap:).json | 2 +- ...info:context:l:authentication:encap:).json | 2 +- ...xt:l:authentication:psk:pskid:encap:).json | 2 +- ...ort(privatekey:info:context:l:encap:).json | 2 +- ...ekey:info:context:l:psk:pskid:encap:).json | 2 +- ...nfo:authentication:psk:pskid:pt:aad:).json | 2 +- ...ublickey:info:authentication:pt:aad:).json | 2 +- ...eal(publickey:info:psk:pskid:pt:aad:).json | 2 +- .../seal(publickey:info:pt:aad:).json | 2 +- ...sendexport(publickey:info:context:l:).json | 2 +- ...ickey:info:context:l:authentication:).json | 2 +- ...:context:l:authentication:psk:pskid:).json | 2 +- ...(publickey:info:context:l:psk:pskid:).json | 2 +- .../documentation/swifthpke/cryptokit.json | 2 +- .../swifthpke/hpkeexception.json | 2 +- .../swifthpke/hpkeexception/!=(_:_:).json | 2 +- .../hpkeexception/asn1structure.json | 2 +- .../swifthpke/hpkeexception/base64.json | 2 +- .../swifthpke/hpkeexception/decodepoint.json | 2 +- .../hpkeexception/derivedkeyerror.json | 2 +- .../swifthpke/hpkeexception/description.json | 2 +- .../equatable-implementations.json | 2 +- .../hpkeexception/error-implementations.json | 2 +- .../hpkeexception/exportonlyerror.json | 2 +- .../swifthpke/hpkeexception/exportsize.json | 2 +- .../swifthpke/hpkeexception/keymismatch.json | 2 +- .../hpkeexception/localizeddescription.json | 2 +- .../swifthpke/hpkeexception/pemstructure.json | 2 +- .../hpkeexception/privatekeyparameter.json | 2 +- .../swifthpke/hpkeexception/pskerror.json | 2 +- .../hpkeexception/publickeyparameter.json | 2 +- .../swifthpke/hpkeexception/smallorder.json | 2 +- .../data/documentation/swifthpke/kdf.json | 2 +- .../documentation/swifthpke/kdf/!=(_:_:).json | 2 +- .../swifthpke/kdf/description.json | 2 +- .../kdf/equatable-implementations.json | 2 +- .../documentation/swifthpke/kdf/kdf256.json | 2 +- .../documentation/swifthpke/kdf/kdf384.json | 2 +- .../documentation/swifthpke/kdf/kdf512.json | 2 +- .../data/documentation/swifthpke/kem.json | 2 +- .../documentation/swifthpke/kem/!=(_:_:).json | 2 +- .../swifthpke/kem/description.json | 2 +- .../kem/equatable-implementations.json | 2 +- .../documentation/swifthpke/kem/p256.json | 2 +- .../documentation/swifthpke/kem/p384.json | 2 +- .../documentation/swifthpke/kem/p521.json | 2 +- .../documentation/swifthpke/kem/x25519.json | 2 +- .../documentation/swifthpke/kem/x448.json | 2 +- .../swifthpke/keymanagement.json | 2 +- .../documentation/swifthpke/performance.json | 2 +- .../documentation/swifthpke/privatekey.json | 2 +- .../swifthpke/privatekey/!=(_:_:).json | 2 +- .../swifthpke/privatekey/==(_:_:).json | 2 +- .../swifthpke/privatekey/asn1.json | 2 +- .../swifthpke/privatekey/bytes.json | 2 +- .../swifthpke/privatekey/der.json | 2 +- .../swifthpke/privatekey/description.json | 2 +- .../privatekey/equatable-implementations.json | 2 +- .../swifthpke/privatekey/init(der:).json | 2 +- .../privatekey/init(kem:bytes:).json | 2 +- .../swifthpke/privatekey/init(pem:).json | 2 +- .../swifthpke/privatekey/pem.json | 2 +- .../swifthpke/privatekey/publickey.json | 2 +- .../documentation/swifthpke/publickey.json | 2 +- .../swifthpke/publickey/!=(_:_:).json | 2 +- .../swifthpke/publickey/==(_:_:).json | 2 +- .../swifthpke/publickey/asn1.json | 2 +- .../swifthpke/publickey/bytes.json | 2 +- .../swifthpke/publickey/der.json | 2 +- .../swifthpke/publickey/description.json | 2 +- .../publickey/equatable-implementations.json | 2 +- .../swifthpke/publickey/init(der:).json | 2 +- .../swifthpke/publickey/init(kem:bytes:).json | 2 +- .../swifthpke/publickey/init(pem:).json | 2 +- .../swifthpke/publickey/pem.json | 2 +- .../documentation/swifthpke/recipient.json | 2 +- ...rivatekey:info:authentication:encap:).json | 2 +- ...info:authentication:psk:pskid:encap:).json | 2 +- .../init(suite:privatekey:info:encap:).json | 2 +- ...ite:privatekey:info:psk:pskid:encap:).json | 2 +- .../swifthpke/recipient/open(ct:aad:).json | 2 +- .../recipient/receiveexport(context:l:).json | 2 +- .../documentation/swifthpke/references.json | 2 +- .../documentation/swifthpke/secretexport.json | 2 +- .../data/documentation/swifthpke/sender.json | 2 +- .../swifthpke/sender/encapsulatedkey.json | 2 +- .../sender/init(suite:publickey:info:).json | 2 +- ...suite:publickey:info:authentication:).json | 2 +- ...ickey:info:authentication:psk:pskid:).json | 2 +- ...init(suite:publickey:info:psk:pskid:).json | 2 +- .../swifthpke/sender/seal(pt:aad:).json | 2 +- .../sender/sendexport(context:l:).json | 2 +- .../swifthpke/aead/!=(_:_:)/index.html | 2 +- .../swifthpke/aead/aesgcm128/index.html | 2 +- .../swifthpke/aead/aesgcm256/index.html | 2 +- .../swifthpke/aead/chachapoly/index.html | 2 +- .../swifthpke/aead/description/index.html | 2 +- .../aead/equatable-implementations/index.html | 2 +- .../swifthpke/aead/exportonly/index.html | 2 +- .../documentation/swifthpke/aead/index.html | 2 +- .../swifthpke/base64/decode(_:)/index.html | 2 +- .../swifthpke/base64/encode(_:_:)/index.html | 2 +- .../documentation/swifthpke/base64/index.html | 2 +- .../base64/pemdecode(_:_:)/index.html | 2 +- .../base64/pemencode(_:_:)/index.html | 2 +- .../documentation/swifthpke/byte/index.html | 2 +- .../documentation/swifthpke/bytes/index.html | 2 +- .../swifthpke/ciphersuite/aead/index.html | 2 +- .../derivekeypair(ikm:)/index.html | 2 +- .../ciphersuite/description/index.html | 2 +- .../swifthpke/ciphersuite/index.html | 2 +- .../init(kem:kdf:aead:)/index.html | 2 +- .../swifthpke/ciphersuite/kdf/index.html | 2 +- .../swifthpke/ciphersuite/kem/index.html | 2 +- .../ciphersuite/makekeypair()/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../seal(publickey:info:pt:aad:)/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../swifthpke/cryptokit/index.html | 2 +- .../hpkeexception/!=(_:_:)/index.html | 2 +- .../hpkeexception/asn1structure/index.html | 2 +- .../swifthpke/hpkeexception/base64/index.html | 2 +- .../hpkeexception/decodepoint/index.html | 2 +- .../hpkeexception/derivedkeyerror/index.html | 2 +- .../hpkeexception/description/index.html | 2 +- .../equatable-implementations/index.html | 2 +- .../error-implementations/index.html | 2 +- .../hpkeexception/exportonlyerror/index.html | 2 +- .../hpkeexception/exportsize/index.html | 2 +- .../swifthpke/hpkeexception/index.html | 2 +- .../hpkeexception/keymismatch/index.html | 2 +- .../localizeddescription/index.html | 2 +- .../hpkeexception/pemstructure/index.html | 2 +- .../privatekeyparameter/index.html | 2 +- .../hpkeexception/pskerror/index.html | 2 +- .../publickeyparameter/index.html | 2 +- .../hpkeexception/smallorder/index.html | 2 +- .../documentation/swifthpke/index.html | 2 +- .../swifthpke/kdf/!=(_:_:)/index.html | 2 +- .../swifthpke/kdf/description/index.html | 2 +- .../kdf/equatable-implementations/index.html | 2 +- .../documentation/swifthpke/kdf/index.html | 2 +- .../swifthpke/kdf/kdf256/index.html | 2 +- .../swifthpke/kdf/kdf384/index.html | 2 +- .../swifthpke/kdf/kdf512/index.html | 2 +- .../swifthpke/kem/!=(_:_:)/index.html | 2 +- .../swifthpke/kem/description/index.html | 2 +- .../kem/equatable-implementations/index.html | 2 +- .../documentation/swifthpke/kem/index.html | 2 +- .../swifthpke/kem/p256/index.html | 2 +- .../swifthpke/kem/p384/index.html | 2 +- .../swifthpke/kem/p521/index.html | 2 +- .../swifthpke/kem/x25519/index.html | 2 +- .../swifthpke/kem/x448/index.html | 2 +- .../swifthpke/keymanagement/index.html | 2 +- .../swifthpke/performance/index.html | 2 +- .../swifthpke/privatekey/!=(_:_:)/index.html | 2 +- .../swifthpke/privatekey/==(_:_:)/index.html | 2 +- .../swifthpke/privatekey/asn1/index.html | 2 +- .../swifthpke/privatekey/bytes/index.html | 2 +- .../swifthpke/privatekey/der/index.html | 2 +- .../privatekey/description/index.html | 2 +- .../equatable-implementations/index.html | 2 +- .../swifthpke/privatekey/index.html | 2 +- .../privatekey/init(der:)/index.html | 2 +- .../privatekey/init(kem:bytes:)/index.html | 2 +- .../privatekey/init(pem:)/index.html | 2 +- .../swifthpke/privatekey/pem/index.html | 2 +- .../swifthpke/privatekey/publickey/index.html | 2 +- .../swifthpke/publickey/!=(_:_:)/index.html | 2 +- .../swifthpke/publickey/==(_:_:)/index.html | 2 +- .../swifthpke/publickey/asn1/index.html | 2 +- .../swifthpke/publickey/bytes/index.html | 2 +- .../swifthpke/publickey/der/index.html | 2 +- .../publickey/description/index.html | 2 +- .../equatable-implementations/index.html | 2 +- .../swifthpke/publickey/index.html | 2 +- .../swifthpke/publickey/init(der:)/index.html | 2 +- .../publickey/init(kem:bytes:)/index.html | 2 +- .../swifthpke/publickey/init(pem:)/index.html | 2 +- .../swifthpke/publickey/pem/index.html | 2 +- .../swifthpke/recipient/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../recipient/open(ct:aad:)/index.html | 2 +- .../receiveexport(context:l:)/index.html | 2 +- .../swifthpke/references/index.html | 2 +- .../swifthpke/secretexport/index.html | 2 +- .../sender/encapsulatedkey/index.html | 2 +- .../documentation/swifthpke/sender/index.html | 2 +- .../init(suite:publickey:info:)/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../swifthpke/sender/seal(pt:aad:)/index.html | 2 +- .../sender/sendexport(context:l:)/index.html | 2 +- SwiftHPKE.doccarchive/index.html | 2 +- .../index/availability.index | Bin 742 -> 742 bytes SwiftHPKE.doccarchive/index/data.mdb | Bin 69632 -> 180224 bytes .../js/{903.5a8b9c15.js => 903.b3710a74.js} | 0 .../{index.91ed7402.js => index.2871ffbd.js} | 2 +- .../SwiftHPKETests/CryptoKitAuthPSKTest.swift | 205 ++++++++++++++++++ Tests/SwiftHPKETests/CryptoKitAuthTest.swift | 199 +++++++++++++++++ Tests/SwiftHPKETests/CryptoKitBaseTest.swift | 179 +++++++++++++++ Tests/SwiftHPKETests/CryptoKitPSKTest.swift | 181 ++++++++++++++++ Tests/SwiftHPKETests/CryptoKitTest.swift | 3 + docs/data/documentation/swifthpke.json | 2 +- docs/data/documentation/swifthpke/aead.json | 2 +- .../swifthpke/aead/!=(_:_:).json | 2 +- .../swifthpke/aead/aesgcm128.json | 2 +- .../swifthpke/aead/aesgcm256.json | 2 +- .../swifthpke/aead/chachapoly.json | 2 +- .../swifthpke/aead/description.json | 2 +- .../aead/equatable-implementations.json | 2 +- .../swifthpke/aead/exportonly.json | 2 +- docs/data/documentation/swifthpke/base64.json | 2 +- .../swifthpke/base64/decode(_:).json | 2 +- .../swifthpke/base64/encode(_:_:).json | 2 +- .../swifthpke/base64/pemdecode(_:_:).json | 2 +- .../swifthpke/base64/pemencode(_:_:).json | 2 +- docs/data/documentation/swifthpke/byte.json | 2 +- docs/data/documentation/swifthpke/bytes.json | 2 +- .../documentation/swifthpke/ciphersuite.json | 2 +- .../swifthpke/ciphersuite/aead.json | 2 +- .../ciphersuite/derivekeypair(ikm:).json | 2 +- .../swifthpke/ciphersuite/description.json | 2 +- .../ciphersuite/init(kem:kdf:aead:).json | 2 +- .../swifthpke/ciphersuite/kdf.json | 2 +- .../swifthpke/ciphersuite/kem.json | 2 +- .../swifthpke/ciphersuite/makekeypair().json | 2 +- ...ey:info:authentication:ct:aad:encap:).json | 2 +- ...thentication:psk:pskid:ct:aad:encap:).json | 2 +- .../open(privatekey:info:ct:aad:encap:).json | 2 +- ...vatekey:info:psk:pskid:ct:aad:encap:).json | 2 +- ...info:context:l:authentication:encap:).json | 2 +- ...xt:l:authentication:psk:pskid:encap:).json | 2 +- ...ort(privatekey:info:context:l:encap:).json | 2 +- ...ekey:info:context:l:psk:pskid:encap:).json | 2 +- ...nfo:authentication:psk:pskid:pt:aad:).json | 2 +- ...ublickey:info:authentication:pt:aad:).json | 2 +- ...eal(publickey:info:psk:pskid:pt:aad:).json | 2 +- .../seal(publickey:info:pt:aad:).json | 2 +- ...sendexport(publickey:info:context:l:).json | 2 +- ...ickey:info:context:l:authentication:).json | 2 +- ...:context:l:authentication:psk:pskid:).json | 2 +- ...(publickey:info:context:l:psk:pskid:).json | 2 +- .../documentation/swifthpke/cryptokit.json | 2 +- .../swifthpke/hpkeexception.json | 2 +- .../swifthpke/hpkeexception/!=(_:_:).json | 2 +- .../hpkeexception/asn1structure.json | 2 +- .../swifthpke/hpkeexception/base64.json | 2 +- .../swifthpke/hpkeexception/decodepoint.json | 2 +- .../hpkeexception/derivedkeyerror.json | 2 +- .../swifthpke/hpkeexception/description.json | 2 +- .../equatable-implementations.json | 2 +- .../hpkeexception/error-implementations.json | 2 +- .../hpkeexception/exportonlyerror.json | 2 +- .../swifthpke/hpkeexception/exportsize.json | 2 +- .../swifthpke/hpkeexception/keymismatch.json | 2 +- .../hpkeexception/localizeddescription.json | 2 +- .../swifthpke/hpkeexception/pemstructure.json | 2 +- .../hpkeexception/privatekeyparameter.json | 2 +- .../swifthpke/hpkeexception/pskerror.json | 2 +- .../hpkeexception/publickeyparameter.json | 2 +- .../swifthpke/hpkeexception/smallorder.json | 2 +- docs/data/documentation/swifthpke/kdf.json | 2 +- .../documentation/swifthpke/kdf/!=(_:_:).json | 2 +- .../swifthpke/kdf/description.json | 2 +- .../kdf/equatable-implementations.json | 2 +- .../documentation/swifthpke/kdf/kdf256.json | 2 +- .../documentation/swifthpke/kdf/kdf384.json | 2 +- .../documentation/swifthpke/kdf/kdf512.json | 2 +- docs/data/documentation/swifthpke/kem.json | 2 +- .../documentation/swifthpke/kem/!=(_:_:).json | 2 +- .../swifthpke/kem/description.json | 2 +- .../kem/equatable-implementations.json | 2 +- .../documentation/swifthpke/kem/p256.json | 2 +- .../documentation/swifthpke/kem/p384.json | 2 +- .../documentation/swifthpke/kem/p521.json | 2 +- .../documentation/swifthpke/kem/x25519.json | 2 +- .../documentation/swifthpke/kem/x448.json | 2 +- .../swifthpke/keymanagement.json | 2 +- .../documentation/swifthpke/performance.json | 2 +- .../documentation/swifthpke/privatekey.json | 2 +- .../swifthpke/privatekey/!=(_:_:).json | 2 +- .../swifthpke/privatekey/==(_:_:).json | 2 +- .../swifthpke/privatekey/asn1.json | 2 +- .../swifthpke/privatekey/bytes.json | 2 +- .../swifthpke/privatekey/der.json | 2 +- .../swifthpke/privatekey/description.json | 2 +- .../privatekey/equatable-implementations.json | 2 +- .../swifthpke/privatekey/init(der:).json | 2 +- .../privatekey/init(kem:bytes:).json | 2 +- .../swifthpke/privatekey/init(pem:).json | 2 +- .../swifthpke/privatekey/pem.json | 2 +- .../swifthpke/privatekey/publickey.json | 2 +- .../documentation/swifthpke/publickey.json | 2 +- .../swifthpke/publickey/!=(_:_:).json | 2 +- .../swifthpke/publickey/==(_:_:).json | 2 +- .../swifthpke/publickey/asn1.json | 2 +- .../swifthpke/publickey/bytes.json | 2 +- .../swifthpke/publickey/der.json | 2 +- .../swifthpke/publickey/description.json | 2 +- .../publickey/equatable-implementations.json | 2 +- .../swifthpke/publickey/init(der:).json | 2 +- .../swifthpke/publickey/init(kem:bytes:).json | 2 +- .../swifthpke/publickey/init(pem:).json | 2 +- .../swifthpke/publickey/pem.json | 2 +- .../documentation/swifthpke/recipient.json | 2 +- ...rivatekey:info:authentication:encap:).json | 2 +- ...info:authentication:psk:pskid:encap:).json | 2 +- .../init(suite:privatekey:info:encap:).json | 2 +- ...ite:privatekey:info:psk:pskid:encap:).json | 2 +- .../swifthpke/recipient/open(ct:aad:).json | 2 +- .../recipient/receiveexport(context:l:).json | 2 +- .../documentation/swifthpke/references.json | 2 +- .../documentation/swifthpke/secretexport.json | 2 +- docs/data/documentation/swifthpke/sender.json | 2 +- .../swifthpke/sender/encapsulatedkey.json | 2 +- .../sender/init(suite:publickey:info:).json | 2 +- ...suite:publickey:info:authentication:).json | 2 +- ...ickey:info:authentication:psk:pskid:).json | 2 +- ...init(suite:publickey:info:psk:pskid:).json | 2 +- .../swifthpke/sender/seal(pt:aad:).json | 2 +- .../sender/sendexport(context:l:).json | 2 +- .../swifthpke/aead/!=(_:_:)/index.html | 2 +- .../swifthpke/aead/aesgcm128/index.html | 2 +- .../swifthpke/aead/aesgcm256/index.html | 2 +- .../swifthpke/aead/chachapoly/index.html | 2 +- .../swifthpke/aead/description/index.html | 2 +- .../aead/equatable-implementations/index.html | 2 +- .../swifthpke/aead/exportonly/index.html | 2 +- docs/documentation/swifthpke/aead/index.html | 2 +- .../swifthpke/base64/decode(_:)/index.html | 2 +- .../swifthpke/base64/encode(_:_:)/index.html | 2 +- .../documentation/swifthpke/base64/index.html | 2 +- .../base64/pemdecode(_:_:)/index.html | 2 +- .../base64/pemencode(_:_:)/index.html | 2 +- docs/documentation/swifthpke/byte/index.html | 2 +- docs/documentation/swifthpke/bytes/index.html | 2 +- .../swifthpke/ciphersuite/aead/index.html | 2 +- .../derivekeypair(ikm:)/index.html | 2 +- .../ciphersuite/description/index.html | 2 +- .../swifthpke/ciphersuite/index.html | 2 +- .../init(kem:kdf:aead:)/index.html | 2 +- .../swifthpke/ciphersuite/kdf/index.html | 2 +- .../swifthpke/ciphersuite/kem/index.html | 2 +- .../ciphersuite/makekeypair()/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../seal(publickey:info:pt:aad:)/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../swifthpke/cryptokit/index.html | 2 +- .../hpkeexception/!=(_:_:)/index.html | 2 +- .../hpkeexception/asn1structure/index.html | 2 +- .../swifthpke/hpkeexception/base64/index.html | 2 +- .../hpkeexception/decodepoint/index.html | 2 +- .../hpkeexception/derivedkeyerror/index.html | 2 +- .../hpkeexception/description/index.html | 2 +- .../equatable-implementations/index.html | 2 +- .../error-implementations/index.html | 2 +- .../hpkeexception/exportonlyerror/index.html | 2 +- .../hpkeexception/exportsize/index.html | 2 +- .../swifthpke/hpkeexception/index.html | 2 +- .../hpkeexception/keymismatch/index.html | 2 +- .../localizeddescription/index.html | 2 +- .../hpkeexception/pemstructure/index.html | 2 +- .../privatekeyparameter/index.html | 2 +- .../hpkeexception/pskerror/index.html | 2 +- .../publickeyparameter/index.html | 2 +- .../hpkeexception/smallorder/index.html | 2 +- docs/documentation/swifthpke/index.html | 2 +- .../swifthpke/kdf/!=(_:_:)/index.html | 2 +- .../swifthpke/kdf/description/index.html | 2 +- .../kdf/equatable-implementations/index.html | 2 +- docs/documentation/swifthpke/kdf/index.html | 2 +- .../swifthpke/kdf/kdf256/index.html | 2 +- .../swifthpke/kdf/kdf384/index.html | 2 +- .../swifthpke/kdf/kdf512/index.html | 2 +- .../swifthpke/kem/!=(_:_:)/index.html | 2 +- .../swifthpke/kem/description/index.html | 2 +- .../kem/equatable-implementations/index.html | 2 +- docs/documentation/swifthpke/kem/index.html | 2 +- .../swifthpke/kem/p256/index.html | 2 +- .../swifthpke/kem/p384/index.html | 2 +- .../swifthpke/kem/p521/index.html | 2 +- .../swifthpke/kem/x25519/index.html | 2 +- .../swifthpke/kem/x448/index.html | 2 +- .../swifthpke/keymanagement/index.html | 2 +- .../swifthpke/performance/index.html | 2 +- .../swifthpke/privatekey/!=(_:_:)/index.html | 2 +- .../swifthpke/privatekey/==(_:_:)/index.html | 2 +- .../swifthpke/privatekey/asn1/index.html | 2 +- .../swifthpke/privatekey/bytes/index.html | 2 +- .../swifthpke/privatekey/der/index.html | 2 +- .../privatekey/description/index.html | 2 +- .../equatable-implementations/index.html | 2 +- .../swifthpke/privatekey/index.html | 2 +- .../privatekey/init(der:)/index.html | 2 +- .../privatekey/init(kem:bytes:)/index.html | 2 +- .../privatekey/init(pem:)/index.html | 2 +- .../swifthpke/privatekey/pem/index.html | 2 +- .../swifthpke/privatekey/publickey/index.html | 2 +- .../swifthpke/publickey/!=(_:_:)/index.html | 2 +- .../swifthpke/publickey/==(_:_:)/index.html | 2 +- .../swifthpke/publickey/asn1/index.html | 2 +- .../swifthpke/publickey/bytes/index.html | 2 +- .../swifthpke/publickey/der/index.html | 2 +- .../publickey/description/index.html | 2 +- .../equatable-implementations/index.html | 2 +- .../swifthpke/publickey/index.html | 2 +- .../swifthpke/publickey/init(der:)/index.html | 2 +- .../publickey/init(kem:bytes:)/index.html | 2 +- .../swifthpke/publickey/init(pem:)/index.html | 2 +- .../swifthpke/publickey/pem/index.html | 2 +- .../swifthpke/recipient/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../recipient/open(ct:aad:)/index.html | 2 +- .../receiveexport(context:l:)/index.html | 2 +- .../swifthpke/references/index.html | 2 +- .../swifthpke/secretexport/index.html | 2 +- .../sender/encapsulatedkey/index.html | 2 +- .../documentation/swifthpke/sender/index.html | 2 +- .../init(suite:publickey:info:)/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../swifthpke/sender/seal(pt:aad:)/index.html | 2 +- .../sender/sendexport(context:l:)/index.html | 2 +- docs/index.html | 2 +- docs/js/{903.5a8b9c15.js => 903.b3710a74.js} | 0 .../{index.91ed7402.js => index.2871ffbd.js} | 2 +- docs/metadata.json | 2 +- 494 files changed, 1264 insertions(+), 491 deletions(-) rename SwiftHPKE.doccarchive/js/{903.5a8b9c15.js => 903.b3710a74.js} (100%) rename SwiftHPKE.doccarchive/js/{index.91ed7402.js => index.2871ffbd.js} (99%) create mode 100644 Tests/SwiftHPKETests/CryptoKitAuthPSKTest.swift create mode 100644 Tests/SwiftHPKETests/CryptoKitAuthTest.swift create mode 100644 Tests/SwiftHPKETests/CryptoKitBaseTest.swift create mode 100644 Tests/SwiftHPKETests/CryptoKitPSKTest.swift rename docs/js/{903.5a8b9c15.js => 903.b3710a74.js} (100%) rename docs/js/{index.91ed7402.js => index.2871ffbd.js} (99%) diff --git a/Package.swift b/Package.swift index 677f49d..f288ca1 100644 --- a/Package.swift +++ b/Package.swift @@ -14,9 +14,9 @@ let package = Package( ], dependencies: [ // Dependencies declare other packages that this package depends on. - .package(url: "https://github.com/leif-ibsen/BigInt", from: "1.16.0"), - .package(url: "https://github.com/leif-ibsen/ASN1", from: "2.4.0"), - .package(url: "https://github.com/leif-ibsen/Digest", from: "1.3.0"), + .package(url: "https://github.com/leif-ibsen/BigInt", from: "1.17.0"), + .package(url: "https://github.com/leif-ibsen/ASN1", from: "2.5.0"), + .package(url: "https://github.com/leif-ibsen/Digest", from: "1.6.0"), ], targets: [ // Targets are the basic building blocks of a package. A target can define a module or a test suite. diff --git a/Sources/SwiftHPKE/KEM.swift b/Sources/SwiftHPKE/KEM.swift index 9907d91..0531306 100644 --- a/Sources/SwiftHPKE/KEM.swift +++ b/Sources/SwiftHPKE/KEM.swift @@ -66,7 +66,7 @@ struct KEMStructure { self.bitmask = 0xff case .P384: let suite_id = Bytes("KEM".utf8) + [0x00, 0x11] - self.kdfStructure = KDFStructure(.KDF256, suite_id) + self.kdfStructure = KDFStructure(.KDF384, suite_id) self.Nsecret = 48 self.Npk = CurveP384.publicKeySize self.Nsk = CurveP384.privateKeySize diff --git a/Sources/SwiftHPKE/SwiftHPKE.docc/Articles/CryptoKit.md b/Sources/SwiftHPKE/SwiftHPKE.docc/Articles/CryptoKit.md index caad479..e18c71a 100644 --- a/Sources/SwiftHPKE/SwiftHPKE.docc/Articles/CryptoKit.md +++ b/Sources/SwiftHPKE/SwiftHPKE.docc/Articles/CryptoKit.md @@ -33,3 +33,9 @@ To convert SwiftHPKE `.X25519` keys - say `hpkePriv` and `hpkePub` to CryptoKit let ckPriv = try CryptoKit.Curve25519.KeyAgreement.PrivateKey(rawRepresentation: hpkePriv.bytes) let ckPub = try CryptoKit.Curve25519.KeyAgreement.PublicKey(rawRepresentation: hpkePub.bytes) ``` + +Messages sealed by CryptoKit in Base mode, Preshared Key mode, Authenticated mode or Authenticated, Preshared Key mode +can be opened by SwiftHPKE in the same mode using the SwiftHPKE version of the keys. + +Likewise, messages sealed by SwiftHPKE in Base mode, Preshared Key mode, Authenticated mode or Authenticated, Preshared Key mode +can be opened by CryptoKit in the same mode using the CryptoKit version of the keys. diff --git a/Sources/SwiftHPKE/SwiftHPKE.docc/SwiftHPKE.md b/Sources/SwiftHPKE/SwiftHPKE.docc/SwiftHPKE.md index 7516de7..cc9f64b 100644 --- a/Sources/SwiftHPKE/SwiftHPKE.docc/SwiftHPKE.md +++ b/Sources/SwiftHPKE/SwiftHPKE.docc/SwiftHPKE.md @@ -6,7 +6,7 @@ Hybrid Public Key Encryption SwiftHPKE implements the Hybrid Public Key Encryption standard as defined in [RFC 9180]. -The basic concepts in SwiftHPKE are CipherSuite, Sender and Recipient, represented by the ``SwiftHPKE/CipherSuite`` structure and the ``SwiftHPKE/Sender`` and ``SwiftHPKE/Recipient`` classes. +The basic concepts in SwiftHPKE are `CipherSuite`, `Sender` and `Recipient`, represented by the ``SwiftHPKE/CipherSuite`` structure and the ``SwiftHPKE/Sender`` and ``SwiftHPKE/Recipient`` classes. A CipherSuite combines a *Key Encapsulation Mechanism* (``SwiftHPKE/KEM``), a *Key Derivation Function* (``SwiftHPKE/KDF``) and a *Authenticated Encryption with Associated Data* (``SwiftHPKE/AEAD``) algorithm. @@ -48,7 +48,7 @@ giving: Hi, there ``` -### Statefull Multi-message API +### Stateful Multi-message API A `Sender` is based on a specific `CipherSuite` and a `Sender` instance can encrypt (seal) a sequence of plaintexts in one of the four modes shown above. @@ -108,7 +108,7 @@ To use SwiftHPKE, in your project *Package.swift* file add a dependency like ```swift dependencies: [ - .package(url: "https://github.com/leif-ibsen/SwiftHPKE", from: "2.4.0"), + .package(url: "https://github.com/leif-ibsen/SwiftHPKE", from: "2.5.0"), ] ``` @@ -116,9 +116,9 @@ SwiftHPKE itself depends on the ASN1, BigInt and Digest packages ```swift dependencies: [ - .package(url: "https://github.com/leif-ibsen/ASN1", from: "2.4.0"), - .package(url: "https://github.com/leif-ibsen/BigInt", from: "1.16.0"), - .package(url: "https://github.com/leif-ibsen/Digest", from: "1.3.0"), + .package(url: "https://github.com/leif-ibsen/ASN1", from: "2.5.0"), + .package(url: "https://github.com/leif-ibsen/BigInt", from: "1.17.0"), + .package(url: "https://github.com/leif-ibsen/Digest", from: "1.6.0"), ], ``` diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke.json index f2eb51c..71efe10 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke.json @@ -1 +1 @@ -{"topicSections":[{"title":"Classes","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"]},{"title":"Structures","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"]},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Byte","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"],"title":"Type Aliases"},{"title":"Enumerations","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References"],"title":"Additional Information"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke"]}],"metadata":{"roleHeading":"Framework","role":"collection","title":"SwiftHPKE","externalID":"SwiftHPKE","modules":[{"name":"SwiftHPKE"}],"symbolKind":"module"},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","interfaceLanguage":"swift"},"sections":[],"schemaVersion":{"patch":0,"minor":3,"major":0},"abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"primaryContentSections":[{"content":[{"anchor":"Overview","type":"heading","text":"Overview","level":2},{"inlineContent":[{"type":"text","text":"SwiftHPKE implements the Hybrid Public Key Encryption standard as defined in [RFC 9180]."}],"type":"paragraph"},{"inlineContent":[{"text":"The basic concepts in SwiftHPKE are CipherSuite, Sender and Recipient, represented by the ","type":"text"},{"type":"reference","isActive":true,"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"},{"type":"text","text":" structure and the "},{"isActive":true,"type":"reference","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"},{"text":" and ","type":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","type":"reference","isActive":true},{"type":"text","text":" classes."}],"type":"paragraph"},{"inlineContent":[{"type":"text","text":"A CipherSuite combines a "},{"inlineContent":[{"text":"Key Encapsulation Mechanism","type":"text"}],"type":"emphasis"},{"type":"text","text":" ("},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","isActive":true,"type":"reference"},{"text":"), a ","type":"text"},{"type":"emphasis","inlineContent":[{"text":"Key Derivation Function","type":"text"}]},{"text":" (","type":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","isActive":true,"type":"reference"},{"type":"text","text":")"},{"text":" ","type":"text"},{"text":"and a ","type":"text"},{"type":"emphasis","inlineContent":[{"text":"Authenticated Encryption with Associated Data","type":"text"}]},{"type":"text","text":" ("},{"type":"reference","isActive":true,"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD"},{"type":"text","text":") algorithm."}],"type":"paragraph"},{"inlineContent":[{"text":"There are 5 different KEM’s, 3 different KDF’s and 4 different AEAD’s giving 60 CipherSuite combinations.","type":"text"}],"type":"paragraph"},{"type":"paragraph","inlineContent":[{"type":"text","text":"Encryption and decryption takes place in one of four modes:"}]},{"type":"unorderedList","items":[{"content":[{"type":"paragraph","inlineContent":[{"text":"Base mode","type":"text"}]}]},{"content":[{"inlineContent":[{"type":"text","text":"Preshared key mode"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"type":"text","text":"Authenticated mode"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"type":"text","text":"Authenticated, preshared key mode"}],"type":"paragraph"}]}]},{"text":"Stateless Single-shot API","type":"heading","level":3,"anchor":"Stateless-Single-shot-API"},{"type":"paragraph","inlineContent":[{"text":"A ","type":"text"},{"type":"codeVoice","code":"CipherSuite"},{"type":"text","text":" instance can encrypt (seal) a single plaintext message and decrypt (open) a single"},{"type":"text","text":" "},{"type":"text","text":"ciphertext message without the need for a "},{"type":"codeVoice","code":"Sender"},{"type":"text","text":" instance and a "},{"type":"codeVoice","code":"Recipient"},{"type":"text","text":" instance."}]},{"inlineContent":[{"type":"strong","inlineContent":[{"type":"text","text":"Example"}]}],"type":"paragraph"},{"syntax":"swift","code":["\/\/ Encryption and decryption of a single message in base mode","","import SwiftHPKE","","\/\/ The CipherSuite to use","let theSuite = CipherSuite(kem: .X448, kdf: .KDF512, aead: .AESGCM256)","","\/\/ The recipient keys","let (recipientPub, recipientPriv) = try theSuite.makeKeyPair()","","let plainText = Bytes(\"Hi, there\".utf8)","let (encapsulatedKey, cipherText) = try theSuite.seal(publicKey: recipientPub, info: [1, 2, 3], pt: plainText, aad: [4, 5, 6])","let decrypted = try theSuite.open(privateKey: recipientPriv, info: [1, 2, 3], ct: cipherText, aad: [4, 5, 6], encap: encapsulatedKey)","print(String(bytes: decrypted, encoding: .utf8)!)"],"type":"codeListing"},{"type":"paragraph","inlineContent":[{"type":"text","text":"giving:"}]},{"type":"codeListing","code":["Hi, there"],"syntax":"swift"},{"level":3,"anchor":"Statefull-Multi-message-API","type":"heading","text":"Statefull Multi-message API"},{"inlineContent":[{"text":"A ","type":"text"},{"code":"Sender","type":"codeVoice"},{"type":"text","text":" is based on a specific "},{"code":"CipherSuite","type":"codeVoice"},{"text":" and a ","type":"text"},{"type":"codeVoice","code":"Sender"},{"type":"text","text":" instance can encrypt (seal)"},{"type":"text","text":" "},{"text":"a sequence of plaintexts in one of the four modes shown above.","type":"text"}],"type":"paragraph"},{"type":"paragraph","inlineContent":[{"text":"A ","type":"text"},{"type":"codeVoice","code":"Recipient"},{"type":"text","text":" is also based on a specific "},{"type":"codeVoice","code":"CipherSuite"},{"type":"text","text":" and a "},{"type":"codeVoice","code":"Recipient"},{"type":"text","text":" instance can decrypt (open)"},{"type":"text","text":" "},{"text":"a sequence of ciphertexts in the four modes.","type":"text"}]},{"inlineContent":[{"type":"strong","inlineContent":[{"text":"Example","type":"text"}]}],"type":"paragraph"},{"type":"codeListing","syntax":"swift","code":["\/\/ Encryption and decryption of several messages in authenticated mode","","import SwiftHPKE","","\/\/ The CipherSuite to use","let theSuite = CipherSuite(kem: .P384, kdf: .KDF384, aead: .CHACHAPOLY)","","let plainText1 = Bytes(\"Hi, there 1\".utf8)","let plainText2 = Bytes(\"Hi, there 2\".utf8)","let plainText3 = Bytes(\"Hi, there 3\".utf8)","","\/\/ The Sender and Recipient keys","let (senderPub, senderPriv) = try theSuite.makeKeyPair()","let (recipientPub, recipientPriv) = try theSuite.makeKeyPair()","","\/\/ Create the Sender instance","let sender = try Sender(suite: theSuite, publicKey: recipientPub, info: [1, 2, 3], authentication: senderPriv)","","let cipherText1 = try sender.seal(pt: plainText1, aad: [4, 5])","let cipherText2 = try sender.seal(pt: plainText2, aad: [6, 7])","let cipherText3 = try sender.seal(pt: plainText3, aad: [8, 9])","","\/\/ Create the Recipient instance","let recipient = try Recipient(suite: theSuite, privateKey: recipientPriv, info: [1, 2, 3], authentication: senderPub, encap: sender.encapsulatedKey)","","let decrypted1 = try recipient.open(ct: cipherText1, aad: [4, 5])","let decrypted2 = try recipient.open(ct: cipherText2, aad: [6, 7])","let decrypted3 = try recipient.open(ct: cipherText3, aad: [8, 9])","","print(String(bytes: decrypted1, encoding: .utf8)!)","print(String(bytes: decrypted2, encoding: .utf8)!)","print(String(bytes: decrypted3, encoding: .utf8)!)"]},{"inlineContent":[{"text":"giving:","type":"text"}],"type":"paragraph"},{"syntax":"swift","code":["Hi, there 1","Hi, there 2","Hi, there 3"],"type":"codeListing"},{"name":"Important","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":""},{"text":" ","type":"text"},{"text":"The messages must be decrypted in the order in which they were encrypted.","type":"text"}]}],"style":"important","type":"aside"},{"anchor":"Usage","text":"Usage","type":"heading","level":3},{"type":"paragraph","inlineContent":[{"text":"To use SwiftHPKE, in your project ","type":"text"},{"inlineContent":[{"text":"Package.swift","type":"text"}],"type":"emphasis"},{"text":" file add a dependency like","type":"text"}]},{"code":["dependencies: ["," .package(url: \"https:\/\/github.com\/leif-ibsen\/SwiftHPKE\", from: \"2.4.0\"),","]"],"syntax":"swift","type":"codeListing"},{"type":"paragraph","inlineContent":[{"type":"text","text":"SwiftHPKE itself depends on the ASN1, BigInt and Digest packages"}]},{"code":["dependencies: ["," .package(url: \"https:\/\/github.com\/leif-ibsen\/ASN1\", from: \"2.4.0\"),"," .package(url: \"https:\/\/github.com\/leif-ibsen\/BigInt\", from: \"1.16.0\"),"," .package(url: \"https:\/\/github.com\/leif-ibsen\/Digest\", from: \"1.3.0\"),","],"],"syntax":"swift","type":"codeListing"},{"content":[{"type":"paragraph","inlineContent":[{"text":"","type":"text"},{"text":" ","type":"text"},{"type":"text","text":"SwiftHPKE requires Swift 5.0. It also requires that the "},{"code":"Int","type":"codeVoice"},{"type":"text","text":" and "},{"type":"codeVoice","code":"UInt"},{"type":"text","text":" types be 64 bit types."}]},{"inlineContent":[{"text":"SwiftHPKE uses Apple’s CryptoKit framework. Therefore, for macOS the version must be at least 10.15,","type":"text"},{"text":" ","type":"text"},{"type":"text","text":"for iOS the version must be at least 13, and for watchOS the version must be at least 8."}],"type":"paragraph"}],"type":"aside","name":"Important","style":"important"}],"kind":"content"}],"hierarchy":{"paths":[[]]},"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"abstract":[{"text":"The key derivation functions","type":"text"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","navigatorTitle":[{"kind":"identifier","text":"KDF"}],"url":"\/documentation\/swifthpke\/kdf","type":"topic","title":"KDF"},"doc://SwiftHPKE/documentation/SwiftHPKE/Byte":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Byte","url":"\/documentation\/swifthpke\/byte","navigatorTitle":[{"kind":"identifier","text":"Byte"}],"role":"symbol","title":"Byte","kind":"symbol","type":"topic","abstract":[{"type":"text","text":"Unsigned 8 bit value"}],"fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"kind":"identifier","text":"Byte"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"kind":"keyword","text":"class"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Sender"}],"navigatorTitle":[{"text":"Sender","kind":"identifier"}],"title":"Sender","abstract":[{"type":"text","text":"The sender"}],"type":"topic","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","url":"\/documentation\/swifthpke\/sender"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"abstract":[{"type":"text","text":"The recipient"}],"navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"role":"symbol","type":"topic","title":"Recipient","kind":"symbol","url":"\/documentation\/swifthpke\/recipient","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","fragments":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Recipient"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/References":{"role":"article","title":"References","abstract":[{"type":"text","text":"Algorithms from the following books and papers have been used in the implementation"}],"url":"\/documentation\/swifthpke\/references","kind":"article","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References"},"doc://SwiftHPKE/documentation/SwiftHPKE/KeyManagement":{"role":"article","title":"Key Management","abstract":[{"type":"text","text":"Creating new keys and loading exsisting keys"}],"url":"\/documentation\/swifthpke\/keymanagement","kind":"article","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement"},"doc://SwiftHPKE/documentation/SwiftHPKE/SecretExport":{"kind":"article","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","role":"article","url":"\/documentation\/swifthpke\/secretexport","abstract":[{"type":"text","text":"Creating secret messages"}],"title":"Secret Export"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","navigatorTitle":[{"text":"KEM","kind":"identifier"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"title":"KEM","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"KEM","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Performance":{"url":"\/documentation\/swifthpke\/performance","title":"Performance","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","abstract":[{"type":"text","text":"Encryption and decryption speed"}],"role":"article","kind":"article","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"type":"topic","title":"Base64","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Base64"}],"navigatorTitle":[{"kind":"identifier","text":"Base64"}],"url":"\/documentation\/swifthpke\/base64","role":"symbol","kind":"symbol","abstract":[{"type":"text","text":"The Base64 structure"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CryptoKit":{"kind":"article","abstract":[{"type":"text","text":"SwiftHPKE is compatible with Apple’s CryptoKit framework"}],"title":"CryptoKit Compatibility","url":"\/documentation\/swifthpke\/cryptokit","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","role":"article","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"kind":"symbol","title":"HPKEException","url":"\/documentation\/swifthpke\/hpkeexception","role":"symbol","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"AEAD","kind":"identifier"}],"navigatorTitle":[{"text":"AEAD","kind":"identifier"}],"abstract":[{"text":"The AEAD encryption algorithms","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","url":"\/documentation\/swifthpke\/aead","kind":"symbol","type":"topic","title":"AEAD"}}} \ No newline at end of file +{"schemaVersion":{"minor":3,"major":0,"patch":0},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"},"hierarchy":{"paths":[[]]},"primaryContentSections":[{"content":[{"text":"Overview","level":2,"type":"heading","anchor":"Overview"},{"type":"paragraph","inlineContent":[{"type":"text","text":"SwiftHPKE implements the Hybrid Public Key Encryption standard as defined in [RFC 9180]."}]},{"type":"paragraph","inlineContent":[{"type":"text","text":"The basic concepts in SwiftHPKE are "},{"code":"CipherSuite","type":"codeVoice"},{"text":", ","type":"text"},{"type":"codeVoice","code":"Sender"},{"text":" and ","type":"text"},{"type":"codeVoice","code":"Recipient"},{"text":", represented by the ","type":"text"},{"isActive":true,"type":"reference","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"},{"text":" structure and the ","type":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","isActive":true,"type":"reference"},{"text":" and ","type":"text"},{"isActive":true,"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","type":"reference"},{"type":"text","text":" classes."}]},{"type":"paragraph","inlineContent":[{"text":"A CipherSuite combines a ","type":"text"},{"type":"emphasis","inlineContent":[{"type":"text","text":"Key Encapsulation Mechanism"}]},{"type":"text","text":" ("},{"isActive":true,"type":"reference","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"},{"type":"text","text":"), a "},{"type":"emphasis","inlineContent":[{"text":"Key Derivation Function","type":"text"}]},{"text":" (","type":"text"},{"isActive":true,"type":"reference","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"},{"type":"text","text":")"},{"type":"text","text":" "},{"text":"and a ","type":"text"},{"type":"emphasis","inlineContent":[{"type":"text","text":"Authenticated Encryption with Associated Data"}]},{"type":"text","text":" ("},{"isActive":true,"type":"reference","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD"},{"text":") algorithm.","type":"text"}]},{"type":"paragraph","inlineContent":[{"type":"text","text":"There are 5 different KEM’s, 3 different KDF’s and 4 different AEAD’s giving 60 CipherSuite combinations."}]},{"inlineContent":[{"text":"Encryption and decryption takes place in one of four modes:","type":"text"}],"type":"paragraph"},{"type":"unorderedList","items":[{"content":[{"inlineContent":[{"text":"Base mode","type":"text"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"text":"Preshared key mode","type":"text"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"type":"text","text":"Authenticated mode"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"text":"Authenticated, preshared key mode","type":"text"}],"type":"paragraph"}]}]},{"anchor":"Stateless-Single-shot-API","level":3,"text":"Stateless Single-shot API","type":"heading"},{"type":"paragraph","inlineContent":[{"type":"text","text":"A "},{"type":"codeVoice","code":"CipherSuite"},{"type":"text","text":" instance can encrypt (seal) a single plaintext message and decrypt (open) a single"},{"type":"text","text":" "},{"type":"text","text":"ciphertext message without the need for a "},{"code":"Sender","type":"codeVoice"},{"type":"text","text":" instance and a "},{"type":"codeVoice","code":"Recipient"},{"type":"text","text":" instance."}]},{"type":"paragraph","inlineContent":[{"type":"strong","inlineContent":[{"text":"Example","type":"text"}]}]},{"code":["\/\/ Encryption and decryption of a single message in base mode","","import SwiftHPKE","","\/\/ The CipherSuite to use","let theSuite = CipherSuite(kem: .X448, kdf: .KDF512, aead: .AESGCM256)","","\/\/ The recipient keys","let (recipientPub, recipientPriv) = try theSuite.makeKeyPair()","","let plainText = Bytes(\"Hi, there\".utf8)","let (encapsulatedKey, cipherText) = try theSuite.seal(publicKey: recipientPub, info: [1, 2, 3], pt: plainText, aad: [4, 5, 6])","let decrypted = try theSuite.open(privateKey: recipientPriv, info: [1, 2, 3], ct: cipherText, aad: [4, 5, 6], encap: encapsulatedKey)","print(String(bytes: decrypted, encoding: .utf8)!)"],"type":"codeListing","syntax":"swift"},{"type":"paragraph","inlineContent":[{"type":"text","text":"giving:"}]},{"syntax":"swift","type":"codeListing","code":["Hi, there"]},{"text":"Stateful Multi-message API","type":"heading","level":3,"anchor":"Stateful-Multi-message-API"},{"inlineContent":[{"type":"text","text":"A "},{"type":"codeVoice","code":"Sender"},{"type":"text","text":" is based on a specific "},{"code":"CipherSuite","type":"codeVoice"},{"type":"text","text":" and a "},{"code":"Sender","type":"codeVoice"},{"text":" instance can encrypt (seal)","type":"text"},{"text":" ","type":"text"},{"text":"a sequence of plaintexts in one of the four modes shown above.","type":"text"}],"type":"paragraph"},{"type":"paragraph","inlineContent":[{"type":"text","text":"A "},{"code":"Recipient","type":"codeVoice"},{"type":"text","text":" is also based on a specific "},{"type":"codeVoice","code":"CipherSuite"},{"type":"text","text":" and a "},{"type":"codeVoice","code":"Recipient"},{"type":"text","text":" instance can decrypt (open)"},{"type":"text","text":" "},{"type":"text","text":"a sequence of ciphertexts in the four modes."}]},{"type":"paragraph","inlineContent":[{"type":"strong","inlineContent":[{"type":"text","text":"Example"}]}]},{"syntax":"swift","type":"codeListing","code":["\/\/ Encryption and decryption of several messages in authenticated mode","","import SwiftHPKE","","\/\/ The CipherSuite to use","let theSuite = CipherSuite(kem: .P384, kdf: .KDF384, aead: .CHACHAPOLY)","","let plainText1 = Bytes(\"Hi, there 1\".utf8)","let plainText2 = Bytes(\"Hi, there 2\".utf8)","let plainText3 = Bytes(\"Hi, there 3\".utf8)","","\/\/ The Sender and Recipient keys","let (senderPub, senderPriv) = try theSuite.makeKeyPair()","let (recipientPub, recipientPriv) = try theSuite.makeKeyPair()","","\/\/ Create the Sender instance","let sender = try Sender(suite: theSuite, publicKey: recipientPub, info: [1, 2, 3], authentication: senderPriv)","","let cipherText1 = try sender.seal(pt: plainText1, aad: [4, 5])","let cipherText2 = try sender.seal(pt: plainText2, aad: [6, 7])","let cipherText3 = try sender.seal(pt: plainText3, aad: [8, 9])","","\/\/ Create the Recipient instance","let recipient = try Recipient(suite: theSuite, privateKey: recipientPriv, info: [1, 2, 3], authentication: senderPub, encap: sender.encapsulatedKey)","","let decrypted1 = try recipient.open(ct: cipherText1, aad: [4, 5])","let decrypted2 = try recipient.open(ct: cipherText2, aad: [6, 7])","let decrypted3 = try recipient.open(ct: cipherText3, aad: [8, 9])","","print(String(bytes: decrypted1, encoding: .utf8)!)","print(String(bytes: decrypted2, encoding: .utf8)!)","print(String(bytes: decrypted3, encoding: .utf8)!)"]},{"inlineContent":[{"type":"text","text":"giving:"}],"type":"paragraph"},{"syntax":"swift","code":["Hi, there 1","Hi, there 2","Hi, there 3"],"type":"codeListing"},{"content":[{"inlineContent":[{"type":"text","text":""},{"type":"text","text":" "},{"text":"The messages must be decrypted in the order in which they were encrypted.","type":"text"}],"type":"paragraph"}],"name":"Important","type":"aside","style":"important"},{"type":"heading","text":"Usage","anchor":"Usage","level":3},{"inlineContent":[{"text":"To use SwiftHPKE, in your project ","type":"text"},{"type":"emphasis","inlineContent":[{"type":"text","text":"Package.swift"}]},{"type":"text","text":" file add a dependency like"}],"type":"paragraph"},{"syntax":"swift","type":"codeListing","code":["dependencies: ["," .package(url: \"https:\/\/github.com\/leif-ibsen\/SwiftHPKE\", from: \"2.5.0\"),","]"]},{"type":"paragraph","inlineContent":[{"type":"text","text":"SwiftHPKE itself depends on the ASN1, BigInt and Digest packages"}]},{"type":"codeListing","syntax":"swift","code":["dependencies: ["," .package(url: \"https:\/\/github.com\/leif-ibsen\/ASN1\", from: \"2.5.0\"),"," .package(url: \"https:\/\/github.com\/leif-ibsen\/BigInt\", from: \"1.17.0\"),"," .package(url: \"https:\/\/github.com\/leif-ibsen\/Digest\", from: \"1.6.0\"),","],"]},{"name":"Important","type":"aside","style":"important","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":""},{"type":"text","text":" "},{"type":"text","text":"SwiftHPKE requires Swift 5.0. It also requires that the "},{"code":"Int","type":"codeVoice"},{"text":" and ","type":"text"},{"type":"codeVoice","code":"UInt"},{"type":"text","text":" types be 64 bit types."}]},{"type":"paragraph","inlineContent":[{"text":"SwiftHPKE uses Apple’s CryptoKit framework. Therefore, for macOS the version must be at least 10.15,","type":"text"},{"text":" ","type":"text"},{"type":"text","text":"for iOS the version must be at least 13, and for watchOS the version must be at least 8."}]}]}],"kind":"content"}],"kind":"symbol","variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke"]}],"metadata":{"title":"SwiftHPKE","roleHeading":"Framework","symbolKind":"module","role":"collection","modules":[{"name":"SwiftHPKE"}],"externalID":"SwiftHPKE"},"abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"topicSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"],"title":"Classes"},{"title":"Structures","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"]},{"title":"Type Aliases","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Byte","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"]},{"title":"Enumerations","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]},{"title":"Additional Information","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References"]}],"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Performance":{"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","title":"Performance","url":"\/documentation\/swifthpke\/performance","kind":"article","abstract":[{"type":"text","text":"Encryption and decryption speed"}],"role":"article"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"url":"\/documentation\/swifthpke\/hpkeexception","title":"HPKEException","role":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","abstract":[{"type":"text","text":"The HPKE exceptions"}],"navigatorTitle":[{"kind":"identifier","text":"HPKEException"}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"HPKEException","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"type":"topic","title":"Base64","url":"\/documentation\/swifthpke\/base64","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"text":"Base64","kind":"identifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","role":"symbol","kind":"symbol","abstract":[{"type":"text","text":"The Base64 structure"}],"navigatorTitle":[{"text":"Base64","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KeyManagement":{"role":"article","title":"Key Management","url":"\/documentation\/swifthpke\/keymanagement","type":"topic","kind":"article","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","abstract":[{"text":"Creating new keys and loading exsisting keys","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/SecretExport":{"role":"article","title":"Secret Export","url":"\/documentation\/swifthpke\/secretexport","type":"topic","kind":"article","abstract":[{"text":"Creating secret messages","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"AEAD","kind":"identifier"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","title":"AEAD","url":"\/documentation\/swifthpke\/aead","kind":"symbol","role":"symbol","navigatorTitle":[{"text":"AEAD","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"kind":"symbol","url":"\/documentation\/swifthpke\/kdf","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","navigatorTitle":[{"text":"KDF","kind":"identifier"}],"type":"topic","abstract":[{"type":"text","text":"The key derivation functions"}],"role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"title":"KDF"},"doc://SwiftHPKE/documentation/SwiftHPKE/CryptoKit":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","kind":"article","role":"article","abstract":[{"text":"SwiftHPKE is compatible with Apple’s CryptoKit framework","type":"text"}],"url":"\/documentation\/swifthpke\/cryptokit","type":"topic","title":"CryptoKit Compatibility"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Byte":{"navigatorTitle":[{"text":"Byte","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Unsigned 8 bit value","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Byte","type":"topic","kind":"symbol","title":"Byte","fragments":[{"text":"typealias","kind":"keyword"},{"kind":"text","text":" "},{"text":"Byte","kind":"identifier"}],"url":"\/documentation\/swifthpke\/byte"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"text":"Sender","kind":"identifier"}],"title":"Sender","url":"\/documentation\/swifthpke\/sender","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","role":"symbol","type":"topic","abstract":[{"text":"The sender","type":"text"}],"kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"Sender"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"KEM"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"url":"\/documentation\/swifthpke\/kem","kind":"symbol","title":"KEM","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","abstract":[{"type":"text","text":"The recipient"}],"navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/recipient","fragments":[{"kind":"keyword","text":"class"},{"text":" ","kind":"text"},{"text":"Recipient","kind":"identifier"}],"title":"Recipient"},"doc://SwiftHPKE/documentation/SwiftHPKE/References":{"role":"article","title":"References","url":"\/documentation\/swifthpke\/references","type":"topic","abstract":[{"text":"Algorithms from the following books and papers have been used in the implementation","type":"text"}],"kind":"article","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead.json index ed4b6c0..a8125e3 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead.json @@ -1 +1 @@ -{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"topicSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/AESGCM128","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/AESGCM256","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/CHACHAPOLY","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/EXPORTONLY"],"title":"Enumeration Cases"},{"title":"Instance Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/description"]},{"title":"Default Implementations","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/Equatable-Implementations"]}],"relationshipsSections":[{"title":"Conforms To","identifiers":["doc:\/\/SwiftHPKE\/s12CaseIterableP","doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","doc:\/\/SwiftHPKE\/SQ","doc:\/\/SwiftHPKE\/SH"],"kind":"relationships","type":"conformsTo"}],"metadata":{"fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"AEAD"}],"title":"AEAD","navigatorTitle":[{"text":"AEAD","kind":"identifier"}],"modules":[{"name":"SwiftHPKE"}],"role":"symbol","roleHeading":"Enumeration","externalID":"s:9SwiftHPKE4AEADO","symbolKind":"enum"},"sections":[],"schemaVersion":{"patch":0,"minor":3,"major":0},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD"},"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"],"title":"Enumerations","generated":true}],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"AEAD"}],"languages":["swift"],"platforms":["macOS"]}]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/aead"]}],"kind":"symbol","references":{"doc://SwiftHPKE/s23CustomStringConvertibleP":{"identifier":"doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","type":"unresolvable","title":"Swift.CustomStringConvertible"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/AESGCM256":{"kind":"symbol","type":"topic","abstract":[{"type":"text","text":"AES-256-GCM"}],"url":"\/documentation\/swifthpke\/aead\/aesgcm256","title":"AEAD.AESGCM256","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/AESGCM256","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"AESGCM256","kind":"identifier"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"abstract":[{"text":"The key derivation functions","type":"text"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","navigatorTitle":[{"kind":"identifier","text":"KDF"}],"url":"\/documentation\/swifthpke\/kdf","type":"topic","title":"KDF"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","navigatorTitle":[{"text":"KEM","kind":"identifier"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"title":"KEM","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"KEM","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/EXPORTONLY":{"url":"\/documentation\/swifthpke\/aead\/exportonly","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/EXPORTONLY","abstract":[{"type":"text","text":"Export Only"}],"kind":"symbol","title":"AEAD.EXPORTONLY","role":"symbol","type":"topic","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"EXPORTONLY"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/description":{"url":"\/documentation\/swifthpke\/aead\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/description","abstract":[{"text":"Textual description of ","type":"text"},{"type":"codeVoice","code":"self"}],"kind":"symbol","title":"description","role":"symbol","type":"topic","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"}]},"doc://SwiftHPKE/SH":{"identifier":"doc:\/\/SwiftHPKE\/SH","type":"unresolvable","title":"Swift.Hashable"},"doc://SwiftHPKE/s12CaseIterableP":{"identifier":"doc:\/\/SwiftHPKE\/s12CaseIterableP","type":"unresolvable","title":"Swift.CaseIterable"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"kind":"symbol","title":"HPKEException","url":"\/documentation\/swifthpke\/hpkeexception","role":"symbol","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/AESGCM128":{"url":"\/documentation\/swifthpke\/aead\/aesgcm128","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/AESGCM128","abstract":[{"type":"text","text":"AES-128-GCM"}],"kind":"symbol","title":"AEAD.AESGCM128","role":"symbol","type":"topic","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"AESGCM128"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"AEAD","kind":"identifier"}],"navigatorTitle":[{"text":"AEAD","kind":"identifier"}],"abstract":[{"text":"The AEAD encryption algorithms","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","url":"\/documentation\/swifthpke\/aead","kind":"symbol","type":"topic","title":"AEAD"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/Equatable-Implementations":{"type":"topic","kind":"article","url":"\/documentation\/swifthpke\/aead\/equatable-implementations","abstract":[],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/Equatable-Implementations","title":"Equatable Implementations","role":"collectionGroup"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/CHACHAPOLY":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/CHACHAPOLY","abstract":[{"type":"text","text":"ChaCha20-Poly1305"}],"role":"symbol","url":"\/documentation\/swifthpke\/aead\/chachapoly","title":"AEAD.CHACHAPOLY","kind":"symbol","type":"topic","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"CHACHAPOLY","kind":"identifier"}]},"doc://SwiftHPKE/SQ":{"identifier":"doc:\/\/SwiftHPKE\/SQ","type":"unresolvable","title":"Swift.Equatable"}}} \ No newline at end of file +{"schemaVersion":{"major":0,"patch":0,"minor":3},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"abstract":[{"text":"The AEAD encryption algorithms","type":"text"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"kind":"identifier","text":"AEAD"}],"platforms":["macOS"],"languages":["swift"]}]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","interfaceLanguage":"swift"},"sections":[],"variants":[{"paths":["\/documentation\/swifthpke\/aead"],"traits":[{"interfaceLanguage":"swift"}]}],"relationshipsSections":[{"kind":"relationships","identifiers":["doc:\/\/SwiftHPKE\/s12CaseIterableP","doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","doc:\/\/SwiftHPKE\/SQ","doc:\/\/SwiftHPKE\/SH"],"title":"Conforms To","type":"conformsTo"}],"metadata":{"role":"symbol","title":"AEAD","symbolKind":"enum","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"AEAD","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"AEAD"}],"externalID":"s:9SwiftHPKE4AEADO","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Enumeration"},"kind":"symbol","topicSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/AESGCM128","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/AESGCM256","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/CHACHAPOLY","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/EXPORTONLY"],"title":"Enumeration Cases"},{"title":"Instance Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/description"]},{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/Equatable-Implementations"],"title":"Default Implementations"}],"seeAlsoSections":[{"generated":true,"title":"Enumerations","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/description":{"abstract":[{"type":"text","text":"Textual description of "},{"type":"codeVoice","code":"self"}],"title":"description","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/description","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/aead\/description","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/CHACHAPOLY":{"abstract":[{"type":"text","text":"ChaCha20-Poly1305"}],"title":"AEAD.CHACHAPOLY","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"CHACHAPOLY","kind":"identifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/CHACHAPOLY","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/aead\/chachapoly","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/EXPORTONLY":{"role":"symbol","title":"AEAD.EXPORTONLY","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"EXPORTONLY"}],"abstract":[{"text":"Export Only","type":"text"}],"url":"\/documentation\/swifthpke\/aead\/exportonly","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/EXPORTONLY","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/Equatable-Implementations":{"role":"collectionGroup","title":"Equatable Implementations","abstract":[],"url":"\/documentation\/swifthpke\/aead\/equatable-implementations","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/Equatable-Implementations","type":"topic","kind":"article"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/AESGCM128":{"abstract":[{"text":"AES-128-GCM","type":"text"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/AESGCM128","role":"symbol","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"AESGCM128"}],"type":"topic","title":"AEAD.AESGCM128","url":"\/documentation\/swifthpke\/aead\/aesgcm128"},"doc://SwiftHPKE/SH":{"type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/SH","title":"Swift.Hashable"},"doc://SwiftHPKE/s23CustomStringConvertibleP":{"type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","title":"Swift.CustomStringConvertible"},"doc://SwiftHPKE/SQ":{"type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/SQ","title":"Swift.Equatable"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"KEM"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"url":"\/documentation\/swifthpke\/kem","kind":"symbol","title":"KEM","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"AEAD","kind":"identifier"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","title":"AEAD","url":"\/documentation\/swifthpke\/aead","kind":"symbol","role":"symbol","navigatorTitle":[{"text":"AEAD","kind":"identifier"}]},"doc://SwiftHPKE/s12CaseIterableP":{"type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/s12CaseIterableP","title":"Swift.CaseIterable"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"kind":"symbol","url":"\/documentation\/swifthpke\/kdf","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","navigatorTitle":[{"text":"KDF","kind":"identifier"}],"type":"topic","abstract":[{"type":"text","text":"The key derivation functions"}],"role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"title":"KDF"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"url":"\/documentation\/swifthpke\/hpkeexception","title":"HPKEException","role":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","abstract":[{"type":"text","text":"The HPKE exceptions"}],"navigatorTitle":[{"kind":"identifier","text":"HPKEException"}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"HPKEException","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/AESGCM256":{"type":"topic","role":"symbol","title":"AEAD.AESGCM256","url":"\/documentation\/swifthpke\/aead\/aesgcm256","abstract":[{"text":"AES-256-GCM","type":"text"}],"kind":"symbol","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"AESGCM256"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/AESGCM256"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead/!=(_:_:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead/!=(_:_:).json index 39da90d..92cf01b 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead/!=(_:_:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead/!=(_:_:).json @@ -1 +1 @@ -{"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/aead\/!=(_:_:)"]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"kind":"symbol","metadata":{"title":"!=(_:_:)","modules":[{"name":"SwiftHPKE","relatedModules":["Swift"]}],"externalID":"s:SQsE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftHPKE4AEADO","extendedModule":"Swift","symbolKind":"op","role":"symbol","roleHeading":"Operator","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"Self","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bool","preciseIdentifier":"s:Sb"}]},"sections":[],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"text":" ","kind":"text"},{"kind":"text","text":"("},{"text":"lhs","kind":"internalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"text":", ","kind":"text"},{"text":"rhs","kind":"internalParam"},{"text":": ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bool","preciseIdentifier":"s:Sb"}],"platforms":["macOS"]}]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/!=(_:_:)"},"abstract":[{"type":"text","text":"Inherited from "},{"type":"codeVoice","code":"Equatable.!=(_:_:)"},{"type":"text","text":"."}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/Equatable-Implementations"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/Equatable-Implementations":{"type":"topic","kind":"article","url":"\/documentation\/swifthpke\/aead\/equatable-implementations","abstract":[],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/Equatable-Implementations","title":"Equatable Implementations","role":"collectionGroup"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"AEAD","kind":"identifier"}],"navigatorTitle":[{"text":"AEAD","kind":"identifier"}],"abstract":[{"text":"The AEAD encryption algorithms","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","url":"\/documentation\/swifthpke\/aead","kind":"symbol","type":"topic","title":"AEAD"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/!=(_:_:)":{"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/!=(_:_:)","kind":"symbol","abstract":[],"fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"text":"Bool","preciseIdentifier":"s:Sb","kind":"typeIdentifier"}],"title":"!=(_:_:)","role":"symbol","url":"\/documentation\/swifthpke\/aead\/!=(_:_:)"}}} \ No newline at end of file +{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/Equatable-Implementations"]]},"sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/!=(_:_:)","interfaceLanguage":"swift"},"schemaVersion":{"minor":3,"patch":0,"major":0},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"kind":"internalParam","text":"lhs"},{"kind":"text","text":": "},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"rhs","kind":"internalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:Sb","text":"Bool"}],"languages":["swift"]}]}],"abstract":[{"text":"Inherited from ","type":"text"},{"code":"Equatable.!=(_:_:)","type":"codeVoice"},{"type":"text","text":"."}],"kind":"symbol","variants":[{"paths":["\/documentation\/swifthpke\/aead\/!=(_:_:)"],"traits":[{"interfaceLanguage":"swift"}]}],"metadata":{"extendedModule":"Swift","externalID":"s:SQsE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftHPKE4AEADO","modules":[{"relatedModules":["Swift"],"name":"SwiftHPKE"}],"symbolKind":"op","roleHeading":"Operator","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"kind":"text","text":" "},{"text":"(","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":", "},{"text":"Self","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bool","preciseIdentifier":"s:Sb"}],"title":"!=(_:_:)","role":"symbol"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/Equatable-Implementations":{"role":"collectionGroup","title":"Equatable Implementations","abstract":[],"url":"\/documentation\/swifthpke\/aead\/equatable-implementations","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/Equatable-Implementations","type":"topic","kind":"article"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/!=(_:_:)":{"role":"symbol","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":") -> "},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}],"title":"!=(_:_:)","url":"\/documentation\/swifthpke\/aead\/!=(_:_:)","kind":"symbol","type":"topic","abstract":[],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/!=(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"AEAD","kind":"identifier"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","title":"AEAD","url":"\/documentation\/swifthpke\/aead","kind":"symbol","role":"symbol","navigatorTitle":[{"text":"AEAD","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead/aesgcm128.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead/aesgcm128.json index bf0ccff..82a25c1 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead/aesgcm128.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead/aesgcm128.json @@ -1 +1 @@ -{"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"AESGCM128","kind":"identifier"}],"languages":["swift"]}]}],"variants":[{"paths":["\/documentation\/swifthpke\/aead\/aesgcm128"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","schemaVersion":{"patch":0,"major":0,"minor":3},"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD"]]},"metadata":{"roleHeading":"Case","externalID":"s:9SwiftHPKE4AEADO9AESGCM128yA2CmF","role":"symbol","modules":[{"name":"SwiftHPKE"}],"fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"AESGCM128"}],"title":"AEAD.AESGCM128","symbolKind":"case"},"abstract":[{"text":"AES-128-GCM","type":"text"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/AESGCM128"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/AESGCM128":{"url":"\/documentation\/swifthpke\/aead\/aesgcm128","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/AESGCM128","abstract":[{"type":"text","text":"AES-128-GCM"}],"kind":"symbol","title":"AEAD.AESGCM128","role":"symbol","type":"topic","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"AESGCM128"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"AEAD","kind":"identifier"}],"navigatorTitle":[{"text":"AEAD","kind":"identifier"}],"abstract":[{"text":"The AEAD encryption algorithms","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","url":"\/documentation\/swifthpke\/aead","kind":"symbol","type":"topic","title":"AEAD"}}} \ No newline at end of file +{"kind":"symbol","schemaVersion":{"patch":0,"minor":3,"major":0},"variants":[{"paths":["\/documentation\/swifthpke\/aead\/aesgcm128"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/AESGCM128","interfaceLanguage":"swift"},"abstract":[{"type":"text","text":"AES-128-GCM"}],"primaryContentSections":[{"declarations":[{"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"AESGCM128"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"}],"metadata":{"role":"symbol","title":"AEAD.AESGCM128","externalID":"s:9SwiftHPKE4AEADO9AESGCM128yA2CmF","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"AESGCM128","kind":"identifier"}],"roleHeading":"Case","symbolKind":"case","modules":[{"name":"SwiftHPKE"}]},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD"]]},"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/AESGCM128":{"abstract":[{"text":"AES-128-GCM","type":"text"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/AESGCM128","role":"symbol","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"AESGCM128"}],"type":"topic","title":"AEAD.AESGCM128","url":"\/documentation\/swifthpke\/aead\/aesgcm128"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"AEAD","kind":"identifier"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","title":"AEAD","url":"\/documentation\/swifthpke\/aead","kind":"symbol","role":"symbol","navigatorTitle":[{"text":"AEAD","kind":"identifier"}]}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead/aesgcm256.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead/aesgcm256.json index 120cc5b..376ca1d 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead/aesgcm256.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead/aesgcm256.json @@ -1 +1 @@ -{"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/AESGCM256","interfaceLanguage":"swift"},"sections":[],"metadata":{"externalID":"s:9SwiftHPKE4AEADO9AESGCM256yA2CmF","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"AESGCM256","kind":"identifier"}],"symbolKind":"case","title":"AEAD.AESGCM256","roleHeading":"Case","modules":[{"name":"SwiftHPKE"}],"role":"symbol"},"schemaVersion":{"patch":0,"major":0,"minor":3},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"AESGCM256"}]}]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/aead\/aesgcm256"]}],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD"]]},"abstract":[{"type":"text","text":"AES-256-GCM"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"AEAD","kind":"identifier"}],"navigatorTitle":[{"text":"AEAD","kind":"identifier"}],"abstract":[{"text":"The AEAD encryption algorithms","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","url":"\/documentation\/swifthpke\/aead","kind":"symbol","type":"topic","title":"AEAD"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/AESGCM256":{"kind":"symbol","type":"topic","abstract":[{"type":"text","text":"AES-256-GCM"}],"url":"\/documentation\/swifthpke\/aead\/aesgcm256","title":"AEAD.AESGCM256","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/AESGCM256","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"AESGCM256","kind":"identifier"}],"role":"symbol"}}} \ No newline at end of file +{"abstract":[{"text":"AES-256-GCM","type":"text"}],"kind":"symbol","variants":[{"paths":["\/documentation\/swifthpke\/aead\/aesgcm256"],"traits":[{"interfaceLanguage":"swift"}]}],"sections":[],"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"AESGCM256","kind":"identifier"}]}],"kind":"declarations"}],"metadata":{"symbolKind":"case","role":"symbol","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"AESGCM256","kind":"identifier"}],"roleHeading":"Case","modules":[{"name":"SwiftHPKE"}],"title":"AEAD.AESGCM256","externalID":"s:9SwiftHPKE4AEADO9AESGCM256yA2CmF"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD"]]},"schemaVersion":{"minor":3,"major":0,"patch":0},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/AESGCM256","interfaceLanguage":"swift"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"AEAD","kind":"identifier"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","title":"AEAD","url":"\/documentation\/swifthpke\/aead","kind":"symbol","role":"symbol","navigatorTitle":[{"text":"AEAD","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/AESGCM256":{"type":"topic","role":"symbol","title":"AEAD.AESGCM256","url":"\/documentation\/swifthpke\/aead\/aesgcm256","abstract":[{"text":"AES-256-GCM","type":"text"}],"kind":"symbol","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"AESGCM256"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/AESGCM256"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead/chachapoly.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead/chachapoly.json index 0be2173..f1b3935 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead/chachapoly.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead/chachapoly.json @@ -1 +1 @@ -{"sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/CHACHAPOLY","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD"]]},"kind":"symbol","schemaVersion":{"minor":3,"patch":0,"major":0},"abstract":[{"type":"text","text":"ChaCha20-Poly1305"}],"metadata":{"title":"AEAD.CHACHAPOLY","modules":[{"name":"SwiftHPKE"}],"fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"CHACHAPOLY","kind":"identifier"}],"externalID":"s:9SwiftHPKE4AEADO10CHACHAPOLYyA2CmF","roleHeading":"Case","role":"symbol","symbolKind":"case"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/aead\/chachapoly"]}],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"CHACHAPOLY","kind":"identifier"}],"languages":["swift"],"platforms":["macOS"]}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"AEAD","kind":"identifier"}],"navigatorTitle":[{"text":"AEAD","kind":"identifier"}],"abstract":[{"text":"The AEAD encryption algorithms","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","url":"\/documentation\/swifthpke\/aead","kind":"symbol","type":"topic","title":"AEAD"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/CHACHAPOLY":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/CHACHAPOLY","abstract":[{"type":"text","text":"ChaCha20-Poly1305"}],"role":"symbol","url":"\/documentation\/swifthpke\/aead\/chachapoly","title":"AEAD.CHACHAPOLY","kind":"symbol","type":"topic","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"CHACHAPOLY","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"}}} \ No newline at end of file +{"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/CHACHAPOLY"},"schemaVersion":{"minor":3,"major":0,"patch":0},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CHACHAPOLY"}],"languages":["swift"]}]}],"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD"]]},"abstract":[{"text":"ChaCha20-Poly1305","type":"text"}],"kind":"symbol","variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/aead\/chachapoly"]}],"metadata":{"symbolKind":"case","roleHeading":"Case","title":"AEAD.CHACHAPOLY","externalID":"s:9SwiftHPKE4AEADO10CHACHAPOLYyA2CmF","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"CHACHAPOLY","kind":"identifier"}],"role":"symbol","modules":[{"name":"SwiftHPKE"}]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"AEAD","kind":"identifier"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","title":"AEAD","url":"\/documentation\/swifthpke\/aead","kind":"symbol","role":"symbol","navigatorTitle":[{"text":"AEAD","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/CHACHAPOLY":{"abstract":[{"type":"text","text":"ChaCha20-Poly1305"}],"title":"AEAD.CHACHAPOLY","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"CHACHAPOLY","kind":"identifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/CHACHAPOLY","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/aead\/chachapoly","role":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead/description.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead/description.json index ce5e1ab..553d932 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead/description.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead/description.json @@ -1 +1 @@ -{"metadata":{"symbolKind":"property","externalID":"s:9SwiftHPKE4AEADO11descriptionSSvp","role":"symbol","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Instance Property","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"kind":"text","text":": "},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"}],"title":"description"},"sections":[],"schemaVersion":{"minor":3,"patch":0,"major":0},"abstract":[{"type":"text","text":"Textual description of "},{"code":"self","type":"codeVoice"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/aead\/description"]}],"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"},{"text":" { ","kind":"text"},{"text":"get","kind":"keyword"},{"kind":"text","text":" }"}]}],"kind":"declarations"}],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD"]]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/description","interfaceLanguage":"swift"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/description":{"url":"\/documentation\/swifthpke\/aead\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/description","abstract":[{"text":"Textual description of ","type":"text"},{"type":"codeVoice","code":"self"}],"kind":"symbol","title":"description","role":"symbol","type":"topic","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"AEAD","kind":"identifier"}],"navigatorTitle":[{"text":"AEAD","kind":"identifier"}],"abstract":[{"text":"The AEAD encryption algorithms","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","url":"\/documentation\/swifthpke\/aead","kind":"symbol","type":"topic","title":"AEAD"}}} \ No newline at end of file +{"sections":[],"metadata":{"role":"symbol","title":"description","roleHeading":"Instance Property","symbolKind":"property","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE4AEADO11descriptionSSvp"},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/description","interfaceLanguage":"swift"},"abstract":[{"text":"Textual description of ","type":"text"},{"type":"codeVoice","code":"self"}],"variants":[{"paths":["\/documentation\/swifthpke\/aead\/description"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD"]]},"schemaVersion":{"major":0,"patch":0,"minor":3},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":" { ","kind":"text"},{"kind":"keyword","text":"get"},{"kind":"text","text":" }"}],"languages":["swift"]}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/description":{"abstract":[{"type":"text","text":"Textual description of "},{"type":"codeVoice","code":"self"}],"title":"description","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/description","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/aead\/description","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"AEAD","kind":"identifier"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","title":"AEAD","url":"\/documentation\/swifthpke\/aead","kind":"symbol","role":"symbol","navigatorTitle":[{"text":"AEAD","kind":"identifier"}]}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead/equatable-implementations.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead/equatable-implementations.json index fccdf5f..9b4c24b 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead/equatable-implementations.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead/equatable-implementations.json @@ -1 +1 @@ -{"kind":"article","schemaVersion":{"major":0,"minor":3,"patch":0},"topicSections":[{"generated":true,"title":"Operators","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/!=(_:_:)"]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD"]]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/Equatable-Implementations","interfaceLanguage":"swift"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/aead\/equatable-implementations"]}],"sections":[],"metadata":{"title":"Equatable Implementations","roleHeading":"API Collection","role":"collectionGroup","modules":[{"name":"SwiftHPKE"}]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/!=(_:_:)":{"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/!=(_:_:)","kind":"symbol","abstract":[],"fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"text":"Bool","preciseIdentifier":"s:Sb","kind":"typeIdentifier"}],"title":"!=(_:_:)","role":"symbol","url":"\/documentation\/swifthpke\/aead\/!=(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"AEAD","kind":"identifier"}],"navigatorTitle":[{"text":"AEAD","kind":"identifier"}],"abstract":[{"text":"The AEAD encryption algorithms","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","url":"\/documentation\/swifthpke\/aead","kind":"symbol","type":"topic","title":"AEAD"}}} \ No newline at end of file +{"topicSections":[{"title":"Operators","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/!=(_:_:)"],"generated":true}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/aead\/equatable-implementations"]}],"kind":"article","sections":[],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/Equatable-Implementations"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD"]]},"metadata":{"title":"Equatable Implementations","modules":[{"name":"SwiftHPKE"}],"roleHeading":"API Collection","role":"collectionGroup"},"schemaVersion":{"minor":3,"major":0,"patch":0},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"AEAD","kind":"identifier"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","title":"AEAD","url":"\/documentation\/swifthpke\/aead","kind":"symbol","role":"symbol","navigatorTitle":[{"text":"AEAD","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/!=(_:_:)":{"role":"symbol","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":") -> "},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}],"title":"!=(_:_:)","url":"\/documentation\/swifthpke\/aead\/!=(_:_:)","kind":"symbol","type":"topic","abstract":[],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/!=(_:_:)"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead/exportonly.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead/exportonly.json index e5523e3..b93fc33 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead/exportonly.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/aead/exportonly.json @@ -1 +1 @@ -{"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/aead\/exportonly"]}],"kind":"symbol","abstract":[{"text":"Export Only","type":"text"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD"]]},"sections":[],"metadata":{"symbolKind":"case","title":"AEAD.EXPORTONLY","externalID":"s:9SwiftHPKE4AEADO10EXPORTONLYyA2CmF","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"EXPORTONLY","kind":"identifier"}],"modules":[{"name":"SwiftHPKE"}],"role":"symbol","roleHeading":"Case"},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/EXPORTONLY","interfaceLanguage":"swift"},"schemaVersion":{"major":0,"patch":0,"minor":3},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"EXPORTONLY","kind":"identifier"}],"languages":["swift"]}],"kind":"declarations"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"AEAD","kind":"identifier"}],"navigatorTitle":[{"text":"AEAD","kind":"identifier"}],"abstract":[{"text":"The AEAD encryption algorithms","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","url":"\/documentation\/swifthpke\/aead","kind":"symbol","type":"topic","title":"AEAD"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/EXPORTONLY":{"url":"\/documentation\/swifthpke\/aead\/exportonly","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/EXPORTONLY","abstract":[{"type":"text","text":"Export Only"}],"kind":"symbol","title":"AEAD.EXPORTONLY","role":"symbol","type":"topic","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"EXPORTONLY"}]}}} \ No newline at end of file +{"metadata":{"symbolKind":"case","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"EXPORTONLY","kind":"identifier"}],"roleHeading":"Case","externalID":"s:9SwiftHPKE4AEADO10EXPORTONLYyA2CmF","title":"AEAD.EXPORTONLY","modules":[{"name":"SwiftHPKE"}],"role":"symbol"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD"]]},"variants":[{"paths":["\/documentation\/swifthpke\/aead\/exportonly"],"traits":[{"interfaceLanguage":"swift"}]}],"abstract":[{"type":"text","text":"Export Only"}],"kind":"symbol","sections":[],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"EXPORTONLY","kind":"identifier"}],"languages":["swift"]}]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/EXPORTONLY"},"schemaVersion":{"minor":3,"major":0,"patch":0},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/EXPORTONLY":{"role":"symbol","title":"AEAD.EXPORTONLY","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"EXPORTONLY"}],"abstract":[{"text":"Export Only","type":"text"}],"url":"\/documentation\/swifthpke\/aead\/exportonly","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/EXPORTONLY","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"AEAD","kind":"identifier"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","title":"AEAD","url":"\/documentation\/swifthpke\/aead","kind":"symbol","role":"symbol","navigatorTitle":[{"text":"AEAD","kind":"identifier"}]}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/base64.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/base64.json index 9e12043..b0a0f3f 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/base64.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/base64.json @@ -1 +1 @@ -{"variants":[{"paths":["\/documentation\/swifthpke\/base64"],"traits":[{"interfaceLanguage":"swift"}]}],"sections":[],"kind":"symbol","identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"},"topicSections":[{"title":"Methods","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)"]}],"schemaVersion":{"patch":0,"minor":3,"major":0},"seeAlsoSections":[{"generated":true,"title":"Structures","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]}],"abstract":[{"type":"text","text":"The Base64 structure"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"Base64","kind":"identifier"}]}]},{"kind":"content","content":[{"type":"heading","text":"Overview","anchor":"Overview","level":2},{"type":"paragraph","inlineContent":[{"type":"text","text":"Base64 exists to provide a namespace. It contains static methods for Base64 encoding and decoding. There is no Base64 instances."}]}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"metadata":{"role":"symbol","externalID":"s:9SwiftHPKE6Base64V","roleHeading":"Structure","symbolKind":"struct","title":"Base64","modules":[{"name":"SwiftHPKE"}],"navigatorTitle":[{"kind":"identifier","text":"Base64"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"Base64","kind":"identifier"}]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/encode(_:_:)":{"title":"encode(_:_:)","role":"symbol","abstract":[{"type":"text","text":"Base64 encodes a byte array"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","url":"\/documentation\/swifthpke\/base64\/encode(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"encode","kind":"identifier"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"type":"topic","title":"Base64","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Base64"}],"navigatorTitle":[{"kind":"identifier","text":"Base64"}],"url":"\/documentation\/swifthpke\/base64","role":"symbol","kind":"symbol","abstract":[{"type":"text","text":"The Base64 structure"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/decode(_:)":{"abstract":[{"type":"text","text":"Base64 decodes a string"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"decode"},{"text":"(","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/base64\/decode(_:)","role":"symbol","kind":"symbol","title":"decode(_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemEncode(_:_:)":{"type":"topic","title":"pemEncode(_:_:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"pemEncode","kind":"identifier"},{"kind":"text","text":"("},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"url":"\/documentation\/swifthpke\/base64\/pemencode(_:_:)","role":"symbol","kind":"symbol","abstract":[{"type":"text","text":"PEM encodes a byte array"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemDecode(_:_:)":{"abstract":[{"type":"text","text":"PEM decodes a string"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"pemDecode"},{"kind":"text","text":"("},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/base64\/pemdecode(_:_:)","role":"symbol","kind":"symbol","title":"pemDecode(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"}}} \ No newline at end of file +{"schemaVersion":{"major":0,"patch":0,"minor":3},"abstract":[{"text":"The Base64 structure","type":"text"}],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"],"generated":true,"title":"Structures"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"Base64","kind":"identifier"}],"languages":["swift"]}]},{"kind":"content","content":[{"text":"Overview","type":"heading","level":2,"anchor":"Overview"},{"inlineContent":[{"type":"text","text":"Base64 exists to provide a namespace. It contains static methods for Base64 encoding and decoding. There is no Base64 instances."}],"type":"paragraph"}]}],"sections":[],"topicSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)"],"title":"Methods"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/base64"]}],"kind":"symbol","identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"},"metadata":{"roleHeading":"Structure","modules":[{"name":"SwiftHPKE"}],"navigatorTitle":[{"kind":"identifier","text":"Base64"}],"role":"symbol","externalID":"s:9SwiftHPKE6Base64V","title":"Base64","symbolKind":"struct","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"Base64","kind":"identifier"}]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemEncode(_:_:)":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","abstract":[{"text":"PEM encodes a byte array","type":"text"}],"fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"pemEncode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":") -> ","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"}],"title":"pemEncode(_:_:)","url":"\/documentation\/swifthpke\/base64\/pemencode(_:_:)","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemDecode(_:_:)":{"abstract":[{"type":"text","text":"PEM decodes a string"}],"url":"\/documentation\/swifthpke\/base64\/pemdecode(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"pemDecode"},{"text":"(","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"type":"topic","title":"pemDecode(_:_:)","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/encode(_:_:)":{"type":"topic","title":"encode(_:_:)","url":"\/documentation\/swifthpke\/base64\/encode(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"encode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"text":") -> ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","role":"symbol","kind":"symbol","abstract":[{"text":"Base64 encodes a byte array","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"type":"topic","title":"Base64","url":"\/documentation\/swifthpke\/base64","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"text":"Base64","kind":"identifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","role":"symbol","kind":"symbol","abstract":[{"type":"text","text":"The Base64 structure"}],"navigatorTitle":[{"text":"Base64","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/decode(_:)":{"abstract":[{"type":"text","text":"Base64 decodes a string"}],"url":"\/documentation\/swifthpke\/base64\/decode(_:)","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"decode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"type":"topic","title":"decode(_:)","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/base64/decode(_:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/base64/decode(_:).json index ee97229..07fce13 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/base64/decode(_:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/base64/decode(_:).json @@ -1 +1 @@ -{"kind":"symbol","abstract":[{"text":"Base64 decodes a string","type":"text"}],"seeAlsoSections":[{"title":"Methods","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)"]}],"metadata":{"fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"decode","kind":"identifier"},{"text":"(","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"role":"symbol","symbolKind":"method","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Type Method","title":"decode(_:)","externalID":"s:9SwiftHPKE6Base64V6decodeySays5UInt8VGSSKFZ"},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"]]},"schemaVersion":{"minor":3,"patch":0,"major":0},"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"decode"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"_"},{"kind":"text","text":" "},{"text":"input","kind":"internalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}]}],"kind":"declarations"},{"parameters":[{"name":"input","content":[{"inlineContent":[{"text":"String to decode","type":"text"}],"type":"paragraph"}]}],"kind":"parameters"},{"kind":"content","content":[{"type":"heading","text":"Return Value","level":2,"anchor":"return-value"},{"type":"paragraph","inlineContent":[{"text":"The Base64 decoding of ","type":"text"},{"code":"input","type":"codeVoice"}]}]},{"kind":"content","content":[{"text":"Discussion","type":"heading","level":2,"anchor":"discussion"},{"style":"note","content":[{"type":"paragraph","inlineContent":[{"text":"A ","type":"text"},{"type":"codeVoice","code":"base64"},{"text":" exception if the input is malformed","type":"text"}]}],"name":"Throws","type":"aside"}]}],"variants":[{"paths":["\/documentation\/swifthpke\/base64\/decode(_:)"],"traits":[{"interfaceLanguage":"swift"}]}],"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/encode(_:_:)":{"title":"encode(_:_:)","role":"symbol","abstract":[{"type":"text","text":"Base64 encodes a byte array"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","url":"\/documentation\/swifthpke\/base64\/encode(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"encode","kind":"identifier"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/decode(_:)":{"abstract":[{"type":"text","text":"Base64 decodes a string"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"decode"},{"text":"(","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/base64\/decode(_:)","role":"symbol","kind":"symbol","title":"decode(_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemEncode(_:_:)":{"type":"topic","title":"pemEncode(_:_:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"pemEncode","kind":"identifier"},{"kind":"text","text":"("},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"url":"\/documentation\/swifthpke\/base64\/pemencode(_:_:)","role":"symbol","kind":"symbol","abstract":[{"type":"text","text":"PEM encodes a byte array"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"type":"topic","title":"Base64","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Base64"}],"navigatorTitle":[{"kind":"identifier","text":"Base64"}],"url":"\/documentation\/swifthpke\/base64","role":"symbol","kind":"symbol","abstract":[{"type":"text","text":"The Base64 structure"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemDecode(_:_:)":{"abstract":[{"type":"text","text":"PEM decodes a string"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"pemDecode"},{"kind":"text","text":"("},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/base64\/pemdecode(_:_:)","role":"symbol","kind":"symbol","title":"pemDecode(_:_:)"}}} \ No newline at end of file +{"schemaVersion":{"major":0,"minor":3,"patch":0},"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"]]},"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)"],"generated":true,"title":"Methods"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)","interfaceLanguage":"swift"},"sections":[],"abstract":[{"text":"Base64 decodes a string","type":"text"}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"decode","kind":"identifier"},{"kind":"text","text":"("},{"text":"_","kind":"externalParam"},{"kind":"text","text":" "},{"text":"input","kind":"internalParam"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"languages":["swift"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"input","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"String to decode"}]}]}]},{"kind":"content","content":[{"anchor":"return-value","type":"heading","text":"Return Value","level":2},{"type":"paragraph","inlineContent":[{"type":"text","text":"The Base64 decoding of "},{"type":"codeVoice","code":"input"}]}]},{"kind":"content","content":[{"text":"Discussion","anchor":"discussion","level":2,"type":"heading"},{"type":"aside","name":"Throws","style":"note","content":[{"inlineContent":[{"type":"text","text":"A "},{"code":"base64","type":"codeVoice"},{"type":"text","text":" exception if the input is malformed"}],"type":"paragraph"}]}]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/base64\/decode(_:)"]}],"metadata":{"fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"decode","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"roleHeading":"Type Method","externalID":"s:9SwiftHPKE6Base64V6decodeySays5UInt8VGSSKFZ","symbolKind":"method","role":"symbol","title":"decode(_:)","modules":[{"name":"SwiftHPKE"}]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemEncode(_:_:)":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","abstract":[{"text":"PEM encodes a byte array","type":"text"}],"fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"pemEncode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":") -> ","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"}],"title":"pemEncode(_:_:)","url":"\/documentation\/swifthpke\/base64\/pemencode(_:_:)","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemDecode(_:_:)":{"abstract":[{"type":"text","text":"PEM decodes a string"}],"url":"\/documentation\/swifthpke\/base64\/pemdecode(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"pemDecode"},{"text":"(","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"type":"topic","title":"pemDecode(_:_:)","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"type":"topic","title":"Base64","url":"\/documentation\/swifthpke\/base64","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"text":"Base64","kind":"identifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","role":"symbol","kind":"symbol","abstract":[{"type":"text","text":"The Base64 structure"}],"navigatorTitle":[{"text":"Base64","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/encode(_:_:)":{"type":"topic","title":"encode(_:_:)","url":"\/documentation\/swifthpke\/base64\/encode(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"encode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"text":") -> ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","role":"symbol","kind":"symbol","abstract":[{"text":"Base64 encodes a byte array","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/decode(_:)":{"abstract":[{"type":"text","text":"Base64 decodes a string"}],"url":"\/documentation\/swifthpke\/base64\/decode(_:)","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"decode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"type":"topic","title":"decode(_:)","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/base64/encode(_:_:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/base64/encode(_:_:).json index 8ef3848..6fa5f80 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/base64/encode(_:_:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/base64/encode(_:_:).json @@ -1 +1 @@ -{"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)"],"generated":true,"title":"Methods"}],"primaryContentSections":[{"declarations":[{"tokens":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"encode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"_","kind":"externalParam"},{"kind":"text","text":" "},{"text":"input","kind":"internalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"text":"_","kind":"externalParam"},{"text":" ","kind":"text"},{"text":"linesize","kind":"internalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"text":" = 76) -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"input","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Bytes to encode"}]}]},{"name":"linesize","content":[{"inlineContent":[{"type":"text","text":"Number of characters per line - 76 is default"}],"type":"paragraph"}]}]},{"content":[{"anchor":"return-value","type":"heading","text":"Return Value","level":2},{"type":"paragraph","inlineContent":[{"type":"text","text":"The Base64 encoding of "},{"type":"codeVoice","code":"input"}]}],"kind":"content"}],"abstract":[{"type":"text","text":"Base64 encodes a byte array"}],"schemaVersion":{"patch":0,"minor":3,"major":0},"metadata":{"modules":[{"name":"SwiftHPKE"}],"roleHeading":"Type Method","role":"symbol","symbolKind":"method","title":"encode(_:_:)","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"encode"},{"text":"(","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"}],"externalID":"s:9SwiftHPKE6Base64V6encodeySSSays5UInt8VG_SitFZ"},"sections":[],"kind":"symbol","variants":[{"paths":["\/documentation\/swifthpke\/base64\/encode(_:_:)"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemEncode(_:_:)":{"type":"topic","title":"pemEncode(_:_:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"pemEncode","kind":"identifier"},{"kind":"text","text":"("},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"url":"\/documentation\/swifthpke\/base64\/pemencode(_:_:)","role":"symbol","kind":"symbol","abstract":[{"type":"text","text":"PEM encodes a byte array"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemDecode(_:_:)":{"abstract":[{"type":"text","text":"PEM decodes a string"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"pemDecode"},{"kind":"text","text":"("},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/base64\/pemdecode(_:_:)","role":"symbol","kind":"symbol","title":"pemDecode(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/encode(_:_:)":{"title":"encode(_:_:)","role":"symbol","abstract":[{"type":"text","text":"Base64 encodes a byte array"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","url":"\/documentation\/swifthpke\/base64\/encode(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"encode","kind":"identifier"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/decode(_:)":{"abstract":[{"type":"text","text":"Base64 decodes a string"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"decode"},{"text":"(","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/base64\/decode(_:)","role":"symbol","kind":"symbol","title":"decode(_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"type":"topic","title":"Base64","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Base64"}],"navigatorTitle":[{"kind":"identifier","text":"Base64"}],"url":"\/documentation\/swifthpke\/base64","role":"symbol","kind":"symbol","abstract":[{"type":"text","text":"The Base64 structure"}]}}} \ No newline at end of file +{"abstract":[{"text":"Base64 encodes a byte array","type":"text"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"]]},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"encode","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"_"},{"text":" ","kind":"text"},{"kind":"internalParam","text":"input"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"_"},{"text":" ","kind":"text"},{"kind":"internalParam","text":"linesize"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":" = 76) -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"languages":["swift"]}]},{"kind":"parameters","parameters":[{"name":"input","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Bytes to encode"}]}]},{"name":"linesize","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Number of characters per line - 76 is default"}]}]}]},{"content":[{"level":2,"text":"Return Value","type":"heading","anchor":"return-value"},{"inlineContent":[{"type":"text","text":"The Base64 encoding of "},{"code":"input","type":"codeVoice"}],"type":"paragraph"}],"kind":"content"}],"variants":[{"paths":["\/documentation\/swifthpke\/base64\/encode(_:_:)"],"traits":[{"interfaceLanguage":"swift"}]}],"schemaVersion":{"patch":0,"major":0,"minor":3},"sections":[],"metadata":{"roleHeading":"Type Method","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE6Base64V6encodeySSSays5UInt8VG_SitFZ","role":"symbol","symbolKind":"method","title":"encode(_:_:)","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"encode","kind":"identifier"},{"text":"(","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}]},"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)"],"title":"Methods"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","interfaceLanguage":"swift"},"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/decode(_:)":{"abstract":[{"type":"text","text":"Base64 decodes a string"}],"url":"\/documentation\/swifthpke\/base64\/decode(_:)","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"decode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"type":"topic","title":"decode(_:)","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemDecode(_:_:)":{"abstract":[{"type":"text","text":"PEM decodes a string"}],"url":"\/documentation\/swifthpke\/base64\/pemdecode(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"pemDecode"},{"text":"(","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"type":"topic","title":"pemDecode(_:_:)","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/encode(_:_:)":{"type":"topic","title":"encode(_:_:)","url":"\/documentation\/swifthpke\/base64\/encode(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"encode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"text":") -> ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","role":"symbol","kind":"symbol","abstract":[{"text":"Base64 encodes a byte array","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"type":"topic","title":"Base64","url":"\/documentation\/swifthpke\/base64","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"text":"Base64","kind":"identifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","role":"symbol","kind":"symbol","abstract":[{"type":"text","text":"The Base64 structure"}],"navigatorTitle":[{"text":"Base64","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemEncode(_:_:)":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","abstract":[{"text":"PEM encodes a byte array","type":"text"}],"fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"pemEncode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":") -> ","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"}],"title":"pemEncode(_:_:)","url":"\/documentation\/swifthpke\/base64\/pemencode(_:_:)","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/base64/pemdecode(_:_:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/base64/pemdecode(_:_:).json index 49ba82a..622352b 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/base64/pemdecode(_:_:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/base64/pemdecode(_:_:).json @@ -1 +1 @@ -{"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/base64\/pemdecode(_:_:)"]}],"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"]]},"schemaVersion":{"patch":0,"minor":3,"major":0},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"pemDecode","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"_"},{"text":" ","kind":"text"},{"kind":"internalParam","text":"input"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":", ","kind":"text"},{"text":"_","kind":"externalParam"},{"kind":"text","text":" "},{"kind":"internalParam","text":"pem"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier"}],"platforms":["macOS"],"languages":["swift"]}]},{"parameters":[{"name":"input","content":[{"inlineContent":[{"text":"String to decode","type":"text"}],"type":"paragraph"}]},{"name":"pem","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The expected PEM header- and footer string"}]}]}],"kind":"parameters"},{"content":[{"type":"heading","text":"Return Value","anchor":"return-value","level":2},{"inlineContent":[{"type":"text","text":"The Base64 PEM decoding of "},{"code":"input","type":"codeVoice"}],"type":"paragraph"}],"kind":"content"},{"kind":"content","content":[{"level":2,"text":"Discussion","type":"heading","anchor":"discussion"},{"type":"aside","content":[{"inlineContent":[{"type":"text","text":"A "},{"type":"codeVoice","code":"base64"},{"type":"text","text":" exception or a "},{"type":"codeVoice","code":"pemStructure"},{"text":" exception if the input is malformed","type":"text"}],"type":"paragraph"}],"name":"Throws","style":"note"}]}],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)"],"generated":true,"title":"Methods"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)"},"abstract":[{"type":"text","text":"PEM decodes a string"}],"kind":"symbol","metadata":{"symbolKind":"method","externalID":"s:9SwiftHPKE6Base64V9pemDecodeySays5UInt8VGSS_SStKFZ","modules":[{"name":"SwiftHPKE"}],"title":"pemDecode(_:_:)","role":"symbol","roleHeading":"Type Method","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"pemDecode","kind":"identifier"},{"kind":"text","text":"("},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"text":", ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/encode(_:_:)":{"title":"encode(_:_:)","role":"symbol","abstract":[{"type":"text","text":"Base64 encodes a byte array"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","url":"\/documentation\/swifthpke\/base64\/encode(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"encode","kind":"identifier"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/decode(_:)":{"abstract":[{"type":"text","text":"Base64 decodes a string"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"decode"},{"text":"(","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/base64\/decode(_:)","role":"symbol","kind":"symbol","title":"decode(_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemEncode(_:_:)":{"type":"topic","title":"pemEncode(_:_:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"pemEncode","kind":"identifier"},{"kind":"text","text":"("},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"url":"\/documentation\/swifthpke\/base64\/pemencode(_:_:)","role":"symbol","kind":"symbol","abstract":[{"type":"text","text":"PEM encodes a byte array"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"type":"topic","title":"Base64","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Base64"}],"navigatorTitle":[{"kind":"identifier","text":"Base64"}],"url":"\/documentation\/swifthpke\/base64","role":"symbol","kind":"symbol","abstract":[{"type":"text","text":"The Base64 structure"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemDecode(_:_:)":{"abstract":[{"type":"text","text":"PEM decodes a string"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"pemDecode"},{"kind":"text","text":"("},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/base64\/pemdecode(_:_:)","role":"symbol","kind":"symbol","title":"pemDecode(_:_:)"}}} \ No newline at end of file +{"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"]]},"kind":"symbol","seeAlsoSections":[{"title":"Methods","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)"]}],"schemaVersion":{"major":0,"patch":0,"minor":3},"abstract":[{"type":"text","text":"PEM decodes a string"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"pemDecode","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"_"},{"text":" ","kind":"text"},{"kind":"internalParam","text":"input"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"kind":"text","text":", "},{"text":"_","kind":"externalParam"},{"kind":"text","text":" "},{"text":"pem","kind":"internalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"platforms":["macOS"],"languages":["swift"]}]},{"parameters":[{"name":"input","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"String to decode"}]}]},{"name":"pem","content":[{"inlineContent":[{"type":"text","text":"The expected PEM header- and footer string"}],"type":"paragraph"}]}],"kind":"parameters"},{"content":[{"type":"heading","anchor":"return-value","level":2,"text":"Return Value"},{"inlineContent":[{"text":"The Base64 PEM decoding of ","type":"text"},{"code":"input","type":"codeVoice"}],"type":"paragraph"}],"kind":"content"},{"kind":"content","content":[{"type":"heading","level":2,"anchor":"discussion","text":"Discussion"},{"type":"aside","style":"note","content":[{"inlineContent":[{"type":"text","text":"A "},{"type":"codeVoice","code":"base64"},{"type":"text","text":" exception or a "},{"type":"codeVoice","code":"pemStructure"},{"type":"text","text":" exception if the input is malformed"}],"type":"paragraph"}],"name":"Throws"}]}],"metadata":{"fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"pemDecode"},{"text":"(","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"externalID":"s:9SwiftHPKE6Base64V9pemDecodeySays5UInt8VGSS_SStKFZ","roleHeading":"Type Method","symbolKind":"method","title":"pemDecode(_:_:)","role":"symbol","modules":[{"name":"SwiftHPKE"}]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/base64\/pemdecode(_:_:)"]}],"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/decode(_:)":{"abstract":[{"type":"text","text":"Base64 decodes a string"}],"url":"\/documentation\/swifthpke\/base64\/decode(_:)","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"decode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"type":"topic","title":"decode(_:)","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/encode(_:_:)":{"type":"topic","title":"encode(_:_:)","url":"\/documentation\/swifthpke\/base64\/encode(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"encode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"text":") -> ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","role":"symbol","kind":"symbol","abstract":[{"text":"Base64 encodes a byte array","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemEncode(_:_:)":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","abstract":[{"text":"PEM encodes a byte array","type":"text"}],"fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"pemEncode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":") -> ","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"}],"title":"pemEncode(_:_:)","url":"\/documentation\/swifthpke\/base64\/pemencode(_:_:)","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"type":"topic","title":"Base64","url":"\/documentation\/swifthpke\/base64","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"text":"Base64","kind":"identifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","role":"symbol","kind":"symbol","abstract":[{"type":"text","text":"The Base64 structure"}],"navigatorTitle":[{"text":"Base64","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemDecode(_:_:)":{"abstract":[{"type":"text","text":"PEM decodes a string"}],"url":"\/documentation\/swifthpke\/base64\/pemdecode(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"pemDecode"},{"text":"(","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"type":"topic","title":"pemDecode(_:_:)","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/base64/pemencode(_:_:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/base64/pemencode(_:_:).json index 7d88ae2..d3a6d69 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/base64/pemencode(_:_:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/base64/pemencode(_:_:).json @@ -1 +1 @@ -{"sections":[],"variants":[{"paths":["\/documentation\/swifthpke\/base64\/pemencode(_:_:)"],"traits":[{"interfaceLanguage":"swift"}]}],"schemaVersion":{"patch":0,"minor":3,"major":0},"metadata":{"symbolKind":"method","title":"pemEncode(_:_:)","externalID":"s:9SwiftHPKE6Base64V9pemEncodeySSSays5UInt8VG_SStFZ","roleHeading":"Type Method","role":"symbol","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"pemEncode"},{"kind":"text","text":"("},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"}],"modules":[{"name":"SwiftHPKE"}]},"kind":"symbol","abstract":[{"type":"text","text":"PEM encodes a byte array"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"pemEncode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"_","kind":"externalParam"},{"text":" ","kind":"text"},{"text":"input","kind":"internalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"_"},{"text":" ","kind":"text"},{"text":"pem","kind":"internalParam"},{"text":": ","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"}],"platforms":["macOS"]}]},{"kind":"parameters","parameters":[{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Bytes to encode"}]}],"name":"input"},{"name":"pem","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The PEM header- and footer string"}]}]}]},{"kind":"content","content":[{"type":"heading","anchor":"return-value","level":2,"text":"Return Value"},{"type":"paragraph","inlineContent":[{"type":"text","text":"The Base64 PEM encoding of "},{"type":"codeVoice","code":"input"}]}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"]]},"seeAlsoSections":[{"title":"Methods","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)"]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","interfaceLanguage":"swift"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/decode(_:)":{"abstract":[{"type":"text","text":"Base64 decodes a string"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"decode"},{"text":"(","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/base64\/decode(_:)","role":"symbol","kind":"symbol","title":"decode(_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemDecode(_:_:)":{"abstract":[{"type":"text","text":"PEM decodes a string"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"pemDecode"},{"kind":"text","text":"("},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/base64\/pemdecode(_:_:)","role":"symbol","kind":"symbol","title":"pemDecode(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"type":"topic","title":"Base64","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Base64"}],"navigatorTitle":[{"kind":"identifier","text":"Base64"}],"url":"\/documentation\/swifthpke\/base64","role":"symbol","kind":"symbol","abstract":[{"type":"text","text":"The Base64 structure"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemEncode(_:_:)":{"type":"topic","title":"pemEncode(_:_:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"pemEncode","kind":"identifier"},{"kind":"text","text":"("},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"url":"\/documentation\/swifthpke\/base64\/pemencode(_:_:)","role":"symbol","kind":"symbol","abstract":[{"type":"text","text":"PEM encodes a byte array"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/encode(_:_:)":{"title":"encode(_:_:)","role":"symbol","abstract":[{"type":"text","text":"Base64 encodes a byte array"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","url":"\/documentation\/swifthpke\/base64\/encode(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"encode","kind":"identifier"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"type":"topic"}}} \ No newline at end of file +{"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"pemEncode","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"_"},{"kind":"text","text":" "},{"kind":"internalParam","text":"input"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"_"},{"text":" ","kind":"text"},{"kind":"internalParam","text":"pem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"kind":"text","text":") -> "},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"}]}]},{"kind":"parameters","parameters":[{"name":"input","content":[{"inlineContent":[{"text":"Bytes to encode","type":"text"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"The PEM header- and footer string","type":"text"}]}],"name":"pem"}]},{"kind":"content","content":[{"type":"heading","text":"Return Value","anchor":"return-value","level":2},{"type":"paragraph","inlineContent":[{"text":"The Base64 PEM encoding of ","type":"text"},{"type":"codeVoice","code":"input"}]}]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"]]},"sections":[],"schemaVersion":{"major":0,"minor":3,"patch":0},"abstract":[{"text":"PEM encodes a byte array","type":"text"}],"metadata":{"title":"pemEncode(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"pemEncode","kind":"identifier"},{"kind":"text","text":"("},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":") -> ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"symbolKind":"method","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE6Base64V9pemEncodeySSSays5UInt8VG_SStFZ","roleHeading":"Type Method","role":"symbol"},"kind":"symbol","seeAlsoSections":[{"generated":true,"title":"Methods","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)"]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/base64\/pemencode(_:_:)"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemEncode(_:_:)":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","abstract":[{"text":"PEM encodes a byte array","type":"text"}],"fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"pemEncode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":") -> ","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"}],"title":"pemEncode(_:_:)","url":"\/documentation\/swifthpke\/base64\/pemencode(_:_:)","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"type":"topic","title":"Base64","url":"\/documentation\/swifthpke\/base64","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"text":"Base64","kind":"identifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","role":"symbol","kind":"symbol","abstract":[{"type":"text","text":"The Base64 structure"}],"navigatorTitle":[{"text":"Base64","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/encode(_:_:)":{"type":"topic","title":"encode(_:_:)","url":"\/documentation\/swifthpke\/base64\/encode(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"encode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"text":") -> ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","role":"symbol","kind":"symbol","abstract":[{"text":"Base64 encodes a byte array","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/decode(_:)":{"abstract":[{"type":"text","text":"Base64 decodes a string"}],"url":"\/documentation\/swifthpke\/base64\/decode(_:)","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"decode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"type":"topic","title":"decode(_:)","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemDecode(_:_:)":{"abstract":[{"type":"text","text":"PEM decodes a string"}],"url":"\/documentation\/swifthpke\/base64\/pemdecode(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"pemDecode"},{"text":"(","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"type":"topic","title":"pemDecode(_:_:)","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/byte.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/byte.json index b360c02..6ea799a 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/byte.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/byte.json @@ -1 +1 @@ -{"metadata":{"fragments":[{"text":"typealias","kind":"keyword"},{"kind":"text","text":" "},{"text":"Byte","kind":"identifier"}],"navigatorTitle":[{"text":"Byte","kind":"identifier"}],"title":"Byte","symbolKind":"typealias","modules":[{"name":"SwiftHPKE"}],"role":"symbol","externalID":"s:9SwiftHPKE4Bytea","roleHeading":"Type Alias"},"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"],"generated":true,"title":"Type Aliases"}],"sections":[],"schemaVersion":{"major":0,"minor":3,"patch":0},"abstract":[{"type":"text","text":"Unsigned 8 bit value"}],"variants":[{"paths":["\/documentation\/swifthpke\/byte"],"traits":[{"interfaceLanguage":"swift"}]}],"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"typealias","kind":"keyword"},{"kind":"text","text":" "},{"text":"Byte","kind":"identifier"},{"text":" = ","kind":"text"},{"kind":"typeIdentifier","text":"UInt8","preciseIdentifier":"s:s5UInt8V"}]}],"kind":"declarations"}],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Byte"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Byte":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Byte","url":"\/documentation\/swifthpke\/byte","navigatorTitle":[{"kind":"identifier","text":"Byte"}],"role":"symbol","title":"Byte","kind":"symbol","type":"topic","abstract":[{"type":"text","text":"Unsigned 8 bit value"}],"fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"kind":"identifier","text":"Byte"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"}}} \ No newline at end of file +{"kind":"symbol","abstract":[{"text":"Unsigned 8 bit value","type":"text"}],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"],"generated":true,"title":"Type Aliases"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/byte"]}],"schemaVersion":{"patch":0,"minor":3,"major":0},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"metadata":{"modules":[{"name":"SwiftHPKE"}],"roleHeading":"Type Alias","symbolKind":"typealias","fragments":[{"text":"typealias","kind":"keyword"},{"text":" ","kind":"text"},{"text":"Byte","kind":"identifier"}],"externalID":"s:9SwiftHPKE4Bytea","title":"Byte","role":"symbol","navigatorTitle":[{"text":"Byte","kind":"identifier"}]},"primaryContentSections":[{"declarations":[{"tokens":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Byte","kind":"identifier"},{"kind":"text","text":" = "},{"kind":"typeIdentifier","preciseIdentifier":"s:s5UInt8V","text":"UInt8"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"}],"sections":[],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Byte"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Byte":{"navigatorTitle":[{"text":"Byte","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Unsigned 8 bit value","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Byte","type":"topic","kind":"symbol","title":"Byte","fragments":[{"text":"typealias","kind":"keyword"},{"kind":"text","text":" "},{"text":"Byte","kind":"identifier"}],"url":"\/documentation\/swifthpke\/byte"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/bytes.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/bytes.json index 5b821a9..ea0fc6a 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/bytes.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/bytes.json @@ -1 +1 @@ -{"variants":[{"paths":["\/documentation\/swifthpke\/bytes"],"traits":[{"interfaceLanguage":"swift"}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"metadata":{"externalID":"s:9SwiftHPKE5Bytesa","roleHeading":"Type Alias","navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","title":"Bytes","modules":[{"name":"SwiftHPKE"}],"symbolKind":"typealias","fragments":[{"text":"typealias","kind":"keyword"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}]},"sections":[],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"seeAlsoSections":[{"title":"Type Aliases","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Byte"],"generated":true}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","interfaceLanguage":"swift"},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"typealias","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"Bytes"},{"text":" = [","kind":"text"},{"kind":"typeIdentifier","text":"UInt8","preciseIdentifier":"s:s5UInt8V"},{"kind":"text","text":"]"}],"languages":["swift"]}]}],"schemaVersion":{"minor":3,"major":0,"patch":0},"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Byte":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Byte","url":"\/documentation\/swifthpke\/byte","navigatorTitle":[{"kind":"identifier","text":"Byte"}],"role":"symbol","title":"Byte","kind":"symbol","type":"topic","abstract":[{"type":"text","text":"Unsigned 8 bit value"}],"fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"kind":"identifier","text":"Byte"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"}}} \ No newline at end of file +{"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","interfaceLanguage":"swift"},"kind":"symbol","sections":[],"schemaVersion":{"major":0,"minor":3,"patch":0},"metadata":{"symbolKind":"typealias","fragments":[{"text":"typealias","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"Bytes"}],"title":"Bytes","role":"symbol","navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"modules":[{"name":"SwiftHPKE"}],"roleHeading":"Type Alias","externalID":"s:9SwiftHPKE5Bytesa"},"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Byte"],"title":"Type Aliases","generated":true}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"typealias","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"},{"text":" = [","kind":"text"},{"preciseIdentifier":"s:s5UInt8V","text":"UInt8","kind":"typeIdentifier"},{"text":"]","kind":"text"}],"languages":["swift"]}]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/bytes"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/Byte":{"navigatorTitle":[{"text":"Byte","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Unsigned 8 bit value","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Byte","type":"topic","kind":"symbol","title":"Byte","fragments":[{"text":"typealias","kind":"keyword"},{"kind":"text","text":" "},{"text":"Byte","kind":"identifier"}],"url":"\/documentation\/swifthpke\/byte"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite.json index 677acb7..50bfa2b 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite.json @@ -1 +1 @@ -{"sections":[],"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite"],"traits":[{"interfaceLanguage":"swift"}]}],"metadata":{"navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}],"role":"symbol","roleHeading":"Structure","symbolKind":"struct","modules":[{"name":"SwiftHPKE"}],"title":"CipherSuite","externalID":"s:9SwiftHPKE11CipherSuiteV","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}]},"schemaVersion":{"patch":0,"major":0,"minor":3},"kind":"symbol","relationshipsSections":[{"title":"Conforms To","identifiers":["doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP"],"kind":"relationships","type":"conformsTo"}],"abstract":[{"text":"The cipher suite","type":"text"}],"topicSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description"],"title":"Properties"},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/init(kem:kdf:aead:)"],"title":"Conctructor"},{"title":"Generate Keys","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/deriveKeyPair(ikm:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/makeKeyPair()"]},{"title":"Base mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)"]},{"title":"Preshared key mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)"]},{"title":"Authenticated mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)"]},{"title":"Authenticated, preshared key mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)"]}],"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"text":"CipherSuite","kind":"identifier"}]}],"kind":"declarations"},{"kind":"content","content":[{"text":"Overview","anchor":"Overview","type":"heading","level":2},{"inlineContent":[{"text":"A CipherSuite instance combines a ","type":"text"},{"type":"emphasis","inlineContent":[{"type":"text","text":"Key Encapsulation Mechanism"}]},{"type":"text","text":" ("},{"isActive":true,"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","type":"reference"},{"type":"text","text":"), a "},{"type":"emphasis","inlineContent":[{"type":"text","text":"Key Derivation Function"}]},{"text":" (","type":"text"},{"type":"reference","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","isActive":true},{"type":"text","text":")"},{"text":" ","type":"text"},{"type":"text","text":"and a "},{"type":"emphasis","inlineContent":[{"text":"AEAD Encryption Algorithm","type":"text"}]},{"type":"text","text":" ("},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","type":"reference","isActive":true},{"type":"text","text":")."},{"text":" ","type":"text"},{"text":"It can encrypt or decrypt a single message in one of four modes:","type":"text"}],"type":"paragraph"},{"type":"unorderedList","items":[{"content":[{"inlineContent":[{"type":"text","text":"Base mode"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"Preshared key mode","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"Authenticated mode","type":"text"}]}]},{"content":[{"inlineContent":[{"text":"Authenticated, preshared key mode","type":"text"}],"type":"paragraph"}]}]}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"seeAlsoSections":[{"title":"Structures","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"],"generated":true}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","navigatorTitle":[{"text":"KEM","kind":"identifier"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"title":"KEM","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"KEM","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:psk:pskId:ct:aad:encap:)":{"kind":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"abstract":[{"type":"text","text":"Single-shot decryption in preshared key mode"}],"type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:psk:pskid:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","title":"open(privateKey:info:psk:pskId:ct:aad:encap:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:pt:aad:)":{"kind":"symbol","type":"topic","abstract":[{"type":"text","text":"Single-shot encryption in authenticated mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:pt:aad:)","title":"seal(publicKey:info:authentication:pt:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:psk:pskId:)":{"abstract":[{"text":"Generate an export secret in preshared key mode","type":"text"}],"role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:psk:pskid:)","kind":"symbol","type":"topic","title":"sendExport(publicKey:info:context:L:psk:pskId:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":")","kind":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/deriveKeyPair(ikm:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/derivekeypair(ikm:)","type":"topic","kind":"symbol","abstract":[{"type":"text","text":"Derives a public- and private HPKE key pair for "},{"type":"codeVoice","code":"self"},{"text":" based on keying material","type":"text"}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"deriveKeyPair","kind":"identifier"},{"text":"(","kind":"text"},{"text":"ikm","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> ("},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":")","kind":"text"}],"title":"deriveKeyPair(ikm:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/deriveKeyPair(ikm:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:encap:)":{"abstract":[{"type":"text","text":"Retrieve an export secret in base mode"}],"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)","title":"receiveExport(privateKey:info:context:L:encap:)","kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kdf":{"type":"topic","title":"kdf","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"kdf"},{"kind":"text","text":": "},{"text":"KDF","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KDFO"}],"role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/kdf","kind":"symbol","abstract":[{"type":"text","text":"The key derivation function"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:encap:)":{"kind":"symbol","type":"topic","abstract":[{"type":"text","text":"Retrieve an export secret in authenticated mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)","title":"receiveExport(privateKey:info:context:L:authentication:encap:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:)":{"abstract":[{"type":"text","text":"Generate an export secret in base mode"}],"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"sendExport"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", secret"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","title":"sendExport(publicKey:info:context:L:)","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:ct:aad:encap:)":{"kind":"symbol","type":"topic","abstract":[{"type":"text","text":"Single-shot decryption in authenticated mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:ct:aad:encap:)","title":"open(privateKey:info:authentication:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"ct"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/aead":{"abstract":[{"text":"The AEAD encryption algorithm","type":"text"}],"title":"aead","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","fragments":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"kind":"identifier","text":"aead"},{"text":": ","kind":"text"},{"text":"AEAD","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE4AEADO"}],"role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/aead","kind":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)":{"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)","abstract":[{"type":"text","text":"Retrieve an export secret in authenticated, preshared key mode"}],"title":"receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/makeKeyPair()":{"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/makeKeyPair()","role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"makeKeyPair"},{"text":"() ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> ("},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":")","kind":"text"}],"kind":"symbol","title":"makeKeyPair()","abstract":[{"text":"Generates a public- and private HPKE key pair for ","type":"text"},{"type":"codeVoice","code":"self"}],"url":"\/documentation\/swifthpke\/ciphersuite\/makekeypair()"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/init(kem:kdf:aead:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/init(kem:kdf:aead:)","title":"init(kem:kdf:aead:)","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"text":"kem","kind":"externalParam"},{"kind":"text","text":": "},{"text":"KEM","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"kdf"},{"kind":"text","text":": "},{"text":"KDF","preciseIdentifier":"s:9SwiftHPKE3KDFO","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aead"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE4AEADO","text":"AEAD","kind":"typeIdentifier"},{"kind":"text","text":")"}],"type":"topic","role":"symbol","kind":"symbol","abstract":[{"type":"text","text":"Creates a CipherSuite instance"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/init(kem:kdf:aead:)"},"doc://SwiftHPKE/s23CustomStringConvertibleP":{"type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","title":"Swift.CustomStringConvertible"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:psk:pskId:encap:)":{"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"receiveExport"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"Retrieve an export secret in preshared key mode"}],"title":"receiveExport(privateKey:info:context:L:psk:pskId:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:psk:pskid:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:ct:aad:encap:)":{"abstract":[{"type":"text","text":"Single-shot decryption in base mode"}],"role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","title":"open(privateKey:info:ct:aad:encap:)","kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"AEAD","kind":"identifier"}],"navigatorTitle":[{"text":"AEAD","kind":"identifier"}],"abstract":[{"text":"The AEAD encryption algorithms","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","url":"\/documentation\/swifthpke\/aead","kind":"symbol","type":"topic","title":"AEAD"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"abstract":[{"text":"The key derivation functions","type":"text"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","navigatorTitle":[{"kind":"identifier","text":"KDF"}],"url":"\/documentation\/swifthpke\/kdf","type":"topic","title":"KDF"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:psk:pskId:pt:aad:)":{"kind":"symbol","role":"symbol","abstract":[{"text":"Single-shot encryption in preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:psk:pskid:pt:aad:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","title":"seal(publicKey:info:psk:pskId:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", ct"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":")"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:psk:pskId:pt:aad:)":{"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:psk:pskid:pt:aad:)","abstract":[{"type":"text","text":"Single-shot encryption in authenticated, preshared key mode"}],"title":"seal(publicKey:info:authentication:psk:pskId:pt:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":")"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kem":{"title":"kem","role":"symbol","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"kem"},{"kind":"text","text":": "},{"text":"KEM","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","url":"\/documentation\/swifthpke\/ciphersuite\/kem","kind":"symbol","abstract":[{"text":"The key encapsulation mechanism","type":"text"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:psk:pskId:)":{"kind":"symbol","type":"topic","abstract":[{"type":"text","text":"Generate an export secret in authenticated, preshared key mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:psk:pskid:)","title":"sendExport(publicKey:info:context:L:authentication:psk:pskId:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)":{"kind":"symbol","type":"topic","abstract":[{"type":"text","text":"Single-shot decryption in authenticated, preshared key mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)","title":"open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:pt:aad:)":{"abstract":[{"text":"Single-shot encryption in base mode","type":"text"}],"role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pt"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", ct"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":")"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","title":"seal(publicKey:info:pt:aad:)","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/description":{"abstract":[{"text":"A textual representation of ","type":"text"},{"code":"self","type":"codeVoice"}],"title":"description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"}],"role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/description","kind":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:)":{"kind":"symbol","type":"topic","abstract":[{"text":"Generate an export secret in authenticated mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:)","title":"sendExport(publicKey:info:context:L:authentication:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"type":"topic","title":"Base64","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Base64"}],"navigatorTitle":[{"kind":"identifier","text":"Base64"}],"url":"\/documentation\/swifthpke\/base64","role":"symbol","kind":"symbol","abstract":[{"type":"text","text":"The Base64 structure"}]}}} \ No newline at end of file +{"metadata":{"title":"CipherSuite","role":"symbol","roleHeading":"Structure","externalID":"s:9SwiftHPKE11CipherSuiteV","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}],"modules":[{"name":"SwiftHPKE"}],"symbolKind":"struct","fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"CipherSuite"}]},"abstract":[{"type":"text","text":"The cipher suite"}],"schemaVersion":{"patch":0,"major":0,"minor":3},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"text":"CipherSuite","kind":"identifier"}]}]},{"content":[{"level":2,"text":"Overview","type":"heading","anchor":"Overview"},{"inlineContent":[{"text":"A CipherSuite instance combines a ","type":"text"},{"inlineContent":[{"type":"text","text":"Key Encapsulation Mechanism"}],"type":"emphasis"},{"type":"text","text":" ("},{"type":"reference","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","isActive":true},{"type":"text","text":"), a "},{"inlineContent":[{"text":"Key Derivation Function","type":"text"}],"type":"emphasis"},{"text":" (","type":"text"},{"isActive":true,"type":"reference","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"},{"text":")","type":"text"},{"type":"text","text":" "},{"text":"and a ","type":"text"},{"inlineContent":[{"type":"text","text":"AEAD Encryption Algorithm"}],"type":"emphasis"},{"type":"text","text":" ("},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","isActive":true,"type":"reference"},{"text":").","type":"text"},{"type":"text","text":" "},{"type":"text","text":"It can encrypt or decrypt a single message in one of four modes:"}],"type":"paragraph"},{"items":[{"content":[{"inlineContent":[{"text":"Base mode","type":"text"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"type":"text","text":"Preshared key mode"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"Authenticated mode","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"Authenticated, preshared key mode","type":"text"}]}]}],"type":"unorderedList"}],"kind":"content"}],"kind":"symbol","identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"},"topicSections":[{"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description"]},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/init(kem:kdf:aead:)"],"title":"Conctructor"},{"title":"Generate Keys","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/deriveKeyPair(ikm:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/makeKeyPair()"]},{"title":"Base mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)"]},{"title":"Preshared key mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)"]},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)"],"title":"Authenticated mode"},{"title":"Authenticated, preshared key mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)"]}],"relationshipsSections":[{"title":"Conforms To","type":"conformsTo","kind":"relationships","identifiers":["doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP"]}],"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"],"title":"Structures"}],"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite"],"traits":[{"interfaceLanguage":"swift"}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:psk:pskId:ct:aad:encap:)":{"kind":"symbol","abstract":[{"type":"text","text":"Single-shot decryption in preshared key mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:psk:pskid:ct:aad:encap:)","type":"topic","title":"open(privateKey:info:psk:pskId:ct:aad:encap:)","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"open"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"kind":"symbol","url":"\/documentation\/swifthpke\/kdf","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","navigatorTitle":[{"text":"KDF","kind":"identifier"}],"type":"topic","abstract":[{"type":"text","text":"The key derivation functions"}],"role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"title":"KDF"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/init(kem:kdf:aead:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/init(kem:kdf:aead:)","type":"topic","kind":"symbol","abstract":[{"type":"text","text":"Creates a CipherSuite instance"}],"title":"init(kem:kdf:aead:)","role":"symbol","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"kem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"kdf"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"KDF","preciseIdentifier":"s:9SwiftHPKE3KDFO"},{"kind":"text","text":", "},{"text":"aead","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE4AEADO","text":"AEAD"},{"kind":"text","text":")"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/init(kem:kdf:aead:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"KEM"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"url":"\/documentation\/swifthpke\/kem","kind":"symbol","title":"KEM","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)":{"kind":"symbol","role":"symbol","abstract":[{"type":"text","text":"Single-shot decryption in authenticated, preshared key mode"}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"type":"topic","title":"open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:psk:pskId:pt:aad:)":{"kind":"symbol","abstract":[{"text":"Single-shot encryption in preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:psk:pskid:pt:aad:)","type":"topic","title":"seal(publicKey:info:psk:pskId:pt:aad:)","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ct","kind":"text"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:pt:aad:)":{"title":"seal(publicKey:info:pt:aad:)","abstract":[{"type":"text","text":"Single-shot encryption in base mode"}],"role":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:pt:aad:)","kind":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","abstract":[{"text":"Generate an export secret in base mode","type":"text"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":")"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:)","type":"topic","kind":"symbol","role":"symbol","title":"sendExport(publicKey:info:context:L:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:psk:pskId:)":{"kind":"symbol","abstract":[{"type":"text","text":"Generate an export secret in preshared key mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:psk:pskid:)","type":"topic","title":"sendExport(publicKey:info:context:L:psk:pskId:)","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encapsulatedKey"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", secret"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":")"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:ct:aad:encap:)":{"abstract":[{"type":"text","text":"Single-shot decryption in authenticated mode"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","kind":"symbol","role":"symbol","title":"open(privateKey:info:authentication:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/deriveKeyPair(ikm:)":{"type":"topic","role":"symbol","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/derivekeypair(ikm:)","abstract":[{"type":"text","text":"Derives a public- and private HPKE key pair for "},{"type":"codeVoice","code":"self"},{"type":"text","text":" based on keying material"}],"fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"deriveKeyPair"},{"text":"(","kind":"text"},{"text":"ikm","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> ("},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":")","kind":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/deriveKeyPair(ikm:)","title":"deriveKeyPair(ikm:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:ct:aad:encap:)":{"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:ct:aad:encap:)","type":"topic","abstract":[{"text":"Single-shot decryption in base mode","type":"text"}],"title":"open(privateKey:info:ct:aad:encap:)","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:encap:)":{"abstract":[{"type":"text","text":"Retrieve an export secret in authenticated mode"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)","kind":"symbol","role":"symbol","title":"receiveExport(privateKey:info:context:L:authentication:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:encap:)":{"title":"receiveExport(privateKey:info:context:L:encap:)","abstract":[{"text":"Retrieve an export secret in base mode","type":"text"}],"role":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:encap:)","kind":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:)":{"abstract":[{"type":"text","text":"Generate an export secret in authenticated mode"}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":")","kind":"text"}],"type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","kind":"symbol","role":"symbol","title":"sendExport(publicKey:info:context:L:authentication:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kdf":{"type":"topic","title":"kdf","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/kdf","abstract":[{"text":"The key derivation function","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","kind":"symbol","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"kdf"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE3KDFO","text":"KDF","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/description":{"type":"topic","title":"description","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/description","abstract":[{"text":"A textual representation of ","type":"text"},{"code":"self","type":"codeVoice"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description","kind":"symbol","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:pt:aad:)":{"abstract":[{"type":"text","text":"Single-shot encryption in authenticated mode"}],"fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pt"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}],"type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:pt:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","kind":"symbol","role":"symbol","title":"seal(publicKey:info:authentication:pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:psk:pskId:encap:)":{"kind":"symbol","abstract":[{"text":"Retrieve an export secret in preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:psk:pskid:encap:)","type":"topic","title":"receiveExport(privateKey:info:context:L:psk:pskId:encap:)","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:psk:pskId:pt:aad:)":{"kind":"symbol","role":"symbol","abstract":[{"type":"text","text":"Single-shot encryption in authenticated, preshared key mode"}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pt"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ct","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":")"}],"type":"topic","title":"seal(publicKey:info:authentication:psk:pskId:pt:aad:)","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:psk:pskid:pt:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/aead":{"type":"topic","title":"aead","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/aead","abstract":[{"type":"text","text":"The AEAD encryption algorithm"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","kind":"symbol","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"aead","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE4AEADO","text":"AEAD","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/makeKeyPair()":{"type":"topic","role":"symbol","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/makekeypair()","abstract":[{"type":"text","text":"Generates a public- and private HPKE key pair for "},{"type":"codeVoice","code":"self"}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"makeKeyPair"},{"text":"() ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":")"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/makeKeyPair()","title":"makeKeyPair()"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)":{"kind":"symbol","role":"symbol","abstract":[{"type":"text","text":"Retrieve an export secret in authenticated, preshared key mode"}],"fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"title":"receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"AEAD","kind":"identifier"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","title":"AEAD","url":"\/documentation\/swifthpke\/aead","kind":"symbol","role":"symbol","navigatorTitle":[{"text":"AEAD","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:psk:pskId:)":{"kind":"symbol","role":"symbol","abstract":[{"text":"Generate an export secret in authenticated, preshared key mode","type":"text"}],"fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encapsulatedKey"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}],"title":"sendExport(publicKey:info:context:L:authentication:psk:pskId:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:psk:pskid:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"type":"topic","title":"Base64","url":"\/documentation\/swifthpke\/base64","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"text":"Base64","kind":"identifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","role":"symbol","kind":"symbol","abstract":[{"type":"text","text":"The Base64 structure"}],"navigatorTitle":[{"text":"Base64","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kem":{"type":"topic","title":"kem","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/kem","abstract":[{"type":"text","text":"The key encapsulation mechanism"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","kind":"symbol","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"kem","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/s23CustomStringConvertibleP":{"type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","title":"Swift.CustomStringConvertible"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/aead.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/aead.json index 50a9860..876fc29 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/aead.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/aead.json @@ -1 +1 @@ -{"schemaVersion":{"major":0,"patch":0,"minor":3},"seeAlsoSections":[{"generated":true,"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description"]}],"sections":[],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"aead"},{"text":": ","kind":"text"},{"text":"AEAD","preciseIdentifier":"s:9SwiftHPKE4AEADO","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","kind":"typeIdentifier"}]}],"kind":"declarations"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","interfaceLanguage":"swift"},"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"metadata":{"role":"symbol","externalID":"s:9SwiftHPKE11CipherSuiteV4aeadAA4AEADOvp","symbolKind":"property","roleHeading":"Instance Property","modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"aead","kind":"identifier"},{"text":": ","kind":"text"},{"text":"AEAD","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE4AEADO"}],"title":"aead"},"abstract":[{"type":"text","text":"The AEAD encryption algorithm"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/aead"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kem":{"title":"kem","role":"symbol","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"kem"},{"kind":"text","text":": "},{"text":"KEM","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","url":"\/documentation\/swifthpke\/ciphersuite\/kem","kind":"symbol","abstract":[{"text":"The key encapsulation mechanism","type":"text"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kdf":{"type":"topic","title":"kdf","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"kdf"},{"kind":"text","text":": "},{"text":"KDF","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KDFO"}],"role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/kdf","kind":"symbol","abstract":[{"type":"text","text":"The key derivation function"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/aead":{"abstract":[{"text":"The AEAD encryption algorithm","type":"text"}],"title":"aead","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","fragments":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"kind":"identifier","text":"aead"},{"text":": ","kind":"text"},{"text":"AEAD","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE4AEADO"}],"role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/aead","kind":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"AEAD","kind":"identifier"}],"navigatorTitle":[{"text":"AEAD","kind":"identifier"}],"abstract":[{"text":"The AEAD encryption algorithms","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","url":"\/documentation\/swifthpke\/aead","kind":"symbol","type":"topic","title":"AEAD"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/description":{"abstract":[{"text":"A textual representation of ","type":"text"},{"code":"self","type":"codeVoice"}],"title":"description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"}],"role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/description","kind":"symbol","type":"topic"}}} \ No newline at end of file +{"seeAlsoSections":[{"generated":true,"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description"]}],"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/aead"],"traits":[{"interfaceLanguage":"swift"}]}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"aead","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE4AEADO","text":"AEAD","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","kind":"typeIdentifier"}],"languages":["swift"]}],"kind":"declarations"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"metadata":{"roleHeading":"Instance Property","title":"aead","symbolKind":"property","externalID":"s:9SwiftHPKE11CipherSuiteV4aeadAA4AEADOvp","role":"symbol","modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"aead"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE4AEADO","kind":"typeIdentifier","text":"AEAD"}]},"sections":[],"kind":"symbol","schemaVersion":{"major":0,"minor":3,"patch":0},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead"},"abstract":[{"text":"The AEAD encryption algorithm","type":"text"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kdf":{"type":"topic","title":"kdf","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/kdf","abstract":[{"text":"The key derivation function","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","kind":"symbol","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"kdf"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE3KDFO","text":"KDF","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/description":{"type":"topic","title":"description","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/description","abstract":[{"text":"A textual representation of ","type":"text"},{"code":"self","type":"codeVoice"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description","kind":"symbol","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"AEAD","kind":"identifier"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","title":"AEAD","url":"\/documentation\/swifthpke\/aead","kind":"symbol","role":"symbol","navigatorTitle":[{"text":"AEAD","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/aead":{"type":"topic","title":"aead","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/aead","abstract":[{"type":"text","text":"The AEAD encryption algorithm"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","kind":"symbol","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"aead","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE4AEADO","text":"AEAD","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kem":{"type":"topic","title":"kem","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/kem","abstract":[{"type":"text","text":"The key encapsulation mechanism"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","kind":"symbol","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"kem","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/derivekeypair(ikm:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/derivekeypair(ikm:).json index 0938578..67f42ae 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/derivekeypair(ikm:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/derivekeypair(ikm:).json @@ -1 +1 @@ -{"abstract":[{"type":"text","text":"Derives a public- and private HPKE key pair for "},{"type":"codeVoice","code":"self"},{"type":"text","text":" based on keying material"}],"seeAlsoSections":[{"generated":true,"title":"Generate Keys","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/makeKeyPair()"]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"schemaVersion":{"major":0,"patch":0,"minor":3},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/derivekeypair(ikm:)"]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/deriveKeyPair(ikm:)","interfaceLanguage":"swift"},"metadata":{"title":"deriveKeyPair(ikm:)","modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"deriveKeyPair","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"ikm"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> ("},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"kind":"text","text":")"}],"externalID":"s:9SwiftHPKE11CipherSuiteV13deriveKeyPair3ikmAA06PublicF0V_AA07PrivateF0VtSays5UInt8VG_tKF","symbolKind":"method","roleHeading":"Instance Method","role":"symbol"},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"deriveKeyPair"},{"text":"(","kind":"text"},{"text":"ikm","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (","kind":"text"},{"text":"PublicKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"},{"text":")","kind":"text"}]}]},{"kind":"parameters","parameters":[{"content":[{"inlineContent":[{"type":"text","text":"The keying material"}],"type":"paragraph"}],"name":"ikm"}]},{"content":[{"type":"heading","level":2,"anchor":"return-value","text":"Return Value"},{"type":"paragraph","inlineContent":[{"text":"The public key and private key pair","type":"text"}]}],"kind":"content"},{"content":[{"text":"Discussion","level":2,"type":"heading","anchor":"discussion"},{"type":"aside","content":[{"inlineContent":[{"text":"A ","type":"text"},{"code":"derivedKeyError","type":"codeVoice"},{"text":" exception in extremely rare cases","type":"text"}],"type":"paragraph"}],"style":"note","name":"Throws"}],"kind":"content"}],"kind":"symbol","sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/deriveKeyPair(ikm:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/derivekeypair(ikm:)","type":"topic","kind":"symbol","abstract":[{"type":"text","text":"Derives a public- and private HPKE key pair for "},{"type":"codeVoice","code":"self"},{"text":" based on keying material","type":"text"}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"deriveKeyPair","kind":"identifier"},{"text":"(","kind":"text"},{"text":"ikm","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> ("},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":")","kind":"text"}],"title":"deriveKeyPair(ikm:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/deriveKeyPair(ikm:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/makeKeyPair()":{"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/makeKeyPair()","role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"makeKeyPair"},{"text":"() ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> ("},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":")","kind":"text"}],"kind":"symbol","title":"makeKeyPair()","abstract":[{"text":"Generates a public- and private HPKE key pair for ","type":"text"},{"type":"codeVoice","code":"self"}],"url":"\/documentation\/swifthpke\/ciphersuite\/makekeypair()"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"}}} \ No newline at end of file +{"kind":"symbol","sections":[],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/makeKeyPair()"],"title":"Generate Keys","generated":true}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"deriveKeyPair"},{"text":"(","kind":"text"},{"text":"ikm","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"},{"kind":"text","text":")"}]}]},{"kind":"parameters","parameters":[{"name":"ikm","content":[{"type":"paragraph","inlineContent":[{"text":"The keying material","type":"text"}]}]}]},{"kind":"content","content":[{"text":"Return Value","anchor":"return-value","level":2,"type":"heading"},{"type":"paragraph","inlineContent":[{"type":"text","text":"The public key and private key pair"}]}]},{"content":[{"text":"Discussion","anchor":"discussion","type":"heading","level":2},{"style":"note","type":"aside","name":"Throws","content":[{"inlineContent":[{"text":"A ","type":"text"},{"code":"derivedKeyError","type":"codeVoice"},{"type":"text","text":" exception in extremely rare cases"}],"type":"paragraph"}]}],"kind":"content"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/deriveKeyPair(ikm:)","interfaceLanguage":"swift"},"abstract":[{"type":"text","text":"Derives a public- and private HPKE key pair for "},{"code":"self","type":"codeVoice"},{"type":"text","text":" based on keying material"}],"schemaVersion":{"major":0,"patch":0,"minor":3},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"metadata":{"title":"deriveKeyPair(ikm:)","symbolKind":"method","roleHeading":"Instance Method","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE11CipherSuiteV13deriveKeyPair3ikmAA06PublicF0V_AA07PrivateF0VtSays5UInt8VG_tKF","role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"deriveKeyPair"},{"text":"(","kind":"text"},{"text":"ikm","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":")"}]},"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/derivekeypair(ikm:)"],"traits":[{"interfaceLanguage":"swift"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/deriveKeyPair(ikm:)":{"type":"topic","role":"symbol","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/derivekeypair(ikm:)","abstract":[{"type":"text","text":"Derives a public- and private HPKE key pair for "},{"type":"codeVoice","code":"self"},{"type":"text","text":" based on keying material"}],"fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"deriveKeyPair"},{"text":"(","kind":"text"},{"text":"ikm","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> ("},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":")","kind":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/deriveKeyPair(ikm:)","title":"deriveKeyPair(ikm:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/makeKeyPair()":{"type":"topic","role":"symbol","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/makekeypair()","abstract":[{"type":"text","text":"Generates a public- and private HPKE key pair for "},{"type":"codeVoice","code":"self"}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"makeKeyPair"},{"text":"() ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":")"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/makeKeyPair()","title":"makeKeyPair()"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/description.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/description.json index 5b4b7d2..ac8be07 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/description.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/description.json @@ -1 +1 @@ -{"metadata":{"modules":[{"name":"SwiftHPKE"}],"roleHeading":"Instance Property","title":"description","externalID":"s:9SwiftHPKE11CipherSuiteV11descriptionSSvp","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"kind":"text","text":": "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"role":"symbol","symbolKind":"property"},"schemaVersion":{"minor":3,"major":0,"patch":0},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description"},"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead"],"title":"Properties","generated":true}],"kind":"symbol","primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"},{"text":" { ","kind":"text"},{"text":"get","kind":"keyword"},{"text":" }","kind":"text"}],"languages":["swift"],"platforms":["macOS"]}]}],"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/description"],"traits":[{"interfaceLanguage":"swift"}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"abstract":[{"text":"A textual representation of ","type":"text"},{"code":"self","type":"codeVoice"}],"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/description":{"abstract":[{"text":"A textual representation of ","type":"text"},{"code":"self","type":"codeVoice"}],"title":"description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"}],"role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/description","kind":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kdf":{"type":"topic","title":"kdf","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"kdf"},{"kind":"text","text":": "},{"text":"KDF","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KDFO"}],"role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/kdf","kind":"symbol","abstract":[{"type":"text","text":"The key derivation function"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/aead":{"abstract":[{"text":"The AEAD encryption algorithm","type":"text"}],"title":"aead","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","fragments":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"kind":"identifier","text":"aead"},{"text":": ","kind":"text"},{"text":"AEAD","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE4AEADO"}],"role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/aead","kind":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kem":{"title":"kem","role":"symbol","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"kem"},{"kind":"text","text":": "},{"text":"KEM","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","url":"\/documentation\/swifthpke\/ciphersuite\/kem","kind":"symbol","abstract":[{"text":"The key encapsulation mechanism","type":"text"}],"type":"topic"}}} \ No newline at end of file +{"metadata":{"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"role":"symbol","externalID":"s:9SwiftHPKE11CipherSuiteV11descriptionSSvp","roleHeading":"Instance Property","title":"description","modules":[{"name":"SwiftHPKE"}],"symbolKind":"property"},"schemaVersion":{"patch":0,"major":0,"minor":3},"sections":[],"abstract":[{"text":"A textual representation of ","type":"text"},{"type":"codeVoice","code":"self"}],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"primaryContentSections":[{"declarations":[{"tokens":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"kind":"text","text":": "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":" { "},{"kind":"keyword","text":"get"},{"kind":"text","text":" }"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description","interfaceLanguage":"swift"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/description"]}],"seeAlsoSections":[{"generated":true,"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/aead":{"type":"topic","title":"aead","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/aead","abstract":[{"type":"text","text":"The AEAD encryption algorithm"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","kind":"symbol","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"aead","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE4AEADO","text":"AEAD","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/description":{"type":"topic","title":"description","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/description","abstract":[{"text":"A textual representation of ","type":"text"},{"code":"self","type":"codeVoice"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description","kind":"symbol","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kem":{"type":"topic","title":"kem","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/kem","abstract":[{"type":"text","text":"The key encapsulation mechanism"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","kind":"symbol","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"kem","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kdf":{"type":"topic","title":"kdf","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/kdf","abstract":[{"text":"The key derivation function","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","kind":"symbol","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"kdf"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE3KDFO","text":"KDF","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/init(kem:kdf:aead:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/init(kem:kdf:aead:).json index 8704910..5fca0fe 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/init(kem:kdf:aead:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/init(kem:kdf:aead:).json @@ -1 +1 @@ -{"schemaVersion":{"patch":0,"major":0,"minor":3},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/init(kem:kdf:aead:)"},"sections":[],"abstract":[{"text":"Creates a CipherSuite instance","type":"text"}],"primaryContentSections":[{"declarations":[{"languages":["swift"],"tokens":[{"kind":"keyword","text":"init"},{"kind":"text","text":"("},{"text":"kem","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","preciseIdentifier":"s:9SwiftHPKE3KEMO","kind":"typeIdentifier","text":"KEM"},{"text":", ","kind":"text"},{"text":"kdf","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KDFO","text":"KDF","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aead"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE4AEADO","text":"AEAD","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","kind":"typeIdentifier"},{"text":")","kind":"text"}],"platforms":["macOS"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"kem","content":[{"inlineContent":[{"type":"text","text":"The key encapsulation mechanism"}],"type":"paragraph"}]},{"name":"kdf","content":[{"type":"paragraph","inlineContent":[{"text":"The key derivation function","type":"text"}]}]},{"name":"aead","content":[{"type":"paragraph","inlineContent":[{"text":"The AEAD encryption algorithm","type":"text"}]}]}]}],"metadata":{"externalID":"s:9SwiftHPKE11CipherSuiteV3kem3kdf4aeadAcA3KEMO_AA3KDFOAA4AEADOtcfc","title":"init(kem:kdf:aead:)","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"kem"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"kdf"},{"kind":"text","text":": "},{"text":"KDF","preciseIdentifier":"s:9SwiftHPKE3KDFO","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aead"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE4AEADO","text":"AEAD"},{"text":")","kind":"text"}],"modules":[{"name":"SwiftHPKE"}],"role":"symbol","roleHeading":"Initializer","symbolKind":"init"},"kind":"symbol","variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/init(kem:kdf:aead:)"],"traits":[{"interfaceLanguage":"swift"}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/init(kem:kdf:aead:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/init(kem:kdf:aead:)","title":"init(kem:kdf:aead:)","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"text":"kem","kind":"externalParam"},{"kind":"text","text":": "},{"text":"KEM","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"kdf"},{"kind":"text","text":": "},{"text":"KDF","preciseIdentifier":"s:9SwiftHPKE3KDFO","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aead"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE4AEADO","text":"AEAD","kind":"typeIdentifier"},{"kind":"text","text":")"}],"type":"topic","role":"symbol","kind":"symbol","abstract":[{"type":"text","text":"Creates a CipherSuite instance"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/init(kem:kdf:aead:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"abstract":[{"text":"The key derivation functions","type":"text"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","navigatorTitle":[{"kind":"identifier","text":"KDF"}],"url":"\/documentation\/swifthpke\/kdf","type":"topic","title":"KDF"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"AEAD","kind":"identifier"}],"navigatorTitle":[{"text":"AEAD","kind":"identifier"}],"abstract":[{"text":"The AEAD encryption algorithms","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","url":"\/documentation\/swifthpke\/aead","kind":"symbol","type":"topic","title":"AEAD"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","navigatorTitle":[{"text":"KEM","kind":"identifier"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"title":"KEM","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"KEM","kind":"identifier"}]}}} \ No newline at end of file +{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"abstract":[{"text":"Creates a CipherSuite instance","type":"text"}],"sections":[],"schemaVersion":{"patch":0,"major":0,"minor":3},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/init(kem:kdf:aead:)"]}],"primaryContentSections":[{"declarations":[{"languages":["swift"],"tokens":[{"text":"init","kind":"keyword"},{"kind":"text","text":"("},{"text":"kem","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"KEM","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","preciseIdentifier":"s:9SwiftHPKE3KEMO"},{"kind":"text","text":", "},{"text":"kdf","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"KDF","preciseIdentifier":"s:9SwiftHPKE3KDFO","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"},{"text":", ","kind":"text"},{"text":"aead","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"AEAD","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","preciseIdentifier":"s:9SwiftHPKE4AEADO","kind":"typeIdentifier"},{"kind":"text","text":")"}],"platforms":["macOS"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"content":[{"inlineContent":[{"type":"text","text":"The key encapsulation mechanism"}],"type":"paragraph"}],"name":"kem"},{"name":"kdf","content":[{"type":"paragraph","inlineContent":[{"text":"The key derivation function","type":"text"}]}]},{"content":[{"inlineContent":[{"text":"The AEAD encryption algorithm","type":"text"}],"type":"paragraph"}],"name":"aead"}]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/init(kem:kdf:aead:)","interfaceLanguage":"swift"},"kind":"symbol","metadata":{"symbolKind":"init","externalID":"s:9SwiftHPKE11CipherSuiteV3kem3kdf4aeadAcA3KEMO_AA3KDFOAA4AEADOtcfc","roleHeading":"Initializer","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"kem","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM"},{"text":", ","kind":"text"},{"text":"kdf","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"KDF","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KDFO"},{"text":", ","kind":"text"},{"text":"aead","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE4AEADO","text":"AEAD"},{"kind":"text","text":")"}],"role":"symbol","title":"init(kem:kdf:aead:)","modules":[{"name":"SwiftHPKE"}]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"KEM"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"url":"\/documentation\/swifthpke\/kem","kind":"symbol","title":"KEM","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/init(kem:kdf:aead:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/init(kem:kdf:aead:)","type":"topic","kind":"symbol","abstract":[{"type":"text","text":"Creates a CipherSuite instance"}],"title":"init(kem:kdf:aead:)","role":"symbol","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"kem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"kdf"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"KDF","preciseIdentifier":"s:9SwiftHPKE3KDFO"},{"kind":"text","text":", "},{"text":"aead","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE4AEADO","text":"AEAD"},{"kind":"text","text":")"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/init(kem:kdf:aead:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"kind":"symbol","url":"\/documentation\/swifthpke\/kdf","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","navigatorTitle":[{"text":"KDF","kind":"identifier"}],"type":"topic","abstract":[{"type":"text","text":"The key derivation functions"}],"role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"title":"KDF"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"AEAD","kind":"identifier"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","title":"AEAD","url":"\/documentation\/swifthpke\/aead","kind":"symbol","role":"symbol","navigatorTitle":[{"text":"AEAD","kind":"identifier"}]}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/kdf.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/kdf.json index d0fc932..4e2942c 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/kdf.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/kdf.json @@ -1 +1 @@ -{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf"},"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/kdf"],"traits":[{"interfaceLanguage":"swift"}]}],"abstract":[{"type":"text","text":"The key derivation function"}],"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description"],"title":"Properties"}],"primaryContentSections":[{"declarations":[{"tokens":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"kdf"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KDFO","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","text":"KDF"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"}],"metadata":{"roleHeading":"Instance Property","title":"kdf","role":"symbol","symbolKind":"property","fragments":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"text":"kdf","kind":"identifier"},{"text":": ","kind":"text"},{"text":"KDF","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KDFO"}],"modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE11CipherSuiteV3kdfAA3KDFOvp"},"schemaVersion":{"major":0,"minor":3,"patch":0},"kind":"symbol","sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/aead":{"abstract":[{"text":"The AEAD encryption algorithm","type":"text"}],"title":"aead","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","fragments":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"kind":"identifier","text":"aead"},{"text":": ","kind":"text"},{"text":"AEAD","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE4AEADO"}],"role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/aead","kind":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/description":{"abstract":[{"text":"A textual representation of ","type":"text"},{"code":"self","type":"codeVoice"}],"title":"description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"}],"role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/description","kind":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kem":{"title":"kem","role":"symbol","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"kem"},{"kind":"text","text":": "},{"text":"KEM","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","url":"\/documentation\/swifthpke\/ciphersuite\/kem","kind":"symbol","abstract":[{"text":"The key encapsulation mechanism","type":"text"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kdf":{"type":"topic","title":"kdf","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"kdf"},{"kind":"text","text":": "},{"text":"KDF","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KDFO"}],"role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/kdf","kind":"symbol","abstract":[{"type":"text","text":"The key derivation function"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"abstract":[{"text":"The key derivation functions","type":"text"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","navigatorTitle":[{"kind":"identifier","text":"KDF"}],"url":"\/documentation\/swifthpke\/kdf","type":"topic","title":"KDF"}}} \ No newline at end of file +{"abstract":[{"type":"text","text":"The key derivation function"}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"kdf","kind":"identifier"},{"text":": ","kind":"text"},{"text":"KDF","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","preciseIdentifier":"s:9SwiftHPKE3KDFO"}],"languages":["swift"]}],"kind":"declarations"}],"seeAlsoSections":[{"generated":true,"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description"]}],"metadata":{"roleHeading":"Instance Property","modules":[{"name":"SwiftHPKE"}],"title":"kdf","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"kdf"},{"text":": ","kind":"text"},{"text":"KDF","preciseIdentifier":"s:9SwiftHPKE3KDFO","kind":"typeIdentifier"}],"symbolKind":"property","externalID":"s:9SwiftHPKE11CipherSuiteV3kdfAA3KDFOvp","role":"symbol"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/kdf"]}],"schemaVersion":{"minor":3,"major":0,"patch":0},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf"},"sections":[],"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"kind":"symbol","url":"\/documentation\/swifthpke\/kdf","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","navigatorTitle":[{"text":"KDF","kind":"identifier"}],"type":"topic","abstract":[{"type":"text","text":"The key derivation functions"}],"role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"title":"KDF"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/aead":{"type":"topic","title":"aead","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/aead","abstract":[{"type":"text","text":"The AEAD encryption algorithm"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","kind":"symbol","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"aead","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE4AEADO","text":"AEAD","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kdf":{"type":"topic","title":"kdf","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/kdf","abstract":[{"text":"The key derivation function","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","kind":"symbol","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"kdf"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE3KDFO","text":"KDF","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kem":{"type":"topic","title":"kem","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/kem","abstract":[{"type":"text","text":"The key encapsulation mechanism"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","kind":"symbol","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"kem","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/description":{"type":"topic","title":"description","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/description","abstract":[{"text":"A textual representation of ","type":"text"},{"code":"self","type":"codeVoice"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description","kind":"symbol","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/kem.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/kem.json index 3f665cb..c27f4af 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/kem.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/kem.json @@ -1 +1 @@ -{"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","interfaceLanguage":"swift"},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"kem"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM"}]}],"kind":"declarations"}],"kind":"symbol","metadata":{"title":"kem","symbolKind":"property","modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"kem","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM"}],"roleHeading":"Instance Property","role":"symbol","externalID":"s:9SwiftHPKE11CipherSuiteV3kemAA3KEMOvp"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/kem"]}],"abstract":[{"text":"The key encapsulation mechanism","type":"text"}],"sections":[],"seeAlsoSections":[{"generated":true,"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description"]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/aead":{"abstract":[{"text":"The AEAD encryption algorithm","type":"text"}],"title":"aead","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","fragments":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"kind":"identifier","text":"aead"},{"text":": ","kind":"text"},{"text":"AEAD","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE4AEADO"}],"role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/aead","kind":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","navigatorTitle":[{"text":"KEM","kind":"identifier"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"title":"KEM","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"KEM","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kem":{"title":"kem","role":"symbol","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"kem"},{"kind":"text","text":": "},{"text":"KEM","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","url":"\/documentation\/swifthpke\/ciphersuite\/kem","kind":"symbol","abstract":[{"text":"The key encapsulation mechanism","type":"text"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/description":{"abstract":[{"text":"A textual representation of ","type":"text"},{"code":"self","type":"codeVoice"}],"title":"description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"}],"role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/description","kind":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kdf":{"type":"topic","title":"kdf","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"kdf"},{"kind":"text","text":": "},{"text":"KDF","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KDFO"}],"role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/kdf","kind":"symbol","abstract":[{"type":"text","text":"The key derivation function"}]}}} \ No newline at end of file +{"abstract":[{"text":"The key encapsulation mechanism","type":"text"}],"schemaVersion":{"patch":0,"major":0,"minor":3},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","interfaceLanguage":"swift"},"metadata":{"symbolKind":"property","modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"kem","kind":"identifier"},{"text":": ","kind":"text"},{"text":"KEM","preciseIdentifier":"s:9SwiftHPKE3KEMO","kind":"typeIdentifier"}],"externalID":"s:9SwiftHPKE11CipherSuiteV3kemAA3KEMOvp","roleHeading":"Instance Property","role":"symbol","title":"kem"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"sections":[],"primaryContentSections":[{"declarations":[{"tokens":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"kem","kind":"identifier"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","preciseIdentifier":"s:9SwiftHPKE3KEMO","kind":"typeIdentifier","text":"KEM"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"}],"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/kem"],"traits":[{"interfaceLanguage":"swift"}]}],"seeAlsoSections":[{"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description"],"generated":true}],"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/aead":{"type":"topic","title":"aead","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/aead","abstract":[{"type":"text","text":"The AEAD encryption algorithm"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","kind":"symbol","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"aead","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE4AEADO","text":"AEAD","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"KEM"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"url":"\/documentation\/swifthpke\/kem","kind":"symbol","title":"KEM","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/description":{"type":"topic","title":"description","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/description","abstract":[{"text":"A textual representation of ","type":"text"},{"code":"self","type":"codeVoice"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description","kind":"symbol","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kdf":{"type":"topic","title":"kdf","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/kdf","abstract":[{"text":"The key derivation function","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","kind":"symbol","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"kdf"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE3KDFO","text":"KDF","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kem":{"type":"topic","title":"kem","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/kem","abstract":[{"type":"text","text":"The key encapsulation mechanism"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","kind":"symbol","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"kem","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/makekeypair().json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/makekeypair().json index 1c119d9..d71cb35 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/makekeypair().json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/makekeypair().json @@ -1 +1 @@ -{"metadata":{"externalID":"s:9SwiftHPKE11CipherSuiteV11makeKeyPairAA06PublicF0V_AA07PrivateF0VtyKF","title":"makeKeyPair()","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"makeKeyPair","kind":"identifier"},{"kind":"text","text":"() "},{"text":"throws","kind":"keyword"},{"text":" -> (","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":")","kind":"text"}],"symbolKind":"method","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Instance Method","role":"symbol"},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/makeKeyPair()"},"schemaVersion":{"minor":3,"major":0,"patch":0},"kind":"symbol","variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/makekeypair()"],"traits":[{"interfaceLanguage":"swift"}]}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"makeKeyPair"},{"kind":"text","text":"() "},{"kind":"keyword","text":"throws"},{"text":" -> (","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"},{"text":", ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","text":"PrivateKey"},{"text":")","kind":"text"}]}]},{"content":[{"level":2,"text":"Return Value","type":"heading","anchor":"return-value"},{"type":"paragraph","inlineContent":[{"text":"The public key and private key pair","type":"text"}]}],"kind":"content"},{"content":[{"type":"heading","text":"Discussion","anchor":"discussion","level":2},{"style":"note","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"A "},{"type":"codeVoice","code":"derivedKeyError"},{"type":"text","text":" exception in extremely rare cases"}]}],"type":"aside","name":"Throws"}],"kind":"content"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"abstract":[{"type":"text","text":"Generates a public- and private HPKE key pair for "},{"code":"self","type":"codeVoice"}],"sections":[],"seeAlsoSections":[{"title":"Generate Keys","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/deriveKeyPair(ikm:)"],"generated":true}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/makeKeyPair()":{"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/makeKeyPair()","role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"makeKeyPair"},{"text":"() ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> ("},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":")","kind":"text"}],"kind":"symbol","title":"makeKeyPair()","abstract":[{"text":"Generates a public- and private HPKE key pair for ","type":"text"},{"type":"codeVoice","code":"self"}],"url":"\/documentation\/swifthpke\/ciphersuite\/makekeypair()"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/deriveKeyPair(ikm:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/derivekeypair(ikm:)","type":"topic","kind":"symbol","abstract":[{"type":"text","text":"Derives a public- and private HPKE key pair for "},{"type":"codeVoice","code":"self"},{"text":" based on keying material","type":"text"}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"deriveKeyPair","kind":"identifier"},{"text":"(","kind":"text"},{"text":"ikm","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> ("},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":")","kind":"text"}],"title":"deriveKeyPair(ikm:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/deriveKeyPair(ikm:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"}}} \ No newline at end of file +{"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/makekeypair()"]}],"abstract":[{"type":"text","text":"Generates a public- and private HPKE key pair for "},{"type":"codeVoice","code":"self"}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"makeKeyPair","kind":"identifier"},{"kind":"text","text":"() "},{"text":"throws","kind":"keyword"},{"text":" -> (","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"},{"text":", ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":")"}],"languages":["swift"]}],"kind":"declarations"},{"content":[{"text":"Return Value","level":2,"anchor":"return-value","type":"heading"},{"type":"paragraph","inlineContent":[{"text":"The public key and private key pair","type":"text"}]}],"kind":"content"},{"kind":"content","content":[{"type":"heading","text":"Discussion","level":2,"anchor":"discussion"},{"name":"Throws","type":"aside","content":[{"inlineContent":[{"type":"text","text":"A "},{"type":"codeVoice","code":"derivedKeyError"},{"type":"text","text":" exception in extremely rare cases"}],"type":"paragraph"}],"style":"note"}]}],"schemaVersion":{"major":0,"patch":0,"minor":3},"sections":[],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"seeAlsoSections":[{"title":"Generate Keys","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/deriveKeyPair(ikm:)"],"generated":true}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/makeKeyPair()"},"metadata":{"role":"symbol","symbolKind":"method","roleHeading":"Instance Method","externalID":"s:9SwiftHPKE11CipherSuiteV11makeKeyPairAA06PublicF0V_AA07PrivateF0VtyKF","modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"makeKeyPair","kind":"identifier"},{"text":"() ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> ("},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"kind":"text","text":", "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":")"}],"title":"makeKeyPair()"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/deriveKeyPair(ikm:)":{"type":"topic","role":"symbol","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/derivekeypair(ikm:)","abstract":[{"type":"text","text":"Derives a public- and private HPKE key pair for "},{"type":"codeVoice","code":"self"},{"type":"text","text":" based on keying material"}],"fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"deriveKeyPair"},{"text":"(","kind":"text"},{"text":"ikm","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> ("},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":")","kind":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/deriveKeyPair(ikm:)","title":"deriveKeyPair(ikm:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/makeKeyPair()":{"type":"topic","role":"symbol","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/makekeypair()","abstract":[{"type":"text","text":"Generates a public- and private HPKE key pair for "},{"type":"codeVoice","code":"self"}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"makeKeyPair"},{"text":"() ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":")"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/makeKeyPair()","title":"makeKeyPair()"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:ct:aad:encap:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:ct:aad:encap:).json index f55daaf..52389e9 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:ct:aad:encap:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:ct:aad:encap:).json @@ -1 +1 @@ -{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:ct:aad:encap:)"]}],"seeAlsoSections":[{"title":"Authenticated mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)"],"generated":true}],"schemaVersion":{"major":0,"patch":0,"minor":3},"metadata":{"roleHeading":"Instance Method","role":"symbol","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE11CipherSuiteV4open10privateKey4info14authentication2ct3aad5encapSays5UInt8VGAA07PrivateG0V_AmA06PublicG0VA3MtKF","title":"open(privateKey:info:authentication:ct:aad:encap:)","symbolKind":"method","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}]},"sections":[],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)"},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"}],"languages":["swift"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient private key"}]}],"name":"privateKey"},{"name":"info","content":[{"inlineContent":[{"text":"The additional information","type":"text"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"type":"text","text":"The sender public key"}],"type":"paragraph"}],"name":"authentication"},{"name":"ct","content":[{"type":"paragraph","inlineContent":[{"text":"The cipher text to decrypt","type":"text"}]}]},{"name":"aad","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The associated data"}]}]},{"content":[{"inlineContent":[{"type":"text","text":"The encapsulated key"}],"type":"paragraph"}],"name":"encap"}]},{"kind":"content","content":[{"text":"Return Value","level":2,"anchor":"return-value","type":"heading"},{"type":"paragraph","inlineContent":[{"text":"The plain text","type":"text"}]}]},{"content":[{"type":"heading","level":2,"text":"Discussion","anchor":"discussion"},{"name":"Throws","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"code":"self","type":"codeVoice"},{"type":"text","text":" or the decryption fails or "},{"code":"self.aead","type":"codeVoice"},{"type":"text","text":" is EXPORTONLY"}]}],"style":"note","type":"aside"}],"kind":"content"}],"kind":"symbol","abstract":[{"type":"text","text":"Single-shot decryption in authenticated mode"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:)":{"kind":"symbol","type":"topic","abstract":[{"text":"Generate an export secret in authenticated mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:)","title":"sendExport(publicKey:info:context:L:authentication:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:pt:aad:)":{"kind":"symbol","type":"topic","abstract":[{"type":"text","text":"Single-shot encryption in authenticated mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:pt:aad:)","title":"seal(publicKey:info:authentication:pt:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:encap:)":{"kind":"symbol","type":"topic","abstract":[{"type":"text","text":"Retrieve an export secret in authenticated mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)","title":"receiveExport(privateKey:info:context:L:authentication:encap:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:ct:aad:encap:)":{"kind":"symbol","type":"topic","abstract":[{"type":"text","text":"Single-shot decryption in authenticated mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:ct:aad:encap:)","title":"open(privateKey:info:authentication:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"ct"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"role":"symbol"}}} \ No newline at end of file +{"sections":[],"seeAlsoSections":[{"title":"Authenticated mode","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)"]}],"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:ct:aad:encap:)"],"traits":[{"interfaceLanguage":"swift"}]}],"metadata":{"roleHeading":"Instance Method","role":"symbol","externalID":"s:9SwiftHPKE11CipherSuiteV4open10privateKey4info14authentication2ct3aad5encapSays5UInt8VGAA07PrivateG0V_AmA06PublicG0VA3MtKF","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"symbolKind":"method","title":"open(privateKey:info:authentication:ct:aad:encap:)","modules":[{"name":"SwiftHPKE"}]},"abstract":[{"type":"text","text":"Single-shot decryption in authenticated mode"}],"kind":"symbol","primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"ct","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"languages":["swift"],"platforms":["macOS"]}]},{"kind":"parameters","parameters":[{"name":"privateKey","content":[{"inlineContent":[{"type":"text","text":"The recipient private key"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"type":"text","text":"The additional information"}],"type":"paragraph"}],"name":"info"},{"name":"authentication","content":[{"inlineContent":[{"type":"text","text":"The sender public key"}],"type":"paragraph"}]},{"name":"ct","content":[{"inlineContent":[{"type":"text","text":"The cipher text to decrypt"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"type":"text","text":"The associated data"}],"type":"paragraph"}],"name":"aad"},{"name":"encap","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The encapsulated key"}]}]}]},{"kind":"content","content":[{"anchor":"return-value","level":2,"type":"heading","text":"Return Value"},{"inlineContent":[{"type":"text","text":"The plain text"}],"type":"paragraph"}]},{"kind":"content","content":[{"level":2,"text":"Discussion","anchor":"discussion","type":"heading"},{"name":"Throws","type":"aside","style":"note","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"code":"self","type":"codeVoice"},{"type":"text","text":" or the decryption fails or "},{"code":"self.aead","type":"codeVoice"},{"text":" is EXPORTONLY","type":"text"}]}]}]}],"schemaVersion":{"patch":0,"major":0,"minor":3},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:)":{"abstract":[{"type":"text","text":"Generate an export secret in authenticated mode"}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":")","kind":"text"}],"type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","kind":"symbol","role":"symbol","title":"sendExport(publicKey:info:context:L:authentication:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:pt:aad:)":{"abstract":[{"type":"text","text":"Single-shot encryption in authenticated mode"}],"fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pt"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}],"type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:pt:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","kind":"symbol","role":"symbol","title":"seal(publicKey:info:authentication:pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:ct:aad:encap:)":{"abstract":[{"type":"text","text":"Single-shot decryption in authenticated mode"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","kind":"symbol","role":"symbol","title":"open(privateKey:info:authentication:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:encap:)":{"abstract":[{"type":"text","text":"Retrieve an export secret in authenticated mode"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)","kind":"symbol","role":"symbol","title":"receiveExport(privateKey:info:context:L:authentication:encap:)"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:).json index 6fc4fb8..0131461 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:).json @@ -1 +1 @@ -{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","interfaceLanguage":"swift"},"sections":[],"schemaVersion":{"minor":3,"major":0,"patch":0},"abstract":[{"text":"Single-shot decryption in authenticated, preshared key mode","type":"text"}],"kind":"symbol","seeAlsoSections":[{"title":"Authenticated, preshared key mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)"],"generated":true}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)"]}],"metadata":{"symbolKind":"method","externalID":"s:9SwiftHPKE11CipherSuiteV4open10privateKey4info14authentication3psk0J2Id2ct3aad5encapSays5UInt8VGAA07PrivateG0V_AoA06PublicG0VA5OtKF","modules":[{"name":"SwiftHPKE"}],"title":"open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"role":"symbol","roleHeading":"Instance Method"},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"}],"platforms":["macOS"],"languages":["swift"]}]},{"kind":"parameters","parameters":[{"name":"privateKey","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient private key"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}],"name":"info"},{"content":[{"inlineContent":[{"text":"The sender public key","type":"text"}],"type":"paragraph"}],"name":"authentication"},{"name":"psk","content":[{"inlineContent":[{"type":"text","text":"The preshared key"}],"type":"paragraph"}]},{"name":"pskId","content":[{"inlineContent":[{"type":"text","text":"The preshared key id"}],"type":"paragraph"}]},{"name":"ct","content":[{"inlineContent":[{"type":"text","text":"The cipher text to decrypt"}],"type":"paragraph"}]},{"name":"aad","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The associated data"}]}]},{"name":"encap","content":[{"type":"paragraph","inlineContent":[{"text":"The encapsulated key","type":"text"}]}]}]},{"kind":"content","content":[{"anchor":"return-value","type":"heading","text":"Return Value","level":2},{"type":"paragraph","inlineContent":[{"type":"text","text":"The plain text"}]}]},{"kind":"content","content":[{"anchor":"discussion","type":"heading","level":2,"text":"Discussion"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"self"},{"type":"text","text":" or the decryption fails or the "},{"code":"psk","type":"codeVoice"},{"type":"text","text":" parameters are inconsistent or "},{"code":"self.aead","type":"codeVoice"},{"text":" is EXPORTONLY","type":"text"}]}],"style":"note","type":"aside","name":"Throws"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:psk:pskId:)":{"kind":"symbol","type":"topic","abstract":[{"type":"text","text":"Generate an export secret in authenticated, preshared key mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:psk:pskid:)","title":"sendExport(publicKey:info:context:L:authentication:psk:pskId:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)":{"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)","abstract":[{"type":"text","text":"Retrieve an export secret in authenticated, preshared key mode"}],"title":"receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)":{"kind":"symbol","type":"topic","abstract":[{"type":"text","text":"Single-shot decryption in authenticated, preshared key mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)","title":"open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:psk:pskId:pt:aad:)":{"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:psk:pskid:pt:aad:)","abstract":[{"type":"text","text":"Single-shot encryption in authenticated, preshared key mode"}],"title":"seal(publicKey:info:authentication:psk:pskId:pt:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":")"}],"role":"symbol"}}} \ No newline at end of file +{"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)"},"abstract":[{"type":"text","text":"Single-shot decryption in authenticated, preshared key mode"}],"metadata":{"externalID":"s:9SwiftHPKE11CipherSuiteV4open10privateKey4info14authentication3psk0J2Id2ct3aad5encapSays5UInt8VGAA07PrivateG0V_AoA06PublicG0VA5OtKF","roleHeading":"Instance Method","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"title":"open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","symbolKind":"method","role":"symbol","modules":[{"name":"SwiftHPKE"}]},"sections":[],"seeAlsoSections":[{"title":"Authenticated, preshared key mode","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)"]}],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes"}],"languages":["swift"]}]},{"kind":"parameters","parameters":[{"name":"privateKey","content":[{"type":"paragraph","inlineContent":[{"text":"The recipient private key","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}],"name":"info"},{"content":[{"type":"paragraph","inlineContent":[{"text":"The sender public key","type":"text"}]}],"name":"authentication"},{"content":[{"inlineContent":[{"type":"text","text":"The preshared key"}],"type":"paragraph"}],"name":"psk"},{"name":"pskId","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key id"}]}]},{"name":"ct","content":[{"inlineContent":[{"text":"The cipher text to decrypt","type":"text"}],"type":"paragraph"}]},{"name":"aad","content":[{"inlineContent":[{"type":"text","text":"The associated data"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The encapsulated key"}]}],"name":"encap"}]},{"kind":"content","content":[{"text":"Return Value","type":"heading","anchor":"return-value","level":2},{"inlineContent":[{"type":"text","text":"The plain text"}],"type":"paragraph"}]},{"content":[{"text":"Discussion","type":"heading","anchor":"discussion","level":2},{"style":"note","type":"aside","name":"Throws","content":[{"inlineContent":[{"text":"An exception if one of the keys does not match ","type":"text"},{"code":"self","type":"codeVoice"},{"text":" or the decryption fails or the ","type":"text"},{"type":"codeVoice","code":"psk"},{"type":"text","text":" parameters are inconsistent or "},{"type":"codeVoice","code":"self.aead"},{"text":" is EXPORTONLY","type":"text"}],"type":"paragraph"}]}],"kind":"content"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"schemaVersion":{"patch":0,"major":0,"minor":3},"kind":"symbol","variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:psk:pskId:pt:aad:)":{"role":"symbol","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:psk:pskid:pt:aad:)","abstract":[{"text":"Single-shot encryption in authenticated, preshared key mode","type":"text"}],"title":"seal(publicKey:info:authentication:psk:pskId:pt:aad:)","type":"topic","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", ct"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":")"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)":{"kind":"symbol","role":"symbol","abstract":[{"type":"text","text":"Single-shot decryption in authenticated, preshared key mode"}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"type":"topic","title":"open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:psk:pskId:)":{"kind":"symbol","role":"symbol","abstract":[{"text":"Generate an export secret in authenticated, preshared key mode","type":"text"}],"fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encapsulatedKey"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}],"title":"sendExport(publicKey:info:context:L:authentication:psk:pskId:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:psk:pskid:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)":{"kind":"symbol","role":"symbol","abstract":[{"type":"text","text":"Retrieve an export secret in authenticated, preshared key mode"}],"fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"title":"receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/open(privatekey:info:ct:aad:encap:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/open(privatekey:info:ct:aad:encap:).json index 284b294..a5f78d1 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/open(privatekey:info:ct:aad:encap:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/open(privatekey:info:ct:aad:encap:).json @@ -1 +1 @@ -{"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"languages":["swift"]}]},{"kind":"parameters","parameters":[{"name":"privateKey","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient private key"}]}]},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}]},{"name":"ct","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The cipher text to decrypt"}]}]},{"name":"aad","content":[{"type":"paragraph","inlineContent":[{"text":"The associated data","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The encapsulated key"}]}],"name":"encap"}]},{"content":[{"text":"Return Value","level":2,"anchor":"return-value","type":"heading"},{"type":"paragraph","inlineContent":[{"type":"text","text":"The plain text"}]}],"kind":"content"},{"content":[{"text":"Discussion","type":"heading","level":2,"anchor":"discussion"},{"type":"aside","name":"Throws","style":"note","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if one of the keys does not match ","type":"text"},{"type":"codeVoice","code":"self"},{"text":" or the decryption fails or ","type":"text"},{"code":"self.aead","type":"codeVoice"},{"type":"text","text":" is EXPORTONLY"}]}]}],"kind":"content"}],"schemaVersion":{"patch":0,"major":0,"minor":3},"sections":[],"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:ct:aad:encap:)"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)"},"abstract":[{"text":"Single-shot decryption in base mode","type":"text"}],"seeAlsoSections":[{"title":"Base mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)"],"generated":true}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"kind":"symbol","metadata":{"roleHeading":"Instance Method","role":"symbol","externalID":"s:9SwiftHPKE11CipherSuiteV4open10privateKey4info2ct3aad5encapSays5UInt8VGAA07PrivateG0V_A4LtKF","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"ct","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"modules":[{"name":"SwiftHPKE"}],"title":"open(privateKey:info:ct:aad:encap:)","symbolKind":"method"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:encap:)":{"abstract":[{"type":"text","text":"Retrieve an export secret in base mode"}],"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)","title":"receiveExport(privateKey:info:context:L:encap:)","kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:pt:aad:)":{"abstract":[{"text":"Single-shot encryption in base mode","type":"text"}],"role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pt"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", ct"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":")"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","title":"seal(publicKey:info:pt:aad:)","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:ct:aad:encap:)":{"abstract":[{"type":"text","text":"Single-shot decryption in base mode"}],"role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","title":"open(privateKey:info:ct:aad:encap:)","kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:)":{"abstract":[{"type":"text","text":"Generate an export secret in base mode"}],"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"sendExport"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", secret"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","title":"sendExport(publicKey:info:context:L:)","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:)"}}} \ No newline at end of file +{"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)"],"title":"Base mode"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:ct:aad:encap:)"]}],"sections":[],"kind":"symbol","abstract":[{"text":"Single-shot decryption in base mode","type":"text"}],"metadata":{"title":"open(privateKey:info:ct:aad:encap:)","symbolKind":"method","role":"symbol","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Instance Method","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"externalID":"s:9SwiftHPKE11CipherSuiteV4open10privateKey4info2ct3aad5encapSays5UInt8VGAA07PrivateG0V_A4LtKF"},"schemaVersion":{"patch":0,"minor":3,"major":0},"primaryContentSections":[{"declarations":[{"languages":["swift"],"tokens":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"}],"platforms":["macOS"]}],"kind":"declarations"},{"parameters":[{"content":[{"inlineContent":[{"type":"text","text":"The recipient private key"}],"type":"paragraph"}],"name":"privateKey"},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}]},{"content":[{"inlineContent":[{"type":"text","text":"The cipher text to decrypt"}],"type":"paragraph"}],"name":"ct"},{"name":"aad","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The associated data"}]}]},{"name":"encap","content":[{"inlineContent":[{"type":"text","text":"The encapsulated key"}],"type":"paragraph"}]}],"kind":"parameters"},{"content":[{"level":2,"text":"Return Value","anchor":"return-value","type":"heading"},{"inlineContent":[{"type":"text","text":"The plain text"}],"type":"paragraph"}],"kind":"content"},{"content":[{"level":2,"text":"Discussion","type":"heading","anchor":"discussion"},{"style":"note","type":"aside","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if one of the keys does not match ","type":"text"},{"code":"self","type":"codeVoice"},{"text":" or the decryption fails or ","type":"text"},{"code":"self.aead","type":"codeVoice"},{"type":"text","text":" is EXPORTONLY"}]}],"name":"Throws"}],"kind":"content"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:encap:)":{"title":"receiveExport(privateKey:info:context:L:encap:)","abstract":[{"text":"Retrieve an export secret in base mode","type":"text"}],"role":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:encap:)","kind":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","abstract":[{"text":"Generate an export secret in base mode","type":"text"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":")"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:)","type":"topic","kind":"symbol","role":"symbol","title":"sendExport(publicKey:info:context:L:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:ct:aad:encap:)":{"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:ct:aad:encap:)","type":"topic","abstract":[{"text":"Single-shot decryption in base mode","type":"text"}],"title":"open(privateKey:info:ct:aad:encap:)","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:pt:aad:)":{"title":"seal(publicKey:info:pt:aad:)","abstract":[{"type":"text","text":"Single-shot encryption in base mode"}],"role":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:pt:aad:)","kind":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}]}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/open(privatekey:info:psk:pskid:ct:aad:encap:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/open(privatekey:info:psk:pskid:ct:aad:encap:).json index 4c1001c..3b4a3a5 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/open(privatekey:info:psk:pskid:ct:aad:encap:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/open(privatekey:info:psk:pskid:ct:aad:encap:).json @@ -1 +1 @@ -{"sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","interfaceLanguage":"swift"},"schemaVersion":{"major":0,"minor":3,"patch":0},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"kind":"symbol","abstract":[{"text":"Single-shot decryption in preshared key mode","type":"text"}],"metadata":{"modules":[{"name":"SwiftHPKE"}],"roleHeading":"Instance Method","symbolKind":"method","title":"open(privateKey:info:psk:pskId:ct:aad:encap:)","role":"symbol","externalID":"s:9SwiftHPKE11CipherSuiteV4open10privateKey4info3psk0I2Id2ct3aad5encapSays5UInt8VGAA07PrivateG0V_A6NtKF","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}]},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"open"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"languages":["swift"]}]},{"kind":"parameters","parameters":[{"name":"privateKey","content":[{"type":"paragraph","inlineContent":[{"text":"The recipient private key","type":"text"}]}]},{"content":[{"inlineContent":[{"type":"text","text":"The additional information"}],"type":"paragraph"}],"name":"info"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key"}]}],"name":"psk"},{"name":"pskId","content":[{"type":"paragraph","inlineContent":[{"text":"The preshared key id","type":"text"}]}]},{"name":"ct","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The cipher text to decrypt"}]}]},{"content":[{"inlineContent":[{"type":"text","text":"The associated data"}],"type":"paragraph"}],"name":"aad"},{"content":[{"inlineContent":[{"type":"text","text":"The encapsulated key"}],"type":"paragraph"}],"name":"encap"}]},{"kind":"content","content":[{"type":"heading","text":"Return Value","level":2,"anchor":"return-value"},{"inlineContent":[{"type":"text","text":"The plain text"}],"type":"paragraph"}]},{"kind":"content","content":[{"type":"heading","anchor":"discussion","text":"Discussion","level":2},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"code":"self","type":"codeVoice"},{"text":" or the decryption fails or the ","type":"text"},{"type":"codeVoice","code":"psk"},{"type":"text","text":" parameters are inconsistent or "},{"type":"codeVoice","code":"self.aead"},{"type":"text","text":" is EXPORTONLY"}]}],"style":"note","name":"Throws","type":"aside"}]}],"seeAlsoSections":[{"title":"Preshared key mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)"],"generated":true}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:psk:pskid:ct:aad:encap:)"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:psk:pskId:ct:aad:encap:)":{"kind":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"abstract":[{"type":"text","text":"Single-shot decryption in preshared key mode"}],"type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:psk:pskid:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","title":"open(privateKey:info:psk:pskId:ct:aad:encap:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:psk:pskId:pt:aad:)":{"kind":"symbol","role":"symbol","abstract":[{"text":"Single-shot encryption in preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:psk:pskid:pt:aad:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","title":"seal(publicKey:info:psk:pskId:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", ct"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":")"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:psk:pskId:encap:)":{"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"receiveExport"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"Retrieve an export secret in preshared key mode"}],"title":"receiveExport(privateKey:info:context:L:psk:pskId:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:psk:pskid:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:psk:pskId:)":{"abstract":[{"text":"Generate an export secret in preshared key mode","type":"text"}],"role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:psk:pskid:)","kind":"symbol","type":"topic","title":"sendExport(publicKey:info:context:L:psk:pskId:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":")","kind":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)"}}} \ No newline at end of file +{"abstract":[{"type":"text","text":"Single-shot decryption in preshared key mode"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"schemaVersion":{"patch":0,"major":0,"minor":3},"metadata":{"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"externalID":"s:9SwiftHPKE11CipherSuiteV4open10privateKey4info3psk0I2Id2ct3aad5encapSays5UInt8VGAA07PrivateG0V_A6NtKF","roleHeading":"Instance Method","role":"symbol","modules":[{"name":"SwiftHPKE"}],"title":"open(privateKey:info:psk:pskId:ct:aad:encap:)","symbolKind":"method"},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","kind":"typeIdentifier","text":"PrivateKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"}]}]},{"kind":"parameters","parameters":[{"content":[{"inlineContent":[{"type":"text","text":"The recipient private key"}],"type":"paragraph"}],"name":"privateKey"},{"name":"info","content":[{"inlineContent":[{"type":"text","text":"The additional information"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"type":"text","text":"The preshared key"}],"type":"paragraph"}],"name":"psk"},{"name":"pskId","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key id"}]}]},{"name":"ct","content":[{"inlineContent":[{"text":"The cipher text to decrypt","type":"text"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The associated data"}]}],"name":"aad"},{"content":[{"type":"paragraph","inlineContent":[{"text":"The encapsulated key","type":"text"}]}],"name":"encap"}]},{"kind":"content","content":[{"level":2,"type":"heading","text":"Return Value","anchor":"return-value"},{"inlineContent":[{"type":"text","text":"The plain text"}],"type":"paragraph"}]},{"kind":"content","content":[{"level":2,"text":"Discussion","type":"heading","anchor":"discussion"},{"style":"note","name":"Throws","type":"aside","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if one of the keys does not match ","type":"text"},{"type":"codeVoice","code":"self"},{"text":" or the decryption fails or the ","type":"text"},{"code":"psk","type":"codeVoice"},{"text":" parameters are inconsistent or ","type":"text"},{"code":"self.aead","type":"codeVoice"},{"type":"text","text":" is EXPORTONLY"}]}]}]}],"kind":"symbol","variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:psk:pskid:ct:aad:encap:)"]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","interfaceLanguage":"swift"},"sections":[],"seeAlsoSections":[{"generated":true,"title":"Preshared key mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:psk:pskId:ct:aad:encap:)":{"kind":"symbol","abstract":[{"type":"text","text":"Single-shot decryption in preshared key mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:psk:pskid:ct:aad:encap:)","type":"topic","title":"open(privateKey:info:psk:pskId:ct:aad:encap:)","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"open"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:psk:pskId:encap:)":{"kind":"symbol","abstract":[{"text":"Retrieve an export secret in preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:psk:pskid:encap:)","type":"topic","title":"receiveExport(privateKey:info:context:L:psk:pskId:encap:)","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:psk:pskId:)":{"kind":"symbol","abstract":[{"type":"text","text":"Generate an export secret in preshared key mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:psk:pskid:)","type":"topic","title":"sendExport(publicKey:info:context:L:psk:pskId:)","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encapsulatedKey"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", secret"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":")"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:psk:pskId:pt:aad:)":{"kind":"symbol","abstract":[{"text":"Single-shot encryption in preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:psk:pskid:pt:aad:)","type":"topic","title":"seal(publicKey:info:psk:pskId:pt:aad:)","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ct","kind":"text"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}]}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:encap:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:encap:).json index 645a9b2..7c875c2 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:encap:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:encap:).json @@ -1 +1 @@ -{"sections":[],"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:encap:)"],"traits":[{"interfaceLanguage":"swift"}]}],"metadata":{"symbolKind":"method","title":"receiveExport(privateKey:info:context:L:authentication:encap:)","externalID":"s:9SwiftHPKE11CipherSuiteV13receiveExport10privateKey4info7context1L14authentication5encapSays5UInt8VGAA07PrivateH0V_A2MSiAA06PublicH0VAMtKF","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"modules":[{"name":"SwiftHPKE"}],"roleHeading":"Instance Method"},"schemaVersion":{"minor":3,"patch":0,"major":0},"kind":"symbol","abstract":[{"type":"text","text":"Retrieve an export secret in authenticated mode"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"receiveExport"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}]}]},{"kind":"parameters","parameters":[{"name":"privateKey","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient private key"}]}]},{"name":"info","content":[{"inlineContent":[{"type":"text","text":"The additional information"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"The export context","type":"text"}]}],"name":"context"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The length of the export secret"}]}],"name":"L"},{"name":"authentication","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The sender public key"}]}]},{"name":"psk","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key"}]}]},{"name":"pskId","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key id"}]}]},{"name":"encap","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The encapsulated key"}]}]}]},{"content":[{"type":"heading","text":"Return Value","level":2,"anchor":"return-value"},{"inlineContent":[{"text":"The export secret","type":"text"}],"type":"paragraph"}],"kind":"content"},{"content":[{"anchor":"discussion","text":"Discussion","type":"heading","level":2},{"name":"Throws","type":"aside","content":[{"inlineContent":[{"text":"An exception if one of the keys does not match ","type":"text"},{"type":"codeVoice","code":"self"},{"type":"text","text":" or L is negative or too large"}],"type":"paragraph"}],"style":"note"}],"kind":"content"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"seeAlsoSections":[{"title":"Authenticated mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)"],"generated":true}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:)":{"kind":"symbol","type":"topic","abstract":[{"text":"Generate an export secret in authenticated mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:)","title":"sendExport(publicKey:info:context:L:authentication:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:encap:)":{"kind":"symbol","type":"topic","abstract":[{"type":"text","text":"Retrieve an export secret in authenticated mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)","title":"receiveExport(privateKey:info:context:L:authentication:encap:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:ct:aad:encap:)":{"kind":"symbol","type":"topic","abstract":[{"type":"text","text":"Single-shot decryption in authenticated mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:ct:aad:encap:)","title":"open(privateKey:info:authentication:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"ct"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:pt:aad:)":{"kind":"symbol","type":"topic","abstract":[{"type":"text","text":"Single-shot encryption in authenticated mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:pt:aad:)","title":"seal(publicKey:info:authentication:pt:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"role":"symbol"}}} \ No newline at end of file +{"sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)","interfaceLanguage":"swift"},"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)"],"generated":true,"title":"Authenticated mode"}],"metadata":{"role":"symbol","title":"receiveExport(privateKey:info:context:L:authentication:encap:)","roleHeading":"Instance Method","symbolKind":"method","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE11CipherSuiteV13receiveExport10privateKey4info7context1L14authentication5encapSays5UInt8VGAA07PrivateH0V_A2MSiAA06PublicH0VAMtKF"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"abstract":[{"text":"Retrieve an export secret in authenticated mode","type":"text"}],"primaryContentSections":[{"declarations":[{"tokens":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"},{"parameters":[{"content":[{"type":"paragraph","inlineContent":[{"text":"The recipient private key","type":"text"}]}],"name":"privateKey"},{"name":"info","content":[{"inlineContent":[{"text":"The additional information","type":"text"}],"type":"paragraph"}]},{"name":"context","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The export context"}]}]},{"content":[{"inlineContent":[{"text":"The length of the export secret","type":"text"}],"type":"paragraph"}],"name":"L"},{"content":[{"inlineContent":[{"text":"The sender public key","type":"text"}],"type":"paragraph"}],"name":"authentication"},{"name":"psk","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key"}]}]},{"name":"pskId","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key id"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"The encapsulated key","type":"text"}]}],"name":"encap"}],"kind":"parameters"},{"kind":"content","content":[{"type":"heading","text":"Return Value","anchor":"return-value","level":2},{"type":"paragraph","inlineContent":[{"text":"The export secret","type":"text"}]}]},{"kind":"content","content":[{"text":"Discussion","type":"heading","anchor":"discussion","level":2},{"style":"note","type":"aside","name":"Throws","content":[{"inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"self"},{"text":" or L is negative or too large","type":"text"}],"type":"paragraph"}]}]}],"schemaVersion":{"patch":0,"major":0,"minor":3},"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:encap:)"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:encap:)":{"abstract":[{"type":"text","text":"Retrieve an export secret in authenticated mode"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)","kind":"symbol","role":"symbol","title":"receiveExport(privateKey:info:context:L:authentication:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:ct:aad:encap:)":{"abstract":[{"type":"text","text":"Single-shot decryption in authenticated mode"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","kind":"symbol","role":"symbol","title":"open(privateKey:info:authentication:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:)":{"abstract":[{"type":"text","text":"Generate an export secret in authenticated mode"}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":")","kind":"text"}],"type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","kind":"symbol","role":"symbol","title":"sendExport(publicKey:info:context:L:authentication:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:pt:aad:)":{"abstract":[{"type":"text","text":"Single-shot encryption in authenticated mode"}],"fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pt"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}],"type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:pt:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","kind":"symbol","role":"symbol","title":"seal(publicKey:info:authentication:pt:aad:)"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:).json index 0a6d322..c3fff72 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:).json @@ -1 +1 @@ -{"sections":[],"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)"],"traits":[{"interfaceLanguage":"swift"}]}],"schemaVersion":{"minor":3,"major":0,"patch":0},"metadata":{"modules":[{"name":"SwiftHPKE"}],"roleHeading":"Instance Method","title":"receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","externalID":"s:9SwiftHPKE11CipherSuiteV13receiveExport10privateKey4info7context1L14authentication3psk0L2Id5encapSays5UInt8VGAA07PrivateH0V_A2OSiAA06PublicH0VA3OtKF","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"role":"symbol","symbolKind":"method"},"kind":"symbol","abstract":[{"type":"text","text":"Retrieve an export secret in authenticated, preshared key mode"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"}],"platforms":["macOS"]}]},{"parameters":[{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient private key"}]}],"name":"privateKey"},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}]},{"name":"context","content":[{"inlineContent":[{"text":"The export context","type":"text"}],"type":"paragraph"}]},{"name":"L","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The length of the export secret"}]}]},{"name":"authentication","content":[{"type":"paragraph","inlineContent":[{"text":"The sender public key","type":"text"}]}]},{"name":"psk","content":[{"inlineContent":[{"text":"The preshared key","type":"text"}],"type":"paragraph"}]},{"name":"pskId","content":[{"inlineContent":[{"text":"The preshared key id","type":"text"}],"type":"paragraph"}]},{"name":"encap","content":[{"type":"paragraph","inlineContent":[{"text":"The encapsulated key","type":"text"}]}]}],"kind":"parameters"},{"kind":"content","content":[{"text":"Return Value","type":"heading","level":2,"anchor":"return-value"},{"type":"paragraph","inlineContent":[{"type":"text","text":"The export secret"}]}]},{"kind":"content","content":[{"anchor":"discussion","text":"Discussion","level":2,"type":"heading"},{"style":"note","name":"Throws","type":"aside","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"code":"self","type":"codeVoice"},{"type":"text","text":" or the "},{"type":"codeVoice","code":"psk"},{"type":"text","text":" parameters are inconsistent or L is negative or too large"}]}]}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"seeAlsoSections":[{"title":"Authenticated, preshared key mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)"],"generated":true}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","interfaceLanguage":"swift"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:psk:pskId:)":{"kind":"symbol","type":"topic","abstract":[{"type":"text","text":"Generate an export secret in authenticated, preshared key mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:psk:pskid:)","title":"sendExport(publicKey:info:context:L:authentication:psk:pskId:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:psk:pskId:pt:aad:)":{"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:psk:pskid:pt:aad:)","abstract":[{"type":"text","text":"Single-shot encryption in authenticated, preshared key mode"}],"title":"seal(publicKey:info:authentication:psk:pskId:pt:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":")"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)":{"kind":"symbol","type":"topic","abstract":[{"type":"text","text":"Single-shot decryption in authenticated, preshared key mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)","title":"open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)":{"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)","abstract":[{"type":"text","text":"Retrieve an export secret in authenticated, preshared key mode"}],"title":"receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]}}} \ No newline at end of file +{"seeAlsoSections":[{"generated":true,"title":"Authenticated, preshared key mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)"]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"kind":"symbol","abstract":[{"text":"Retrieve an export secret in authenticated, preshared key mode","type":"text"}],"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"receiveExport"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PublicKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"content":[{"type":"paragraph","inlineContent":[{"text":"The recipient private key","type":"text"}]}],"name":"privateKey"},{"content":[{"inlineContent":[{"type":"text","text":"The additional information"}],"type":"paragraph"}],"name":"info"},{"name":"context","content":[{"type":"paragraph","inlineContent":[{"text":"The export context","type":"text"}]}]},{"name":"L","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The length of the export secret"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The sender public key"}]}],"name":"authentication"},{"content":[{"inlineContent":[{"type":"text","text":"The preshared key"}],"type":"paragraph"}],"name":"psk"},{"content":[{"inlineContent":[{"type":"text","text":"The preshared key id"}],"type":"paragraph"}],"name":"pskId"},{"content":[{"inlineContent":[{"type":"text","text":"The encapsulated key"}],"type":"paragraph"}],"name":"encap"}]},{"kind":"content","content":[{"text":"Return Value","level":2,"anchor":"return-value","type":"heading"},{"type":"paragraph","inlineContent":[{"text":"The export secret","type":"text"}]}]},{"kind":"content","content":[{"text":"Discussion","type":"heading","anchor":"discussion","level":2},{"name":"Throws","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"self"},{"type":"text","text":" or the "},{"code":"psk","type":"codeVoice"},{"type":"text","text":" parameters are inconsistent or L is negative or too large"}]}],"type":"aside","style":"note"}]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","interfaceLanguage":"swift"},"sections":[],"schemaVersion":{"minor":3,"patch":0,"major":0},"metadata":{"externalID":"s:9SwiftHPKE11CipherSuiteV13receiveExport10privateKey4info7context1L14authentication3psk0L2Id5encapSays5UInt8VGAA07PrivateH0V_A2OSiAA06PublicH0VA3OtKF","role":"symbol","roleHeading":"Instance Method","modules":[{"name":"SwiftHPKE"}],"title":"receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"symbolKind":"method"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:psk:pskId:)":{"kind":"symbol","role":"symbol","abstract":[{"text":"Generate an export secret in authenticated, preshared key mode","type":"text"}],"fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encapsulatedKey"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}],"title":"sendExport(publicKey:info:context:L:authentication:psk:pskId:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:psk:pskid:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)":{"kind":"symbol","role":"symbol","abstract":[{"type":"text","text":"Single-shot decryption in authenticated, preshared key mode"}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"type":"topic","title":"open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)":{"kind":"symbol","role":"symbol","abstract":[{"type":"text","text":"Retrieve an export secret in authenticated, preshared key mode"}],"fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"title":"receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:psk:pskId:pt:aad:)":{"kind":"symbol","role":"symbol","abstract":[{"type":"text","text":"Single-shot encryption in authenticated, preshared key mode"}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pt"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ct","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":")"}],"type":"topic","title":"seal(publicKey:info:authentication:psk:pskId:pt:aad:)","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:psk:pskid:pt:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:encap:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:encap:).json index cd49d2c..7dc4a23 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:encap:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:encap:).json @@ -1 +1 @@ -{"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"}],"platforms":["macOS"]}]},{"kind":"parameters","parameters":[{"name":"privateKey","content":[{"inlineContent":[{"type":"text","text":"The recipient private key"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}],"name":"info"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The export context"}]}],"name":"context"},{"name":"L","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The length of the export secret"}]}]},{"content":[{"inlineContent":[{"text":"The encapsulated key","type":"text"}],"type":"paragraph"}],"name":"encap"}]},{"kind":"content","content":[{"type":"heading","level":2,"text":"Return Value","anchor":"return-value"},{"type":"paragraph","inlineContent":[{"type":"text","text":"The export secret"}]}]},{"content":[{"anchor":"discussion","level":2,"text":"Discussion","type":"heading"},{"type":"aside","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"self"},{"text":" or L is negative or too large","type":"text"}]}],"name":"Throws","style":"note"}],"kind":"content"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"seeAlsoSections":[{"title":"Base mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)"],"generated":true}],"kind":"symbol","variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:encap:)"],"traits":[{"interfaceLanguage":"swift"}]}],"sections":[],"schemaVersion":{"minor":3,"major":0,"patch":0},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)"},"metadata":{"externalID":"s:9SwiftHPKE11CipherSuiteV13receiveExport10privateKey4info7context1L5encapSays5UInt8VGAA07PrivateH0V_A2LSiALtKF","roleHeading":"Instance Method","title":"receiveExport(privateKey:info:context:L:encap:)","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"symbolKind":"method","modules":[{"name":"SwiftHPKE"}],"role":"symbol"},"abstract":[{"type":"text","text":"Retrieve an export secret in base mode"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:pt:aad:)":{"abstract":[{"text":"Single-shot encryption in base mode","type":"text"}],"role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pt"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", ct"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":")"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","title":"seal(publicKey:info:pt:aad:)","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:ct:aad:encap:)":{"abstract":[{"type":"text","text":"Single-shot decryption in base mode"}],"role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","title":"open(privateKey:info:ct:aad:encap:)","kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:)":{"abstract":[{"type":"text","text":"Generate an export secret in base mode"}],"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"sendExport"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", secret"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","title":"sendExport(publicKey:info:context:L:)","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:encap:)":{"abstract":[{"type":"text","text":"Retrieve an export secret in base mode"}],"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)","title":"receiveExport(privateKey:info:context:L:encap:)","kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:encap:)"}}} \ No newline at end of file +{"schemaVersion":{"minor":3,"major":0,"patch":0},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"metadata":{"roleHeading":"Instance Method","symbolKind":"method","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"receiveExport"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"modules":[{"name":"SwiftHPKE"}],"role":"symbol","title":"receiveExport(privateKey:info:context:L:encap:)","externalID":"s:9SwiftHPKE11CipherSuiteV13receiveExport10privateKey4info7context1L5encapSays5UInt8VGAA07PrivateH0V_A2LSiALtKF"},"kind":"symbol","abstract":[{"text":"Retrieve an export secret in base mode","type":"text"}],"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)"],"title":"Base mode"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:encap:)"]}],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"}],"languages":["swift"]}]},{"kind":"parameters","parameters":[{"name":"privateKey","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient private key"}]}]},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"text":"The additional information","type":"text"}]}]},{"name":"context","content":[{"inlineContent":[{"text":"The export context","type":"text"}],"type":"paragraph"}]},{"name":"L","content":[{"inlineContent":[{"type":"text","text":"The length of the export secret"}],"type":"paragraph"}]},{"name":"encap","content":[{"type":"paragraph","inlineContent":[{"text":"The encapsulated key","type":"text"}]}]}]},{"kind":"content","content":[{"anchor":"return-value","text":"Return Value","level":2,"type":"heading"},{"inlineContent":[{"type":"text","text":"The export secret"}],"type":"paragraph"}]},{"kind":"content","content":[{"type":"heading","level":2,"anchor":"discussion","text":"Discussion"},{"content":[{"inlineContent":[{"text":"An exception if one of the keys does not match ","type":"text"},{"type":"codeVoice","code":"self"},{"type":"text","text":" or L is negative or too large"}],"type":"paragraph"}],"type":"aside","name":"Throws","style":"note"}]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)"},"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:ct:aad:encap:)":{"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:ct:aad:encap:)","type":"topic","abstract":[{"text":"Single-shot decryption in base mode","type":"text"}],"title":"open(privateKey:info:ct:aad:encap:)","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","abstract":[{"text":"Generate an export secret in base mode","type":"text"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":")"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:)","type":"topic","kind":"symbol","role":"symbol","title":"sendExport(publicKey:info:context:L:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:encap:)":{"title":"receiveExport(privateKey:info:context:L:encap:)","abstract":[{"text":"Retrieve an export secret in base mode","type":"text"}],"role":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:encap:)","kind":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:pt:aad:)":{"title":"seal(publicKey:info:pt:aad:)","abstract":[{"type":"text","text":"Single-shot encryption in base mode"}],"role":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:pt:aad:)","kind":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}]}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:psk:pskid:encap:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:psk:pskid:encap:).json index f149772..3057a70 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:psk:pskid:encap:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:psk:pskid:encap:).json @@ -1 +1 @@ -{"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"languages":["swift"],"platforms":["macOS"]}]},{"kind":"parameters","parameters":[{"name":"privateKey","content":[{"inlineContent":[{"type":"text","text":"The recipient private key"}],"type":"paragraph"}]},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}]},{"name":"context","content":[{"type":"paragraph","inlineContent":[{"text":"The export context","type":"text"}]}]},{"name":"L","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The length of the export secret"}]}]},{"name":"psk","content":[{"inlineContent":[{"type":"text","text":"The preshared key"}],"type":"paragraph"}]},{"name":"pskId","content":[{"type":"paragraph","inlineContent":[{"text":"The preshared key id","type":"text"}]}]},{"name":"encap","content":[{"inlineContent":[{"text":"The encapsulated key","type":"text"}],"type":"paragraph"}]}]},{"content":[{"text":"Return Value","level":2,"anchor":"return-value","type":"heading"},{"inlineContent":[{"type":"text","text":"The export secret"}],"type":"paragraph"}],"kind":"content"},{"kind":"content","content":[{"anchor":"discussion","text":"Discussion","type":"heading","level":2},{"type":"aside","name":"Throws","style":"note","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"code":"self","type":"codeVoice"},{"text":" or the ","type":"text"},{"code":"psk","type":"codeVoice"},{"type":"text","text":" parameters are inconsistent or L is negative or too large"}]}]}]}],"sections":[],"metadata":{"externalID":"s:9SwiftHPKE11CipherSuiteV13receiveExport10privateKey4info7context1L3psk0K2Id5encapSays5UInt8VGAA07PrivateH0V_A2NSiA3NtKF","symbolKind":"method","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Instance Method","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"title":"receiveExport(privateKey:info:context:L:psk:pskId:encap:)","role":"symbol"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)"},"seeAlsoSections":[{"title":"Preshared key mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)"],"generated":true}],"kind":"symbol","schemaVersion":{"minor":3,"patch":0,"major":0},"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:psk:pskid:encap:)"],"traits":[{"interfaceLanguage":"swift"}]}],"abstract":[{"text":"Retrieve an export secret in preshared key mode","type":"text"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:psk:pskId:)":{"abstract":[{"text":"Generate an export secret in preshared key mode","type":"text"}],"role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:psk:pskid:)","kind":"symbol","type":"topic","title":"sendExport(publicKey:info:context:L:psk:pskId:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":")","kind":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:psk:pskId:encap:)":{"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"receiveExport"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"Retrieve an export secret in preshared key mode"}],"title":"receiveExport(privateKey:info:context:L:psk:pskId:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:psk:pskid:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:psk:pskId:pt:aad:)":{"kind":"symbol","role":"symbol","abstract":[{"text":"Single-shot encryption in preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:psk:pskid:pt:aad:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","title":"seal(publicKey:info:psk:pskId:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", ct"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":")"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:psk:pskId:ct:aad:encap:)":{"kind":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"abstract":[{"type":"text","text":"Single-shot decryption in preshared key mode"}],"type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:psk:pskid:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","title":"open(privateKey:info:psk:pskId:ct:aad:encap:)","role":"symbol"}}} \ No newline at end of file +{"abstract":[{"type":"text","text":"Retrieve an export secret in preshared key mode"}],"kind":"symbol","seeAlsoSections":[{"generated":true,"title":"Preshared key mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)"]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:psk:pskid:encap:)"]}],"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier"}],"languages":["swift"]}],"kind":"declarations"},{"parameters":[{"name":"privateKey","content":[{"type":"paragraph","inlineContent":[{"text":"The recipient private key","type":"text"}]}]},{"name":"info","content":[{"inlineContent":[{"text":"The additional information","type":"text"}],"type":"paragraph"}]},{"name":"context","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The export context"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The length of the export secret"}]}],"name":"L"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key"}]}],"name":"psk"},{"name":"pskId","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key id"}]}]},{"name":"encap","content":[{"type":"paragraph","inlineContent":[{"text":"The encapsulated key","type":"text"}]}]}],"kind":"parameters"},{"kind":"content","content":[{"type":"heading","anchor":"return-value","level":2,"text":"Return Value"},{"type":"paragraph","inlineContent":[{"text":"The export secret","type":"text"}]}]},{"kind":"content","content":[{"level":2,"text":"Discussion","type":"heading","anchor":"discussion"},{"name":"Throws","type":"aside","content":[{"inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"self"},{"type":"text","text":" or the "},{"type":"codeVoice","code":"psk"},{"type":"text","text":" parameters are inconsistent or L is negative or too large"}],"type":"paragraph"}],"style":"note"}]}],"metadata":{"roleHeading":"Instance Method","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE11CipherSuiteV13receiveExport10privateKey4info7context1L3psk0K2Id5encapSays5UInt8VGAA07PrivateH0V_A2NSiA3NtKF","title":"receiveExport(privateKey:info:context:L:psk:pskId:encap:)","role":"symbol","symbolKind":"method"},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)"},"schemaVersion":{"major":0,"minor":3,"patch":0},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:psk:pskId:encap:)":{"kind":"symbol","abstract":[{"text":"Retrieve an export secret in preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:psk:pskid:encap:)","type":"topic","title":"receiveExport(privateKey:info:context:L:psk:pskId:encap:)","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:psk:pskId:)":{"kind":"symbol","abstract":[{"type":"text","text":"Generate an export secret in preshared key mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:psk:pskid:)","type":"topic","title":"sendExport(publicKey:info:context:L:psk:pskId:)","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encapsulatedKey"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", secret"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":")"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:psk:pskId:ct:aad:encap:)":{"kind":"symbol","abstract":[{"type":"text","text":"Single-shot decryption in preshared key mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:psk:pskid:ct:aad:encap:)","type":"topic","title":"open(privateKey:info:psk:pskId:ct:aad:encap:)","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"open"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:psk:pskId:pt:aad:)":{"kind":"symbol","abstract":[{"text":"Single-shot encryption in preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:psk:pskid:pt:aad:)","type":"topic","title":"seal(publicKey:info:psk:pskId:pt:aad:)","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ct","kind":"text"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}]}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:psk:pskid:pt:aad:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:psk:pskid:pt:aad:).json index 4c77776..782c398 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:psk:pskid:pt:aad:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:psk:pskid:pt:aad:).json @@ -1 +1 @@ -{"kind":"symbol","identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","interfaceLanguage":"swift"},"schemaVersion":{"minor":3,"patch":0,"major":0},"abstract":[{"text":"Single-shot encryption in authenticated, preshared key mode","type":"text"}],"seeAlsoSections":[{"generated":true,"title":"Authenticated, preshared key mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)"]}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pt"},{"kind":"text","text":": "},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encap"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":")"}]}]},{"kind":"parameters","parameters":[{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient public key"}]}],"name":"publicKey"},{"name":"info","content":[{"inlineContent":[{"type":"text","text":"The additional information"}],"type":"paragraph"}]},{"name":"authentication","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The sender private key"}]}]},{"name":"psk","content":[{"inlineContent":[{"text":"The preshared key","type":"text"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"type":"text","text":"The preshared key id"}],"type":"paragraph"}],"name":"pskId"},{"name":"pt","content":[{"inlineContent":[{"type":"text","text":"The plain text to encrypt"}],"type":"paragraph"}]},{"name":"aad","content":[{"type":"paragraph","inlineContent":[{"text":"The associated data","type":"text"}]}]}]},{"kind":"content","content":[{"level":2,"text":"Return Value","anchor":"return-value","type":"heading"},{"inlineContent":[{"type":"text","text":"The encapsulted key and cipher text"}],"type":"paragraph"}]},{"kind":"content","content":[{"type":"heading","level":2,"anchor":"discussion","text":"Discussion"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"self"},{"text":" or the encryption fails or the ","type":"text"},{"code":"psk","type":"codeVoice"},{"text":" parameters are inconsistent or ","type":"text"},{"code":"self.aead","type":"codeVoice"},{"text":" is EXPORTONLY","type":"text"}]}],"style":"note","type":"aside","name":"Throws"}]}],"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:psk:pskid:pt:aad:)"],"traits":[{"interfaceLanguage":"swift"}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"metadata":{"modules":[{"name":"SwiftHPKE"}],"roleHeading":"Instance Method","title":"seal(publicKey:info:authentication:psk:pskId:pt:aad:)","externalID":"s:9SwiftHPKE11CipherSuiteV4seal9publicKey4info14authentication3psk0J2Id2pt3aadSays5UInt8VG5encap_AN2cttAA06PublicG0V_AnA07PrivateG0VA4NtKF","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pt"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"role":"symbol","symbolKind":"method"},"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)":{"kind":"symbol","type":"topic","abstract":[{"type":"text","text":"Single-shot decryption in authenticated, preshared key mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)","title":"open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)":{"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)","abstract":[{"type":"text","text":"Retrieve an export secret in authenticated, preshared key mode"}],"title":"receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:psk:pskId:)":{"kind":"symbol","type":"topic","abstract":[{"type":"text","text":"Generate an export secret in authenticated, preshared key mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:psk:pskid:)","title":"sendExport(publicKey:info:context:L:authentication:psk:pskId:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:psk:pskId:pt:aad:)":{"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:psk:pskid:pt:aad:)","abstract":[{"type":"text","text":"Single-shot encryption in authenticated, preshared key mode"}],"title":"seal(publicKey:info:authentication:psk:pskId:pt:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":")"}],"role":"symbol"}}} \ No newline at end of file +{"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)"],"title":"Authenticated, preshared key mode","generated":true}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)"},"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:psk:pskid:pt:aad:)"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","metadata":{"roleHeading":"Instance Method","modules":[{"name":"SwiftHPKE"}],"fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ct","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"externalID":"s:9SwiftHPKE11CipherSuiteV4seal9publicKey4info14authentication3psk0J2Id2pt3aadSays5UInt8VG5encap_AN2cttAA06PublicG0V_AnA07PrivateG0VA4NtKF","title":"seal(publicKey:info:authentication:psk:pskId:pt:aad:)","symbolKind":"method","role":"symbol"},"abstract":[{"type":"text","text":"Single-shot encryption in authenticated, preshared key mode"}],"schemaVersion":{"major":0,"minor":3,"patch":0},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pt"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"kind":"text","text":", ct"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes"},{"text":")","kind":"text"}],"languages":["swift"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"content":[{"inlineContent":[{"text":"The recipient public key","type":"text"}],"type":"paragraph"}],"name":"publicKey"},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"text":"The additional information","type":"text"}]}]},{"name":"authentication","content":[{"type":"paragraph","inlineContent":[{"text":"The sender private key","type":"text"}]}]},{"content":[{"inlineContent":[{"text":"The preshared key","type":"text"}],"type":"paragraph"}],"name":"psk"},{"name":"pskId","content":[{"type":"paragraph","inlineContent":[{"text":"The preshared key id","type":"text"}]}]},{"name":"pt","content":[{"inlineContent":[{"type":"text","text":"The plain text to encrypt"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The associated data"}]}],"name":"aad"}]},{"content":[{"text":"Return Value","level":2,"anchor":"return-value","type":"heading"},{"type":"paragraph","inlineContent":[{"text":"The encapsulted key and cipher text","type":"text"}]}],"kind":"content"},{"kind":"content","content":[{"level":2,"anchor":"discussion","text":"Discussion","type":"heading"},{"name":"Throws","type":"aside","content":[{"inlineContent":[{"text":"An exception if one of the keys does not match ","type":"text"},{"type":"codeVoice","code":"self"},{"type":"text","text":" or the encryption fails or the "},{"type":"codeVoice","code":"psk"},{"type":"text","text":" parameters are inconsistent or "},{"code":"self.aead","type":"codeVoice"},{"text":" is EXPORTONLY","type":"text"}],"type":"paragraph"}],"style":"note"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:psk:pskId:pt:aad:)":{"kind":"symbol","role":"symbol","abstract":[{"type":"text","text":"Single-shot encryption in authenticated, preshared key mode"}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pt"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ct","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":")"}],"type":"topic","title":"seal(publicKey:info:authentication:psk:pskId:pt:aad:)","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:psk:pskid:pt:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)":{"kind":"symbol","role":"symbol","abstract":[{"type":"text","text":"Retrieve an export secret in authenticated, preshared key mode"}],"fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"title":"receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)":{"kind":"symbol","role":"symbol","abstract":[{"type":"text","text":"Single-shot decryption in authenticated, preshared key mode"}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"type":"topic","title":"open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:psk:pskId:)":{"kind":"symbol","role":"symbol","abstract":[{"text":"Generate an export secret in authenticated, preshared key mode","type":"text"}],"fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encapsulatedKey"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}],"title":"sendExport(publicKey:info:context:L:authentication:psk:pskId:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:psk:pskid:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:pt:aad:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:pt:aad:).json index 70f4f89..e3bcbf3 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:pt:aad:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:pt:aad:).json @@ -1 +1 @@ -{"seeAlsoSections":[{"generated":true,"title":"Authenticated mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)"]}],"sections":[],"kind":"symbol","schemaVersion":{"minor":3,"patch":0,"major":0},"metadata":{"modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE11CipherSuiteV4seal9publicKey4info14authentication2pt3aadSays5UInt8VG5encap_AL2cttAA06PublicG0V_AlA07PrivateG0VA2LtKF","title":"seal(publicKey:info:authentication:pt:aad:)","symbolKind":"method","roleHeading":"Instance Method","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pt"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encap"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", ct"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}]},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:pt:aad:)"]}],"abstract":[{"type":"text","text":"Single-shot encryption in authenticated mode"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","interfaceLanguage":"swift"},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", ct"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":")"}],"languages":["swift"],"platforms":["macOS"]}]},{"parameters":[{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient public key"}]}],"name":"publicKey"},{"content":[{"inlineContent":[{"text":"The additional information","type":"text"}],"type":"paragraph"}],"name":"info"},{"content":[{"type":"paragraph","inlineContent":[{"text":"The sender private key","type":"text"}]}],"name":"authentication"},{"content":[{"inlineContent":[{"text":"The plain text to encrypt","type":"text"}],"type":"paragraph"}],"name":"pt"},{"content":[{"inlineContent":[{"text":"The associated data","type":"text"}],"type":"paragraph"}],"name":"aad"}],"kind":"parameters"},{"kind":"content","content":[{"level":2,"type":"heading","anchor":"return-value","text":"Return Value"},{"type":"paragraph","inlineContent":[{"text":"The encapsulted key and cipher text","type":"text"}]}]},{"kind":"content","content":[{"type":"heading","level":2,"text":"Discussion","anchor":"discussion"},{"content":[{"inlineContent":[{"text":"An exception if one of the keys does not match ","type":"text"},{"code":"self","type":"codeVoice"},{"type":"text","text":" or the encryption fails or "},{"code":"self.aead","type":"codeVoice"},{"text":" is EXPORTONLY","type":"text"}],"type":"paragraph"}],"type":"aside","style":"note","name":"Throws"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:encap:)":{"kind":"symbol","type":"topic","abstract":[{"type":"text","text":"Retrieve an export secret in authenticated mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)","title":"receiveExport(privateKey:info:context:L:authentication:encap:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:ct:aad:encap:)":{"kind":"symbol","type":"topic","abstract":[{"type":"text","text":"Single-shot decryption in authenticated mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:ct:aad:encap:)","title":"open(privateKey:info:authentication:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"ct"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:)":{"kind":"symbol","type":"topic","abstract":[{"text":"Generate an export secret in authenticated mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:)","title":"sendExport(publicKey:info:context:L:authentication:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:pt:aad:)":{"kind":"symbol","type":"topic","abstract":[{"type":"text","text":"Single-shot encryption in authenticated mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:pt:aad:)","title":"seal(publicKey:info:authentication:pt:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"role":"symbol"}}} \ No newline at end of file +{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", ct"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":")"}],"languages":["swift"]}],"kind":"declarations"},{"parameters":[{"name":"publicKey","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient public key"}]}]},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"text":"The additional information","type":"text"}]}]},{"name":"authentication","content":[{"inlineContent":[{"text":"The sender private key","type":"text"}],"type":"paragraph"}]},{"name":"pt","content":[{"inlineContent":[{"text":"The plain text to encrypt","type":"text"}],"type":"paragraph"}]},{"name":"aad","content":[{"type":"paragraph","inlineContent":[{"text":"The associated data","type":"text"}]}]}],"kind":"parameters"},{"kind":"content","content":[{"level":2,"text":"Return Value","anchor":"return-value","type":"heading"},{"type":"paragraph","inlineContent":[{"type":"text","text":"The encapsulted key and cipher text"}]}]},{"content":[{"text":"Discussion","anchor":"discussion","level":2,"type":"heading"},{"type":"aside","name":"Throws","style":"note","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"self"},{"type":"text","text":" or the encryption fails or "},{"type":"codeVoice","code":"self.aead"},{"text":" is EXPORTONLY","type":"text"}]}]}],"kind":"content"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:pt:aad:)"]}],"metadata":{"modules":[{"name":"SwiftHPKE"}],"symbolKind":"method","role":"symbol","roleHeading":"Instance Method","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":")"}],"title":"seal(publicKey:info:authentication:pt:aad:)","externalID":"s:9SwiftHPKE11CipherSuiteV4seal9publicKey4info14authentication2pt3aadSays5UInt8VG5encap_AL2cttAA06PublicG0V_AlA07PrivateG0VA2LtKF"},"schemaVersion":{"major":0,"minor":3,"patch":0},"abstract":[{"type":"text","text":"Single-shot encryption in authenticated mode"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)"},"kind":"symbol","sections":[],"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)"],"title":"Authenticated mode"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:encap:)":{"abstract":[{"type":"text","text":"Retrieve an export secret in authenticated mode"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)","kind":"symbol","role":"symbol","title":"receiveExport(privateKey:info:context:L:authentication:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:)":{"abstract":[{"type":"text","text":"Generate an export secret in authenticated mode"}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":")","kind":"text"}],"type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","kind":"symbol","role":"symbol","title":"sendExport(publicKey:info:context:L:authentication:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:ct:aad:encap:)":{"abstract":[{"type":"text","text":"Single-shot decryption in authenticated mode"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","kind":"symbol","role":"symbol","title":"open(privateKey:info:authentication:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:pt:aad:)":{"abstract":[{"type":"text","text":"Single-shot encryption in authenticated mode"}],"fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pt"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}],"type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:pt:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","kind":"symbol","role":"symbol","title":"seal(publicKey:info:authentication:pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/seal(publickey:info:psk:pskid:pt:aad:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/seal(publickey:info:psk:pskid:pt:aad:).json index 8484277..d364a20 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/seal(publickey:info:psk:pskid:pt:aad:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/seal(publickey:info:psk:pskid:pt:aad:).json @@ -1 +1 @@ -{"kind":"symbol","sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"schemaVersion":{"patch":0,"major":0,"minor":3},"abstract":[{"type":"text","text":"Single-shot encryption in preshared key mode"}],"primaryContentSections":[{"declarations":[{"tokens":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"kind":"text","text":", ct"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"publicKey","content":[{"inlineContent":[{"type":"text","text":"The recipient public key"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}],"name":"info"},{"name":"psk","content":[{"inlineContent":[{"type":"text","text":"The preshared key"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"type":"text","text":"The preshared key id"}],"type":"paragraph"}],"name":"pskId"},{"name":"pt","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The plain text to encrypt"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"The associated data","type":"text"}]}],"name":"aad"}]},{"kind":"content","content":[{"anchor":"return-value","level":2,"type":"heading","text":"Return Value"},{"inlineContent":[{"text":"The encapsulted key and cipher text","type":"text"}],"type":"paragraph"}]},{"content":[{"text":"Discussion","anchor":"discussion","level":2,"type":"heading"},{"name":"Throws","content":[{"inlineContent":[{"text":"An exception if ","type":"text"},{"code":"publicKey","type":"codeVoice"},{"text":" does not match ","type":"text"},{"type":"codeVoice","code":"self"},{"type":"text","text":" or the encryption fails or the "},{"code":"psk","type":"codeVoice"},{"type":"text","text":" parameters are inconsistent or "},{"type":"codeVoice","code":"self.aead"},{"type":"text","text":" is EXPORTONLY"}],"type":"paragraph"}],"style":"note","type":"aside"}],"kind":"content"}],"seeAlsoSections":[{"title":"Preshared key mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)"],"generated":true}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","interfaceLanguage":"swift"},"metadata":{"role":"symbol","roleHeading":"Instance Method","title":"seal(publicKey:info:psk:pskId:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ct","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"symbolKind":"method","externalID":"s:9SwiftHPKE11CipherSuiteV4seal9publicKey4info3psk0I2Id2pt3aadSays5UInt8VG5encap_AM2cttAA06PublicG0V_A5MtKF","modules":[{"name":"SwiftHPKE"}]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:psk:pskid:pt:aad:)"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:psk:pskId:ct:aad:encap:)":{"kind":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"abstract":[{"type":"text","text":"Single-shot decryption in preshared key mode"}],"type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:psk:pskid:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","title":"open(privateKey:info:psk:pskId:ct:aad:encap:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:psk:pskId:encap:)":{"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"receiveExport"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"Retrieve an export secret in preshared key mode"}],"title":"receiveExport(privateKey:info:context:L:psk:pskId:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:psk:pskid:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:psk:pskId:)":{"abstract":[{"text":"Generate an export secret in preshared key mode","type":"text"}],"role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:psk:pskid:)","kind":"symbol","type":"topic","title":"sendExport(publicKey:info:context:L:psk:pskId:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":")","kind":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:psk:pskId:pt:aad:)":{"kind":"symbol","role":"symbol","abstract":[{"text":"Single-shot encryption in preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:psk:pskid:pt:aad:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","title":"seal(publicKey:info:psk:pskId:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", ct"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":")"}]}}} \ No newline at end of file +{"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","interfaceLanguage":"swift"},"metadata":{"modules":[{"name":"SwiftHPKE"}],"roleHeading":"Instance Method","title":"seal(publicKey:info:psk:pskId:pt:aad:)","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pt"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ct","kind":"text"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":")"}],"externalID":"s:9SwiftHPKE11CipherSuiteV4seal9publicKey4info3psk0I2Id2pt3aadSays5UInt8VG5encap_AM2cttAA06PublicG0V_A5MtKF","symbolKind":"method"},"sections":[],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"languages":["swift"],"platforms":["macOS"]}]},{"kind":"parameters","parameters":[{"name":"publicKey","content":[{"inlineContent":[{"text":"The recipient public key","type":"text"}],"type":"paragraph"}]},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"text":"The additional information","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"The preshared key","type":"text"}]}],"name":"psk"},{"name":"pskId","content":[{"type":"paragraph","inlineContent":[{"text":"The preshared key id","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The plain text to encrypt"}]}],"name":"pt"},{"content":[{"type":"paragraph","inlineContent":[{"text":"The associated data","type":"text"}]}],"name":"aad"}]},{"kind":"content","content":[{"text":"Return Value","level":2,"type":"heading","anchor":"return-value"},{"inlineContent":[{"type":"text","text":"The encapsulted key and cipher text"}],"type":"paragraph"}]},{"content":[{"level":2,"type":"heading","anchor":"discussion","text":"Discussion"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if "},{"code":"publicKey","type":"codeVoice"},{"text":" does not match ","type":"text"},{"code":"self","type":"codeVoice"},{"text":" or the encryption fails or the ","type":"text"},{"code":"psk","type":"codeVoice"},{"type":"text","text":" parameters are inconsistent or "},{"code":"self.aead","type":"codeVoice"},{"text":" is EXPORTONLY","type":"text"}]}],"name":"Throws","type":"aside","style":"note"}],"kind":"content"}],"kind":"symbol","schemaVersion":{"major":0,"minor":3,"patch":0},"abstract":[{"type":"text","text":"Single-shot encryption in preshared key mode"}],"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:psk:pskid:pt:aad:)"],"traits":[{"interfaceLanguage":"swift"}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"seeAlsoSections":[{"generated":true,"title":"Preshared key mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:psk:pskId:pt:aad:)":{"kind":"symbol","abstract":[{"text":"Single-shot encryption in preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:psk:pskid:pt:aad:)","type":"topic","title":"seal(publicKey:info:psk:pskId:pt:aad:)","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ct","kind":"text"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:psk:pskId:)":{"kind":"symbol","abstract":[{"type":"text","text":"Generate an export secret in preshared key mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:psk:pskid:)","type":"topic","title":"sendExport(publicKey:info:context:L:psk:pskId:)","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encapsulatedKey"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", secret"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":")"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:psk:pskId:ct:aad:encap:)":{"kind":"symbol","abstract":[{"type":"text","text":"Single-shot decryption in preshared key mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:psk:pskid:ct:aad:encap:)","type":"topic","title":"open(privateKey:info:psk:pskId:ct:aad:encap:)","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"open"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:psk:pskId:encap:)":{"kind":"symbol","abstract":[{"text":"Retrieve an export secret in preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:psk:pskid:encap:)","type":"topic","title":"receiveExport(privateKey:info:context:L:psk:pskId:encap:)","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/seal(publickey:info:pt:aad:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/seal(publickey:info:pt:aad:).json index 812cec7..4d63777 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/seal(publickey:info:pt:aad:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/seal(publickey:info:pt:aad:).json @@ -1 +1 @@ -{"kind":"symbol","identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)"},"schemaVersion":{"major":0,"minor":3,"patch":0},"abstract":[{"type":"text","text":"Single-shot encryption in base mode"}],"seeAlsoSections":[{"title":"Base mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)"],"generated":true}],"primaryContentSections":[{"declarations":[{"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","text":"PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient public key"}]}],"name":"publicKey"},{"content":[{"inlineContent":[{"type":"text","text":"The additional information"}],"type":"paragraph"}],"name":"info"},{"name":"pt","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The plain text to encrypt"}]}]},{"name":"aad","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The associated data"}]}]}]},{"kind":"content","content":[{"level":2,"anchor":"return-value","text":"Return Value","type":"heading"},{"type":"paragraph","inlineContent":[{"text":"The encapsulated key and cipher text","type":"text"}]}]},{"kind":"content","content":[{"text":"Discussion","anchor":"discussion","type":"heading","level":2},{"style":"note","name":"Throws","type":"aside","content":[{"inlineContent":[{"text":"An exception if ","type":"text"},{"type":"codeVoice","code":"publicKey"},{"type":"text","text":" does not match "},{"code":"self","type":"codeVoice"},{"text":" or the encryption fails or ","type":"text"},{"type":"codeVoice","code":"self.aead"},{"text":" is EXPORTONLY","type":"text"}],"type":"paragraph"}]}]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:pt:aad:)"]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"metadata":{"modules":[{"name":"SwiftHPKE"}],"roleHeading":"Instance Method","title":"seal(publicKey:info:pt:aad:)","externalID":"s:9SwiftHPKE11CipherSuiteV4seal9publicKey4info2pt3aadSays5UInt8VG5encap_AK2cttAA06PublicG0V_A3KtKF","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pt"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", ct"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":")"}],"role":"symbol","symbolKind":"method"},"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:ct:aad:encap:)":{"abstract":[{"type":"text","text":"Single-shot decryption in base mode"}],"role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","title":"open(privateKey:info:ct:aad:encap:)","kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:encap:)":{"abstract":[{"type":"text","text":"Retrieve an export secret in base mode"}],"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)","title":"receiveExport(privateKey:info:context:L:encap:)","kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:pt:aad:)":{"abstract":[{"text":"Single-shot encryption in base mode","type":"text"}],"role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pt"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", ct"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":")"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","title":"seal(publicKey:info:pt:aad:)","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:)":{"abstract":[{"type":"text","text":"Generate an export secret in base mode"}],"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"sendExport"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", secret"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","title":"sendExport(publicKey:info:context:L:)","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:)"}}} \ No newline at end of file +{"seeAlsoSections":[{"title":"Base mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)"],"generated":true}],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", ct"},{"kind":"text","text":": "},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"languages":["swift"]}]},{"kind":"parameters","parameters":[{"content":[{"inlineContent":[{"text":"The recipient public key","type":"text"}],"type":"paragraph"}],"name":"publicKey"},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"text":"The additional information","type":"text"}]}]},{"name":"pt","content":[{"type":"paragraph","inlineContent":[{"text":"The plain text to encrypt","type":"text"}]}]},{"name":"aad","content":[{"type":"paragraph","inlineContent":[{"text":"The associated data","type":"text"}]}]}]},{"content":[{"type":"heading","text":"Return Value","level":2,"anchor":"return-value"},{"type":"paragraph","inlineContent":[{"type":"text","text":"The encapsulated key and cipher text"}]}],"kind":"content"},{"kind":"content","content":[{"level":2,"text":"Discussion","anchor":"discussion","type":"heading"},{"type":"aside","style":"note","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if ","type":"text"},{"code":"publicKey","type":"codeVoice"},{"type":"text","text":" does not match "},{"code":"self","type":"codeVoice"},{"text":" or the encryption fails or ","type":"text"},{"type":"codeVoice","code":"self.aead"},{"text":" is EXPORTONLY","type":"text"}]}],"name":"Throws"}]}],"abstract":[{"text":"Single-shot encryption in base mode","type":"text"}],"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:pt:aad:)"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)"},"schemaVersion":{"major":0,"minor":3,"patch":0},"metadata":{"fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encap"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ct","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"title":"seal(publicKey:info:pt:aad:)","externalID":"s:9SwiftHPKE11CipherSuiteV4seal9publicKey4info2pt3aadSays5UInt8VG5encap_AK2cttAA06PublicG0V_A3KtKF","roleHeading":"Instance Method","modules":[{"name":"SwiftHPKE"}],"role":"symbol","symbolKind":"method"},"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:ct:aad:encap:)":{"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:ct:aad:encap:)","type":"topic","abstract":[{"text":"Single-shot decryption in base mode","type":"text"}],"title":"open(privateKey:info:ct:aad:encap:)","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:encap:)":{"title":"receiveExport(privateKey:info:context:L:encap:)","abstract":[{"text":"Retrieve an export secret in base mode","type":"text"}],"role":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:encap:)","kind":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","abstract":[{"text":"Generate an export secret in base mode","type":"text"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":")"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:)","type":"topic","kind":"symbol","role":"symbol","title":"sendExport(publicKey:info:context:L:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:pt:aad:)":{"title":"seal(publicKey:info:pt:aad:)","abstract":[{"type":"text","text":"Single-shot encryption in base mode"}],"role":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:pt:aad:)","kind":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}]}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:).json index 6572fdc..63aed91 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:).json @@ -1 +1 @@ -{"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)"},"sections":[],"seeAlsoSections":[{"title":"Base mode","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)"]}],"schemaVersion":{"minor":3,"patch":0,"major":0},"metadata":{"title":"sendExport(publicKey:info:context:L:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encapsulatedKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}],"symbolKind":"method","roleHeading":"Instance Method","role":"symbol","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE11CipherSuiteV10sendExport9publicKey4info7context1LSays5UInt8VG012encapsulatedH0_AK6secrettAA06PublicH0V_A2KSitKF"},"kind":"symbol","primaryContentSections":[{"declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"sendExport"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":")"}]}],"kind":"declarations"},{"parameters":[{"name":"publicKey","content":[{"inlineContent":[{"type":"text","text":"The recipient public key"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}],"name":"info"},{"name":"context","content":[{"inlineContent":[{"text":"The export context","type":"text"}],"type":"paragraph"}]},{"name":"L","content":[{"type":"paragraph","inlineContent":[{"text":"The length of the export secret","type":"text"}]}]}],"kind":"parameters"},{"kind":"content","content":[{"type":"heading","anchor":"return-value","text":"Return Value","level":2},{"inlineContent":[{"text":"The encapsulated key and export secret","type":"text"}],"type":"paragraph"}]},{"kind":"content","content":[{"type":"heading","level":2,"anchor":"discussion","text":"Discussion"},{"type":"aside","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if "},{"type":"codeVoice","code":"publicKey"},{"type":"text","text":" does not match "},{"type":"codeVoice","code":"self"},{"text":" or L is negative or too large","type":"text"}]}],"style":"note","name":"Throws"}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:)"]}],"abstract":[{"text":"Generate an export secret in base mode","type":"text"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:ct:aad:encap:)":{"abstract":[{"type":"text","text":"Single-shot decryption in base mode"}],"role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","title":"open(privateKey:info:ct:aad:encap:)","kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:encap:)":{"abstract":[{"type":"text","text":"Retrieve an export secret in base mode"}],"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)","title":"receiveExport(privateKey:info:context:L:encap:)","kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:pt:aad:)":{"abstract":[{"text":"Single-shot encryption in base mode","type":"text"}],"role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pt"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", ct"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":")"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","title":"seal(publicKey:info:pt:aad:)","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:)":{"abstract":[{"type":"text","text":"Generate an export secret in base mode"}],"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"sendExport"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", secret"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","title":"sendExport(publicKey:info:context:L:)","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"}}} \ No newline at end of file +{"sections":[],"metadata":{"role":"symbol","symbolKind":"method","title":"sendExport(publicKey:info:context:L:)","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Instance Method","externalID":"s:9SwiftHPKE11CipherSuiteV10sendExport9publicKey4info7context1LSays5UInt8VG012encapsulatedH0_AK6secrettAA06PublicH0V_A2KSitKF","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encapsulatedKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", secret"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":")"}]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","interfaceLanguage":"swift"},"abstract":[{"type":"text","text":"Generate an export secret in base mode"}],"seeAlsoSections":[{"generated":true,"title":"Base mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)"]}],"kind":"symbol","primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"sendExport"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","kind":"typeIdentifier","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encapsulatedKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", secret"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"languages":["swift"],"platforms":["macOS"]}]},{"kind":"parameters","parameters":[{"content":[{"type":"paragraph","inlineContent":[{"text":"The recipient public key","type":"text"}]}],"name":"publicKey"},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"text":"The additional information","type":"text"}]}]},{"name":"context","content":[{"inlineContent":[{"text":"The export context","type":"text"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"type":"text","text":"The length of the export secret"}],"type":"paragraph"}],"name":"L"}]},{"kind":"content","content":[{"level":2,"text":"Return Value","type":"heading","anchor":"return-value"},{"type":"paragraph","inlineContent":[{"text":"The encapsulated key and export secret","type":"text"}]}]},{"content":[{"level":2,"text":"Discussion","anchor":"discussion","type":"heading"},{"name":"Throws","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if "},{"type":"codeVoice","code":"publicKey"},{"text":" does not match ","type":"text"},{"code":"self","type":"codeVoice"},{"type":"text","text":" or L is negative or too large"}]}],"type":"aside","style":"note"}],"kind":"content"}],"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:)"],"traits":[{"interfaceLanguage":"swift"}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"schemaVersion":{"patch":0,"major":0,"minor":3},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:ct:aad:encap:)":{"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:ct:aad:encap:)","type":"topic","abstract":[{"text":"Single-shot decryption in base mode","type":"text"}],"title":"open(privateKey:info:ct:aad:encap:)","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","abstract":[{"text":"Generate an export secret in base mode","type":"text"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":")"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:)","type":"topic","kind":"symbol","role":"symbol","title":"sendExport(publicKey:info:context:L:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:pt:aad:)":{"title":"seal(publicKey:info:pt:aad:)","abstract":[{"type":"text","text":"Single-shot encryption in base mode"}],"role":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:pt:aad:)","kind":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:encap:)":{"title":"receiveExport(privateKey:info:context:L:encap:)","abstract":[{"text":"Retrieve an export secret in base mode","type":"text"}],"role":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:encap:)","kind":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}]}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:).json index 381c373..9c23cd4 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:).json @@ -1 +1 @@ -{"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encapsulatedKey"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":")"}],"languages":["swift"]}]},{"kind":"parameters","parameters":[{"content":[{"inlineContent":[{"text":"The recipient public key","type":"text"}],"type":"paragraph"}],"name":"publicKey"},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}]},{"name":"context","content":[{"inlineContent":[{"type":"text","text":"The export context"}],"type":"paragraph"}]},{"name":"L","content":[{"inlineContent":[{"type":"text","text":"The length of the export secret"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"text":"The sender private key","type":"text"}],"type":"paragraph"}],"name":"authentication"}]},{"content":[{"anchor":"return-value","text":"Return Value","level":2,"type":"heading"},{"type":"paragraph","inlineContent":[{"type":"text","text":"The encapsulated key and export secret"}]}],"kind":"content"},{"content":[{"text":"Discussion","type":"heading","anchor":"discussion","level":2},{"content":[{"inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"code":"self","type":"codeVoice"},{"type":"text","text":" or L is negative or too large"}],"type":"paragraph"}],"type":"aside","name":"Throws","style":"note"}],"kind":"content"}],"kind":"symbol","sections":[],"metadata":{"roleHeading":"Instance Method","externalID":"s:9SwiftHPKE11CipherSuiteV10sendExport9publicKey4info7context1L14authenticationSays5UInt8VG012encapsulatedH0_AL6secrettAA06PublicH0V_A2LSiAA07PrivateH0VtKF","title":"sendExport(publicKey:info:context:L:authentication:)","symbolKind":"method","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", secret"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":")","kind":"text"}],"modules":[{"name":"SwiftHPKE"}]},"schemaVersion":{"minor":3,"major":0,"patch":0},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)"},"seeAlsoSections":[{"generated":true,"title":"Authenticated mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)"]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:)"]}],"abstract":[{"text":"Generate an export secret in authenticated mode","type":"text"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:ct:aad:encap:)":{"kind":"symbol","type":"topic","abstract":[{"type":"text","text":"Single-shot decryption in authenticated mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:ct:aad:encap:)","title":"open(privateKey:info:authentication:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"ct"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:)":{"kind":"symbol","type":"topic","abstract":[{"text":"Generate an export secret in authenticated mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:)","title":"sendExport(publicKey:info:context:L:authentication:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:encap:)":{"kind":"symbol","type":"topic","abstract":[{"type":"text","text":"Retrieve an export secret in authenticated mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)","title":"receiveExport(privateKey:info:context:L:authentication:encap:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:pt:aad:)":{"kind":"symbol","type":"topic","abstract":[{"type":"text","text":"Single-shot encryption in authenticated mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:pt:aad:)","title":"seal(publicKey:info:authentication:pt:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"role":"symbol"}}} \ No newline at end of file +{"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", secret"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":")","kind":"text"}],"languages":["swift"]}],"kind":"declarations"},{"parameters":[{"content":[{"inlineContent":[{"type":"text","text":"The recipient public key"}],"type":"paragraph"}],"name":"publicKey"},{"name":"info","content":[{"inlineContent":[{"type":"text","text":"The additional information"}],"type":"paragraph"}]},{"name":"context","content":[{"type":"paragraph","inlineContent":[{"text":"The export context","type":"text"}]}]},{"name":"L","content":[{"inlineContent":[{"type":"text","text":"The length of the export secret"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"text":"The sender private key","type":"text"}],"type":"paragraph"}],"name":"authentication"}],"kind":"parameters"},{"content":[{"type":"heading","level":2,"text":"Return Value","anchor":"return-value"},{"inlineContent":[{"type":"text","text":"The encapsulated key and export secret"}],"type":"paragraph"}],"kind":"content"},{"kind":"content","content":[{"type":"heading","text":"Discussion","anchor":"discussion","level":2},{"style":"note","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"self"},{"type":"text","text":" or L is negative or too large"}]}],"name":"Throws","type":"aside"}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","interfaceLanguage":"swift"},"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:)"],"traits":[{"interfaceLanguage":"swift"}]}],"metadata":{"title":"sendExport(publicKey:info:context:L:authentication:)","modules":[{"name":"SwiftHPKE"}],"symbolKind":"method","externalID":"s:9SwiftHPKE11CipherSuiteV10sendExport9publicKey4info7context1L14authenticationSays5UInt8VG012encapsulatedH0_AL6secrettAA06PublicH0V_A2LSiAA07PrivateH0VtKF","role":"symbol","roleHeading":"Instance Method","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}]},"abstract":[{"text":"Generate an export secret in authenticated mode","type":"text"}],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)"],"generated":true,"title":"Authenticated mode"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:ct:aad:encap:)":{"abstract":[{"type":"text","text":"Single-shot decryption in authenticated mode"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","kind":"symbol","role":"symbol","title":"open(privateKey:info:authentication:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:encap:)":{"abstract":[{"type":"text","text":"Retrieve an export secret in authenticated mode"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)","kind":"symbol","role":"symbol","title":"receiveExport(privateKey:info:context:L:authentication:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:pt:aad:)":{"abstract":[{"type":"text","text":"Single-shot encryption in authenticated mode"}],"fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pt"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}],"type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:pt:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","kind":"symbol","role":"symbol","title":"seal(publicKey:info:authentication:pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:)":{"abstract":[{"type":"text","text":"Generate an export secret in authenticated mode"}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":")","kind":"text"}],"type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","kind":"symbol","role":"symbol","title":"sendExport(publicKey:info:context:L:authentication:)"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:psk:pskid:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:psk:pskid:).json index c973d2a..17cb973 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:psk:pskid:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:psk:pskid:).json @@ -1 +1 @@ -{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"kind":"symbol","sections":[],"abstract":[{"type":"text","text":"Generate an export secret in authenticated, preshared key mode"}],"schemaVersion":{"patch":0,"major":0,"minor":3},"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)"],"title":"Authenticated, preshared key mode","generated":true}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","interfaceLanguage":"swift"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:psk:pskid:)"]}],"metadata":{"symbolKind":"method","externalID":"s:9SwiftHPKE11CipherSuiteV10sendExport9publicKey4info7context1L14authentication3psk0L2IdSays5UInt8VG012encapsulatedH0_AN6secrettAA06PublicH0V_A2NSiAA07PrivateH0VA2NtKF","modules":[{"name":"SwiftHPKE"}],"title":"sendExport(publicKey:info:context:L:authentication:psk:pskId:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encapsulatedKey"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":")","kind":"text"}],"role":"symbol","roleHeading":"Instance Method"},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}]}]},{"parameters":[{"name":"publicKey","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient public key"}]}]},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}]},{"name":"context","content":[{"inlineContent":[{"text":"The export context","type":"text"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"The length of the export secret","type":"text"}]}],"name":"L"},{"name":"authentication","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The sender private key"}]}]},{"name":"psk","content":[{"type":"paragraph","inlineContent":[{"text":"The preshared key","type":"text"}]}]},{"name":"pskId","content":[{"type":"paragraph","inlineContent":[{"text":"The preshared key id","type":"text"}]}]}],"kind":"parameters"},{"kind":"content","content":[{"text":"Return Value","level":2,"anchor":"return-value","type":"heading"},{"type":"paragraph","inlineContent":[{"type":"text","text":"The encapsulated key and export secret"}]}]},{"kind":"content","content":[{"type":"heading","level":2,"text":"Discussion","anchor":"discussion"},{"type":"aside","name":"Throws","style":"note","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if one of the keys does not match ","type":"text"},{"type":"codeVoice","code":"self"},{"type":"text","text":" or the "},{"type":"codeVoice","code":"psk"},{"text":" parameters are inconsistent or L is negative or too large","type":"text"}]}]}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)":{"kind":"symbol","type":"topic","abstract":[{"type":"text","text":"Single-shot decryption in authenticated, preshared key mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)","title":"open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:psk:pskId:)":{"kind":"symbol","type":"topic","abstract":[{"type":"text","text":"Generate an export secret in authenticated, preshared key mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:psk:pskid:)","title":"sendExport(publicKey:info:context:L:authentication:psk:pskId:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:psk:pskId:pt:aad:)":{"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:psk:pskid:pt:aad:)","abstract":[{"type":"text","text":"Single-shot encryption in authenticated, preshared key mode"}],"title":"seal(publicKey:info:authentication:psk:pskId:pt:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":")"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)":{"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)","abstract":[{"type":"text","text":"Retrieve an export secret in authenticated, preshared key mode"}],"title":"receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"role":"symbol"}}} \ No newline at end of file +{"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","interfaceLanguage":"swift"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:psk:pskid:)"]}],"schemaVersion":{"minor":3,"major":0,"patch":0},"sections":[],"kind":"symbol","metadata":{"role":"symbol","roleHeading":"Instance Method","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", secret"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}],"title":"sendExport(publicKey:info:context:L:authentication:psk:pskId:)","externalID":"s:9SwiftHPKE11CipherSuiteV10sendExport9publicKey4info7context1L14authentication3psk0L2IdSays5UInt8VG012encapsulatedH0_AN6secrettAA06PublicH0V_A2NSiAA07PrivateH0VA2NtKF","symbolKind":"method","modules":[{"name":"SwiftHPKE"}]},"abstract":[{"text":"Generate an export secret in authenticated, preshared key mode","type":"text"}],"seeAlsoSections":[{"title":"Authenticated, preshared key mode","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)"]}],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"sendExport"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"languages":["swift"]}]},{"kind":"parameters","parameters":[{"name":"publicKey","content":[{"type":"paragraph","inlineContent":[{"text":"The recipient public key","type":"text"}]}]},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}]},{"name":"context","content":[{"inlineContent":[{"text":"The export context","type":"text"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"type":"text","text":"The length of the export secret"}],"type":"paragraph"}],"name":"L"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The sender private key"}]}],"name":"authentication"},{"content":[{"type":"paragraph","inlineContent":[{"text":"The preshared key","type":"text"}]}],"name":"psk"},{"content":[{"type":"paragraph","inlineContent":[{"text":"The preshared key id","type":"text"}]}],"name":"pskId"}]},{"content":[{"text":"Return Value","level":2,"type":"heading","anchor":"return-value"},{"type":"paragraph","inlineContent":[{"type":"text","text":"The encapsulated key and export secret"}]}],"kind":"content"},{"kind":"content","content":[{"level":2,"anchor":"discussion","text":"Discussion","type":"heading"},{"type":"aside","content":[{"inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"self"},{"text":" or the ","type":"text"},{"type":"codeVoice","code":"psk"},{"type":"text","text":" parameters are inconsistent or L is negative or too large"}],"type":"paragraph"}],"name":"Throws","style":"note"}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:psk:pskId:)":{"kind":"symbol","role":"symbol","abstract":[{"text":"Generate an export secret in authenticated, preshared key mode","type":"text"}],"fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encapsulatedKey"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}],"title":"sendExport(publicKey:info:context:L:authentication:psk:pskId:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:psk:pskid:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:psk:pskId:pt:aad:)":{"kind":"symbol","role":"symbol","abstract":[{"type":"text","text":"Single-shot encryption in authenticated, preshared key mode"}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pt"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ct","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":")"}],"type":"topic","title":"seal(publicKey:info:authentication:psk:pskId:pt:aad:)","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:psk:pskid:pt:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)":{"kind":"symbol","role":"symbol","abstract":[{"type":"text","text":"Single-shot decryption in authenticated, preshared key mode"}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"type":"topic","title":"open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)":{"kind":"symbol","role":"symbol","abstract":[{"type":"text","text":"Retrieve an export secret in authenticated, preshared key mode"}],"fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"title":"receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:psk:pskid:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:psk:pskid:).json index 1a74087..b34fc25 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:psk:pskid:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:psk:pskid:).json @@ -1 +1 @@ -{"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","interfaceLanguage":"swift"},"schemaVersion":{"minor":3,"patch":0,"major":0},"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"abstract":[{"text":"Generate an export secret in preshared key mode","type":"text"}],"metadata":{"roleHeading":"Instance Method","title":"sendExport(publicKey:info:context:L:psk:pskId:)","modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":")","kind":"text"}],"symbolKind":"method","externalID":"s:9SwiftHPKE11CipherSuiteV10sendExport9publicKey4info7context1L3psk0K2IdSays5UInt8VG012encapsulatedH0_AM6secrettAA06PublicH0V_A2MSiA2MtKF","role":"symbol"},"sections":[],"primaryContentSections":[{"declarations":[{"languages":["swift"],"tokens":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encapsulatedKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", secret"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"platforms":["macOS"]}],"kind":"declarations"},{"parameters":[{"name":"publicKey","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient public key"}]}]},{"content":[{"inlineContent":[{"type":"text","text":"The additional information"}],"type":"paragraph"}],"name":"info"},{"name":"context","content":[{"type":"paragraph","inlineContent":[{"text":"The export context","type":"text"}]}]},{"name":"L","content":[{"inlineContent":[{"type":"text","text":"The length of the export secret"}],"type":"paragraph"}]},{"name":"psk","content":[{"inlineContent":[{"type":"text","text":"The preshared key"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key id"}]}],"name":"pskId"}],"kind":"parameters"},{"kind":"content","content":[{"level":2,"type":"heading","text":"Return Value","anchor":"return-value"},{"type":"paragraph","inlineContent":[{"type":"text","text":"The encapsulated key and export secret"}]}]},{"content":[{"type":"heading","text":"Discussion","level":2,"anchor":"discussion"},{"type":"aside","name":"Throws","style":"note","content":[{"inlineContent":[{"type":"text","text":"An exception if "},{"code":"publicKey","type":"codeVoice"},{"text":" does not match ","type":"text"},{"type":"codeVoice","code":"self"},{"text":" or the ","type":"text"},{"type":"codeVoice","code":"psk"},{"type":"text","text":" parameters are inconsistent or L is negative or too large"}],"type":"paragraph"}]}],"kind":"content"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:psk:pskid:)"]}],"seeAlsoSections":[{"generated":true,"title":"Preshared key mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:psk:pskId:ct:aad:encap:)":{"kind":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"abstract":[{"type":"text","text":"Single-shot decryption in preshared key mode"}],"type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:psk:pskid:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","title":"open(privateKey:info:psk:pskId:ct:aad:encap:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:psk:pskId:encap:)":{"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"receiveExport"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"Retrieve an export secret in preshared key mode"}],"title":"receiveExport(privateKey:info:context:L:psk:pskId:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:psk:pskid:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:psk:pskId:pt:aad:)":{"kind":"symbol","role":"symbol","abstract":[{"text":"Single-shot encryption in preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:psk:pskid:pt:aad:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","title":"seal(publicKey:info:psk:pskId:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", ct"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":")"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:psk:pskId:)":{"abstract":[{"text":"Generate an export secret in preshared key mode","type":"text"}],"role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:psk:pskid:)","kind":"symbol","type":"topic","title":"sendExport(publicKey:info:context:L:psk:pskId:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":")","kind":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"}}} \ No newline at end of file +{"schemaVersion":{"major":0,"minor":3,"patch":0},"kind":"symbol","metadata":{"roleHeading":"Instance Method","externalID":"s:9SwiftHPKE11CipherSuiteV10sendExport9publicKey4info7context1L3psk0K2IdSays5UInt8VG012encapsulatedH0_AM6secrettAA06PublicH0V_A2MSiA2MtKF","modules":[{"name":"SwiftHPKE"}],"symbolKind":"method","title":"sendExport(publicKey:info:context:L:psk:pskId:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", secret"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}],"role":"symbol"},"abstract":[{"type":"text","text":"Generate an export secret in preshared key mode"}],"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:psk:pskid:)"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","interfaceLanguage":"swift"},"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)"],"generated":true,"title":"Preshared key mode"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"sections":[],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encapsulatedKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", secret"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":")"}],"platforms":["macOS"]}]},{"kind":"parameters","parameters":[{"content":[{"type":"paragraph","inlineContent":[{"text":"The recipient public key","type":"text"}]}],"name":"publicKey"},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}]},{"name":"context","content":[{"type":"paragraph","inlineContent":[{"text":"The export context","type":"text"}]}]},{"name":"L","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The length of the export secret"}]}]},{"name":"psk","content":[{"type":"paragraph","inlineContent":[{"text":"The preshared key","type":"text"}]}]},{"name":"pskId","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key id"}]}]}]},{"content":[{"text":"Return Value","level":2,"type":"heading","anchor":"return-value"},{"type":"paragraph","inlineContent":[{"type":"text","text":"The encapsulated key and export secret"}]}],"kind":"content"},{"kind":"content","content":[{"anchor":"discussion","level":2,"type":"heading","text":"Discussion"},{"type":"aside","style":"note","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if "},{"code":"publicKey","type":"codeVoice"},{"text":" does not match ","type":"text"},{"code":"self","type":"codeVoice"},{"type":"text","text":" or the "},{"type":"codeVoice","code":"psk"},{"type":"text","text":" parameters are inconsistent or L is negative or too large"}]}],"name":"Throws"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:psk:pskId:pt:aad:)":{"kind":"symbol","abstract":[{"text":"Single-shot encryption in preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:psk:pskid:pt:aad:)","type":"topic","title":"seal(publicKey:info:psk:pskId:pt:aad:)","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ct","kind":"text"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:psk:pskId:encap:)":{"kind":"symbol","abstract":[{"text":"Retrieve an export secret in preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:psk:pskid:encap:)","type":"topic","title":"receiveExport(privateKey:info:context:L:psk:pskId:encap:)","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:psk:pskId:ct:aad:encap:)":{"kind":"symbol","abstract":[{"type":"text","text":"Single-shot decryption in preshared key mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:psk:pskid:ct:aad:encap:)","type":"topic","title":"open(privateKey:info:psk:pskId:ct:aad:encap:)","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"open"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:psk:pskId:)":{"kind":"symbol","abstract":[{"type":"text","text":"Generate an export secret in preshared key mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:psk:pskid:)","type":"topic","title":"sendExport(publicKey:info:context:L:psk:pskId:)","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encapsulatedKey"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", secret"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":")"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/cryptokit.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/cryptokit.json index aff2b1d..911e016 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/cryptokit.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/cryptokit.json @@ -1 +1 @@ -{"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit"},"kind":"article","abstract":[{"text":"SwiftHPKE is compatible with Apple’s CryptoKit framework","type":"text"}],"seeAlsoSections":[{"title":"Additional Information","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References"],"generated":true}],"primaryContentSections":[{"kind":"content","content":[{"type":"heading","level":2,"text":"","anchor":""},{"type":"paragraph","inlineContent":[{"type":"text","text":"The SwiftHPKE keys of type "},{"type":"codeVoice","code":".P256"},{"type":"text","text":", "},{"type":"codeVoice","code":".P384"},{"type":"text","text":", "},{"type":"codeVoice","code":".P521"},{"type":"text","text":" and "},{"code":".X25519","type":"codeVoice"},{"type":"text","text":" correspond to CryptoKit keys of type "},{"type":"codeVoice","code":"P256"},{"type":"text","text":", "},{"type":"codeVoice","code":"P384"},{"text":", ","type":"text"},{"type":"codeVoice","code":"P521"},{"text":" and ","type":"text"},{"code":"Curve25519","type":"codeVoice"},{"type":"text","text":". Keys of type "},{"type":"codeVoice","code":".X448"},{"text":" is not supported in CryptoKit.","type":"text"}]},{"type":"paragraph","inlineContent":[{"text":"To convert CryptoKit ","type":"text"},{"type":"codeVoice","code":"P256"},{"type":"text","text":" keys (similarly for "},{"type":"codeVoice","code":"P384"},{"type":"text","text":" and "},{"code":"P521","type":"codeVoice"},{"type":"text","text":") - say "},{"code":"ckPriv","type":"codeVoice"},{"text":" and ","type":"text"},{"type":"codeVoice","code":"ckPub"},{"text":" to SwiftHPKE keys:","type":"text"}]},{"code":["let hpkePriv = try PrivateKey(der: Bytes(ckPriv.derRepresentation))","let hpkePub = try PublicKey(der: Bytes(ckPub.derRepresentation))"],"type":"codeListing","syntax":"swift"},{"inlineContent":[{"type":"text","text":"To convert CryptoKit "},{"type":"codeVoice","code":"Curve25519"},{"type":"text","text":" keys - say "},{"type":"codeVoice","code":"ckPriv"},{"type":"text","text":" and "},{"type":"codeVoice","code":"ckPub"},{"text":" to SwiftHPKE keys:","type":"text"}],"type":"paragraph"},{"syntax":"swift","code":["let hpkePriv = try PrivateKey(kem: .X25519, bytes: Bytes(ckPriv.rawRepresentation))","let hpkePub = try PublicKey(kem: .X25519, bytes: Bytes(ckPub.rawRepresentation))"],"type":"codeListing"},{"inlineContent":[{"type":"text","text":"To convert SwiftHPKE "},{"code":".P256","type":"codeVoice"},{"type":"text","text":" keys (similarly for "},{"type":"codeVoice","code":".P384"},{"text":" and ","type":"text"},{"type":"codeVoice","code":".P521"},{"type":"text","text":") - say "},{"type":"codeVoice","code":"hpkePriv"},{"text":" and ","type":"text"},{"type":"codeVoice","code":"hpkePub"},{"text":" to CryptoKit keys:","type":"text"}],"type":"paragraph"},{"syntax":"swift","code":["let ckPriv = try CryptoKit.P256.KeyAgreement.PrivateKey(derRepresentation: hpkePriv.der)","let ckPub = try CryptoKit.P256.KeyAgreement.PublicKey(derRepresentation: hpkePub.der)"],"type":"codeListing"},{"type":"paragraph","inlineContent":[{"type":"text","text":"To convert SwiftHPKE "},{"type":"codeVoice","code":".X25519"},{"text":" keys - say ","type":"text"},{"type":"codeVoice","code":"hpkePriv"},{"text":" and ","type":"text"},{"type":"codeVoice","code":"hpkePub"},{"type":"text","text":" to CryptoKit keys:"}]},{"code":["let ckPriv = try CryptoKit.Curve25519.KeyAgreement.PrivateKey(rawRepresentation: hpkePriv.bytes)","let ckPub = try CryptoKit.Curve25519.KeyAgreement.PublicKey(rawRepresentation: hpkePub.bytes)"],"type":"codeListing","syntax":"swift"}]}],"schemaVersion":{"major":0,"patch":0,"minor":3},"sections":[],"metadata":{"modules":[{"name":"SwiftHPKE"}],"roleHeading":"Article","role":"article","title":"CryptoKit Compatibility"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/cryptokit"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KeyManagement":{"role":"article","title":"Key Management","abstract":[{"type":"text","text":"Creating new keys and loading exsisting keys"}],"url":"\/documentation\/swifthpke\/keymanagement","kind":"article","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/SecretExport":{"kind":"article","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","role":"article","url":"\/documentation\/swifthpke\/secretexport","abstract":[{"type":"text","text":"Creating secret messages"}],"title":"Secret Export"},"doc://SwiftHPKE/documentation/SwiftHPKE/References":{"role":"article","title":"References","abstract":[{"type":"text","text":"Algorithms from the following books and papers have been used in the implementation"}],"url":"\/documentation\/swifthpke\/references","kind":"article","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References"},"doc://SwiftHPKE/documentation/SwiftHPKE/Performance":{"url":"\/documentation\/swifthpke\/performance","title":"Performance","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","abstract":[{"type":"text","text":"Encryption and decryption speed"}],"role":"article","kind":"article","type":"topic"}}} \ No newline at end of file +{"schemaVersion":{"major":0,"patch":0,"minor":3},"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References"],"title":"Additional Information","generated":true}],"kind":"article","primaryContentSections":[{"kind":"content","content":[{"anchor":"","text":"","level":2,"type":"heading"},{"inlineContent":[{"text":"The SwiftHPKE keys of type ","type":"text"},{"code":".P256","type":"codeVoice"},{"type":"text","text":", "},{"type":"codeVoice","code":".P384"},{"type":"text","text":", "},{"type":"codeVoice","code":".P521"},{"text":" and ","type":"text"},{"type":"codeVoice","code":".X25519"},{"type":"text","text":" correspond to CryptoKit keys of type "},{"code":"P256","type":"codeVoice"},{"type":"text","text":", "},{"type":"codeVoice","code":"P384"},{"type":"text","text":", "},{"code":"P521","type":"codeVoice"},{"text":" and ","type":"text"},{"type":"codeVoice","code":"Curve25519"},{"type":"text","text":". Keys of type "},{"code":".X448","type":"codeVoice"},{"text":" is not supported in CryptoKit.","type":"text"}],"type":"paragraph"},{"type":"paragraph","inlineContent":[{"type":"text","text":"To convert CryptoKit "},{"type":"codeVoice","code":"P256"},{"type":"text","text":" keys (similarly for "},{"type":"codeVoice","code":"P384"},{"type":"text","text":" and "},{"type":"codeVoice","code":"P521"},{"type":"text","text":") - say "},{"type":"codeVoice","code":"ckPriv"},{"type":"text","text":" and "},{"type":"codeVoice","code":"ckPub"},{"type":"text","text":" to SwiftHPKE keys:"}]},{"type":"codeListing","code":["let hpkePriv = try PrivateKey(der: Bytes(ckPriv.derRepresentation))","let hpkePub = try PublicKey(der: Bytes(ckPub.derRepresentation))"],"syntax":"swift"},{"inlineContent":[{"type":"text","text":"To convert CryptoKit "},{"code":"Curve25519","type":"codeVoice"},{"type":"text","text":" keys - say "},{"code":"ckPriv","type":"codeVoice"},{"type":"text","text":" and "},{"type":"codeVoice","code":"ckPub"},{"text":" to SwiftHPKE keys:","type":"text"}],"type":"paragraph"},{"type":"codeListing","code":["let hpkePriv = try PrivateKey(kem: .X25519, bytes: Bytes(ckPriv.rawRepresentation))","let hpkePub = try PublicKey(kem: .X25519, bytes: Bytes(ckPub.rawRepresentation))"],"syntax":"swift"},{"type":"paragraph","inlineContent":[{"type":"text","text":"To convert SwiftHPKE "},{"type":"codeVoice","code":".P256"},{"text":" keys (similarly for ","type":"text"},{"code":".P384","type":"codeVoice"},{"type":"text","text":" and "},{"type":"codeVoice","code":".P521"},{"type":"text","text":") - say "},{"code":"hpkePriv","type":"codeVoice"},{"type":"text","text":" and "},{"type":"codeVoice","code":"hpkePub"},{"type":"text","text":" to CryptoKit keys:"}]},{"type":"codeListing","syntax":"swift","code":["let ckPriv = try CryptoKit.P256.KeyAgreement.PrivateKey(derRepresentation: hpkePriv.der)","let ckPub = try CryptoKit.P256.KeyAgreement.PublicKey(derRepresentation: hpkePub.der)"]},{"type":"paragraph","inlineContent":[{"text":"To convert SwiftHPKE ","type":"text"},{"type":"codeVoice","code":".X25519"},{"type":"text","text":" keys - say "},{"type":"codeVoice","code":"hpkePriv"},{"type":"text","text":" and "},{"code":"hpkePub","type":"codeVoice"},{"type":"text","text":" to CryptoKit keys:"}]},{"code":["let ckPriv = try CryptoKit.Curve25519.KeyAgreement.PrivateKey(rawRepresentation: hpkePriv.bytes)","let ckPub = try CryptoKit.Curve25519.KeyAgreement.PublicKey(rawRepresentation: hpkePub.bytes)"],"type":"codeListing","syntax":"swift"},{"type":"paragraph","inlineContent":[{"type":"text","text":"Messages sealed by CryptoKit in Base mode, Preshared Key mode, Authenticated mode or Authenticated, Preshared Key mode"},{"text":" ","type":"text"},{"type":"text","text":"can be opened by SwiftHPKE in the same mode using the SwiftHPKE version of the keys."}]},{"type":"paragraph","inlineContent":[{"type":"text","text":"Likewise, messages sealed by SwiftHPKE in Base mode, Preshared Key mode, Authenticated mode or Authenticated, Preshared Key mode"},{"type":"text","text":" "},{"text":"can be opened by CryptoKit in the same mode using the CryptoKit version of the keys.","type":"text"}]}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"metadata":{"role":"article","modules":[{"name":"SwiftHPKE"}],"title":"CryptoKit Compatibility","roleHeading":"Article"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/cryptokit"]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","interfaceLanguage":"swift"},"sections":[],"abstract":[{"type":"text","text":"SwiftHPKE is compatible with Apple’s CryptoKit framework"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KeyManagement":{"role":"article","title":"Key Management","url":"\/documentation\/swifthpke\/keymanagement","type":"topic","kind":"article","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","abstract":[{"text":"Creating new keys and loading exsisting keys","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/SecretExport":{"role":"article","title":"Secret Export","url":"\/documentation\/swifthpke\/secretexport","type":"topic","kind":"article","abstract":[{"text":"Creating secret messages","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Performance":{"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","title":"Performance","url":"\/documentation\/swifthpke\/performance","kind":"article","abstract":[{"type":"text","text":"Encryption and decryption speed"}],"role":"article"},"doc://SwiftHPKE/documentation/SwiftHPKE/References":{"role":"article","title":"References","url":"\/documentation\/swifthpke\/references","type":"topic","abstract":[{"text":"Algorithms from the following books and papers have been used in the implementation","type":"text"}],"kind":"article","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception.json index 023dd71..86ab407 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception.json @@ -1 +1 @@ -{"kind":"symbol","relationshipsSections":[{"kind":"relationships","title":"Conforms To","type":"conformsTo","identifiers":["doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","doc:\/\/SwiftHPKE\/SQ","doc:\/\/SwiftHPKE\/s5ErrorP","doc:\/\/SwiftHPKE\/SH","doc:\/\/SwiftHPKE\/s8SendableP"]}],"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"],"title":"Enumerations"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception"]}],"sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","interfaceLanguage":"swift"},"topicSections":[{"title":"Enumeration Cases","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/asn1Structure","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/base64","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/decodePoint","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/derivedKeyError","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportOnlyError","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportSize","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/keyMismatch","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pemStructure","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/privateKeyParameter","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pskError","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/publicKeyParameter","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/smallOrder"]},{"title":"Instance Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/description"]},{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Equatable-Implementations","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Error-Implementations"],"title":"Default Implementations"}],"metadata":{"externalID":"s:9SwiftHPKE13HPKEExceptionO","navigatorTitle":[{"kind":"identifier","text":"HPKEException"}],"modules":[{"name":"SwiftHPKE"}],"fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"HPKEException","kind":"identifier"}],"title":"HPKEException","symbolKind":"enum","role":"symbol","roleHeading":"Enumeration"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"schemaVersion":{"major":0,"minor":3,"patch":0},"abstract":[{"text":"The HPKE exceptions","type":"text"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"HPKEException","kind":"identifier"}],"platforms":["macOS"]}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/smallOrder":{"abstract":[{"type":"text","text":"X25519, X448 small order error"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception\/smallorder","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/smallOrder","title":"HPKEException.smallOrder","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"smallOrder","kind":"identifier"}],"kind":"symbol","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"kind":"symbol","title":"HPKEException","url":"\/documentation\/swifthpke\/hpkeexception","role":"symbol","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/base64":{"role":"symbol","url":"\/documentation\/swifthpke\/hpkeexception\/base64","kind":"symbol","title":"HPKEException.base64","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"base64"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/base64","abstract":[{"type":"text","text":"Base64 decoding exception"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/derivedKeyError":{"abstract":[{"text":"Derived key error","type":"text"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception\/derivedkeyerror","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/derivedKeyError","title":"HPKEException.derivedKeyError","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"derivedKeyError","kind":"identifier"}],"kind":"symbol","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/pskError":{"role":"symbol","title":"HPKEException.pskError","abstract":[{"type":"text","text":"Inconsistent PSK parameters"}],"kind":"symbol","url":"\/documentation\/swifthpke\/hpkeexception\/pskerror","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pskError","kind":"identifier"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pskError"},"doc://SwiftHPKE/SQ":{"type":"unresolvable","title":"Swift.Equatable","identifier":"doc:\/\/SwiftHPKE\/SQ"},"doc://SwiftHPKE/s23CustomStringConvertibleP":{"type":"unresolvable","title":"Swift.CustomStringConvertible","identifier":"doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/publicKeyParameter":{"abstract":[{"type":"text","text":"Invalid parameter to PublicKey constructor"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception\/publickeyparameter","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/publicKeyParameter","title":"HPKEException.publicKeyParameter","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"publicKeyParameter","kind":"identifier"}],"kind":"symbol","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/pemStructure":{"abstract":[{"text":"PEM structure is wrong","type":"text"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception\/pemstructure","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pemStructure","title":"HPKEException.pemStructure","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pemStructure","kind":"identifier"}],"kind":"symbol","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/exportOnlyError":{"abstract":[{"type":"text","text":"Export only error"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception\/exportonlyerror","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportOnlyError","title":"HPKEException.exportOnlyError","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"exportOnlyError","kind":"identifier"}],"kind":"symbol","role":"symbol"},"doc://SwiftHPKE/s5ErrorP":{"identifier":"doc:\/\/SwiftHPKE\/s5ErrorP","title":"Swift.Error","type":"unresolvable"},"doc://SwiftHPKE/SH":{"identifier":"doc:\/\/SwiftHPKE\/SH","title":"Swift.Hashable","type":"unresolvable"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/Error-Implementations":{"url":"\/documentation\/swifthpke\/hpkeexception\/error-implementations","title":"Error Implementations","type":"topic","role":"collectionGroup","kind":"article","abstract":[],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Error-Implementations"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"AEAD","kind":"identifier"}],"navigatorTitle":[{"text":"AEAD","kind":"identifier"}],"abstract":[{"text":"The AEAD encryption algorithms","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","url":"\/documentation\/swifthpke\/aead","kind":"symbol","type":"topic","title":"AEAD"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"abstract":[{"text":"The key derivation functions","type":"text"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","navigatorTitle":[{"kind":"identifier","text":"KDF"}],"url":"\/documentation\/swifthpke\/kdf","type":"topic","title":"KDF"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","navigatorTitle":[{"text":"KEM","kind":"identifier"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"title":"KEM","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"KEM","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/keyMismatch":{"url":"\/documentation\/swifthpke\/hpkeexception\/keymismatch","title":"HPKEException.keyMismatch","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"keyMismatch","kind":"identifier"}],"type":"topic","role":"symbol","kind":"symbol","abstract":[{"text":"CipherSuite key mismatch","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/keyMismatch"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/privateKeyParameter":{"url":"\/documentation\/swifthpke\/hpkeexception\/privatekeyparameter","title":"HPKEException.privateKeyParameter","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"privateKeyParameter","kind":"identifier"}],"type":"topic","role":"symbol","kind":"symbol","abstract":[{"text":"Invalid parameter to PrivateKey constructor","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/privateKeyParameter"},"doc://SwiftHPKE/s8SendableP":{"identifier":"doc:\/\/SwiftHPKE\/s8SendableP","title":"Swift.Sendable","type":"unresolvable"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/decodePoint":{"url":"\/documentation\/swifthpke\/hpkeexception\/decodepoint","title":"HPKEException.decodePoint","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"decodePoint","kind":"identifier"}],"type":"topic","role":"symbol","kind":"symbol","abstract":[{"text":"Decode point error","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/decodePoint"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/Equatable-Implementations":{"url":"\/documentation\/swifthpke\/hpkeexception\/equatable-implementations","title":"Equatable Implementations","type":"topic","role":"collectionGroup","kind":"article","abstract":[],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Equatable-Implementations"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/description":{"url":"\/documentation\/swifthpke\/hpkeexception\/description","title":"description","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"kind":"text","text":": "},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"}],"type":"topic","role":"symbol","kind":"symbol","abstract":[{"text":"Textual description of ","type":"text"},{"type":"codeVoice","code":"self"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/description"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/asn1Structure":{"url":"\/documentation\/swifthpke\/hpkeexception\/asn1structure","title":"HPKEException.asn1Structure","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"asn1Structure"}],"type":"topic","role":"symbol","kind":"symbol","abstract":[{"type":"text","text":"ASN1 structure is wrong"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/asn1Structure"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/exportSize":{"kind":"symbol","type":"topic","role":"symbol","abstract":[{"text":"Export size is negative or too large","type":"text"}],"title":"HPKEException.exportSize","url":"\/documentation\/swifthpke\/hpkeexception\/exportsize","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportSize","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"exportSize"}]}}} \ No newline at end of file +{"abstract":[{"type":"text","text":"The HPKE exceptions"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"HPKEException"}],"languages":["swift"]}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"kind":"symbol","sections":[],"topicSections":[{"title":"Enumeration Cases","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/asn1Structure","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/base64","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/decodePoint","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/derivedKeyError","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportOnlyError","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportSize","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/keyMismatch","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pemStructure","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/privateKeyParameter","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pskError","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/publicKeyParameter","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/smallOrder"]},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/description"],"title":"Instance Properties"},{"title":"Default Implementations","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Equatable-Implementations","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Error-Implementations"],"generated":true}],"metadata":{"symbolKind":"enum","title":"HPKEException","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"HPKEException"}],"modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE13HPKEExceptionO","role":"symbol","navigatorTitle":[{"kind":"identifier","text":"HPKEException"}],"roleHeading":"Enumeration"},"relationshipsSections":[{"title":"Conforms To","type":"conformsTo","identifiers":["doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","doc:\/\/SwiftHPKE\/SQ","doc:\/\/SwiftHPKE\/s5ErrorP","doc:\/\/SwiftHPKE\/SH","doc:\/\/SwiftHPKE\/s8SendableP"],"kind":"relationships"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"},"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception"],"traits":[{"interfaceLanguage":"swift"}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"seeAlsoSections":[{"generated":true,"title":"Enumerations","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/privateKeyParameter":{"abstract":[{"text":"Invalid parameter to PrivateKey constructor","type":"text"}],"title":"HPKEException.privateKeyParameter","url":"\/documentation\/swifthpke\/hpkeexception\/privatekeyparameter","type":"topic","role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"privateKeyParameter","kind":"identifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/privateKeyParameter","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/keyMismatch":{"kind":"symbol","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"keyMismatch"}],"url":"\/documentation\/swifthpke\/hpkeexception\/keymismatch","abstract":[{"type":"text","text":"CipherSuite key mismatch"}],"type":"topic","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/keyMismatch","title":"HPKEException.keyMismatch"},"doc://SwiftHPKE/SH":{"identifier":"doc:\/\/SwiftHPKE\/SH","type":"unresolvable","title":"Swift.Hashable"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/smallOrder":{"type":"topic","kind":"symbol","role":"symbol","url":"\/documentation\/swifthpke\/hpkeexception\/smallorder","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/smallOrder","abstract":[{"text":"X25519, X448 small order error","type":"text"}],"fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"smallOrder","kind":"identifier"}],"title":"HPKEException.smallOrder"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/pemStructure":{"title":"HPKEException.pemStructure","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pemStructure","abstract":[{"text":"PEM structure is wrong","type":"text"}],"kind":"symbol","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"pemStructure"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception\/pemstructure","role":"symbol"},"doc://SwiftHPKE/s5ErrorP":{"identifier":"doc:\/\/SwiftHPKE\/s5ErrorP","type":"unresolvable","title":"Swift.Error"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/derivedKeyError":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/derivedKeyError","abstract":[{"text":"Derived key error","type":"text"}],"title":"HPKEException.derivedKeyError","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"derivedKeyError"}],"url":"\/documentation\/swifthpke\/hpkeexception\/derivedkeyerror","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"url":"\/documentation\/swifthpke\/hpkeexception","title":"HPKEException","role":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","abstract":[{"type":"text","text":"The HPKE exceptions"}],"navigatorTitle":[{"kind":"identifier","text":"HPKEException"}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"HPKEException","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"KEM"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"url":"\/documentation\/swifthpke\/kem","kind":"symbol","title":"KEM","type":"topic","role":"symbol"},"doc://SwiftHPKE/SQ":{"identifier":"doc:\/\/SwiftHPKE\/SQ","type":"unresolvable","title":"Swift.Equatable"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/decodePoint":{"type":"topic","abstract":[{"type":"text","text":"Decode point error"}],"kind":"symbol","role":"symbol","title":"HPKEException.decodePoint","url":"\/documentation\/swifthpke\/hpkeexception\/decodepoint","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/decodePoint","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"decodePoint"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"kind":"symbol","url":"\/documentation\/swifthpke\/kdf","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","navigatorTitle":[{"text":"KDF","kind":"identifier"}],"type":"topic","abstract":[{"type":"text","text":"The key derivation functions"}],"role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"title":"KDF"},"doc://SwiftHPKE/s8SendableP":{"identifier":"doc:\/\/SwiftHPKE\/s8SendableP","type":"unresolvable","title":"Swift.Sendable"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/pskError":{"fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"pskError","kind":"identifier"}],"role":"symbol","kind":"symbol","title":"HPKEException.pskError","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pskError","type":"topic","url":"\/documentation\/swifthpke\/hpkeexception\/pskerror","abstract":[{"type":"text","text":"Inconsistent PSK parameters"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/description":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/description","role":"symbol","title":"description","url":"\/documentation\/swifthpke\/hpkeexception\/description","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"type":"topic","abstract":[{"type":"text","text":"Textual description of "},{"type":"codeVoice","code":"self"}]},"doc://SwiftHPKE/s23CustomStringConvertibleP":{"identifier":"doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","type":"unresolvable","title":"Swift.CustomStringConvertible"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/publicKeyParameter":{"type":"topic","role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"publicKeyParameter","kind":"identifier"}],"title":"HPKEException.publicKeyParameter","kind":"symbol","abstract":[{"type":"text","text":"Invalid parameter to PublicKey constructor"}],"url":"\/documentation\/swifthpke\/hpkeexception\/publickeyparameter","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/publicKeyParameter"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/exportOnlyError":{"type":"topic","title":"HPKEException.exportOnlyError","role":"symbol","url":"\/documentation\/swifthpke\/hpkeexception\/exportonlyerror","abstract":[{"text":"Export only error","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportOnlyError","kind":"symbol","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"exportOnlyError","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/asn1Structure":{"fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"asn1Structure","kind":"identifier"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/asn1Structure","title":"HPKEException.asn1Structure","type":"topic","url":"\/documentation\/swifthpke\/hpkeexception\/asn1structure","abstract":[{"type":"text","text":"ASN1 structure is wrong"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/Equatable-Implementations":{"type":"topic","title":"Equatable Implementations","role":"collectionGroup","url":"\/documentation\/swifthpke\/hpkeexception\/equatable-implementations","abstract":[],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Equatable-Implementations","kind":"article"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/base64":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/base64","role":"symbol","title":"HPKEException.base64","url":"\/documentation\/swifthpke\/hpkeexception\/base64","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"base64"}],"type":"topic","abstract":[{"type":"text","text":"Base64 decoding exception"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/exportSize":{"abstract":[{"type":"text","text":"Export size is negative or too large"}],"role":"symbol","title":"HPKEException.exportSize","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportSize","url":"\/documentation\/swifthpke\/hpkeexception\/exportsize","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"exportSize","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/Error-Implementations":{"kind":"article","url":"\/documentation\/swifthpke\/hpkeexception\/error-implementations","title":"Error Implementations","role":"collectionGroup","abstract":[],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Error-Implementations","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"AEAD","kind":"identifier"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","title":"AEAD","url":"\/documentation\/swifthpke\/aead","kind":"symbol","role":"symbol","navigatorTitle":[{"text":"AEAD","kind":"identifier"}]}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/!=(_:_:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/!=(_:_:).json index 198a2c4..ad5314b 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/!=(_:_:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/!=(_:_:).json @@ -1 +1 @@ -{"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"kind":"text","text":"("},{"kind":"internalParam","text":"lhs"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":", "},{"text":"rhs","kind":"internalParam"},{"text":": ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}],"languages":["swift"]}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Equatable-Implementations"]]},"metadata":{"externalID":"s:SQsE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftHPKE13HPKEExceptionO","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","text":"Bool","preciseIdentifier":"s:Sb"}],"title":"!=(_:_:)","roleHeading":"Operator","modules":[{"relatedModules":["Swift"],"name":"SwiftHPKE"}],"role":"symbol","extendedModule":"Swift","symbolKind":"op"},"schemaVersion":{"patch":0,"major":0,"minor":3},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/!=(_:_:)"]}],"sections":[],"abstract":[{"type":"text","text":"Inherited from "},{"code":"Equatable.!=(_:_:)","type":"codeVoice"},{"text":".","type":"text"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/!=(_:_:)","interfaceLanguage":"swift"},"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/!=(_:_:)":{"kind":"symbol","type":"topic","role":"symbol","title":"!=(_:_:)","url":"\/documentation\/swifthpke\/hpkeexception\/!=(_:_:)","abstract":[],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/!=(_:_:)","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:Sb","text":"Bool"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"kind":"symbol","title":"HPKEException","url":"\/documentation\/swifthpke\/hpkeexception","role":"symbol","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/Equatable-Implementations":{"url":"\/documentation\/swifthpke\/hpkeexception\/equatable-implementations","title":"Equatable Implementations","type":"topic","role":"collectionGroup","kind":"article","abstract":[],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Equatable-Implementations"}}} \ No newline at end of file +{"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/!=(_:_:)"]}],"sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/!=(_:_:)","interfaceLanguage":"swift"},"metadata":{"fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"!="},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"Self"},{"text":") -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bool","preciseIdentifier":"s:Sb"}],"externalID":"s:SQsE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftHPKE13HPKEExceptionO","modules":[{"relatedModules":["Swift"],"name":"SwiftHPKE"}],"extendedModule":"Swift","symbolKind":"op","role":"symbol","roleHeading":"Operator","title":"!=(_:_:)"},"abstract":[{"type":"text","text":"Inherited from "},{"code":"Equatable.!=(_:_:)","type":"codeVoice"},{"type":"text","text":"."}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Equatable-Implementations"]]},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"lhs","kind":"internalParam"},{"text":": ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"rhs","kind":"internalParam"},{"text":": ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:Sb","text":"Bool"}],"languages":["swift"]}],"kind":"declarations"}],"kind":"symbol","schemaVersion":{"minor":3,"patch":0,"major":0},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"url":"\/documentation\/swifthpke\/hpkeexception","title":"HPKEException","role":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","abstract":[{"type":"text","text":"The HPKE exceptions"}],"navigatorTitle":[{"kind":"identifier","text":"HPKEException"}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"HPKEException","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/Equatable-Implementations":{"type":"topic","title":"Equatable Implementations","role":"collectionGroup","url":"\/documentation\/swifthpke\/hpkeexception\/equatable-implementations","abstract":[],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Equatable-Implementations","kind":"article"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/!=(_:_:)":{"fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"kind":"text","text":"("},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/!=(_:_:)","kind":"symbol","title":"!=(_:_:)","abstract":[],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception\/!=(_:_:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/asn1structure.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/asn1structure.json index 5a97053..57f485d 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/asn1structure.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/asn1structure.json @@ -1 +1 @@ -{"kind":"symbol","abstract":[{"text":"ASN1 structure is wrong","type":"text"}],"sections":[],"schemaVersion":{"patch":0,"major":0,"minor":3},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/asn1Structure"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"asn1Structure","kind":"identifier"}],"languages":["swift"]}],"kind":"declarations"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/asn1structure"]}],"metadata":{"title":"HPKEException.asn1Structure","roleHeading":"Case","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"asn1Structure"}],"externalID":"s:9SwiftHPKE13HPKEExceptionO13asn1StructureyA2CmF","symbolKind":"case","role":"symbol","modules":[{"name":"SwiftHPKE"}]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/asn1Structure":{"url":"\/documentation\/swifthpke\/hpkeexception\/asn1structure","title":"HPKEException.asn1Structure","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"asn1Structure"}],"type":"topic","role":"symbol","kind":"symbol","abstract":[{"type":"text","text":"ASN1 structure is wrong"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/asn1Structure"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"kind":"symbol","title":"HPKEException","url":"\/documentation\/swifthpke\/hpkeexception","role":"symbol","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"type":"topic"}}} \ No newline at end of file +{"schemaVersion":{"major":0,"minor":3,"patch":0},"primaryContentSections":[{"declarations":[{"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"asn1Structure"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"}],"abstract":[{"text":"ASN1 structure is wrong","type":"text"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/asn1Structure"},"kind":"symbol","variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/asn1structure"],"traits":[{"interfaceLanguage":"swift"}]}],"sections":[],"metadata":{"fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"asn1Structure"}],"role":"symbol","externalID":"s:9SwiftHPKE13HPKEExceptionO13asn1StructureyA2CmF","roleHeading":"Case","title":"HPKEException.asn1Structure","modules":[{"name":"SwiftHPKE"}],"symbolKind":"case"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/asn1Structure":{"fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"asn1Structure","kind":"identifier"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/asn1Structure","title":"HPKEException.asn1Structure","type":"topic","url":"\/documentation\/swifthpke\/hpkeexception\/asn1structure","abstract":[{"type":"text","text":"ASN1 structure is wrong"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"url":"\/documentation\/swifthpke\/hpkeexception","title":"HPKEException","role":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","abstract":[{"type":"text","text":"The HPKE exceptions"}],"navigatorTitle":[{"kind":"identifier","text":"HPKEException"}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"HPKEException","kind":"identifier"}],"kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/base64.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/base64.json index 2b07456..ec07222 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/base64.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/base64.json @@ -1 +1 @@ -{"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/base64"},"schemaVersion":{"minor":3,"major":0,"patch":0},"abstract":[{"type":"text","text":"Base64 decoding exception"}],"kind":"symbol","primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"base64"}],"languages":["swift"]}],"kind":"declarations"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/base64"]}],"metadata":{"modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"base64"}],"role":"symbol","externalID":"s:9SwiftHPKE13HPKEExceptionO6base64yA2CmF","title":"HPKEException.base64","roleHeading":"Case","symbolKind":"case"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/base64":{"role":"symbol","url":"\/documentation\/swifthpke\/hpkeexception\/base64","kind":"symbol","title":"HPKEException.base64","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"base64"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/base64","abstract":[{"type":"text","text":"Base64 decoding exception"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"HPKEException","kind":"identifier"}],"role":"symbol","abstract":[{"text":"The HPKE exceptions","type":"text"}],"title":"HPKEException","url":"\/documentation\/swifthpke\/hpkeexception","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}]}}} \ No newline at end of file +{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"base64","kind":"identifier"}],"languages":["swift"]}],"kind":"declarations"}],"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/base64"],"traits":[{"interfaceLanguage":"swift"}]}],"metadata":{"modules":[{"name":"SwiftHPKE"}],"symbolKind":"case","role":"symbol","roleHeading":"Case","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"base64"}],"title":"HPKEException.base64","externalID":"s:9SwiftHPKE13HPKEExceptionO6base64yA2CmF"},"schemaVersion":{"major":0,"minor":3,"patch":0},"abstract":[{"text":"Base64 decoding exception","type":"text"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/base64","interfaceLanguage":"swift"},"kind":"symbol","sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/base64":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/base64","role":"symbol","title":"HPKEException.base64","url":"\/documentation\/swifthpke\/hpkeexception\/base64","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"base64"}],"type":"topic","abstract":[{"type":"text","text":"Base64 decoding exception"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"url":"\/documentation\/swifthpke\/hpkeexception","title":"HPKEException","role":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","abstract":[{"type":"text","text":"The HPKE exceptions"}],"navigatorTitle":[{"kind":"identifier","text":"HPKEException"}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"HPKEException","kind":"identifier"}],"kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/decodepoint.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/decodepoint.json index d70327a..55c2180 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/decodepoint.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/decodepoint.json @@ -1 +1 @@ -{"abstract":[{"type":"text","text":"Decode point error"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"decodePoint","kind":"identifier"}]}]}],"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/decodepoint"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"schemaVersion":{"patch":0,"major":0,"minor":3},"sections":[],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/decodePoint"},"metadata":{"role":"symbol","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Case","symbolKind":"case","externalID":"s:9SwiftHPKE13HPKEExceptionO11decodePointyA2CmF","title":"HPKEException.decodePoint","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"decodePoint","kind":"identifier"}]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"kind":"symbol","title":"HPKEException","url":"\/documentation\/swifthpke\/hpkeexception","role":"symbol","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/decodePoint":{"url":"\/documentation\/swifthpke\/hpkeexception\/decodepoint","title":"HPKEException.decodePoint","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"decodePoint","kind":"identifier"}],"type":"topic","role":"symbol","kind":"symbol","abstract":[{"text":"Decode point error","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/decodePoint"}}} \ No newline at end of file +{"primaryContentSections":[{"declarations":[{"languages":["swift"],"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"decodePoint","kind":"identifier"}],"platforms":["macOS"]}],"kind":"declarations"}],"sections":[],"metadata":{"symbolKind":"case","modules":[{"name":"SwiftHPKE"}],"fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"decodePoint","kind":"identifier"}],"role":"symbol","title":"HPKEException.decodePoint","externalID":"s:9SwiftHPKE13HPKEExceptionO11decodePointyA2CmF","roleHeading":"Case"},"schemaVersion":{"patch":0,"minor":3,"major":0},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/decodepoint"]}],"abstract":[{"text":"Decode point error","type":"text"}],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/decodePoint"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/decodePoint":{"type":"topic","abstract":[{"type":"text","text":"Decode point error"}],"kind":"symbol","role":"symbol","title":"HPKEException.decodePoint","url":"\/documentation\/swifthpke\/hpkeexception\/decodepoint","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/decodePoint","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"decodePoint"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"HPKEException","kind":"identifier"}],"abstract":[{"type":"text","text":"The HPKE exceptions"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","title":"HPKEException","type":"topic","role":"symbol","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"url":"\/documentation\/swifthpke\/hpkeexception"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/derivedkeyerror.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/derivedkeyerror.json index c47cf36..ed33968 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/derivedkeyerror.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/derivedkeyerror.json @@ -1 +1 @@ -{"primaryContentSections":[{"declarations":[{"tokens":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"derivedKeyError","kind":"identifier"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"kind":"symbol","variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/derivedkeyerror"]}],"sections":[],"schemaVersion":{"patch":0,"major":0,"minor":3},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/derivedKeyError","interfaceLanguage":"swift"},"metadata":{"externalID":"s:9SwiftHPKE13HPKEExceptionO15derivedKeyErroryA2CmF","roleHeading":"Case","title":"HPKEException.derivedKeyError","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"derivedKeyError","kind":"identifier"}],"symbolKind":"case","modules":[{"name":"SwiftHPKE"}],"role":"symbol"},"abstract":[{"type":"text","text":"Derived key error"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"kind":"symbol","title":"HPKEException","url":"\/documentation\/swifthpke\/hpkeexception","role":"symbol","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/derivedKeyError":{"abstract":[{"text":"Derived key error","type":"text"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception\/derivedkeyerror","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/derivedKeyError","title":"HPKEException.derivedKeyError","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"derivedKeyError","kind":"identifier"}],"kind":"symbol","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"}}} \ No newline at end of file +{"abstract":[{"type":"text","text":"Derived key error"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"schemaVersion":{"patch":0,"minor":3,"major":0},"metadata":{"roleHeading":"Case","externalID":"s:9SwiftHPKE13HPKEExceptionO15derivedKeyErroryA2CmF","title":"HPKEException.derivedKeyError","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"derivedKeyError","kind":"identifier"}],"symbolKind":"case","modules":[{"name":"SwiftHPKE"}],"role":"symbol"},"kind":"symbol","variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/derivedkeyerror"]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/derivedKeyError"},"sections":[],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"derivedKeyError","kind":"identifier"}],"languages":["swift"]}],"kind":"declarations"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"url":"\/documentation\/swifthpke\/hpkeexception","title":"HPKEException","role":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","abstract":[{"type":"text","text":"The HPKE exceptions"}],"navigatorTitle":[{"kind":"identifier","text":"HPKEException"}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"HPKEException","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/derivedKeyError":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/derivedKeyError","abstract":[{"text":"Derived key error","type":"text"}],"title":"HPKEException.derivedKeyError","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"derivedKeyError"}],"url":"\/documentation\/swifthpke\/hpkeexception\/derivedkeyerror","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/description.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/description.json index b5431da..446dc8b 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/description.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/description.json @@ -1 +1 @@ -{"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/description","interfaceLanguage":"swift"},"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"kind":"text","text":": "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":" { "},{"text":"get","kind":"keyword"},{"text":" }","kind":"text"}]}],"kind":"declarations"}],"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/description"]}],"kind":"symbol","metadata":{"modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"}],"externalID":"s:9SwiftHPKE13HPKEExceptionO11descriptionSSvp","role":"symbol","symbolKind":"property","roleHeading":"Instance Property","title":"description"},"schemaVersion":{"patch":0,"minor":3,"major":0},"abstract":[{"type":"text","text":"Textual description of "},{"code":"self","type":"codeVoice"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"kind":"symbol","title":"HPKEException","url":"\/documentation\/swifthpke\/hpkeexception","role":"symbol","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/description":{"url":"\/documentation\/swifthpke\/hpkeexception\/description","title":"description","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"kind":"text","text":": "},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"}],"type":"topic","role":"symbol","kind":"symbol","abstract":[{"text":"Textual description of ","type":"text"},{"type":"codeVoice","code":"self"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/description"}}} \ No newline at end of file +{"abstract":[{"text":"Textual description of ","type":"text"},{"code":"self","type":"codeVoice"}],"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/description"],"traits":[{"interfaceLanguage":"swift"}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"metadata":{"roleHeading":"Instance Property","modules":[{"name":"SwiftHPKE"}],"symbolKind":"property","title":"description","role":"symbol","externalID":"s:9SwiftHPKE13HPKEExceptionO11descriptionSSvp","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}]},"schemaVersion":{"minor":3,"major":0,"patch":0},"sections":[],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":" { ","kind":"text"},{"text":"get","kind":"keyword"},{"text":" }","kind":"text"}],"languages":["swift"]}],"kind":"declarations"}],"kind":"symbol","identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/description"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/description":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/description","role":"symbol","title":"description","url":"\/documentation\/swifthpke\/hpkeexception\/description","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"type":"topic","abstract":[{"type":"text","text":"Textual description of "},{"type":"codeVoice","code":"self"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"url":"\/documentation\/swifthpke\/hpkeexception","title":"HPKEException","role":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","abstract":[{"type":"text","text":"The HPKE exceptions"}],"navigatorTitle":[{"kind":"identifier","text":"HPKEException"}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"HPKEException","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/equatable-implementations.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/equatable-implementations.json index 549d0b2..d2d50e6 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/equatable-implementations.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/equatable-implementations.json @@ -1 +1 @@ -{"metadata":{"modules":[{"name":"SwiftHPKE"}],"roleHeading":"API Collection","title":"Equatable Implementations","role":"collectionGroup"},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Equatable-Implementations","interfaceLanguage":"swift"},"kind":"article","variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/equatable-implementations"],"traits":[{"interfaceLanguage":"swift"}]}],"topicSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/!=(_:_:)"],"generated":true,"title":"Operators"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"schemaVersion":{"patch":0,"major":0,"minor":3},"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/!=(_:_:)":{"kind":"symbol","type":"topic","role":"symbol","title":"!=(_:_:)","url":"\/documentation\/swifthpke\/hpkeexception\/!=(_:_:)","abstract":[],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/!=(_:_:)","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:Sb","text":"Bool"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"kind":"symbol","title":"HPKEException","url":"\/documentation\/swifthpke\/hpkeexception","role":"symbol","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"}}} \ No newline at end of file +{"topicSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/!=(_:_:)"],"title":"Operators"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/equatable-implementations"]}],"schemaVersion":{"patch":0,"major":0,"minor":3},"kind":"article","identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Equatable-Implementations","interfaceLanguage":"swift"},"sections":[],"metadata":{"role":"collectionGroup","roleHeading":"API Collection","title":"Equatable Implementations","modules":[{"name":"SwiftHPKE"}]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"url":"\/documentation\/swifthpke\/hpkeexception","title":"HPKEException","role":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","abstract":[{"type":"text","text":"The HPKE exceptions"}],"navigatorTitle":[{"kind":"identifier","text":"HPKEException"}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"HPKEException","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/!=(_:_:)":{"fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"kind":"text","text":"("},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/!=(_:_:)","kind":"symbol","title":"!=(_:_:)","abstract":[],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception\/!=(_:_:)","role":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/error-implementations.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/error-implementations.json index 6d217cf..fe85a43 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/error-implementations.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/error-implementations.json @@ -1 +1 @@ -{"sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/error-implementations"]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"metadata":{"modules":[{"name":"SwiftHPKE"}],"roleHeading":"API Collection","title":"Error Implementations","role":"collectionGroup"},"schemaVersion":{"minor":3,"patch":0,"major":0},"kind":"article","topicSections":[{"generated":true,"title":"Instance Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/localizedDescription"]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Error-Implementations","interfaceLanguage":"swift"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"kind":"symbol","title":"HPKEException","url":"\/documentation\/swifthpke\/hpkeexception","role":"symbol","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/localizedDescription":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/localizedDescription","url":"\/documentation\/swifthpke\/hpkeexception\/localizeddescription","abstract":[],"title":"localizedDescription","type":"topic","role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"localizedDescription"},{"kind":"text","text":": "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}]}}} \ No newline at end of file +{"sections":[],"schemaVersion":{"patch":0,"major":0,"minor":3},"topicSections":[{"title":"Instance Properties","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/localizedDescription"]}],"kind":"article","identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Error-Implementations"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/error-implementations"]}],"metadata":{"roleHeading":"API Collection","role":"collectionGroup","title":"Error Implementations","modules":[{"name":"SwiftHPKE"}]},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"url":"\/documentation\/swifthpke\/hpkeexception","title":"HPKEException","role":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","abstract":[{"type":"text","text":"The HPKE exceptions"}],"navigatorTitle":[{"kind":"identifier","text":"HPKEException"}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"HPKEException","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/localizedDescription":{"fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"localizedDescription","kind":"identifier"},{"kind":"text","text":": "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"kind":"symbol","url":"\/documentation\/swifthpke\/hpkeexception\/localizeddescription","title":"localizedDescription","role":"symbol","abstract":[],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/localizedDescription","type":"topic"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/exportonlyerror.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/exportonlyerror.json index 40370e5..ccb889e 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/exportonlyerror.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/exportonlyerror.json @@ -1 +1 @@ -{"sections":[],"kind":"symbol","identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportOnlyError"},"abstract":[{"type":"text","text":"Export only error"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/exportonlyerror"]}],"schemaVersion":{"minor":3,"patch":0,"major":0},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"exportOnlyError"}]}]}],"metadata":{"symbolKind":"case","title":"HPKEException.exportOnlyError","externalID":"s:9SwiftHPKE13HPKEExceptionO15exportOnlyErroryA2CmF","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"exportOnlyError","kind":"identifier"}],"modules":[{"name":"SwiftHPKE"}],"role":"symbol","roleHeading":"Case"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"kind":"symbol","title":"HPKEException","url":"\/documentation\/swifthpke\/hpkeexception","role":"symbol","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/exportOnlyError":{"abstract":[{"type":"text","text":"Export only error"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception\/exportonlyerror","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportOnlyError","title":"HPKEException.exportOnlyError","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"exportOnlyError","kind":"identifier"}],"kind":"symbol","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"}}} \ No newline at end of file +{"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"abstract":[{"type":"text","text":"Export only error"}],"sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportOnlyError","interfaceLanguage":"swift"},"schemaVersion":{"minor":3,"patch":0,"major":0},"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"exportOnlyError"}]}],"kind":"declarations"}],"metadata":{"roleHeading":"Case","symbolKind":"case","modules":[{"name":"SwiftHPKE"}],"title":"HPKEException.exportOnlyError","role":"symbol","externalID":"s:9SwiftHPKE13HPKEExceptionO15exportOnlyErroryA2CmF","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"exportOnlyError"}]},"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/exportonlyerror"],"traits":[{"interfaceLanguage":"swift"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"url":"\/documentation\/swifthpke\/hpkeexception","title":"HPKEException","role":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","abstract":[{"type":"text","text":"The HPKE exceptions"}],"navigatorTitle":[{"kind":"identifier","text":"HPKEException"}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"HPKEException","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/exportOnlyError":{"type":"topic","title":"HPKEException.exportOnlyError","role":"symbol","url":"\/documentation\/swifthpke\/hpkeexception\/exportonlyerror","abstract":[{"text":"Export only error","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportOnlyError","kind":"symbol","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"exportOnlyError","kind":"identifier"}]}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/exportsize.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/exportsize.json index c647658..d191e0c 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/exportsize.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/exportsize.json @@ -1 +1 @@ -{"metadata":{"title":"HPKEException.exportSize","modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"exportSize","kind":"identifier"}],"externalID":"s:9SwiftHPKE13HPKEExceptionO10exportSizeyA2CmF","roleHeading":"Case","role":"symbol","symbolKind":"case"},"abstract":[{"text":"Export size is negative or too large","type":"text"}],"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"exportSize"}]}],"kind":"declarations"}],"sections":[],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportSize"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"schemaVersion":{"patch":0,"minor":3,"major":0},"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/exportsize"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/exportSize":{"kind":"symbol","type":"topic","role":"symbol","abstract":[{"text":"Export size is negative or too large","type":"text"}],"title":"HPKEException.exportSize","url":"\/documentation\/swifthpke\/hpkeexception\/exportsize","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportSize","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"exportSize"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"kind":"symbol","title":"HPKEException","url":"\/documentation\/swifthpke\/hpkeexception","role":"symbol","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"type":"topic"}}} \ No newline at end of file +{"kind":"symbol","identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportSize","interfaceLanguage":"swift"},"metadata":{"title":"HPKEException.exportSize","symbolKind":"case","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"exportSize","kind":"identifier"}],"role":"symbol","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE13HPKEExceptionO10exportSizeyA2CmF","roleHeading":"Case"},"schemaVersion":{"patch":0,"major":0,"minor":3},"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"exportSize"}]}],"kind":"declarations"}],"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/exportsize"],"traits":[{"interfaceLanguage":"swift"}]}],"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"abstract":[{"type":"text","text":"Export size is negative or too large"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/exportSize":{"abstract":[{"type":"text","text":"Export size is negative or too large"}],"role":"symbol","title":"HPKEException.exportSize","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportSize","url":"\/documentation\/swifthpke\/hpkeexception\/exportsize","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"exportSize","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"url":"\/documentation\/swifthpke\/hpkeexception","title":"HPKEException","role":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","abstract":[{"type":"text","text":"The HPKE exceptions"}],"navigatorTitle":[{"kind":"identifier","text":"HPKEException"}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"HPKEException","kind":"identifier"}],"kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/keymismatch.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/keymismatch.json index 33ebd5a..67ef62a 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/keymismatch.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/keymismatch.json @@ -1 +1 @@ -{"abstract":[{"type":"text","text":"CipherSuite key mismatch"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/keymismatch"]}],"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"kind":"symbol","primaryContentSections":[{"declarations":[{"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"keyMismatch","kind":"identifier"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/keyMismatch"},"metadata":{"title":"HPKEException.keyMismatch","modules":[{"name":"SwiftHPKE"}],"symbolKind":"case","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"keyMismatch","kind":"identifier"}],"role":"symbol","roleHeading":"Case","externalID":"s:9SwiftHPKE13HPKEExceptionO11keyMismatchyA2CmF"},"schemaVersion":{"major":0,"minor":3,"patch":0},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/keyMismatch":{"url":"\/documentation\/swifthpke\/hpkeexception\/keymismatch","title":"HPKEException.keyMismatch","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"keyMismatch","kind":"identifier"}],"type":"topic","role":"symbol","kind":"symbol","abstract":[{"text":"CipherSuite key mismatch","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/keyMismatch"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"kind":"symbol","title":"HPKEException","url":"\/documentation\/swifthpke\/hpkeexception","role":"symbol","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"type":"topic"}}} \ No newline at end of file +{"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/keyMismatch","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"keyMismatch","kind":"identifier"}],"platforms":["macOS"],"languages":["swift"]}]}],"metadata":{"fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"keyMismatch"}],"roleHeading":"Case","symbolKind":"case","modules":[{"name":"SwiftHPKE"}],"role":"symbol","externalID":"s:9SwiftHPKE13HPKEExceptionO11keyMismatchyA2CmF","title":"HPKEException.keyMismatch"},"schemaVersion":{"major":0,"minor":3,"patch":0},"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/keymismatch"],"traits":[{"interfaceLanguage":"swift"}]}],"abstract":[{"type":"text","text":"CipherSuite key mismatch"}],"sections":[],"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/keyMismatch":{"kind":"symbol","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"keyMismatch"}],"url":"\/documentation\/swifthpke\/hpkeexception\/keymismatch","abstract":[{"type":"text","text":"CipherSuite key mismatch"}],"type":"topic","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/keyMismatch","title":"HPKEException.keyMismatch"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"url":"\/documentation\/swifthpke\/hpkeexception","title":"HPKEException","role":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","abstract":[{"type":"text","text":"The HPKE exceptions"}],"navigatorTitle":[{"kind":"identifier","text":"HPKEException"}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"HPKEException","kind":"identifier"}],"kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/localizeddescription.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/localizeddescription.json index 99bef45..5be50a5 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/localizeddescription.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/localizeddescription.json @@ -1 +1 @@ -{"abstract":[{"text":"Inherited from ","type":"text"},{"code":"Error.localizedDescription","type":"codeVoice"},{"text":".","type":"text"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/localizedDescription","interfaceLanguage":"swift"},"kind":"symbol","primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"localizedDescription","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"text":" { ","kind":"text"},{"text":"get","kind":"keyword"},{"kind":"text","text":" }"}],"languages":["swift"]}],"kind":"declarations"}],"schemaVersion":{"patch":0,"minor":3,"major":0},"metadata":{"symbolKind":"property","externalID":"s:s5ErrorP10FoundationE20localizedDescriptionSSvp::SYNTHESIZED::s:9SwiftHPKE13HPKEExceptionO","role":"symbol","extendedModule":"Swift","platforms":[{"unavailable":false,"deprecated":false,"introducedAt":"8.0","beta":false,"name":"iOS"},{"beta":false,"deprecated":false,"introducedAt":"10.10","name":"macOS","unavailable":false},{"deprecated":false,"introducedAt":"9.0","name":"tvOS","unavailable":false,"beta":false},{"name":"watchOS","beta":false,"deprecated":false,"introducedAt":"2.0","unavailable":false}],"modules":[{"relatedModules":["Swift"],"name":"SwiftHPKE"}],"roleHeading":"Instance Property","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"localizedDescription"},{"kind":"text","text":": "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"title":"localizedDescription"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Error-Implementations"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/localizeddescription"]}],"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"kind":"symbol","title":"HPKEException","url":"\/documentation\/swifthpke\/hpkeexception","role":"symbol","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/Error-Implementations":{"url":"\/documentation\/swifthpke\/hpkeexception\/error-implementations","title":"Error Implementations","type":"topic","role":"collectionGroup","kind":"article","abstract":[],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Error-Implementations"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/localizedDescription":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/localizedDescription","url":"\/documentation\/swifthpke\/hpkeexception\/localizeddescription","abstract":[],"title":"localizedDescription","type":"topic","role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"localizedDescription"},{"kind":"text","text":": "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}]}}} \ No newline at end of file +{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Error-Implementations"]]},"sections":[],"schemaVersion":{"minor":3,"patch":0,"major":0},"kind":"symbol","identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/localizedDescription","interfaceLanguage":"swift"},"metadata":{"title":"localizedDescription","extendedModule":"Swift","roleHeading":"Instance Property","modules":[{"name":"SwiftHPKE","relatedModules":["Swift"]}],"externalID":"s:s5ErrorP10FoundationE20localizedDescriptionSSvp::SYNTHESIZED::s:9SwiftHPKE13HPKEExceptionO","symbolKind":"property","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"localizedDescription"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"role":"symbol","platforms":[{"deprecated":false,"beta":false,"introducedAt":"8.0","unavailable":false,"name":"iOS"},{"name":"macOS","unavailable":false,"introducedAt":"10.10","deprecated":false,"beta":false},{"name":"tvOS","introducedAt":"9.0","unavailable":false,"deprecated":false,"beta":false},{"beta":false,"introducedAt":"2.0","unavailable":false,"name":"watchOS","deprecated":false}]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/localizeddescription"]}],"abstract":[{"type":"text","text":"Inherited from "},{"type":"codeVoice","code":"Error.localizedDescription"},{"type":"text","text":"."}],"primaryContentSections":[{"declarations":[{"tokens":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"localizedDescription"},{"kind":"text","text":": "},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"},{"text":" { ","kind":"text"},{"kind":"keyword","text":"get"},{"text":" }","kind":"text"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"url":"\/documentation\/swifthpke\/hpkeexception","title":"HPKEException","role":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","abstract":[{"type":"text","text":"The HPKE exceptions"}],"navigatorTitle":[{"kind":"identifier","text":"HPKEException"}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"HPKEException","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/localizedDescription":{"fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"localizedDescription","kind":"identifier"},{"kind":"text","text":": "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"kind":"symbol","url":"\/documentation\/swifthpke\/hpkeexception\/localizeddescription","title":"localizedDescription","role":"symbol","abstract":[],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/localizedDescription","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/Error-Implementations":{"kind":"article","url":"\/documentation\/swifthpke\/hpkeexception\/error-implementations","title":"Error Implementations","role":"collectionGroup","abstract":[],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Error-Implementations","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/pemstructure.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/pemstructure.json index 25592c6..428c78b 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/pemstructure.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/pemstructure.json @@ -1 +1 @@ -{"kind":"symbol","primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pemStructure","kind":"identifier"}],"platforms":["macOS"],"languages":["swift"]}]}],"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/pemstructure"],"traits":[{"interfaceLanguage":"swift"}]}],"abstract":[{"text":"PEM structure is wrong","type":"text"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pemStructure"},"schemaVersion":{"minor":3,"patch":0,"major":0},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"sections":[],"metadata":{"title":"HPKEException.pemStructure","roleHeading":"Case","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"pemStructure","kind":"identifier"}],"externalID":"s:9SwiftHPKE13HPKEExceptionO12pemStructureyA2CmF","symbolKind":"case","role":"symbol","modules":[{"name":"SwiftHPKE"}]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"kind":"symbol","title":"HPKEException","url":"\/documentation\/swifthpke\/hpkeexception","role":"symbol","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/pemStructure":{"abstract":[{"text":"PEM structure is wrong","type":"text"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception\/pemstructure","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pemStructure","title":"HPKEException.pemStructure","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pemStructure","kind":"identifier"}],"kind":"symbol","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"}}} \ No newline at end of file +{"abstract":[{"type":"text","text":"PEM structure is wrong"}],"metadata":{"roleHeading":"Case","externalID":"s:9SwiftHPKE13HPKEExceptionO12pemStructureyA2CmF","role":"symbol","title":"HPKEException.pemStructure","modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"pemStructure","kind":"identifier"}],"symbolKind":"case"},"schemaVersion":{"major":0,"minor":3,"patch":0},"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/pemstructure"]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pemStructure"},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"pemStructure","kind":"identifier"}],"platforms":["macOS"]}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"url":"\/documentation\/swifthpke\/hpkeexception","title":"HPKEException","role":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","abstract":[{"type":"text","text":"The HPKE exceptions"}],"navigatorTitle":[{"kind":"identifier","text":"HPKEException"}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"HPKEException","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/pemStructure":{"title":"HPKEException.pemStructure","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pemStructure","abstract":[{"text":"PEM structure is wrong","type":"text"}],"kind":"symbol","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"pemStructure"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception\/pemstructure","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/privatekeyparameter.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/privatekeyparameter.json index 0ce6e6e..594df7c 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/privatekeyparameter.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/privatekeyparameter.json @@ -1 +1 @@ -{"kind":"symbol","sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"schemaVersion":{"major":0,"patch":0,"minor":3},"abstract":[{"type":"text","text":"Invalid parameter to PrivateKey constructor"}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"privateKeyParameter"}]}],"kind":"declarations"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/privateKeyParameter"},"metadata":{"modules":[{"name":"SwiftHPKE"}],"fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"privateKeyParameter","kind":"identifier"}],"externalID":"s:9SwiftHPKE13HPKEExceptionO19privateKeyParameteryA2CmF","role":"symbol","symbolKind":"case","roleHeading":"Case","title":"HPKEException.privateKeyParameter"},"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/privatekeyparameter"],"traits":[{"interfaceLanguage":"swift"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"kind":"symbol","title":"HPKEException","url":"\/documentation\/swifthpke\/hpkeexception","role":"symbol","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/privateKeyParameter":{"url":"\/documentation\/swifthpke\/hpkeexception\/privatekeyparameter","title":"HPKEException.privateKeyParameter","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"privateKeyParameter","kind":"identifier"}],"type":"topic","role":"symbol","kind":"symbol","abstract":[{"text":"Invalid parameter to PrivateKey constructor","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/privateKeyParameter"}}} \ No newline at end of file +{"kind":"symbol","primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"privateKeyParameter","kind":"identifier"}]}]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/privateKeyParameter"},"sections":[],"schemaVersion":{"major":0,"minor":3,"patch":0},"metadata":{"symbolKind":"case","role":"symbol","modules":[{"name":"SwiftHPKE"}],"fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"privateKeyParameter"}],"title":"HPKEException.privateKeyParameter","externalID":"s:9SwiftHPKE13HPKEExceptionO19privateKeyParameteryA2CmF","roleHeading":"Case"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/privatekeyparameter"]}],"abstract":[{"type":"text","text":"Invalid parameter to PrivateKey constructor"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/privateKeyParameter":{"abstract":[{"text":"Invalid parameter to PrivateKey constructor","type":"text"}],"title":"HPKEException.privateKeyParameter","url":"\/documentation\/swifthpke\/hpkeexception\/privatekeyparameter","type":"topic","role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"privateKeyParameter","kind":"identifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/privateKeyParameter","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"title":"HPKEException","role":"symbol","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"type":"topic","abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"HPKEException","kind":"identifier"}],"url":"\/documentation\/swifthpke\/hpkeexception"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/pskerror.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/pskerror.json index b54c813..4326f84 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/pskerror.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/pskerror.json @@ -1 +1 @@ -{"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"pskError"}],"languages":["swift"],"platforms":["macOS"]}]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pskError"},"metadata":{"modules":[{"name":"SwiftHPKE"}],"role":"symbol","symbolKind":"case","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"pskError"}],"roleHeading":"Case","title":"HPKEException.pskError","externalID":"s:9SwiftHPKE13HPKEExceptionO8pskErroryA2CmF"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"schemaVersion":{"major":0,"minor":3,"patch":0},"abstract":[{"text":"Inconsistent PSK parameters","type":"text"}],"sections":[],"kind":"symbol","variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/pskerror"],"traits":[{"interfaceLanguage":"swift"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"HPKEException","kind":"identifier"}],"role":"symbol","abstract":[{"text":"The HPKE exceptions","type":"text"}],"title":"HPKEException","url":"\/documentation\/swifthpke\/hpkeexception","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/pskError":{"role":"symbol","title":"HPKEException.pskError","abstract":[{"type":"text","text":"Inconsistent PSK parameters"}],"kind":"symbol","url":"\/documentation\/swifthpke\/hpkeexception\/pskerror","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pskError","kind":"identifier"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pskError"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"}}} \ No newline at end of file +{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"kind":"symbol","schemaVersion":{"minor":3,"major":0,"patch":0},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/pskerror"]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pskError","interfaceLanguage":"swift"},"metadata":{"externalID":"s:9SwiftHPKE13HPKEExceptionO8pskErroryA2CmF","roleHeading":"Case","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"pskError","kind":"identifier"}],"title":"HPKEException.pskError","symbolKind":"case","role":"symbol","modules":[{"name":"SwiftHPKE"}]},"sections":[],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pskError","kind":"identifier"}]}]}],"abstract":[{"text":"Inconsistent PSK parameters","type":"text"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/pskError":{"fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"pskError","kind":"identifier"}],"role":"symbol","kind":"symbol","title":"HPKEException.pskError","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pskError","type":"topic","url":"\/documentation\/swifthpke\/hpkeexception\/pskerror","abstract":[{"type":"text","text":"Inconsistent PSK parameters"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"url":"\/documentation\/swifthpke\/hpkeexception","title":"HPKEException","role":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","abstract":[{"type":"text","text":"The HPKE exceptions"}],"navigatorTitle":[{"kind":"identifier","text":"HPKEException"}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"HPKEException","kind":"identifier"}],"kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/publickeyparameter.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/publickeyparameter.json index de34fb8..9d48439 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/publickeyparameter.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/publickeyparameter.json @@ -1 +1 @@ -{"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/publickeyparameter"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/publicKeyParameter"},"sections":[],"abstract":[{"text":"Invalid parameter to PublicKey constructor","type":"text"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"metadata":{"title":"HPKEException.publicKeyParameter","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"publicKeyParameter","kind":"identifier"}],"symbolKind":"case","roleHeading":"Case","role":"symbol","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE13HPKEExceptionO18publicKeyParameteryA2CmF"},"schemaVersion":{"major":0,"patch":0,"minor":3},"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"publicKeyParameter","kind":"identifier"}]}],"kind":"declarations"}],"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"kind":"symbol","title":"HPKEException","url":"\/documentation\/swifthpke\/hpkeexception","role":"symbol","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/publicKeyParameter":{"abstract":[{"type":"text","text":"Invalid parameter to PublicKey constructor"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception\/publickeyparameter","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/publicKeyParameter","title":"HPKEException.publicKeyParameter","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"publicKeyParameter","kind":"identifier"}],"kind":"symbol","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"}}} \ No newline at end of file +{"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/publicKeyParameter"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"metadata":{"modules":[{"name":"SwiftHPKE"}],"role":"symbol","title":"HPKEException.publicKeyParameter","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"publicKeyParameter","kind":"identifier"}],"externalID":"s:9SwiftHPKE13HPKEExceptionO18publicKeyParameteryA2CmF","roleHeading":"Case","symbolKind":"case"},"schemaVersion":{"minor":3,"major":0,"patch":0},"sections":[],"abstract":[{"type":"text","text":"Invalid parameter to PublicKey constructor"}],"primaryContentSections":[{"declarations":[{"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"publicKeyParameter","kind":"identifier"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"}],"kind":"symbol","variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/publickeyparameter"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"url":"\/documentation\/swifthpke\/hpkeexception","title":"HPKEException","role":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","abstract":[{"type":"text","text":"The HPKE exceptions"}],"navigatorTitle":[{"kind":"identifier","text":"HPKEException"}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"HPKEException","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/publicKeyParameter":{"type":"topic","role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"publicKeyParameter","kind":"identifier"}],"title":"HPKEException.publicKeyParameter","kind":"symbol","abstract":[{"type":"text","text":"Invalid parameter to PublicKey constructor"}],"url":"\/documentation\/swifthpke\/hpkeexception\/publickeyparameter","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/publicKeyParameter"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/smallorder.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/smallorder.json index 8f43e63..1e0dd2a 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/smallorder.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/hpkeexception/smallorder.json @@ -1 +1 @@ -{"metadata":{"fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"smallOrder","kind":"identifier"}],"symbolKind":"case","roleHeading":"Case","title":"HPKEException.smallOrder","modules":[{"name":"SwiftHPKE"}],"role":"symbol","externalID":"s:9SwiftHPKE13HPKEExceptionO10smallOrderyA2CmF"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"kind":"symbol","identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/smallOrder","interfaceLanguage":"swift"},"sections":[],"abstract":[{"text":"X25519, X448 small order error","type":"text"}],"primaryContentSections":[{"declarations":[{"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"smallOrder","kind":"identifier"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"}],"schemaVersion":{"patch":0,"minor":3,"major":0},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/smallorder"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/smallOrder":{"abstract":[{"type":"text","text":"X25519, X448 small order error"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception\/smallorder","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/smallOrder","title":"HPKEException.smallOrder","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"smallOrder","kind":"identifier"}],"kind":"symbol","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"kind":"symbol","title":"HPKEException","url":"\/documentation\/swifthpke\/hpkeexception","role":"symbol","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"type":"topic"}}} \ No newline at end of file +{"schemaVersion":{"patch":0,"minor":3,"major":0},"abstract":[{"text":"X25519, X448 small order error","type":"text"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"smallOrder"}],"languages":["swift"]}]}],"kind":"symbol","sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/smallorder"]}],"metadata":{"symbolKind":"case","modules":[{"name":"SwiftHPKE"}],"role":"symbol","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"smallOrder"}],"roleHeading":"Case","externalID":"s:9SwiftHPKE13HPKEExceptionO10smallOrderyA2CmF","title":"HPKEException.smallOrder"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/smallOrder","interfaceLanguage":"swift"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/smallOrder":{"type":"topic","kind":"symbol","role":"symbol","url":"\/documentation\/swifthpke\/hpkeexception\/smallorder","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/smallOrder","abstract":[{"text":"X25519, X448 small order error","type":"text"}],"fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"smallOrder","kind":"identifier"}],"title":"HPKEException.smallOrder"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"title":"HPKEException","role":"symbol","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"type":"topic","abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"HPKEException","kind":"identifier"}],"url":"\/documentation\/swifthpke\/hpkeexception"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kdf.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kdf.json index ec38e16..dae9f6f 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kdf.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kdf.json @@ -1 +1 @@ -{"sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kdf"]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"metadata":{"roleHeading":"Enumeration","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE3KDFO","navigatorTitle":[{"text":"KDF","kind":"identifier"}],"symbolKind":"enum","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"title":"KDF","role":"symbol"},"schemaVersion":{"minor":3,"patch":0,"major":0},"abstract":[{"text":"The key derivation functions","type":"text"}],"kind":"symbol","relationshipsSections":[{"title":"Conforms To","kind":"relationships","type":"conformsTo","identifiers":["doc:\/\/SwiftHPKE\/s12CaseIterableP","doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","doc:\/\/SwiftHPKE\/SQ","doc:\/\/SwiftHPKE\/SH"]}],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"],"generated":true,"title":"Enumerations"}],"topicSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF256","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF384","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF512"],"title":"Enumeration Cases"},{"title":"Instance Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/description"]},{"title":"Default Implementations","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/Equatable-Implementations"],"generated":true}],"primaryContentSections":[{"declarations":[{"tokens":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"text":"KDF","kind":"identifier"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","interfaceLanguage":"swift"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"AEAD","kind":"identifier"}],"navigatorTitle":[{"text":"AEAD","kind":"identifier"}],"abstract":[{"text":"The AEAD encryption algorithms","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","url":"\/documentation\/swifthpke\/aead","kind":"symbol","type":"topic","title":"AEAD"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"abstract":[{"text":"The key derivation functions","type":"text"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","navigatorTitle":[{"kind":"identifier","text":"KDF"}],"url":"\/documentation\/swifthpke\/kdf","type":"topic","title":"KDF"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/KDF512":{"role":"symbol","kind":"symbol","url":"\/documentation\/swifthpke\/kdf\/kdf512","type":"topic","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"KDF512","kind":"identifier"}],"title":"KDF.KDF512","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF512","abstract":[{"text":"HKDF-SHA512","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/description":{"title":"description","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/description","type":"topic","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"abstract":[{"type":"text","text":"Textual description of "},{"code":"self","type":"codeVoice"}],"url":"\/documentation\/swifthpke\/kdf\/description","kind":"symbol"},"doc://SwiftHPKE/s23CustomStringConvertibleP":{"title":"Swift.CustomStringConvertible","type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"kind":"symbol","title":"HPKEException","url":"\/documentation\/swifthpke\/hpkeexception","role":"symbol","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"type":"topic"},"doc://SwiftHPKE/s12CaseIterableP":{"title":"Swift.CaseIterable","type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/s12CaseIterableP"},"doc://SwiftHPKE/SH":{"title":"Swift.Hashable","type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/SH"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/KDF256":{"role":"symbol","abstract":[{"type":"text","text":"HKDF-SHA256"}],"kind":"symbol","type":"topic","title":"KDF.KDF256","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF256","kind":"identifier"}],"url":"\/documentation\/swifthpke\/kdf\/kdf256","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF256"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/KDF384":{"role":"symbol","type":"topic","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF384","url":"\/documentation\/swifthpke\/kdf\/kdf384","title":"KDF.KDF384","abstract":[{"text":"HKDF-SHA384","type":"text"}],"fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"KDF384","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","navigatorTitle":[{"text":"KEM","kind":"identifier"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"title":"KEM","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"KEM","kind":"identifier"}]},"doc://SwiftHPKE/SQ":{"title":"Swift.Equatable","type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/SQ"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/Equatable-Implementations":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/Equatable-Implementations","title":"Equatable Implementations","kind":"article","role":"collectionGroup","abstract":[],"url":"\/documentation\/swifthpke\/kdf\/equatable-implementations","type":"topic"}}} \ No newline at end of file +{"schemaVersion":{"major":0,"minor":3,"patch":0},"topicSections":[{"title":"Enumeration Cases","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF256","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF384","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF512"]},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/description"],"title":"Instance Properties"},{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/Equatable-Implementations"],"title":"Default Implementations"}],"relationshipsSections":[{"kind":"relationships","identifiers":["doc:\/\/SwiftHPKE\/s12CaseIterableP","doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","doc:\/\/SwiftHPKE\/SQ","doc:\/\/SwiftHPKE\/SH"],"type":"conformsTo","title":"Conforms To"}],"seeAlsoSections":[{"title":"Enumerations","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","interfaceLanguage":"swift"},"metadata":{"externalID":"s:9SwiftHPKE3KDFO","role":"symbol","navigatorTitle":[{"text":"KDF","kind":"identifier"}],"title":"KDF","symbolKind":"enum","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"KDF"}],"roleHeading":"Enumeration","modules":[{"name":"SwiftHPKE"}]},"sections":[],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"languages":["swift"]}]}],"abstract":[{"text":"The key derivation functions","type":"text"}],"variants":[{"paths":["\/documentation\/swifthpke\/kdf"],"traits":[{"interfaceLanguage":"swift"}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"kind":"symbol","references":{"doc://SwiftHPKE/SQ":{"type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/SQ","title":"Swift.Equatable"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"kind":"symbol","url":"\/documentation\/swifthpke\/kdf","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","navigatorTitle":[{"text":"KDF","kind":"identifier"}],"type":"topic","abstract":[{"type":"text","text":"The key derivation functions"}],"role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"title":"KDF"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/SH":{"type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/SH","title":"Swift.Hashable"},"doc://SwiftHPKE/s12CaseIterableP":{"type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/s12CaseIterableP","title":"Swift.CaseIterable"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/KDF512":{"url":"\/documentation\/swifthpke\/kdf\/kdf512","title":"KDF.KDF512","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF512","role":"symbol","abstract":[{"text":"HKDF-SHA512","type":"text"}],"type":"topic","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"KDF512"}],"kind":"symbol"},"doc://SwiftHPKE/s23CustomStringConvertibleP":{"title":"Swift.CustomStringConvertible","identifier":"doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","type":"unresolvable"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"AEAD","kind":"identifier"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","title":"AEAD","url":"\/documentation\/swifthpke\/aead","kind":"symbol","role":"symbol","navigatorTitle":[{"text":"AEAD","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"title":"HPKEException","role":"symbol","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"type":"topic","abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"HPKEException","kind":"identifier"}],"url":"\/documentation\/swifthpke\/hpkeexception"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/KDF384":{"role":"symbol","url":"\/documentation\/swifthpke\/kdf\/kdf384","kind":"symbol","type":"topic","abstract":[{"text":"HKDF-SHA384","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF384","title":"KDF.KDF384","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"KDF384","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/KDF256":{"type":"topic","kind":"symbol","role":"symbol","url":"\/documentation\/swifthpke\/kdf\/kdf256","abstract":[{"text":"HKDF-SHA256","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF256","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF256","kind":"identifier"}],"title":"KDF.KDF256"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"KEM","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","abstract":[{"text":"The key encapsulation mechanisms","type":"text"}],"title":"KEM","url":"\/documentation\/swifthpke\/kem","type":"topic","role":"symbol","navigatorTitle":[{"text":"KEM","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/Equatable-Implementations":{"url":"\/documentation\/swifthpke\/kdf\/equatable-implementations","title":"Equatable Implementations","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/Equatable-Implementations","type":"topic","abstract":[],"kind":"article","role":"collectionGroup"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/description":{"title":"description","abstract":[{"type":"text","text":"Textual description of "},{"type":"codeVoice","code":"self"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/description","kind":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"type":"topic","url":"\/documentation\/swifthpke\/kdf\/description","role":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kdf/!=(_:_:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kdf/!=(_:_:).json index 72fb369..0daff71 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kdf/!=(_:_:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kdf/!=(_:_:).json @@ -1 +1 @@ -{"sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/!=(_:_:)","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/Equatable-Implementations"]]},"kind":"symbol","schemaVersion":{"major":0,"minor":3,"patch":0},"abstract":[{"text":"Inherited from ","type":"text"},{"type":"codeVoice","code":"Equatable.!=(_:_:)"},{"type":"text","text":"."}],"metadata":{"fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}],"symbolKind":"op","externalID":"s:SQsE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftHPKE3KDFO","roleHeading":"Operator","title":"!=(_:_:)","role":"symbol","modules":[{"relatedModules":["Swift"],"name":"SwiftHPKE"}],"extendedModule":"Swift"},"variants":[{"paths":["\/documentation\/swifthpke\/kdf\/!=(_:_:)"],"traits":[{"interfaceLanguage":"swift"}]}],"primaryContentSections":[{"declarations":[{"tokens":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"!=","kind":"identifier"},{"kind":"text","text":" "},{"text":"(","kind":"text"},{"kind":"internalParam","text":"lhs"},{"text":": ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"rhs","kind":"internalParam"},{"kind":"text","text":": "},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:Sb","text":"Bool"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/Equatable-Implementations":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/Equatable-Implementations","title":"Equatable Implementations","kind":"article","role":"collectionGroup","abstract":[],"url":"\/documentation\/swifthpke\/kdf\/equatable-implementations","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"abstract":[{"text":"The key derivation functions","type":"text"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","navigatorTitle":[{"kind":"identifier","text":"KDF"}],"url":"\/documentation\/swifthpke\/kdf","type":"topic","title":"KDF"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/!=(_:_:)":{"kind":"symbol","type":"topic","role":"symbol","abstract":[],"title":"!=(_:_:)","url":"\/documentation\/swifthpke\/kdf\/!=(_:_:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/!=(_:_:)","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"!="},{"kind":"text","text":" "},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"Self"},{"text":") -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bool","preciseIdentifier":"s:Sb"}]}}} \ No newline at end of file +{"metadata":{"title":"!=(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"!="},{"kind":"text","text":" "},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"Self","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Sb","text":"Bool"}],"role":"symbol","extendedModule":"Swift","symbolKind":"op","roleHeading":"Operator","externalID":"s:SQsE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftHPKE3KDFO","modules":[{"relatedModules":["Swift"],"name":"SwiftHPKE"}]},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"kind":"text","text":" "},{"kind":"text","text":"("},{"kind":"internalParam","text":"lhs"},{"kind":"text","text":": "},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"internalParam","text":"rhs"},{"text":": ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}],"platforms":["macOS"],"languages":["swift"]}]}],"variants":[{"paths":["\/documentation\/swifthpke\/kdf\/!=(_:_:)"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/!=(_:_:)","interfaceLanguage":"swift"},"sections":[],"abstract":[{"type":"text","text":"Inherited from "},{"code":"Equatable.!=(_:_:)","type":"codeVoice"},{"text":".","type":"text"}],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/Equatable-Implementations"]]},"schemaVersion":{"patch":0,"major":0,"minor":3},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/Equatable-Implementations":{"url":"\/documentation\/swifthpke\/kdf\/equatable-implementations","title":"Equatable Implementations","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/Equatable-Implementations","type":"topic","abstract":[],"kind":"article","role":"collectionGroup"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"kind":"symbol","url":"\/documentation\/swifthpke\/kdf","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","navigatorTitle":[{"text":"KDF","kind":"identifier"}],"type":"topic","abstract":[{"type":"text","text":"The key derivation functions"}],"role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"title":"KDF"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/!=(_:_:)":{"url":"\/documentation\/swifthpke\/kdf\/!=(_:_:)","type":"topic","role":"symbol","title":"!=(_:_:)","abstract":[],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/!=(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"text":" ","kind":"text"},{"kind":"text","text":"("},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"text":") -> ","kind":"text"},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}],"kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kdf/description.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kdf/description.json index c564999..801394b 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kdf/description.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kdf/description.json @@ -1 +1 @@ -{"kind":"symbol","primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":" { ","kind":"text"},{"kind":"keyword","text":"get"},{"text":" }","kind":"text"}],"languages":["swift"]}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/description"},"variants":[{"paths":["\/documentation\/swifthpke\/kdf\/description"],"traits":[{"interfaceLanguage":"swift"}]}],"abstract":[{"type":"text","text":"Textual description of "},{"type":"codeVoice","code":"self"}],"schemaVersion":{"patch":0,"major":0,"minor":3},"metadata":{"fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"}],"roleHeading":"Instance Property","modules":[{"name":"SwiftHPKE"}],"title":"description","symbolKind":"property","externalID":"s:9SwiftHPKE3KDFO11descriptionSSvp","role":"symbol"},"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/description":{"title":"description","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/description","type":"topic","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"abstract":[{"type":"text","text":"Textual description of "},{"code":"self","type":"codeVoice"}],"url":"\/documentation\/swifthpke\/kdf\/description","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"abstract":[{"text":"The key derivation functions","type":"text"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","navigatorTitle":[{"kind":"identifier","text":"KDF"}],"url":"\/documentation\/swifthpke\/kdf","type":"topic","title":"KDF"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"}}} \ No newline at end of file +{"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/description","interfaceLanguage":"swift"},"abstract":[{"type":"text","text":"Textual description of "},{"type":"codeVoice","code":"self"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"]]},"sections":[],"metadata":{"symbolKind":"property","title":"description","role":"symbol","externalID":"s:9SwiftHPKE3KDFO11descriptionSSvp","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Instance Property","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"}]},"kind":"symbol","schemaVersion":{"major":0,"minor":3,"patch":0},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":" { ","kind":"text"},{"text":"get","kind":"keyword"},{"text":" }","kind":"text"}],"languages":["swift"]}],"kind":"declarations"}],"variants":[{"paths":["\/documentation\/swifthpke\/kdf\/description"],"traits":[{"interfaceLanguage":"swift"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"kind":"symbol","url":"\/documentation\/swifthpke\/kdf","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","navigatorTitle":[{"text":"KDF","kind":"identifier"}],"type":"topic","abstract":[{"type":"text","text":"The key derivation functions"}],"role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"title":"KDF"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/description":{"title":"description","abstract":[{"type":"text","text":"Textual description of "},{"type":"codeVoice","code":"self"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/description","kind":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"type":"topic","url":"\/documentation\/swifthpke\/kdf\/description","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kdf/equatable-implementations.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kdf/equatable-implementations.json index 4bcb671..610f85f 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kdf/equatable-implementations.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kdf/equatable-implementations.json @@ -1 +1 @@ -{"variants":[{"paths":["\/documentation\/swifthpke\/kdf\/equatable-implementations"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"article","identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/Equatable-Implementations","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"]]},"sections":[],"schemaVersion":{"minor":3,"patch":0,"major":0},"metadata":{"roleHeading":"API Collection","modules":[{"name":"SwiftHPKE"}],"role":"collectionGroup","title":"Equatable Implementations"},"topicSections":[{"generated":true,"title":"Operators","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/!=(_:_:)"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/!=(_:_:)":{"kind":"symbol","type":"topic","role":"symbol","abstract":[],"title":"!=(_:_:)","url":"\/documentation\/swifthpke\/kdf\/!=(_:_:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/!=(_:_:)","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"!="},{"kind":"text","text":" "},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"Self"},{"text":") -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bool","preciseIdentifier":"s:Sb"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"abstract":[{"text":"The key derivation functions","type":"text"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","navigatorTitle":[{"kind":"identifier","text":"KDF"}],"url":"\/documentation\/swifthpke\/kdf","type":"topic","title":"KDF"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"}}} \ No newline at end of file +{"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"]]},"topicSections":[{"title":"Operators","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/!=(_:_:)"],"generated":true}],"schemaVersion":{"patch":0,"minor":3,"major":0},"metadata":{"role":"collectionGroup","roleHeading":"API Collection","title":"Equatable Implementations","modules":[{"name":"SwiftHPKE"}]},"kind":"article","variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kdf\/equatable-implementations"]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/Equatable-Implementations"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/!=(_:_:)":{"url":"\/documentation\/swifthpke\/kdf\/!=(_:_:)","type":"topic","role":"symbol","title":"!=(_:_:)","abstract":[],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/!=(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"text":" ","kind":"text"},{"kind":"text","text":"("},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"text":") -> ","kind":"text"},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"kind":"symbol","url":"\/documentation\/swifthpke\/kdf","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","navigatorTitle":[{"text":"KDF","kind":"identifier"}],"type":"topic","abstract":[{"type":"text","text":"The key derivation functions"}],"role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"title":"KDF"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kdf/kdf256.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kdf/kdf256.json index 45758ae..3875763 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kdf/kdf256.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kdf/kdf256.json @@ -1 +1 @@ -{"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF256"},"metadata":{"modules":[{"name":"SwiftHPKE"}],"role":"symbol","symbolKind":"case","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF256","kind":"identifier"}],"title":"KDF.KDF256","roleHeading":"Case","externalID":"s:9SwiftHPKE3KDFO6KDF256yA2CmF"},"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"]]},"abstract":[{"type":"text","text":"HKDF-SHA256"}],"variants":[{"paths":["\/documentation\/swifthpke\/kdf\/kdf256"],"traits":[{"interfaceLanguage":"swift"}]}],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"KDF256","kind":"identifier"}],"languages":["swift"],"platforms":["macOS"]}]}],"schemaVersion":{"minor":3,"patch":0,"major":0},"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"abstract":[{"text":"The key derivation functions","type":"text"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","navigatorTitle":[{"kind":"identifier","text":"KDF"}],"url":"\/documentation\/swifthpke\/kdf","type":"topic","title":"KDF"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/KDF256":{"role":"symbol","abstract":[{"type":"text","text":"HKDF-SHA256"}],"kind":"symbol","type":"topic","title":"KDF.KDF256","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF256","kind":"identifier"}],"url":"\/documentation\/swifthpke\/kdf\/kdf256","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF256"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"}}} \ No newline at end of file +{"metadata":{"fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF256","kind":"identifier"}],"modules":[{"name":"SwiftHPKE"}],"role":"symbol","symbolKind":"case","externalID":"s:9SwiftHPKE3KDFO6KDF256yA2CmF","roleHeading":"Case","title":"KDF.KDF256"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"]]},"sections":[],"abstract":[{"type":"text","text":"HKDF-SHA256"}],"schemaVersion":{"patch":0,"minor":3,"major":0},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF256"},"primaryContentSections":[{"declarations":[{"languages":["swift"],"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"KDF256"}],"platforms":["macOS"]}],"kind":"declarations"}],"kind":"symbol","variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kdf\/kdf256"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/KDF256":{"type":"topic","kind":"symbol","role":"symbol","url":"\/documentation\/swifthpke\/kdf\/kdf256","abstract":[{"text":"HKDF-SHA256","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF256","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF256","kind":"identifier"}],"title":"KDF.KDF256"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"kind":"symbol","url":"\/documentation\/swifthpke\/kdf","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","navigatorTitle":[{"text":"KDF","kind":"identifier"}],"type":"topic","abstract":[{"type":"text","text":"The key derivation functions"}],"role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"title":"KDF"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kdf/kdf384.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kdf/kdf384.json index 357e6ea..aea1c30 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kdf/kdf384.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kdf/kdf384.json @@ -1 +1 @@ -{"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF384"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"]]},"metadata":{"role":"symbol","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Case","symbolKind":"case","externalID":"s:9SwiftHPKE3KDFO6KDF384yA2CmF","title":"KDF.KDF384","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF384","kind":"identifier"}]},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"KDF384"}],"platforms":["macOS"],"languages":["swift"]}]}],"sections":[],"schemaVersion":{"patch":0,"major":0,"minor":3},"abstract":[{"type":"text","text":"HKDF-SHA384"}],"variants":[{"paths":["\/documentation\/swifthpke\/kdf\/kdf384"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/KDF384":{"role":"symbol","type":"topic","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF384","url":"\/documentation\/swifthpke\/kdf\/kdf384","title":"KDF.KDF384","abstract":[{"text":"HKDF-SHA384","type":"text"}],"fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"KDF384","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"abstract":[{"text":"The key derivation functions","type":"text"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","navigatorTitle":[{"kind":"identifier","text":"KDF"}],"url":"\/documentation\/swifthpke\/kdf","type":"topic","title":"KDF"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"}}} \ No newline at end of file +{"metadata":{"modules":[{"name":"SwiftHPKE"}],"symbolKind":"case","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"KDF384"}],"title":"KDF.KDF384","externalID":"s:9SwiftHPKE3KDFO6KDF384yA2CmF","role":"symbol","roleHeading":"Case"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"]]},"sections":[],"abstract":[{"type":"text","text":"HKDF-SHA384"}],"schemaVersion":{"patch":0,"major":0,"minor":3},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF384"},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"KDF384","kind":"identifier"}]}]}],"kind":"symbol","variants":[{"paths":["\/documentation\/swifthpke\/kdf\/kdf384"],"traits":[{"interfaceLanguage":"swift"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"kind":"symbol","url":"\/documentation\/swifthpke\/kdf","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","navigatorTitle":[{"text":"KDF","kind":"identifier"}],"type":"topic","abstract":[{"type":"text","text":"The key derivation functions"}],"role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"title":"KDF"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/KDF384":{"role":"symbol","url":"\/documentation\/swifthpke\/kdf\/kdf384","kind":"symbol","type":"topic","abstract":[{"text":"HKDF-SHA384","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF384","title":"KDF.KDF384","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"KDF384","kind":"identifier"}]}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kdf/kdf512.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kdf/kdf512.json index 1f529df..d96c822 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kdf/kdf512.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kdf/kdf512.json @@ -1 +1 @@ -{"abstract":[{"type":"text","text":"HKDF-SHA512"}],"sections":[],"metadata":{"title":"KDF.KDF512","roleHeading":"Case","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE3KDFO6KDF512yA2CmF","symbolKind":"case","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"KDF512","kind":"identifier"}],"role":"symbol"},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF512"},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF512","kind":"identifier"}],"languages":["swift"],"platforms":["macOS"]}]}],"variants":[{"paths":["\/documentation\/swifthpke\/kdf\/kdf512"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","schemaVersion":{"patch":0,"minor":3,"major":0},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","type":"topic","title":"SwiftHPKE"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/KDF512":{"role":"symbol","kind":"symbol","url":"\/documentation\/swifthpke\/kdf\/kdf512","type":"topic","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"KDF512","kind":"identifier"}],"title":"KDF.KDF512","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF512","abstract":[{"text":"HKDF-SHA512","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"abstract":[{"text":"The key derivation functions","type":"text"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","navigatorTitle":[{"kind":"identifier","text":"KDF"}],"url":"\/documentation\/swifthpke\/kdf","type":"topic","title":"KDF"}}} \ No newline at end of file +{"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF512","interfaceLanguage":"swift"},"schemaVersion":{"minor":3,"patch":0,"major":0},"sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kdf\/kdf512"]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"]]},"metadata":{"role":"symbol","roleHeading":"Case","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"KDF512","kind":"identifier"}],"modules":[{"name":"SwiftHPKE"}],"symbolKind":"case","externalID":"s:9SwiftHPKE3KDFO6KDF512yA2CmF","title":"KDF.KDF512"},"kind":"symbol","primaryContentSections":[{"declarations":[{"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"KDF512"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"}],"abstract":[{"type":"text","text":"HKDF-SHA512"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"kind":"symbol","url":"\/documentation\/swifthpke\/kdf","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","navigatorTitle":[{"text":"KDF","kind":"identifier"}],"type":"topic","abstract":[{"type":"text","text":"The key derivation functions"}],"role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"title":"KDF"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/KDF512":{"url":"\/documentation\/swifthpke\/kdf\/kdf512","title":"KDF.KDF512","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF512","role":"symbol","abstract":[{"text":"HKDF-SHA512","type":"text"}],"type":"topic","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"KDF512"}],"kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem.json index 0af82b3..09c2c71 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem.json @@ -1 +1 @@ -{"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kem"]}],"metadata":{"externalID":"s:9SwiftHPKE3KEMO","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"KEM","kind":"identifier"}],"modules":[{"name":"SwiftHPKE"}],"title":"KEM","roleHeading":"Enumeration","role":"symbol","navigatorTitle":[{"text":"KEM","kind":"identifier"}],"symbolKind":"enum"},"schemaVersion":{"major":0,"minor":3,"patch":0},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"},"topicSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P256","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P384","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P521","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X25519","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X448"],"title":"Enumeration Cases"},{"title":"Instance Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/description"]},{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/Equatable-Implementations"],"title":"Default Implementations"}],"kind":"symbol","relationshipsSections":[{"title":"Conforms To","identifiers":["doc:\/\/SwiftHPKE\/s12CaseIterableP","doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","doc:\/\/SwiftHPKE\/SQ","doc:\/\/SwiftHPKE\/SH"],"kind":"relationships","type":"conformsTo"}],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"],"generated":true,"title":"Enumerations"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"abstract":[{"text":"The key encapsulation mechanisms","type":"text"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"KEM"}]}]}],"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/X448":{"fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"X448","kind":"identifier"}],"url":"\/documentation\/swifthpke\/kem\/x448","kind":"symbol","type":"topic","role":"symbol","abstract":[{"type":"text","text":"X448 - HKDF-SHA512"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X448","title":"KEM.X448"},"doc://SwiftHPKE/s12CaseIterableP":{"identifier":"doc:\/\/SwiftHPKE\/s12CaseIterableP","type":"unresolvable","title":"Swift.CaseIterable"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/P521":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem\/p521","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P521","abstract":[{"type":"text","text":"P521 - HKDF-SHA512"}],"title":"KEM.P521","type":"topic","role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"P521"}]},"doc://SwiftHPKE/s23CustomStringConvertibleP":{"identifier":"doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","type":"unresolvable","title":"Swift.CustomStringConvertible"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/Equatable-Implementations":{"abstract":[],"type":"topic","kind":"article","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/Equatable-Implementations","url":"\/documentation\/swifthpke\/kem\/equatable-implementations","title":"Equatable Implementations","role":"collectionGroup"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/X25519":{"role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"X25519","kind":"identifier"}],"abstract":[{"type":"text","text":"X25519 - HKDF-SHA256"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X25519","url":"\/documentation\/swifthpke\/kem\/x25519","kind":"symbol","type":"topic","title":"KEM.X25519"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/description":{"role":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"abstract":[{"type":"text","text":"Textual description of "},{"code":"self","type":"codeVoice"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/description","kind":"symbol","type":"topic","title":"description","url":"\/documentation\/swifthpke\/kem\/description"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","navigatorTitle":[{"text":"KEM","kind":"identifier"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"title":"KEM","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"KEM","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"abstract":[{"text":"The key derivation functions","type":"text"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","navigatorTitle":[{"kind":"identifier","text":"KDF"}],"url":"\/documentation\/swifthpke\/kdf","type":"topic","title":"KDF"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"AEAD","kind":"identifier"}],"navigatorTitle":[{"text":"AEAD","kind":"identifier"}],"abstract":[{"text":"The AEAD encryption algorithms","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","url":"\/documentation\/swifthpke\/aead","kind":"symbol","type":"topic","title":"AEAD"},"doc://SwiftHPKE/SQ":{"identifier":"doc:\/\/SwiftHPKE\/SQ","type":"unresolvable","title":"Swift.Equatable"},"doc://SwiftHPKE/SH":{"identifier":"doc:\/\/SwiftHPKE\/SH","type":"unresolvable","title":"Swift.Hashable"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/P384":{"role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"P384"}],"abstract":[{"text":"P384 - HKDF-SHA384","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P384","kind":"symbol","type":"topic","title":"KEM.P384","url":"\/documentation\/swifthpke\/kem\/p384"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"kind":"symbol","title":"HPKEException","url":"\/documentation\/swifthpke\/hpkeexception","role":"symbol","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/P256":{"role":"symbol","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"P256","kind":"identifier"}],"abstract":[{"text":"P256 - HKDF-SHA256","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P256","url":"\/documentation\/swifthpke\/kem\/p256","kind":"symbol","type":"topic","title":"KEM.P256"}}} \ No newline at end of file +{"kind":"symbol","topicSections":[{"title":"Enumeration Cases","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P256","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P384","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P521","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X25519","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X448"]},{"title":"Instance Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/description"]},{"title":"Default Implementations","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/Equatable-Implementations"]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"},"seeAlsoSections":[{"generated":true,"title":"Enumerations","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]}],"sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kem"]}],"relationshipsSections":[{"identifiers":["doc:\/\/SwiftHPKE\/s12CaseIterableP","doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","doc:\/\/SwiftHPKE\/SQ","doc:\/\/SwiftHPKE\/SH"],"type":"conformsTo","kind":"relationships","title":"Conforms To"}],"metadata":{"modules":[{"name":"SwiftHPKE"}],"fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"kind":"identifier","text":"KEM"}],"role":"symbol","roleHeading":"Enumeration","title":"KEM","symbolKind":"enum","externalID":"s:9SwiftHPKE3KEMO","navigatorTitle":[{"text":"KEM","kind":"identifier"}]},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"KEM","kind":"identifier"}]}]}],"abstract":[{"text":"The key encapsulation mechanisms","type":"text"}],"schemaVersion":{"minor":3,"major":0,"patch":0},"references":{"doc://SwiftHPKE/SQ":{"title":"Swift.Equatable","identifier":"doc:\/\/SwiftHPKE\/SQ","type":"unresolvable"},"doc://SwiftHPKE/s12CaseIterableP":{"title":"Swift.CaseIterable","identifier":"doc:\/\/SwiftHPKE\/s12CaseIterableP","type":"unresolvable"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/description":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/description","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"abstract":[{"type":"text","text":"Textual description of "},{"type":"codeVoice","code":"self"}],"url":"\/documentation\/swifthpke\/kem\/description","kind":"symbol","title":"description","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"KEM"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"url":"\/documentation\/swifthpke\/kem","kind":"symbol","title":"KEM","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/X448":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X448","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"X448"}],"abstract":[{"type":"text","text":"X448 - HKDF-SHA512"}],"url":"\/documentation\/swifthpke\/kem\/x448","kind":"symbol","title":"KEM.X448","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/P521":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P521","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"P521","kind":"identifier"}],"abstract":[{"type":"text","text":"P521 - HKDF-SHA512"}],"url":"\/documentation\/swifthpke\/kem\/p521","kind":"symbol","title":"KEM.P521","type":"topic","role":"symbol"},"doc://SwiftHPKE/SH":{"identifier":"doc:\/\/SwiftHPKE\/SH","title":"Swift.Hashable","type":"unresolvable"},"doc://SwiftHPKE/s23CustomStringConvertibleP":{"identifier":"doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","title":"Swift.CustomStringConvertible","type":"unresolvable"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"AEAD","kind":"identifier"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","title":"AEAD","url":"\/documentation\/swifthpke\/aead","kind":"symbol","role":"symbol","navigatorTitle":[{"text":"AEAD","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/X25519":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X25519","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"X25519"}],"abstract":[{"type":"text","text":"X25519 - HKDF-SHA256"}],"url":"\/documentation\/swifthpke\/kem\/x25519","kind":"symbol","title":"KEM.X25519","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/Equatable-Implementations":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/Equatable-Implementations","abstract":[],"url":"\/documentation\/swifthpke\/kem\/equatable-implementations","kind":"article","title":"Equatable Implementations","type":"topic","role":"collectionGroup"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/P384":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P384","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"P384","kind":"identifier"}],"abstract":[{"type":"text","text":"P384 - HKDF-SHA384"}],"url":"\/documentation\/swifthpke\/kem\/p384","kind":"symbol","title":"KEM.P384","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/P256":{"type":"topic","title":"KEM.P256","abstract":[{"text":"P256 - HKDF-SHA256","type":"text"}],"kind":"symbol","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P256","url":"\/documentation\/swifthpke\/kem\/p256","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"P256"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"url":"\/documentation\/swifthpke\/hpkeexception","title":"HPKEException","role":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","abstract":[{"type":"text","text":"The HPKE exceptions"}],"navigatorTitle":[{"kind":"identifier","text":"HPKEException"}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"HPKEException","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"kind":"symbol","url":"\/documentation\/swifthpke\/kdf","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","navigatorTitle":[{"text":"KDF","kind":"identifier"}],"type":"topic","abstract":[{"type":"text","text":"The key derivation functions"}],"role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"title":"KDF"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/!=(_:_:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/!=(_:_:).json index 9fe57d3..05408cf 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/!=(_:_:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/!=(_:_:).json @@ -1 +1 @@ -{"abstract":[{"text":"Inherited from ","type":"text"},{"type":"codeVoice","code":"Equatable.!=(_:_:)"},{"type":"text","text":"."}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kem\/!=(_:_:)"]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/!=(_:_:)","interfaceLanguage":"swift"},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"text":" ","kind":"text"},{"kind":"text","text":"("},{"text":"lhs","kind":"internalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Self"},{"text":", ","kind":"text"},{"text":"rhs","kind":"internalParam"},{"text":": ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}],"languages":["swift"]}],"kind":"declarations"}],"kind":"symbol","schemaVersion":{"major":0,"minor":3,"patch":0},"metadata":{"extendedModule":"Swift","role":"symbol","title":"!=(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"Self","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}],"symbolKind":"op","modules":[{"name":"SwiftHPKE","relatedModules":["Swift"]}],"externalID":"s:SQsE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftHPKE3KEMO","roleHeading":"Operator"},"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/Equatable-Implementations"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/Equatable-Implementations":{"abstract":[],"type":"topic","kind":"article","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/Equatable-Implementations","url":"\/documentation\/swifthpke\/kem\/equatable-implementations","title":"Equatable Implementations","role":"collectionGroup"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","navigatorTitle":[{"text":"KEM","kind":"identifier"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"title":"KEM","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"KEM","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/!=(_:_:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/!=(_:_:)","type":"topic","role":"symbol","title":"!=(_:_:)","kind":"symbol","abstract":[],"fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"text":"Bool","preciseIdentifier":"s:Sb","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/kem\/!=(_:_:)"}}} \ No newline at end of file +{"kind":"symbol","metadata":{"extendedModule":"Swift","modules":[{"name":"SwiftHPKE","relatedModules":["Swift"]}],"symbolKind":"op","role":"symbol","roleHeading":"Operator","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:Sb","kind":"typeIdentifier","text":"Bool"}],"title":"!=(_:_:)","externalID":"s:SQsE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftHPKE3KEMO"},"abstract":[{"type":"text","text":"Inherited from "},{"code":"Equatable.!=(_:_:)","type":"codeVoice"},{"type":"text","text":"."}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kem\/!=(_:_:)"]}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"lhs","kind":"internalParam"},{"kind":"text","text":": "},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"rhs","kind":"internalParam"},{"text":": ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:Sb","text":"Bool"}]}],"kind":"declarations"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/Equatable-Implementations"]]},"sections":[],"schemaVersion":{"minor":3,"patch":0,"major":0},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/!=(_:_:)"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/Equatable-Implementations":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/Equatable-Implementations","abstract":[],"url":"\/documentation\/swifthpke\/kem\/equatable-implementations","kind":"article","title":"Equatable Implementations","type":"topic","role":"collectionGroup"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"KEM"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"url":"\/documentation\/swifthpke\/kem","kind":"symbol","title":"KEM","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/!=(_:_:)":{"abstract":[],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/!=(_:_:)","role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}],"type":"topic","url":"\/documentation\/swifthpke\/kem\/!=(_:_:)","title":"!=(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/description.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/description.json index 21e37a3..a0f9060 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/description.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/description.json @@ -1 +1 @@ -{"abstract":[{"type":"text","text":"Textual description of "},{"code":"self","type":"codeVoice"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"description"},{"kind":"text","text":": "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":" { "},{"text":"get","kind":"keyword"},{"kind":"text","text":" }"}]}]}],"sections":[],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kem\/description"]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/description"},"metadata":{"modules":[{"name":"SwiftHPKE"}],"symbolKind":"property","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"roleHeading":"Instance Property","title":"description","externalID":"s:9SwiftHPKE3KEMO11descriptionSSvp","role":"symbol"},"schemaVersion":{"minor":3,"patch":0,"major":0},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","navigatorTitle":[{"text":"KEM","kind":"identifier"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"title":"KEM","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"KEM","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/description":{"role":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"abstract":[{"type":"text","text":"Textual description of "},{"code":"self","type":"codeVoice"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/description","kind":"symbol","type":"topic","title":"description","url":"\/documentation\/swifthpke\/kem\/description"}}} \ No newline at end of file +{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"]]},"abstract":[{"type":"text","text":"Textual description of "},{"code":"self","type":"codeVoice"}],"sections":[],"schemaVersion":{"major":0,"patch":0,"minor":3},"variants":[{"paths":["\/documentation\/swifthpke\/kem\/description"],"traits":[{"interfaceLanguage":"swift"}]}],"primaryContentSections":[{"declarations":[{"tokens":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"text":" { ","kind":"text"},{"text":"get","kind":"keyword"},{"kind":"text","text":" }"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/description"},"kind":"symbol","metadata":{"roleHeading":"Instance Property","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"}],"symbolKind":"property","externalID":"s:9SwiftHPKE3KEMO11descriptionSSvp","role":"symbol","modules":[{"name":"SwiftHPKE"}],"title":"description"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"KEM"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"url":"\/documentation\/swifthpke\/kem","kind":"symbol","title":"KEM","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/description":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/description","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"abstract":[{"type":"text","text":"Textual description of "},{"type":"codeVoice","code":"self"}],"url":"\/documentation\/swifthpke\/kem\/description","kind":"symbol","title":"description","type":"topic","role":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/equatable-implementations.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/equatable-implementations.json index 74b2c32..bfddf77 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/equatable-implementations.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/equatable-implementations.json @@ -1 +1 @@ -{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"]]},"sections":[],"kind":"article","variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kem\/equatable-implementations"]}],"topicSections":[{"generated":true,"title":"Operators","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/!=(_:_:)"]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"metadata":{"title":"Equatable Implementations","modules":[{"name":"SwiftHPKE"}],"role":"collectionGroup","roleHeading":"API Collection"},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/Equatable-Implementations","interfaceLanguage":"swift"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/!=(_:_:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/!=(_:_:)","type":"topic","role":"symbol","title":"!=(_:_:)","kind":"symbol","abstract":[],"fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"text":"Bool","preciseIdentifier":"s:Sb","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/kem\/!=(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","navigatorTitle":[{"text":"KEM","kind":"identifier"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"title":"KEM","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"KEM","kind":"identifier"}]}}} \ No newline at end of file +{"sections":[],"variants":[{"paths":["\/documentation\/swifthpke\/kem\/equatable-implementations"],"traits":[{"interfaceLanguage":"swift"}]}],"topicSections":[{"title":"Operators","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/!=(_:_:)"],"generated":true}],"schemaVersion":{"patch":0,"major":0,"minor":3},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"]]},"metadata":{"modules":[{"name":"SwiftHPKE"}],"roleHeading":"API Collection","title":"Equatable Implementations","role":"collectionGroup"},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/Equatable-Implementations"},"kind":"article","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/!=(_:_:)":{"abstract":[],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/!=(_:_:)","role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}],"type":"topic","url":"\/documentation\/swifthpke\/kem\/!=(_:_:)","title":"!=(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"KEM"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"url":"\/documentation\/swifthpke\/kem","kind":"symbol","title":"KEM","type":"topic","role":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/p256.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/p256.json index 808d00d..be6390e 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/p256.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/p256.json @@ -1 +1 @@ -{"sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kem\/p256"]}],"schemaVersion":{"minor":3,"patch":0,"major":0},"metadata":{"role":"symbol","roleHeading":"Case","symbolKind":"case","modules":[{"name":"SwiftHPKE"}],"title":"KEM.P256","externalID":"s:9SwiftHPKE3KEMO4P256yA2CmF","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"P256","kind":"identifier"}]},"kind":"symbol","abstract":[{"text":"P256 - HKDF-SHA256","type":"text"}],"primaryContentSections":[{"declarations":[{"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"P256"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"]]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P256","interfaceLanguage":"swift"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/P256":{"role":"symbol","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"P256","kind":"identifier"}],"abstract":[{"text":"P256 - HKDF-SHA256","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P256","url":"\/documentation\/swifthpke\/kem\/p256","kind":"symbol","type":"topic","title":"KEM.P256"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","navigatorTitle":[{"text":"KEM","kind":"identifier"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"title":"KEM","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"KEM","kind":"identifier"}]}}} \ No newline at end of file +{"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"P256","kind":"identifier"}]}]}],"schemaVersion":{"patch":0,"major":0,"minor":3},"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"]]},"sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P256","interfaceLanguage":"swift"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kem\/p256"]}],"metadata":{"title":"KEM.P256","modules":[{"name":"SwiftHPKE"}],"symbolKind":"case","externalID":"s:9SwiftHPKE3KEMO4P256yA2CmF","role":"symbol","roleHeading":"Case","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"P256"}]},"abstract":[{"type":"text","text":"P256 - HKDF-SHA256"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"KEM"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"url":"\/documentation\/swifthpke\/kem","kind":"symbol","title":"KEM","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/P256":{"type":"topic","title":"KEM.P256","abstract":[{"text":"P256 - HKDF-SHA256","type":"text"}],"kind":"symbol","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P256","url":"\/documentation\/swifthpke\/kem\/p256","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"P256"}]}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/p384.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/p384.json index 7834f1d..dee7975 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/p384.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/p384.json @@ -1 +1 @@ -{"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kem\/p384"]}],"abstract":[{"text":"P384 - HKDF-SHA384","type":"text"}],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"]]},"metadata":{"modules":[{"name":"SwiftHPKE"}],"roleHeading":"Case","role":"symbol","externalID":"s:9SwiftHPKE3KEMO4P384yA2CmF","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"P384","kind":"identifier"}],"symbolKind":"case","title":"KEM.P384"},"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P384"},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"P384","kind":"identifier"}],"platforms":["macOS"],"languages":["swift"]}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/P384":{"role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"P384"}],"abstract":[{"text":"P384 - HKDF-SHA384","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P384","kind":"symbol","type":"topic","title":"KEM.P384","url":"\/documentation\/swifthpke\/kem\/p384"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","navigatorTitle":[{"text":"KEM","kind":"identifier"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"title":"KEM","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"KEM","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"}}} \ No newline at end of file +{"metadata":{"modules":[{"name":"SwiftHPKE"}],"role":"symbol","roleHeading":"Case","symbolKind":"case","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"P384","kind":"identifier"}],"externalID":"s:9SwiftHPKE3KEMO4P384yA2CmF","title":"KEM.P384"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"]]},"sections":[],"abstract":[{"type":"text","text":"P384 - HKDF-SHA384"}],"schemaVersion":{"patch":0,"minor":3,"major":0},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P384"},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"P384","kind":"identifier"}],"languages":["swift"]}],"kind":"declarations"}],"kind":"symbol","variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kem\/p384"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/P384":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P384","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"P384","kind":"identifier"}],"abstract":[{"type":"text","text":"P384 - HKDF-SHA384"}],"url":"\/documentation\/swifthpke\/kem\/p384","kind":"symbol","title":"KEM.P384","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"KEM"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"url":"\/documentation\/swifthpke\/kem","kind":"symbol","title":"KEM","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/p521.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/p521.json index 99e0dbd..c361250 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/p521.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/p521.json @@ -1 +1 @@ -{"sections":[],"schemaVersion":{"patch":0,"major":0,"minor":3},"abstract":[{"type":"text","text":"P521 - HKDF-SHA512"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"P521","kind":"identifier"}],"platforms":["macOS"]}]}],"variants":[{"paths":["\/documentation\/swifthpke\/kem\/p521"],"traits":[{"interfaceLanguage":"swift"}]}],"metadata":{"role":"symbol","title":"KEM.P521","roleHeading":"Case","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"P521"}],"externalID":"s:9SwiftHPKE3KEMO4P521yA2CmF","symbolKind":"case","modules":[{"name":"SwiftHPKE"}]},"kind":"symbol","identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P521","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","navigatorTitle":[{"text":"KEM","kind":"identifier"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"title":"KEM","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"KEM","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/P521":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem\/p521","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P521","abstract":[{"type":"text","text":"P521 - HKDF-SHA512"}],"title":"KEM.P521","type":"topic","role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"P521"}]}}} \ No newline at end of file +{"schemaVersion":{"patch":0,"minor":3,"major":0},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"P521"}],"languages":["swift"]}],"kind":"declarations"}],"abstract":[{"type":"text","text":"P521 - HKDF-SHA512"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"]]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P521","interfaceLanguage":"swift"},"kind":"symbol","variants":[{"paths":["\/documentation\/swifthpke\/kem\/p521"],"traits":[{"interfaceLanguage":"swift"}]}],"sections":[],"metadata":{"fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"P521","kind":"identifier"}],"role":"symbol","externalID":"s:9SwiftHPKE3KEMO4P521yA2CmF","roleHeading":"Case","title":"KEM.P521","modules":[{"name":"SwiftHPKE"}],"symbolKind":"case"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"KEM"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"url":"\/documentation\/swifthpke\/kem","kind":"symbol","title":"KEM","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/P521":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P521","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"P521","kind":"identifier"}],"abstract":[{"type":"text","text":"P521 - HKDF-SHA512"}],"url":"\/documentation\/swifthpke\/kem\/p521","kind":"symbol","title":"KEM.P521","type":"topic","role":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/x25519.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/x25519.json index bbc4e73..fa2e3ae 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/x25519.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/x25519.json @@ -1 +1 @@ -{"schemaVersion":{"major":0,"minor":3,"patch":0},"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"]]},"abstract":[{"text":"X25519 - HKDF-SHA256","type":"text"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"X25519","kind":"identifier"}],"languages":["swift"],"platforms":["macOS"]}]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X25519","interfaceLanguage":"swift"},"metadata":{"role":"symbol","modules":[{"name":"SwiftHPKE"}],"symbolKind":"case","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"X25519"}],"title":"KEM.X25519","roleHeading":"Case","externalID":"s:9SwiftHPKE3KEMO6X25519yA2CmF"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kem\/x25519"]}],"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","navigatorTitle":[{"text":"KEM","kind":"identifier"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"title":"KEM","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"KEM","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/X25519":{"role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"X25519","kind":"identifier"}],"abstract":[{"type":"text","text":"X25519 - HKDF-SHA256"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X25519","url":"\/documentation\/swifthpke\/kem\/x25519","kind":"symbol","type":"topic","title":"KEM.X25519"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"}}} \ No newline at end of file +{"kind":"symbol","sections":[],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"X25519","kind":"identifier"}],"platforms":["macOS"],"languages":["swift"]}]}],"variants":[{"paths":["\/documentation\/swifthpke\/kem\/x25519"],"traits":[{"interfaceLanguage":"swift"}]}],"metadata":{"fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"X25519"}],"externalID":"s:9SwiftHPKE3KEMO6X25519yA2CmF","roleHeading":"Case","symbolKind":"case","title":"KEM.X25519","role":"symbol","modules":[{"name":"SwiftHPKE"}]},"schemaVersion":{"minor":3,"major":0,"patch":0},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"]]},"abstract":[{"type":"text","text":"X25519 - HKDF-SHA256"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X25519","interfaceLanguage":"swift"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"KEM"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"url":"\/documentation\/swifthpke\/kem","kind":"symbol","title":"KEM","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/X25519":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X25519","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"X25519"}],"abstract":[{"type":"text","text":"X25519 - HKDF-SHA256"}],"url":"\/documentation\/swifthpke\/kem\/x25519","kind":"symbol","title":"KEM.X25519","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/x448.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/x448.json index 56057d7..239d71b 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/x448.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/kem/x448.json @@ -1 +1 @@ -{"kind":"symbol","primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"X448"}],"platforms":["macOS"],"languages":["swift"]}]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kem\/x448"]}],"abstract":[{"text":"X448 - HKDF-SHA512","type":"text"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X448"},"schemaVersion":{"major":0,"minor":3,"patch":0},"metadata":{"role":"symbol","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"X448"}],"externalID":"s:9SwiftHPKE3KEMO4X448yA2CmF","roleHeading":"Case","modules":[{"name":"SwiftHPKE"}],"title":"KEM.X448","symbolKind":"case"},"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","navigatorTitle":[{"text":"KEM","kind":"identifier"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"title":"KEM","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"KEM","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/X448":{"fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"X448","kind":"identifier"}],"url":"\/documentation\/swifthpke\/kem\/x448","kind":"symbol","type":"topic","role":"symbol","abstract":[{"type":"text","text":"X448 - HKDF-SHA512"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X448","title":"KEM.X448"}}} \ No newline at end of file +{"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X448"},"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"]]},"schemaVersion":{"minor":3,"major":0,"patch":0},"kind":"symbol","variants":[{"paths":["\/documentation\/swifthpke\/kem\/x448"],"traits":[{"interfaceLanguage":"swift"}]}],"abstract":[{"type":"text","text":"X448 - HKDF-SHA512"}],"primaryContentSections":[{"declarations":[{"languages":["swift"],"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"X448"}],"platforms":["macOS"]}],"kind":"declarations"}],"metadata":{"externalID":"s:9SwiftHPKE3KEMO4X448yA2CmF","title":"KEM.X448","role":"symbol","modules":[{"name":"SwiftHPKE"}],"symbolKind":"case","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"X448","kind":"identifier"}],"roleHeading":"Case"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/X448":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X448","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"X448"}],"abstract":[{"type":"text","text":"X448 - HKDF-SHA512"}],"url":"\/documentation\/swifthpke\/kem\/x448","kind":"symbol","title":"KEM.X448","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"KEM"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"url":"\/documentation\/swifthpke\/kem","kind":"symbol","title":"KEM","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/keymanagement.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/keymanagement.json index de46dd0..070fb1a 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/keymanagement.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/keymanagement.json @@ -1 +1 @@ -{"primaryContentSections":[{"kind":"content","content":[{"text":"","level":2,"anchor":"","type":"heading"},{"anchor":"Create-new-Keys","type":"heading","text":"Create new Keys","level":3},{"inlineContent":[{"type":"text","text":"Given a "},{"isActive":true,"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","type":"reference"},{"type":"text","text":" instance it is possible to generate new "},{"type":"reference","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","isActive":true},{"type":"text","text":"’s and "},{"type":"reference","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","isActive":true},{"text":"’s.","type":"text"}],"type":"paragraph"},{"type":"codeListing","syntax":"swift","code":["import SwiftHPKE","","let suite = CipherSuite(kem: .X25519, kdf: .KDF256, aead: .CHACHAPOLY)","let (pubKey, privKey) = try suite.makeKeyPair()","","\/\/ See the key ASN1 structures","","print(pubKey)","print(privKey)"]},{"inlineContent":[{"text":"giving (for example):","type":"text"}],"type":"paragraph"},{"syntax":"swift","type":"codeListing","code":["Sequence (2):"," Sequence (1):"," Object Identifier: 1.3.101.110"," Bit String (256): 11100111 11100111 00010111 11110101 10101000 10010101 01001010 00100010 00011010 10001001 11001011 11010001 11101101 10000101 01110101 11011111 11010110 00001101 01001110 10100100 00111011 00110100 01110000 01011000 00111111 01011011 10001010 11111010 01101000 10010011 10100001 00001101","","Sequence (3):"," Integer: 0"," Sequence (1):"," Object Identifier: 1.3.101.110"," Octet String (34): 04 20 b0 e5 94 7d f8 72 04 8f 90 79 5f d5 b7 e4 6e ca 56 18 58 30 2e 4e 79 83 d6 46 bb 42 70 2a 34 68"]},{"level":3,"type":"heading","anchor":"Load-existing-Keys","text":"Load existing Keys"},{"inlineContent":[{"text":"It is possible to load existing keys from their PEM encodings or DER encodings.","type":"text"}],"type":"paragraph"},{"type":"codeListing","syntax":"swift","code":["import SwiftHPKE","","\/\/ Public key encoding - curve P384","let pubKeyPem =","\"\"\"","-----BEGIN PUBLIC KEY-----","MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEQW\/MahMwMTFjwY95uOEdfBVC7HrQhTGG","TwxiPlgDiARqC6y6EQ1Ajkuhe4A02WOltRYQRXKytzspOR25UfgtagURAwxVFYzR","9cmi6FRmvvq\/Tsigd\/dAi4FNjniR7\/Pg","-----END PUBLIC KEY-----","\"\"\"","let pubKey = try PublicKey(pem: pubKeyPem)","","\/\/ Private key encoding - curve P384","let privKeyPem =","\"\"\"","-----BEGIN PRIVATE KEY-----","MIG\/AgEAMBAGByqGSM49AgEGBSuBBAAiBIGnMIGkAgEBBDBmpNziSYmGoWwl7apJ","M9ZdDBxkJqmxMScHGXG45ZQXSv7fIuJlsSwxK76nUiiO7gigBwYFK4EEACKhZANi","AARBb8xqEzAxMWPBj3m44R18FULsetCFMYZPDGI+WAOIBGoLrLoRDUCOS6F7gDTZ","Y6W1FhBFcrK3Oyk5HblR+C1qBREDDFUVjNH1yaLoVGa++r9OyKB390CLgU2OeJHv","8+A=","-----END PRIVATE KEY-----","\"\"\"","let privKey = try PrivateKey(pem: privKeyPem)","","\/\/ See the key ASN1 structures","","print(pubKey)","print(privKey)"]},{"type":"paragraph","inlineContent":[{"text":"giving:","type":"text"}]},{"code":["Sequence (2):"," Sequence (2):"," Object Identifier: 1.2.840.10045.2.1"," Object Identifier: 1.3.132.0.34"," Bit String (776): 00000100 01000001 01101111 11001100 01101010 00010011 00110000 00110001 00110001 01100011 11000001 10001111 01111001 10111000 11100001 00011101 01111100 00010101 01000010 11101100 01111010 11010000 10000101 00110001 10000110 01001111 00001100 01100010 00111110 01011000 00000011 10001000 00000100 01101010 00001011 10101100 10111010 00010001 00001101 01000000 10001110 01001011 10100001 01111011 10000000 00110100 11011001 01100011 10100101 10110101 00010110 00010000 01000101 01110010 10110010 10110111 00111011 00101001 00111001 00011101 10111001 01010001 11111000 00101101 01101010 00000101 00010001 00000011 00001100 01010101 00010101 10001100 11010001 11110101 11001001 10100010 11101000 01010100 01100110 10111110 11111010 10111111 01001110 11001000 10100000 01110111 11110111 01000000 10001011 10000001 01001101 10001110 01111000 10010001 11101111 11110011 11100000","","Sequence (3):"," Integer: 0"," Sequence (2):"," Object Identifier: 1.2.840.10045.2.1"," Object Identifier: 1.3.132.0.34"," Octet String (167): 30 81 a4 02 01 01 04 30 66 a4 dc e2 49 89 86 a1 6c 25 ed aa 49 33 d6 5d 0c 1c 64 26 a9 b1 31 27 07 19 71 b8 e5 94 17 4a fe df 22 e2 65 b1 2c 31 2b be a7 52 28 8e ee 08 a0 07 06 05 2b 81 04 00 22 a1 64 03 62 00 04 41 6f cc 6a 13 30 31 31 63 c1 8f 79 b8 e1 1d 7c 15 42 ec 7a d0 85 31 86 4f 0c 62 3e 58 03 88 04 6a 0b ac ba 11 0d 40 8e 4b a1 7b 80 34 d9 63 a5 b5 16 10 45 72 b2 b7 3b 29 39 1d b9 51 f8 2d 6a 05 11 03 0c 55 15 8c d1 f5 c9 a2 e8 54 66 be fa bf 4e c8 a0 77 f7 40 8b 81 4d 8e 78 91 ef f3 e0"],"type":"codeListing","syntax":"swift"}]}],"schemaVersion":{"minor":3,"patch":0,"major":0},"kind":"article","seeAlsoSections":[{"title":"Additional Information","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References"],"generated":true}],"abstract":[{"type":"text","text":"Creating new keys and loading exsisting keys"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/keymanagement"]}],"sections":[],"metadata":{"role":"article","title":"Key Management","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Article"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/CryptoKit":{"kind":"article","abstract":[{"type":"text","text":"SwiftHPKE is compatible with Apple’s CryptoKit framework"}],"title":"CryptoKit Compatibility","url":"\/documentation\/swifthpke\/cryptokit","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","role":"article","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/Performance":{"url":"\/documentation\/swifthpke\/performance","title":"Performance","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","abstract":[{"type":"text","text":"Encryption and decryption speed"}],"role":"article","kind":"article","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/SecretExport":{"kind":"article","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","role":"article","url":"\/documentation\/swifthpke\/secretexport","abstract":[{"type":"text","text":"Creating secret messages"}],"title":"Secret Export"},"doc://SwiftHPKE/documentation/SwiftHPKE/References":{"role":"article","title":"References","abstract":[{"type":"text","text":"Algorithms from the following books and papers have been used in the implementation"}],"url":"\/documentation\/swifthpke\/references","kind":"article","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]}}} \ No newline at end of file +{"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/keymanagement"]}],"primaryContentSections":[{"kind":"content","content":[{"level":2,"text":"","anchor":"","type":"heading"},{"text":"Create new Keys","type":"heading","level":3,"anchor":"Create-new-Keys"},{"type":"paragraph","inlineContent":[{"type":"text","text":"Given a "},{"isActive":true,"type":"reference","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"},{"type":"text","text":" instance it is possible to generate new "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","isActive":true,"type":"reference"},{"type":"text","text":"’s and "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"reference","isActive":true},{"type":"text","text":"’s."}]},{"type":"codeListing","syntax":"swift","code":["import SwiftHPKE","","let suite = CipherSuite(kem: .X25519, kdf: .KDF256, aead: .CHACHAPOLY)","let (pubKey, privKey) = try suite.makeKeyPair()","","\/\/ See the key ASN1 structures","","print(pubKey)","print(privKey)"]},{"inlineContent":[{"text":"giving (for example):","type":"text"}],"type":"paragraph"},{"syntax":"swift","code":["Sequence (2):"," Sequence (1):"," Object Identifier: 1.3.101.110"," Bit String (256): 11100111 11100111 00010111 11110101 10101000 10010101 01001010 00100010 00011010 10001001 11001011 11010001 11101101 10000101 01110101 11011111 11010110 00001101 01001110 10100100 00111011 00110100 01110000 01011000 00111111 01011011 10001010 11111010 01101000 10010011 10100001 00001101","","Sequence (3):"," Integer: 0"," Sequence (1):"," Object Identifier: 1.3.101.110"," Octet String (34): 04 20 b0 e5 94 7d f8 72 04 8f 90 79 5f d5 b7 e4 6e ca 56 18 58 30 2e 4e 79 83 d6 46 bb 42 70 2a 34 68"],"type":"codeListing"},{"type":"heading","level":3,"anchor":"Load-existing-Keys","text":"Load existing Keys"},{"type":"paragraph","inlineContent":[{"text":"It is possible to load existing keys from their PEM encodings or DER encodings.","type":"text"}]},{"type":"codeListing","code":["import SwiftHPKE","","\/\/ Public key encoding - curve P384","let pubKeyPem =","\"\"\"","-----BEGIN PUBLIC KEY-----","MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEQW\/MahMwMTFjwY95uOEdfBVC7HrQhTGG","TwxiPlgDiARqC6y6EQ1Ajkuhe4A02WOltRYQRXKytzspOR25UfgtagURAwxVFYzR","9cmi6FRmvvq\/Tsigd\/dAi4FNjniR7\/Pg","-----END PUBLIC KEY-----","\"\"\"","let pubKey = try PublicKey(pem: pubKeyPem)","","\/\/ Private key encoding - curve P384","let privKeyPem =","\"\"\"","-----BEGIN PRIVATE KEY-----","MIG\/AgEAMBAGByqGSM49AgEGBSuBBAAiBIGnMIGkAgEBBDBmpNziSYmGoWwl7apJ","M9ZdDBxkJqmxMScHGXG45ZQXSv7fIuJlsSwxK76nUiiO7gigBwYFK4EEACKhZANi","AARBb8xqEzAxMWPBj3m44R18FULsetCFMYZPDGI+WAOIBGoLrLoRDUCOS6F7gDTZ","Y6W1FhBFcrK3Oyk5HblR+C1qBREDDFUVjNH1yaLoVGa++r9OyKB390CLgU2OeJHv","8+A=","-----END PRIVATE KEY-----","\"\"\"","let privKey = try PrivateKey(pem: privKeyPem)","","\/\/ See the key ASN1 structures","","print(pubKey)","print(privKey)"],"syntax":"swift"},{"inlineContent":[{"type":"text","text":"giving:"}],"type":"paragraph"},{"syntax":"swift","code":["Sequence (2):"," Sequence (2):"," Object Identifier: 1.2.840.10045.2.1"," Object Identifier: 1.3.132.0.34"," Bit String (776): 00000100 01000001 01101111 11001100 01101010 00010011 00110000 00110001 00110001 01100011 11000001 10001111 01111001 10111000 11100001 00011101 01111100 00010101 01000010 11101100 01111010 11010000 10000101 00110001 10000110 01001111 00001100 01100010 00111110 01011000 00000011 10001000 00000100 01101010 00001011 10101100 10111010 00010001 00001101 01000000 10001110 01001011 10100001 01111011 10000000 00110100 11011001 01100011 10100101 10110101 00010110 00010000 01000101 01110010 10110010 10110111 00111011 00101001 00111001 00011101 10111001 01010001 11111000 00101101 01101010 00000101 00010001 00000011 00001100 01010101 00010101 10001100 11010001 11110101 11001001 10100010 11101000 01010100 01100110 10111110 11111010 10111111 01001110 11001000 10100000 01110111 11110111 01000000 10001011 10000001 01001101 10001110 01111000 10010001 11101111 11110011 11100000","","Sequence (3):"," Integer: 0"," Sequence (2):"," Object Identifier: 1.2.840.10045.2.1"," Object Identifier: 1.3.132.0.34"," Octet String (167): 30 81 a4 02 01 01 04 30 66 a4 dc e2 49 89 86 a1 6c 25 ed aa 49 33 d6 5d 0c 1c 64 26 a9 b1 31 27 07 19 71 b8 e5 94 17 4a fe df 22 e2 65 b1 2c 31 2b be a7 52 28 8e ee 08 a0 07 06 05 2b 81 04 00 22 a1 64 03 62 00 04 41 6f cc 6a 13 30 31 31 63 c1 8f 79 b8 e1 1d 7c 15 42 ec 7a d0 85 31 86 4f 0c 62 3e 58 03 88 04 6a 0b ac ba 11 0d 40 8e 4b a1 7b 80 34 d9 63 a5 b5 16 10 45 72 b2 b7 3b 29 39 1d b9 51 f8 2d 6a 05 11 03 0c 55 15 8c d1 f5 c9 a2 e8 54 66 be fa bf 4e c8 a0 77 f7 40 8b 81 4d 8e 78 91 ef f3 e0"],"type":"codeListing"}]}],"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"schemaVersion":{"major":0,"patch":0,"minor":3},"kind":"article","seeAlsoSections":[{"title":"Additional Information","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References"],"generated":true}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","interfaceLanguage":"swift"},"abstract":[{"text":"Creating new keys and loading exsisting keys","type":"text"}],"metadata":{"roleHeading":"Article","role":"article","title":"Key Management","modules":[{"name":"SwiftHPKE"}]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Performance":{"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","title":"Performance","url":"\/documentation\/swifthpke\/performance","kind":"article","abstract":[{"type":"text","text":"Encryption and decryption speed"}],"role":"article"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/SecretExport":{"role":"article","title":"Secret Export","url":"\/documentation\/swifthpke\/secretexport","type":"topic","kind":"article","abstract":[{"text":"Creating secret messages","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport"},"doc://SwiftHPKE/documentation/SwiftHPKE/References":{"role":"article","title":"References","url":"\/documentation\/swifthpke\/references","type":"topic","abstract":[{"text":"Algorithms from the following books and papers have been used in the implementation","type":"text"}],"kind":"article","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References"},"doc://SwiftHPKE/documentation/SwiftHPKE/CryptoKit":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","kind":"article","role":"article","abstract":[{"text":"SwiftHPKE is compatible with Apple’s CryptoKit framework","type":"text"}],"url":"\/documentation\/swifthpke\/cryptokit","type":"topic","title":"CryptoKit Compatibility"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/performance.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/performance.json index db7068c..e0e8dad 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/performance.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/performance.json @@ -1 +1 @@ -{"variants":[{"paths":["\/documentation\/swifthpke\/performance"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"article","primaryContentSections":[{"kind":"content","content":[{"level":2,"anchor":"","text":"","type":"heading"},{"inlineContent":[{"type":"text","text":"SwiftHPKE’s encryption and decryption performance was measured on an iMac 2021, Apple M1 chip."}],"type":"paragraph"},{"inlineContent":[{"type":"text","text":"The time to create a "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","isActive":true,"type":"reference"},{"type":"text","text":" and "},{"isActive":true,"type":"reference","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"},{"type":"text","text":" instance in base mode is shown in the table below,"},{"text":" ","type":"text"},{"text":"depending on the KEM type - units are milliseconds.","type":"text"}],"type":"paragraph"},{"type":"table","header":"row","alignments":["right","right","right"],"rows":[[[{"inlineContent":[{"type":"text","text":"KEM"}],"type":"paragraph"}],[{"type":"paragraph","inlineContent":[{"type":"text","text":" Sender"}]}],[{"type":"paragraph","inlineContent":[{"type":"text","text":"Recipient "}]}]],[[{"type":"paragraph","inlineContent":[{"type":"text","text":"P256"}]}],[{"inlineContent":[{"text":"7 mSec","type":"text"}],"type":"paragraph"}],[{"type":"paragraph","inlineContent":[{"type":"text","text":"6 mSec"}]}]],[[{"type":"paragraph","inlineContent":[{"type":"text","text":"P384"}]}],[{"type":"paragraph","inlineContent":[{"type":"text","text":"20 mSec"}]}],[{"type":"paragraph","inlineContent":[{"type":"text","text":"17 mSec"}]}]],[[{"type":"paragraph","inlineContent":[{"type":"text","text":"P521"}]}],[{"inlineContent":[{"text":"46 mSec","type":"text"}],"type":"paragraph"}],[{"type":"paragraph","inlineContent":[{"text":"39 mSec","type":"text"}]}]],[[{"type":"paragraph","inlineContent":[{"text":"X25519","type":"text"}]}],[{"inlineContent":[{"type":"text","text":"0.14 mSec"}],"type":"paragraph"}],[{"inlineContent":[{"text":"0.09 mSec","type":"text"}],"type":"paragraph"}]],[[{"inlineContent":[{"text":"X448","type":"text"}],"type":"paragraph"}],[{"type":"paragraph","inlineContent":[{"type":"text","text":"1.1 mSec"}]}],[{"inlineContent":[{"text":"0.5 mSec","type":"text"}],"type":"paragraph"}]]]},{"inlineContent":[{"text":"The encryption and decryption speed in base mode, once the ","type":"text"},{"code":"Sender","type":"codeVoice"},{"type":"text","text":" or "},{"code":"Recipient","type":"codeVoice"},{"text":" instance is created,","type":"text"},{"type":"text","text":" "},{"type":"text","text":"is shown in the table below, depending on the AEAD type - units are MBytes \/ Sec."}],"type":"paragraph"},{"type":"table","header":"row","alignments":["right","right","right"],"rows":[[[{"inlineContent":[{"type":"text","text":"AEAD"}],"type":"paragraph"}],[{"inlineContent":[{"type":"text","text":" Encryption speed"}],"type":"paragraph"}],[{"inlineContent":[{"type":"text","text":"Decryption speed "}],"type":"paragraph"}]],[[{"type":"paragraph","inlineContent":[{"type":"text","text":"AESGCM128"}]}],[{"inlineContent":[{"type":"text","text":"3500 MB\/Sec (0.91 cycles \/ byte)"}],"type":"paragraph"}],[{"inlineContent":[{"text":"3340 MB\/Sec (0.96 cycles \/ byte)","type":"text"}],"type":"paragraph"}]],[[{"inlineContent":[{"type":"text","text":"AESGCM256"}],"type":"paragraph"}],[{"inlineContent":[{"text":"3640 MB\/Sec (0.88 cycles \/ byte)","type":"text"}],"type":"paragraph"}],[{"type":"paragraph","inlineContent":[{"type":"text","text":"3630 MB\/Sec (0.88 cycles \/ byte)"}]}]],[[{"inlineContent":[{"type":"text","text":"CHACHAPOLY"}],"type":"paragraph"}],[{"type":"paragraph","inlineContent":[{"type":"text","text":"555 MB\/Sec (5.8 cycles \/ byte)"}]}],[{"inlineContent":[{"text":"557 MB\/Sec (5.7 cycles \/ byte)","type":"text"}],"type":"paragraph"}]]]}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","interfaceLanguage":"swift"},"metadata":{"modules":[{"name":"SwiftHPKE"}],"title":"Performance","roleHeading":"Article","role":"article"},"sections":[],"abstract":[{"text":"Encryption and decryption speed","type":"text"}],"seeAlsoSections":[{"generated":true,"title":"Additional Information","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References"]}],"schemaVersion":{"patch":0,"major":0,"minor":3},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"kind":"keyword","text":"class"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Sender"}],"navigatorTitle":[{"text":"Sender","kind":"identifier"}],"title":"Sender","abstract":[{"type":"text","text":"The sender"}],"type":"topic","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","url":"\/documentation\/swifthpke\/sender"},"doc://SwiftHPKE/documentation/SwiftHPKE/References":{"role":"article","title":"References","abstract":[{"type":"text","text":"Algorithms from the following books and papers have been used in the implementation"}],"url":"\/documentation\/swifthpke\/references","kind":"article","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"abstract":[{"type":"text","text":"The recipient"}],"navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"role":"symbol","type":"topic","title":"Recipient","kind":"symbol","url":"\/documentation\/swifthpke\/recipient","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","fragments":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Recipient"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CryptoKit":{"kind":"article","abstract":[{"type":"text","text":"SwiftHPKE is compatible with Apple’s CryptoKit framework"}],"title":"CryptoKit Compatibility","url":"\/documentation\/swifthpke\/cryptokit","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","role":"article","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/KeyManagement":{"role":"article","title":"Key Management","abstract":[{"type":"text","text":"Creating new keys and loading exsisting keys"}],"url":"\/documentation\/swifthpke\/keymanagement","kind":"article","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement"},"doc://SwiftHPKE/documentation/SwiftHPKE/SecretExport":{"kind":"article","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","role":"article","url":"\/documentation\/swifthpke\/secretexport","abstract":[{"type":"text","text":"Creating secret messages"}],"title":"Secret Export"}}} \ No newline at end of file +{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"metadata":{"role":"article","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Article","title":"Performance"},"schemaVersion":{"minor":3,"patch":0,"major":0},"kind":"article","identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance"},"abstract":[{"text":"Encryption and decryption speed","type":"text"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/performance"]}],"seeAlsoSections":[{"title":"Additional Information","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References"],"generated":true}],"primaryContentSections":[{"content":[{"type":"heading","anchor":"","level":2,"text":""},{"type":"paragraph","inlineContent":[{"type":"text","text":"SwiftHPKE’s encryption and decryption performance was measured on an iMac 2021, Apple M1 chip."}]},{"inlineContent":[{"type":"text","text":"The time to create a "},{"type":"reference","isActive":true,"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"},{"type":"text","text":" and "},{"type":"reference","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","isActive":true},{"text":" instance in base mode is shown in the table below,","type":"text"},{"text":" ","type":"text"},{"text":"depending on the KEM type - units are milliseconds.","type":"text"}],"type":"paragraph"},{"rows":[[[{"inlineContent":[{"text":"KEM","type":"text"}],"type":"paragraph"}],[{"inlineContent":[{"text":" Sender","type":"text"}],"type":"paragraph"}],[{"inlineContent":[{"type":"text","text":"Recipient "}],"type":"paragraph"}]],[[{"inlineContent":[{"type":"text","text":"P256"}],"type":"paragraph"}],[{"type":"paragraph","inlineContent":[{"type":"text","text":"7 mSec"}]}],[{"type":"paragraph","inlineContent":[{"text":"6 mSec","type":"text"}]}]],[[{"type":"paragraph","inlineContent":[{"type":"text","text":"P384"}]}],[{"type":"paragraph","inlineContent":[{"text":"20 mSec","type":"text"}]}],[{"type":"paragraph","inlineContent":[{"type":"text","text":"17 mSec"}]}]],[[{"type":"paragraph","inlineContent":[{"text":"P521","type":"text"}]}],[{"type":"paragraph","inlineContent":[{"type":"text","text":"46 mSec"}]}],[{"inlineContent":[{"type":"text","text":"39 mSec"}],"type":"paragraph"}]],[[{"inlineContent":[{"type":"text","text":"X25519"}],"type":"paragraph"}],[{"type":"paragraph","inlineContent":[{"type":"text","text":"0.14 mSec"}]}],[{"inlineContent":[{"text":"0.09 mSec","type":"text"}],"type":"paragraph"}]],[[{"type":"paragraph","inlineContent":[{"type":"text","text":"X448"}]}],[{"inlineContent":[{"type":"text","text":"1.1 mSec"}],"type":"paragraph"}],[{"type":"paragraph","inlineContent":[{"text":"0.5 mSec","type":"text"}]}]]],"header":"row","type":"table","alignments":["right","right","right"]},{"type":"paragraph","inlineContent":[{"type":"text","text":"The encryption and decryption speed in base mode, once the "},{"type":"codeVoice","code":"Sender"},{"type":"text","text":" or "},{"code":"Recipient","type":"codeVoice"},{"type":"text","text":" instance is created,"},{"type":"text","text":" "},{"text":"is shown in the table below, depending on the AEAD type - units are MBytes \/ Sec.","type":"text"}]},{"type":"table","rows":[[[{"inlineContent":[{"type":"text","text":"AEAD"}],"type":"paragraph"}],[{"inlineContent":[{"type":"text","text":" Encryption speed"}],"type":"paragraph"}],[{"inlineContent":[{"type":"text","text":"Decryption speed "}],"type":"paragraph"}]],[[{"type":"paragraph","inlineContent":[{"type":"text","text":"AESGCM128"}]}],[{"inlineContent":[{"type":"text","text":"3500 MB\/Sec (0.91 cycles \/ byte)"}],"type":"paragraph"}],[{"type":"paragraph","inlineContent":[{"type":"text","text":"3340 MB\/Sec (0.96 cycles \/ byte)"}]}]],[[{"type":"paragraph","inlineContent":[{"type":"text","text":"AESGCM256"}]}],[{"type":"paragraph","inlineContent":[{"text":"3640 MB\/Sec (0.88 cycles \/ byte)","type":"text"}]}],[{"type":"paragraph","inlineContent":[{"text":"3630 MB\/Sec (0.88 cycles \/ byte)","type":"text"}]}]],[[{"type":"paragraph","inlineContent":[{"type":"text","text":"CHACHAPOLY"}]}],[{"type":"paragraph","inlineContent":[{"text":"555 MB\/Sec (5.8 cycles \/ byte)","type":"text"}]}],[{"inlineContent":[{"text":"557 MB\/Sec (5.7 cycles \/ byte)","type":"text"}],"type":"paragraph"}]]],"header":"row","alignments":["right","right","right"]}],"kind":"content"}],"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/References":{"role":"article","title":"References","url":"\/documentation\/swifthpke\/references","type":"topic","abstract":[{"text":"Algorithms from the following books and papers have been used in the implementation","type":"text"}],"kind":"article","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References"},"doc://SwiftHPKE/documentation/SwiftHPKE/SecretExport":{"role":"article","title":"Secret Export","url":"\/documentation\/swifthpke\/secretexport","type":"topic","kind":"article","abstract":[{"text":"Creating secret messages","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport"},"doc://SwiftHPKE/documentation/SwiftHPKE/CryptoKit":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","kind":"article","role":"article","abstract":[{"text":"SwiftHPKE is compatible with Apple’s CryptoKit framework","type":"text"}],"url":"\/documentation\/swifthpke\/cryptokit","type":"topic","title":"CryptoKit Compatibility"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","abstract":[{"type":"text","text":"The recipient"}],"navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/recipient","fragments":[{"kind":"keyword","text":"class"},{"text":" ","kind":"text"},{"text":"Recipient","kind":"identifier"}],"title":"Recipient"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"text":"Sender","kind":"identifier"}],"title":"Sender","url":"\/documentation\/swifthpke\/sender","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","role":"symbol","type":"topic","abstract":[{"text":"The sender","type":"text"}],"kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"Sender"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KeyManagement":{"role":"article","title":"Key Management","url":"\/documentation\/swifthpke\/keymanagement","type":"topic","kind":"article","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","abstract":[{"text":"Creating new keys and loading exsisting keys","type":"text"}]}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey.json index 2177f4d..134f498 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey.json @@ -1 +1 @@ -{"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}],"languages":["swift"]}],"kind":"declarations"},{"content":[{"level":2,"text":"Overview","type":"heading","anchor":"Overview"},{"inlineContent":[{"text":"There are five different private key types corresponding to the five KEM’s","type":"text"}],"type":"paragraph"},{"type":"unorderedList","items":[{"content":[{"inlineContent":[{"type":"text","text":"P256 - the key is a 32 byte value corresponding to a NIST curve secp256r1 private key"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"P384 - the key is a 48 byte value corresponding to a NIST curve secp384r1 private key"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"P521 - the key is a 66 byte value corresponding to a NIST curve secp521r1 private key","type":"text"}]}]},{"content":[{"inlineContent":[{"type":"text","text":"X25519 - the key is a 32 byte value corresponding to a curve X25519 private key"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"X448 - the key is a 56 byte value corresponding to a curve X448 private key"}]}]}]}],"kind":"content"}],"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"topicSections":[{"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"]},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)"],"title":"Constructors"},{"title":"Equality","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/==(_:_:)"]},{"generated":true,"title":"Default Implementations","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/Equatable-Implementations"]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/privatekey"]}],"kind":"symbol","schemaVersion":{"minor":3,"major":0,"patch":0},"abstract":[{"type":"text","text":"The private key"}],"metadata":{"modules":[{"name":"SwiftHPKE"}],"symbolKind":"struct","externalID":"s:9SwiftHPKE10PrivateKeyV","roleHeading":"Structure","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"text":"PrivateKey","kind":"identifier"}],"title":"PrivateKey","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","interfaceLanguage":"swift"},"relationshipsSections":[{"title":"Conforms To","type":"conformsTo","kind":"relationships","identifiers":["doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","doc:\/\/SwiftHPKE\/SQ"]}],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"],"generated":true,"title":"Structures"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(kem:bytes:)":{"url":"\/documentation\/swifthpke\/privatekey\/init(kem:bytes:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)","abstract":[{"type":"text","text":"Creates a PrivateKey from its type and key bytes"}],"kind":"symbol","title":"init(kem:bytes:)","role":"symbol","type":"topic","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"kem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"KEM","preciseIdentifier":"s:9SwiftHPKE3KEMO"},{"kind":"text","text":", "},{"kind":"externalParam","text":"bytes"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/description":{"title":"description","role":"symbol","url":"\/documentation\/swifthpke\/privatekey\/description","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description","abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"kind":"symbol","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/pem":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","role":"symbol","kind":"symbol","url":"\/documentation\/swifthpke\/privatekey\/pem","type":"topic","title":"pem","abstract":[{"text":"The PEM base 64 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/Equatable-Implementations":{"role":"collectionGroup","abstract":[],"kind":"article","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/Equatable-Implementations","url":"\/documentation\/swifthpke\/privatekey\/equatable-implementations","type":"topic","title":"Equatable Implementations"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/der":{"abstract":[{"type":"text","text":"The DER encoding of "},{"type":"codeVoice","code":"self"}],"title":"der","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"role":"symbol","url":"\/documentation\/swifthpke\/privatekey\/der","kind":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/==(_:_:)":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey\/==(_:_:)","abstract":[{"text":"Equality of two private keys","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/==(_:_:)","title":"==(_:_:)","role":"symbol","type":"topic","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"==","kind":"identifier"},{"kind":"text","text":" "},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":") -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Sb","text":"Bool"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/publicKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","role":"symbol","kind":"symbol","url":"\/documentation\/swifthpke\/privatekey\/publickey","title":"publicKey","type":"topic","abstract":[{"type":"text","text":"The corresponding public key"}],"fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"type":"topic","title":"Base64","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Base64"}],"navigatorTitle":[{"kind":"identifier","text":"Base64"}],"url":"\/documentation\/swifthpke\/base64","role":"symbol","kind":"symbol","abstract":[{"type":"text","text":"The Base64 structure"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(pem:)":{"url":"\/documentation\/swifthpke\/privatekey\/init(pem:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)","abstract":[{"text":"Creates a PrivateKey from its PEM encoding.","type":"text"}],"kind":"symbol","title":"init(pem:)","role":"symbol","type":"topic","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"pem"},{"kind":"text","text":": "},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/bytes":{"abstract":[{"text":"The serialized key bytes","type":"text"}],"title":"bytes","type":"topic","url":"\/documentation\/swifthpke\/privatekey\/bytes","kind":"symbol","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/asn1":{"fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"asn1"},{"text":": ","kind":"text"},{"text":"ASN1","kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","title":"asn1","abstract":[{"type":"text","text":"The ASN1 encoding of "},{"type":"codeVoice","code":"self"}],"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/privatekey\/asn1","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(der:)":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)","type":"topic","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"text":"der","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"abstract":[{"text":"Creates a PrivateKey from its DER encoding","type":"text"}],"url":"\/documentation\/swifthpke\/privatekey\/init(der:)","kind":"symbol","title":"init(der:)"},"doc://SwiftHPKE/s23CustomStringConvertibleP":{"identifier":"doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","title":"Swift.CustomStringConvertible","type":"unresolvable"},"doc://SwiftHPKE/SQ":{"identifier":"doc:\/\/SwiftHPKE\/SQ","title":"Swift.Equatable","type":"unresolvable"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"}}} \ No newline at end of file +{"relationshipsSections":[{"title":"Conforms To","type":"conformsTo","kind":"relationships","identifiers":["doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","doc:\/\/SwiftHPKE\/SQ"]}],"metadata":{"symbolKind":"struct","title":"PrivateKey","externalID":"s:9SwiftHPKE10PrivateKeyV","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Structure","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"text":"PrivateKey","kind":"identifier"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"role":"symbol"},"abstract":[{"type":"text","text":"The private key"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"topicSections":[{"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"]},{"title":"Constructors","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)"]},{"title":"Equality","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/==(_:_:)"]},{"title":"Default Implementations","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/Equatable-Implementations"],"generated":true}],"seeAlsoSections":[{"generated":true,"title":"Structures","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"]}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"text":"PrivateKey","kind":"identifier"}],"languages":["swift"]}],"kind":"declarations"},{"kind":"content","content":[{"text":"Overview","type":"heading","level":2,"anchor":"Overview"},{"inlineContent":[{"text":"There are five different private key types corresponding to the five KEM’s","type":"text"}],"type":"paragraph"},{"items":[{"content":[{"type":"paragraph","inlineContent":[{"text":"P256 - the key is a 32 byte value corresponding to a NIST curve secp256r1 private key","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"P384 - the key is a 48 byte value corresponding to a NIST curve secp384r1 private key"}]}]},{"content":[{"inlineContent":[{"text":"P521 - the key is a 66 byte value corresponding to a NIST curve secp521r1 private key","type":"text"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"type":"text","text":"X25519 - the key is a 32 byte value corresponding to a curve X25519 private key"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"type":"text","text":"X448 - the key is a 56 byte value corresponding to a curve X448 private key"}],"type":"paragraph"}]}],"type":"unorderedList"}]}],"variants":[{"paths":["\/documentation\/swifthpke\/privatekey"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","interfaceLanguage":"swift"},"schemaVersion":{"major":0,"minor":3,"patch":0},"kind":"symbol","sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(pem:)":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)","url":"\/documentation\/swifthpke\/privatekey\/init(pem:)","abstract":[{"type":"text","text":"Creates a PrivateKey from its PEM encoding."}],"role":"symbol","title":"init(pem:)","type":"topic","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"pem"},{"kind":"text","text":": "},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(der:)":{"url":"\/documentation\/swifthpke\/privatekey\/init(der:)","kind":"symbol","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)","type":"topic","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"der","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"abstract":[{"type":"text","text":"Creates a PrivateKey from its DER encoding"}],"title":"init(der:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(kem:bytes:)":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)","url":"\/documentation\/swifthpke\/privatekey\/init(kem:bytes:)","abstract":[{"text":"Creates a PrivateKey from its type and key bytes","type":"text"}],"role":"symbol","title":"init(kem:bytes:)","type":"topic","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"kem","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"bytes"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/==(_:_:)":{"title":"==(_:_:)","abstract":[{"text":"Equality of two private keys","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/==(_:_:)","kind":"symbol","fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"=="},{"kind":"text","text":" "},{"kind":"text","text":"("},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":") -> ","kind":"text"},{"text":"Bool","preciseIdentifier":"s:Sb","kind":"typeIdentifier"}],"type":"topic","url":"\/documentation\/swifthpke\/privatekey\/==(_:_:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/SQ":{"identifier":"doc:\/\/SwiftHPKE\/SQ","type":"unresolvable","title":"Swift.Equatable"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/Equatable-Implementations":{"url":"\/documentation\/swifthpke\/privatekey\/equatable-implementations","type":"topic","kind":"article","abstract":[],"title":"Equatable Implementations","role":"collectionGroup","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/Equatable-Implementations"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/bytes":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","type":"topic","role":"symbol","abstract":[{"text":"The serialized key bytes","type":"text"}],"title":"bytes","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"bytes"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/privatekey\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/publicKey":{"url":"\/documentation\/swifthpke\/privatekey\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","type":"topic","role":"symbol","abstract":[{"type":"text","text":"The corresponding public key"}],"title":"publicKey","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"publicKey","kind":"identifier"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/description":{"url":"\/documentation\/swifthpke\/privatekey\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description","type":"topic","role":"symbol","abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"type":"codeVoice","code":"self"}],"title":"description","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"kind":"text","text":": "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"type":"topic","title":"Base64","url":"\/documentation\/swifthpke\/base64","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"text":"Base64","kind":"identifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","role":"symbol","kind":"symbol","abstract":[{"type":"text","text":"The Base64 structure"}],"navigatorTitle":[{"text":"Base64","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/der":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","type":"topic","role":"symbol","abstract":[{"text":"The DER encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"title":"der","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"der","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"url":"\/documentation\/swifthpke\/privatekey\/der"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/pem":{"url":"\/documentation\/swifthpke\/privatekey\/pem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","type":"topic","role":"symbol","abstract":[{"type":"text","text":"The PEM base 64 encoding of "},{"type":"codeVoice","code":"self"}],"title":"pem","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"}],"kind":"symbol"},"doc://SwiftHPKE/s23CustomStringConvertibleP":{"type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","title":"Swift.CustomStringConvertible"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/asn1":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","type":"topic","role":"symbol","abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"title":"asn1","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"asn1","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC","text":"ASN1"}],"url":"\/documentation\/swifthpke\/privatekey\/asn1"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/!=(_:_:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/!=(_:_:).json index 2f8b318..6b84f4d 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/!=(_:_:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/!=(_:_:).json @@ -1 +1 @@ -{"schemaVersion":{"major":0,"minor":3,"patch":0},"abstract":[{"type":"text","text":"Inherited from "},{"code":"Equatable.!=(_:_:)","type":"codeVoice"},{"text":".","type":"text"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/!=(_:_:)"},"primaryContentSections":[{"declarations":[{"tokens":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"lhs","kind":"internalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":", "},{"kind":"internalParam","text":"rhs"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"}],"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/Equatable-Implementations"]]},"kind":"symbol","metadata":{"roleHeading":"Operator","externalID":"s:SQsE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftHPKE10PrivateKeyV","title":"!=(_:_:)","modules":[{"relatedModules":["Swift"],"name":"SwiftHPKE"}],"extendedModule":"Swift","symbolKind":"op","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":") -> "},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}],"role":"symbol"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/privatekey\/!=(_:_:)"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/Equatable-Implementations":{"role":"collectionGroup","abstract":[],"kind":"article","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/Equatable-Implementations","url":"\/documentation\/swifthpke\/privatekey\/equatable-implementations","type":"topic","title":"Equatable Implementations"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/!=(_:_:)":{"abstract":[],"title":"!=(_:_:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/!=(_:_:)","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"!="},{"kind":"text","text":" "},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"preciseIdentifier":"s:Sb","kind":"typeIdentifier","text":"Bool"}],"role":"symbol","url":"\/documentation\/swifthpke\/privatekey\/!=(_:_:)","kind":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"}}} \ No newline at end of file +{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/Equatable-Implementations"]]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/!=(_:_:)","interfaceLanguage":"swift"},"schemaVersion":{"minor":3,"major":0,"patch":0},"variants":[{"paths":["\/documentation\/swifthpke\/privatekey\/!=(_:_:)"],"traits":[{"interfaceLanguage":"swift"}]}],"abstract":[{"type":"text","text":"Inherited from "},{"type":"codeVoice","code":"Equatable.!=(_:_:)"},{"text":".","type":"text"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"kind":"text","text":"("},{"text":"lhs","kind":"internalParam"},{"text":": ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"internalParam","text":"rhs"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Self"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}],"languages":["swift"],"platforms":["macOS"]}]}],"kind":"symbol","sections":[],"metadata":{"title":"!=(_:_:)","extendedModule":"Swift","role":"symbol","symbolKind":"op","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"text":" ","kind":"text"},{"kind":"text","text":"("},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":") -> "},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}],"externalID":"s:SQsE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftHPKE10PrivateKeyV","modules":[{"relatedModules":["Swift"],"name":"SwiftHPKE"}],"roleHeading":"Operator"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/!=(_:_:)":{"role":"symbol","title":"!=(_:_:)","abstract":[],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/!=(_:_:)","url":"\/documentation\/swifthpke\/privatekey\/!=(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"kind":"text","text":" "},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":") -> "},{"preciseIdentifier":"s:Sb","kind":"typeIdentifier","text":"Bool"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/Equatable-Implementations":{"url":"\/documentation\/swifthpke\/privatekey\/equatable-implementations","type":"topic","kind":"article","abstract":[],"title":"Equatable Implementations","role":"collectionGroup","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/Equatable-Implementations"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/==(_:_:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/==(_:_:).json index 3a23e46..c9ca824 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/==(_:_:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/==(_:_:).json @@ -1 +1 @@ -{"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"==","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"key1","kind":"internalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","text":"PrivateKey"},{"kind":"text","text":", "},{"kind":"internalParam","text":"key2"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"},{"text":") -> ","kind":"text"},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}]}]},{"kind":"parameters","parameters":[{"content":[{"type":"paragraph","inlineContent":[{"text":"a private key","type":"text"}]}],"name":"key1"},{"content":[{"inlineContent":[{"text":"a private key","type":"text"}],"type":"paragraph"}],"name":"key2"}]},{"kind":"content","content":[{"anchor":"return-value","level":2,"type":"heading","text":"Return Value"},{"inlineContent":[{"type":"text","text":""},{"type":"codeVoice","code":"true"},{"type":"text","text":" if key1 and key2 are equal, "},{"type":"codeVoice","code":"false"},{"text":" otherwise","type":"text"}],"type":"paragraph"}]}],"metadata":{"symbolKind":"op","title":"==(_:_:)","externalID":"s:9SwiftHPKE10PrivateKeyV2eeoiySbAC_ACtFZ","roleHeading":"Operator","role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"=="},{"text":" ","kind":"text"},{"kind":"text","text":"("},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":") -> "},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}],"modules":[{"name":"SwiftHPKE"}]},"abstract":[{"type":"text","text":"Equality of two private keys"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"kind":"symbol","schemaVersion":{"patch":0,"major":0,"minor":3},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/privatekey\/==(_:_:)"]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/==(_:_:)"},"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/==(_:_:)":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey\/==(_:_:)","abstract":[{"text":"Equality of two private keys","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/==(_:_:)","title":"==(_:_:)","role":"symbol","type":"topic","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"==","kind":"identifier"},{"kind":"text","text":" "},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":") -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Sb","text":"Bool"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"}}} \ No newline at end of file +{"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"=="},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"key1","kind":"internalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"internalParam","text":"key2"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","text":"Bool","preciseIdentifier":"s:Sb"}],"languages":["swift"],"platforms":["macOS"]}]},{"kind":"parameters","parameters":[{"name":"key1","content":[{"inlineContent":[{"type":"text","text":"a private key"}],"type":"paragraph"}]},{"name":"key2","content":[{"inlineContent":[{"text":"a private key","type":"text"}],"type":"paragraph"}]}]},{"kind":"content","content":[{"text":"Return Value","anchor":"return-value","level":2,"type":"heading"},{"inlineContent":[{"text":"","type":"text"},{"type":"codeVoice","code":"true"},{"type":"text","text":" if key1 and key2 are equal, "},{"type":"codeVoice","code":"false"},{"type":"text","text":" otherwise"}],"type":"paragraph"}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"metadata":{"role":"symbol","title":"==(_:_:)","roleHeading":"Operator","symbolKind":"op","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"==","kind":"identifier"},{"text":" ","kind":"text"},{"kind":"text","text":"("},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:Sb","text":"Bool"}],"modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE10PrivateKeyV2eeoiySbAC_ACtFZ"},"sections":[],"schemaVersion":{"major":0,"patch":0,"minor":3},"abstract":[{"text":"Equality of two private keys","type":"text"}],"kind":"symbol","variants":[{"paths":["\/documentation\/swifthpke\/privatekey\/==(_:_:)"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/==(_:_:)","interfaceLanguage":"swift"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/==(_:_:)":{"title":"==(_:_:)","abstract":[{"text":"Equality of two private keys","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/==(_:_:)","kind":"symbol","fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"=="},{"kind":"text","text":" "},{"kind":"text","text":"("},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":") -> ","kind":"text"},{"text":"Bool","preciseIdentifier":"s:Sb","kind":"typeIdentifier"}],"type":"topic","url":"\/documentation\/swifthpke\/privatekey\/==(_:_:)","role":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/asn1.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/asn1.json index d3f86cf..25bbb26 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/asn1.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/asn1.json @@ -1 +1 @@ -{"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1"},"sections":[],"schemaVersion":{"minor":3,"patch":0,"major":0},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/privatekey\/asn1"]}],"metadata":{"role":"symbol","roleHeading":"Instance Property","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"asn1"},{"text":": ","kind":"text"},{"text":"ASN1","kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC"}],"title":"asn1","modules":[{"name":"SwiftHPKE"}],"symbolKind":"property","externalID":"s:9SwiftHPKE10PrivateKeyV4asn14ASN1AECvp"},"seeAlsoSections":[{"generated":true,"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"]}],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"primaryContentSections":[{"declarations":[{"tokens":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"asn1","kind":"identifier"},{"text":": ","kind":"text"},{"text":"ASN1","kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC"},{"kind":"text","text":" { "},{"text":"get","kind":"keyword"},{"text":" }","kind":"text"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"}],"abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"code":"self","type":"codeVoice"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/der":{"abstract":[{"type":"text","text":"The DER encoding of "},{"type":"codeVoice","code":"self"}],"title":"der","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"role":"symbol","url":"\/documentation\/swifthpke\/privatekey\/der","kind":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/publicKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","role":"symbol","kind":"symbol","url":"\/documentation\/swifthpke\/privatekey\/publickey","title":"publicKey","type":"topic","abstract":[{"type":"text","text":"The corresponding public key"}],"fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/asn1":{"fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"asn1"},{"text":": ","kind":"text"},{"text":"ASN1","kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","title":"asn1","abstract":[{"type":"text","text":"The ASN1 encoding of "},{"type":"codeVoice","code":"self"}],"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/privatekey\/asn1","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/pem":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","role":"symbol","kind":"symbol","url":"\/documentation\/swifthpke\/privatekey\/pem","type":"topic","title":"pem","abstract":[{"text":"The PEM base 64 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/description":{"title":"description","role":"symbol","url":"\/documentation\/swifthpke\/privatekey\/description","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description","abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"kind":"symbol","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/bytes":{"abstract":[{"text":"The serialized key bytes","type":"text"}],"title":"bytes","type":"topic","url":"\/documentation\/swifthpke\/privatekey\/bytes","kind":"symbol","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","role":"symbol"}}} \ No newline at end of file +{"sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","interfaceLanguage":"swift"},"seeAlsoSections":[{"generated":true,"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"metadata":{"title":"asn1","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"asn1","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:4ASN1AAC","kind":"typeIdentifier","text":"ASN1"}],"externalID":"s:9SwiftHPKE10PrivateKeyV4asn14ASN1AECvp","role":"symbol","modules":[{"name":"SwiftHPKE"}],"symbolKind":"property","roleHeading":"Instance Property"},"abstract":[{"type":"text","text":"The ASN1 encoding of "},{"type":"codeVoice","code":"self"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"asn1","kind":"identifier"},{"text":": ","kind":"text"},{"text":"ASN1","kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC"},{"text":" { ","kind":"text"},{"text":"get","kind":"keyword"},{"text":" }","kind":"text"}],"platforms":["macOS"],"languages":["swift"]}]}],"schemaVersion":{"patch":0,"major":0,"minor":3},"variants":[{"paths":["\/documentation\/swifthpke\/privatekey\/asn1"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/der":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","type":"topic","role":"symbol","abstract":[{"text":"The DER encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"title":"der","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"der","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"url":"\/documentation\/swifthpke\/privatekey\/der"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/asn1":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","type":"topic","role":"symbol","abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"title":"asn1","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"asn1","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC","text":"ASN1"}],"url":"\/documentation\/swifthpke\/privatekey\/asn1"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/description":{"url":"\/documentation\/swifthpke\/privatekey\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description","type":"topic","role":"symbol","abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"type":"codeVoice","code":"self"}],"title":"description","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"kind":"text","text":": "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/pem":{"url":"\/documentation\/swifthpke\/privatekey\/pem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","type":"topic","role":"symbol","abstract":[{"type":"text","text":"The PEM base 64 encoding of "},{"type":"codeVoice","code":"self"}],"title":"pem","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/publicKey":{"url":"\/documentation\/swifthpke\/privatekey\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","type":"topic","role":"symbol","abstract":[{"type":"text","text":"The corresponding public key"}],"title":"publicKey","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"publicKey","kind":"identifier"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/bytes":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","type":"topic","role":"symbol","abstract":[{"text":"The serialized key bytes","type":"text"}],"title":"bytes","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"bytes"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/privatekey\/bytes"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/bytes.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/bytes.json index 16c7790..ef74f51 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/bytes.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/bytes.json @@ -1 +1 @@ -{"abstract":[{"text":"The serialized key bytes","type":"text"}],"schemaVersion":{"patch":0,"major":0,"minor":3},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes"},"seeAlsoSections":[{"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"],"generated":true}],"sections":[],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"kind":"identifier","text":"bytes"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"}],"languages":["swift"],"platforms":["macOS"]}]}],"variants":[{"paths":["\/documentation\/swifthpke\/privatekey\/bytes"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","metadata":{"modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE10PrivateKeyV5bytesSays5UInt8VGvp","symbolKind":"property","role":"symbol","title":"bytes","fragments":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"kind":"identifier","text":"bytes"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"roleHeading":"Instance Property"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/der":{"abstract":[{"type":"text","text":"The DER encoding of "},{"type":"codeVoice","code":"self"}],"title":"der","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"role":"symbol","url":"\/documentation\/swifthpke\/privatekey\/der","kind":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/asn1":{"fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"asn1"},{"text":": ","kind":"text"},{"text":"ASN1","kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","title":"asn1","abstract":[{"type":"text","text":"The ASN1 encoding of "},{"type":"codeVoice","code":"self"}],"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/privatekey\/asn1","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/publicKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","role":"symbol","kind":"symbol","url":"\/documentation\/swifthpke\/privatekey\/publickey","title":"publicKey","type":"topic","abstract":[{"type":"text","text":"The corresponding public key"}],"fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/description":{"title":"description","role":"symbol","url":"\/documentation\/swifthpke\/privatekey\/description","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description","abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"kind":"symbol","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/pem":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","role":"symbol","kind":"symbol","url":"\/documentation\/swifthpke\/privatekey\/pem","type":"topic","title":"pem","abstract":[{"text":"The PEM base 64 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/bytes":{"abstract":[{"text":"The serialized key bytes","type":"text"}],"title":"bytes","type":"topic","url":"\/documentation\/swifthpke\/privatekey\/bytes","kind":"symbol","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","role":"symbol"}}} \ No newline at end of file +{"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes"},"sections":[],"seeAlsoSections":[{"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"],"generated":true}],"schemaVersion":{"minor":3,"major":0,"patch":0},"variants":[{"paths":["\/documentation\/swifthpke\/privatekey\/bytes"],"traits":[{"interfaceLanguage":"swift"}]}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"kind":"text","text":": "},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}]}]}],"kind":"symbol","abstract":[{"text":"The serialized key bytes","type":"text"}],"metadata":{"symbolKind":"property","roleHeading":"Instance Property","title":"bytes","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"bytes"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE10PrivateKeyV5bytesSays5UInt8VGvp","role":"symbol"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/der":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","type":"topic","role":"symbol","abstract":[{"text":"The DER encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"title":"der","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"der","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"url":"\/documentation\/swifthpke\/privatekey\/der"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/description":{"url":"\/documentation\/swifthpke\/privatekey\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description","type":"topic","role":"symbol","abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"type":"codeVoice","code":"self"}],"title":"description","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"kind":"text","text":": "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/asn1":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","type":"topic","role":"symbol","abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"title":"asn1","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"asn1","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC","text":"ASN1"}],"url":"\/documentation\/swifthpke\/privatekey\/asn1"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/publicKey":{"url":"\/documentation\/swifthpke\/privatekey\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","type":"topic","role":"symbol","abstract":[{"type":"text","text":"The corresponding public key"}],"title":"publicKey","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"publicKey","kind":"identifier"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/pem":{"url":"\/documentation\/swifthpke\/privatekey\/pem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","type":"topic","role":"symbol","abstract":[{"type":"text","text":"The PEM base 64 encoding of "},{"type":"codeVoice","code":"self"}],"title":"pem","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/bytes":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","type":"topic","role":"symbol","abstract":[{"text":"The serialized key bytes","type":"text"}],"title":"bytes","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"bytes"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/privatekey\/bytes"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/der.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/der.json index 8d6bb95..b91fae3 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/der.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/der.json @@ -1 +1 @@ -{"metadata":{"symbolKind":"property","role":"symbol","title":"der","roleHeading":"Instance Property","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE10PrivateKeyV3derSays5UInt8VGvp","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"der","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}]},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"kind":"text","text":" { "},{"kind":"keyword","text":"get"},{"text":" }","kind":"text"}],"languages":["swift"]}],"kind":"declarations"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/privatekey\/der"]}],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"],"generated":true,"title":"Properties"}],"sections":[],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der"},"schemaVersion":{"minor":3,"patch":0,"major":0},"abstract":[{"text":"The DER encoding of ","type":"text"},{"code":"self","type":"codeVoice"}],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/publicKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","role":"symbol","kind":"symbol","url":"\/documentation\/swifthpke\/privatekey\/publickey","title":"publicKey","type":"topic","abstract":[{"type":"text","text":"The corresponding public key"}],"fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/der":{"abstract":[{"type":"text","text":"The DER encoding of "},{"type":"codeVoice","code":"self"}],"title":"der","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"role":"symbol","url":"\/documentation\/swifthpke\/privatekey\/der","kind":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/pem":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","role":"symbol","kind":"symbol","url":"\/documentation\/swifthpke\/privatekey\/pem","type":"topic","title":"pem","abstract":[{"text":"The PEM base 64 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/description":{"title":"description","role":"symbol","url":"\/documentation\/swifthpke\/privatekey\/description","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description","abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"kind":"symbol","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/bytes":{"abstract":[{"text":"The serialized key bytes","type":"text"}],"title":"bytes","type":"topic","url":"\/documentation\/swifthpke\/privatekey\/bytes","kind":"symbol","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/asn1":{"fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"asn1"},{"text":": ","kind":"text"},{"text":"ASN1","kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","title":"asn1","abstract":[{"type":"text","text":"The ASN1 encoding of "},{"type":"codeVoice","code":"self"}],"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/privatekey\/asn1","kind":"symbol"}}} \ No newline at end of file +{"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","interfaceLanguage":"swift"},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":" { ","kind":"text"},{"kind":"keyword","text":"get"},{"text":" }","kind":"text"}]}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"sections":[],"abstract":[{"text":"The DER encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/privatekey\/der"]}],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"],"generated":true,"title":"Properties"}],"kind":"symbol","metadata":{"modules":[{"name":"SwiftHPKE"}],"symbolKind":"property","role":"symbol","title":"der","roleHeading":"Instance Property","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"externalID":"s:9SwiftHPKE10PrivateKeyV3derSays5UInt8VGvp"},"schemaVersion":{"major":0,"minor":3,"patch":0},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/bytes":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","type":"topic","role":"symbol","abstract":[{"text":"The serialized key bytes","type":"text"}],"title":"bytes","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"bytes"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/privatekey\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/publicKey":{"url":"\/documentation\/swifthpke\/privatekey\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","type":"topic","role":"symbol","abstract":[{"type":"text","text":"The corresponding public key"}],"title":"publicKey","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"publicKey","kind":"identifier"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/der":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","type":"topic","role":"symbol","abstract":[{"text":"The DER encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"title":"der","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"der","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"url":"\/documentation\/swifthpke\/privatekey\/der"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/pem":{"url":"\/documentation\/swifthpke\/privatekey\/pem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","type":"topic","role":"symbol","abstract":[{"type":"text","text":"The PEM base 64 encoding of "},{"type":"codeVoice","code":"self"}],"title":"pem","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/asn1":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","type":"topic","role":"symbol","abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"title":"asn1","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"asn1","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC","text":"ASN1"}],"url":"\/documentation\/swifthpke\/privatekey\/asn1"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/description":{"url":"\/documentation\/swifthpke\/privatekey\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description","type":"topic","role":"symbol","abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"type":"codeVoice","code":"self"}],"title":"description","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"kind":"text","text":": "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/description.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/description.json index 8f4eba2..e7e038d 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/description.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/description.json @@ -1 +1 @@ -{"schemaVersion":{"patch":0,"minor":3,"major":0},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description","interfaceLanguage":"swift"},"metadata":{"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"}],"modules":[{"name":"SwiftHPKE"}],"title":"description","externalID":"s:9SwiftHPKE10PrivateKeyV11descriptionSSvp","symbolKind":"property","role":"symbol","roleHeading":"Instance Property"},"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"type":"codeVoice","code":"self"}],"sections":[],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der"],"generated":true,"title":"Properties"}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"kind":"text","text":" { "},{"kind":"keyword","text":"get"},{"text":" }","kind":"text"}]}],"kind":"declarations"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/privatekey\/description"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/description":{"title":"description","role":"symbol","url":"\/documentation\/swifthpke\/privatekey\/description","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description","abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"kind":"symbol","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/publicKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","role":"symbol","kind":"symbol","url":"\/documentation\/swifthpke\/privatekey\/publickey","title":"publicKey","type":"topic","abstract":[{"type":"text","text":"The corresponding public key"}],"fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/pem":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","role":"symbol","kind":"symbol","url":"\/documentation\/swifthpke\/privatekey\/pem","type":"topic","title":"pem","abstract":[{"text":"The PEM base 64 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/der":{"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","title":"der","abstract":[{"type":"text","text":"The DER encoding of "},{"type":"codeVoice","code":"self"}],"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/privatekey\/der","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","abstract":[{"text":"The private key","type":"text"}],"role":"symbol","type":"topic","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"url":"\/documentation\/swifthpke\/privatekey","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/asn1":{"fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"asn1"},{"text":": ","kind":"text"},{"text":"ASN1","kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","title":"asn1","abstract":[{"type":"text","text":"The ASN1 encoding of "},{"type":"codeVoice","code":"self"}],"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/privatekey\/asn1","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/bytes":{"abstract":[{"text":"The serialized key bytes","type":"text"}],"title":"bytes","type":"topic","url":"\/documentation\/swifthpke\/privatekey\/bytes","kind":"symbol","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","role":"symbol"}}} \ No newline at end of file +{"seeAlsoSections":[{"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der"],"generated":true}],"kind":"symbol","sections":[],"metadata":{"title":"description","modules":[{"name":"SwiftHPKE"}],"symbolKind":"property","roleHeading":"Instance Property","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"}],"role":"symbol","externalID":"s:9SwiftHPKE10PrivateKeyV11descriptionSSvp"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/privatekey\/description"]}],"abstract":[{"text":"A textual representation of the ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"},"schemaVersion":{"patch":0,"major":0,"minor":3},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"},{"text":" { ","kind":"text"},{"text":"get","kind":"keyword"},{"kind":"text","text":" }"}],"platforms":["macOS"]}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/bytes":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","type":"topic","role":"symbol","abstract":[{"text":"The serialized key bytes","type":"text"}],"title":"bytes","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"bytes"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/privatekey\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/pem":{"url":"\/documentation\/swifthpke\/privatekey\/pem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","type":"topic","role":"symbol","abstract":[{"type":"text","text":"The PEM base 64 encoding of "},{"type":"codeVoice","code":"self"}],"title":"pem","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/der":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","type":"topic","role":"symbol","abstract":[{"text":"The DER encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"title":"der","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"der","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"url":"\/documentation\/swifthpke\/privatekey\/der"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/description":{"url":"\/documentation\/swifthpke\/privatekey\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description","type":"topic","role":"symbol","abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"type":"codeVoice","code":"self"}],"title":"description","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"kind":"text","text":": "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/asn1":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","type":"topic","role":"symbol","abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"title":"asn1","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"asn1","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC","text":"ASN1"}],"url":"\/documentation\/swifthpke\/privatekey\/asn1"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/publicKey":{"url":"\/documentation\/swifthpke\/privatekey\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","type":"topic","role":"symbol","abstract":[{"type":"text","text":"The corresponding public key"}],"title":"publicKey","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"publicKey","kind":"identifier"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"}],"kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/equatable-implementations.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/equatable-implementations.json index 9698e53..9390d7f 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/equatable-implementations.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/equatable-implementations.json @@ -1 +1 @@ -{"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/privatekey\/equatable-implementations"]}],"kind":"article","sections":[],"schemaVersion":{"major":0,"minor":3,"patch":0},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"metadata":{"role":"collectionGroup","title":"Equatable Implementations","modules":[{"name":"SwiftHPKE"}],"roleHeading":"API Collection"},"topicSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/!=(_:_:)"],"title":"Operators"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/Equatable-Implementations"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/!=(_:_:)":{"abstract":[],"title":"!=(_:_:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/!=(_:_:)","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"!="},{"kind":"text","text":" "},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"preciseIdentifier":"s:Sb","kind":"typeIdentifier","text":"Bool"}],"role":"symbol","url":"\/documentation\/swifthpke\/privatekey\/!=(_:_:)","kind":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"}}} \ No newline at end of file +{"sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/privatekey\/equatable-implementations"]}],"metadata":{"title":"Equatable Implementations","modules":[{"name":"SwiftHPKE"}],"roleHeading":"API Collection","role":"collectionGroup"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"schemaVersion":{"major":0,"minor":3,"patch":0},"topicSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/!=(_:_:)"],"generated":true,"title":"Operators"}],"kind":"article","identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/Equatable-Implementations"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/!=(_:_:)":{"role":"symbol","title":"!=(_:_:)","abstract":[],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/!=(_:_:)","url":"\/documentation\/swifthpke\/privatekey\/!=(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"kind":"text","text":" "},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":") -> "},{"preciseIdentifier":"s:Sb","kind":"typeIdentifier","text":"Bool"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/init(der:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/init(der:).json index 5746f24..79962aa 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/init(der:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/init(der:).json @@ -1 +1 @@ -{"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)","interfaceLanguage":"swift"},"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)"],"generated":true,"title":"Constructors"}],"metadata":{"title":"init(der:)","roleHeading":"Initializer","externalID":"s:9SwiftHPKE10PrivateKeyV3derACSays5UInt8VG_tKcfc","role":"symbol","symbolKind":"init","modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"der"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]},"sections":[],"schemaVersion":{"major":0,"minor":3,"patch":0},"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"init","kind":"keyword"},{"text":"(","kind":"text"},{"text":"der","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"platforms":["macOS"],"languages":["swift"]}]},{"parameters":[{"content":[{"inlineContent":[{"type":"text","text":"The DER encoding of the key"}],"type":"paragraph"}],"name":"der"}],"kind":"parameters"},{"kind":"content","content":[{"level":2,"type":"heading","anchor":"discussion","text":"Discussion"},{"name":"Throws","type":"aside","style":"note","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if the DER encoding is wrong"}]}]}]}],"variants":[{"paths":["\/documentation\/swifthpke\/privatekey\/init(der:)"],"traits":[{"interfaceLanguage":"swift"}]}],"abstract":[{"type":"text","text":"Creates a PrivateKey from its DER encoding"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(kem:bytes:)":{"url":"\/documentation\/swifthpke\/privatekey\/init(kem:bytes:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)","abstract":[{"type":"text","text":"Creates a PrivateKey from its type and key bytes"}],"kind":"symbol","title":"init(kem:bytes:)","role":"symbol","type":"topic","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"kem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"KEM","preciseIdentifier":"s:9SwiftHPKE3KEMO"},{"kind":"text","text":", "},{"kind":"externalParam","text":"bytes"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(der:)":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)","type":"topic","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"text":"der","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"abstract":[{"text":"Creates a PrivateKey from its DER encoding","type":"text"}],"url":"\/documentation\/swifthpke\/privatekey\/init(der:)","kind":"symbol","title":"init(der:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(pem:)":{"url":"\/documentation\/swifthpke\/privatekey\/init(pem:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)","abstract":[{"text":"Creates a PrivateKey from its PEM encoding.","type":"text"}],"kind":"symbol","title":"init(pem:)","role":"symbol","type":"topic","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"pem"},{"kind":"text","text":": "},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}]}}} \ No newline at end of file +{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"metadata":{"role":"symbol","externalID":"s:9SwiftHPKE10PrivateKeyV3derACSays5UInt8VG_tKcfc","title":"init(der:)","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Initializer","symbolKind":"init","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"der","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}]},"sections":[],"abstract":[{"type":"text","text":"Creates a PrivateKey from its DER encoding"}],"seeAlsoSections":[{"generated":true,"title":"Constructors","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)"]}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"init","kind":"keyword"},{"kind":"text","text":"("},{"text":"der","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}]}]},{"parameters":[{"content":[{"inlineContent":[{"text":"The DER encoding of the key","type":"text"}],"type":"paragraph"}],"name":"der"}],"kind":"parameters"},{"content":[{"level":2,"type":"heading","anchor":"discussion","text":"Discussion"},{"content":[{"inlineContent":[{"text":"An exception if the DER encoding is wrong","type":"text"}],"type":"paragraph"}],"style":"note","type":"aside","name":"Throws"}],"kind":"content"}],"kind":"symbol","identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)"},"variants":[{"paths":["\/documentation\/swifthpke\/privatekey\/init(der:)"],"traits":[{"interfaceLanguage":"swift"}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(kem:bytes:)":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)","url":"\/documentation\/swifthpke\/privatekey\/init(kem:bytes:)","abstract":[{"text":"Creates a PrivateKey from its type and key bytes","type":"text"}],"role":"symbol","title":"init(kem:bytes:)","type":"topic","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"kem","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"bytes"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(pem:)":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)","url":"\/documentation\/swifthpke\/privatekey\/init(pem:)","abstract":[{"type":"text","text":"Creates a PrivateKey from its PEM encoding."}],"role":"symbol","title":"init(pem:)","type":"topic","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"pem"},{"kind":"text","text":": "},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(der:)":{"url":"\/documentation\/swifthpke\/privatekey\/init(der:)","kind":"symbol","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)","type":"topic","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"der","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"abstract":[{"type":"text","text":"Creates a PrivateKey from its DER encoding"}],"title":"init(der:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/init(kem:bytes:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/init(kem:bytes:).json index 80b0860..9abc432 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/init(kem:bytes:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/init(kem:bytes:).json @@ -1 +1 @@ -{"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"init","kind":"keyword"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"kem"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE3KEMO","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","text":"KEM","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"bytes","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]}]},{"parameters":[{"name":"kem","content":[{"type":"paragraph","inlineContent":[{"text":"The key type","type":"text"}]}]},{"name":"bytes","content":[{"inlineContent":[{"type":"text","text":"The key bytes"}],"type":"paragraph"}]}],"kind":"parameters"},{"kind":"content","content":[{"level":2,"type":"heading","anchor":"discussion","text":"Discussion"},{"type":"aside","style":"note","name":"Throws","content":[{"inlineContent":[{"text":"An exception if ","type":"text"},{"type":"codeVoice","code":"bytes"},{"text":" has wrong size for the key type","type":"text"}],"type":"paragraph"}]}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"seeAlsoSections":[{"title":"Constructors","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)"]}],"kind":"symbol","variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/privatekey\/init(kem:bytes:)"]}],"sections":[],"schemaVersion":{"minor":3,"major":0,"patch":0},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)"},"metadata":{"externalID":"s:9SwiftHPKE10PrivateKeyV3kem5bytesAcA3KEMO_Says5UInt8VGtKcfc","roleHeading":"Initializer","title":"init(kem:bytes:)","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"text":"kem","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"bytes"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"symbolKind":"init","modules":[{"name":"SwiftHPKE"}],"role":"symbol"},"abstract":[{"text":"Creates a PrivateKey from its type and key bytes","type":"text"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","navigatorTitle":[{"text":"KEM","kind":"identifier"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"title":"KEM","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"KEM","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(pem:)":{"url":"\/documentation\/swifthpke\/privatekey\/init(pem:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)","abstract":[{"text":"Creates a PrivateKey from its PEM encoding.","type":"text"}],"kind":"symbol","title":"init(pem:)","role":"symbol","type":"topic","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"pem"},{"kind":"text","text":": "},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(der:)":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)","type":"topic","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"text":"der","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"abstract":[{"text":"Creates a PrivateKey from its DER encoding","type":"text"}],"url":"\/documentation\/swifthpke\/privatekey\/init(der:)","kind":"symbol","title":"init(der:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(kem:bytes:)":{"url":"\/documentation\/swifthpke\/privatekey\/init(kem:bytes:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)","abstract":[{"type":"text","text":"Creates a PrivateKey from its type and key bytes"}],"kind":"symbol","title":"init(kem:bytes:)","role":"symbol","type":"topic","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"kem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"KEM","preciseIdentifier":"s:9SwiftHPKE3KEMO"},{"kind":"text","text":", "},{"kind":"externalParam","text":"bytes"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"}}} \ No newline at end of file +{"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)"],"generated":true,"title":"Constructors"}],"kind":"symbol","sections":[],"metadata":{"title":"init(kem:bytes:)","modules":[{"name":"SwiftHPKE"}],"symbolKind":"init","roleHeading":"Initializer","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"kem","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM"},{"kind":"text","text":", "},{"text":"bytes","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"role":"symbol","externalID":"s:9SwiftHPKE10PrivateKeyV3kem5bytesAcA3KEMO_Says5UInt8VGtKcfc"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/privatekey\/init(kem:bytes:)"]}],"abstract":[{"text":"Creates a PrivateKey from its type and key bytes","type":"text"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)","interfaceLanguage":"swift"},"schemaVersion":{"minor":3,"patch":0,"major":0},"primaryContentSections":[{"declarations":[{"tokens":[{"text":"init","kind":"keyword"},{"text":"(","kind":"text"},{"text":"kem","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM"},{"text":", ","kind":"text"},{"text":"bytes","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"},{"parameters":[{"name":"kem","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The key type"}]}]},{"name":"bytes","content":[{"type":"paragraph","inlineContent":[{"text":"The key bytes","type":"text"}]}]}],"kind":"parameters"},{"kind":"content","content":[{"level":2,"type":"heading","text":"Discussion","anchor":"discussion"},{"name":"Throws","type":"aside","style":"note","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if ","type":"text"},{"type":"codeVoice","code":"bytes"},{"type":"text","text":" has wrong size for the key type"}]}]}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"KEM"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"url":"\/documentation\/swifthpke\/kem","kind":"symbol","title":"KEM","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(kem:bytes:)":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)","url":"\/documentation\/swifthpke\/privatekey\/init(kem:bytes:)","abstract":[{"text":"Creates a PrivateKey from its type and key bytes","type":"text"}],"role":"symbol","title":"init(kem:bytes:)","type":"topic","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"kem","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"bytes"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(der:)":{"url":"\/documentation\/swifthpke\/privatekey\/init(der:)","kind":"symbol","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)","type":"topic","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"der","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"abstract":[{"type":"text","text":"Creates a PrivateKey from its DER encoding"}],"title":"init(der:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(pem:)":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)","url":"\/documentation\/swifthpke\/privatekey\/init(pem:)","abstract":[{"type":"text","text":"Creates a PrivateKey from its PEM encoding."}],"role":"symbol","title":"init(pem:)","type":"topic","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"pem"},{"kind":"text","text":": "},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/init(pem:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/init(pem:).json index 5539f71..04b9cb1 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/init(pem:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/init(pem:).json @@ -1 +1 @@ -{"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"text":"init","kind":"keyword"},{"text":"(","kind":"text"},{"text":"pem","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"platforms":["macOS"]}]},{"parameters":[{"name":"pem","content":[{"inlineContent":[{"text":"The PEM encoding of the key","type":"text"}],"type":"paragraph"}]}],"kind":"parameters"},{"kind":"content","content":[{"level":2,"type":"heading","text":"Discussion","anchor":"discussion"},{"type":"aside","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if the PEM encoding is wrong"}]}],"name":"Throws","style":"note"}]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)"},"schemaVersion":{"patch":0,"major":0,"minor":3},"seeAlsoSections":[{"title":"Constructors","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)"],"generated":true}],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/privatekey\/init(pem:)"]}],"abstract":[{"type":"text","text":"Creates a PrivateKey from its PEM encoding."}],"sections":[],"metadata":{"externalID":"s:9SwiftHPKE10PrivateKeyV3pemACSS_tKcfc","modules":[{"name":"SwiftHPKE"}],"title":"init(pem:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"pem"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"symbolKind":"init","roleHeading":"Initializer","role":"symbol"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(pem:)":{"url":"\/documentation\/swifthpke\/privatekey\/init(pem:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)","abstract":[{"text":"Creates a PrivateKey from its PEM encoding.","type":"text"}],"kind":"symbol","title":"init(pem:)","role":"symbol","type":"topic","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"pem"},{"kind":"text","text":": "},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(der:)":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)","type":"topic","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"text":"der","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"abstract":[{"text":"Creates a PrivateKey from its DER encoding","type":"text"}],"url":"\/documentation\/swifthpke\/privatekey\/init(der:)","kind":"symbol","title":"init(der:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(kem:bytes:)":{"url":"\/documentation\/swifthpke\/privatekey\/init(kem:bytes:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)","abstract":[{"type":"text","text":"Creates a PrivateKey from its type and key bytes"}],"kind":"symbol","title":"init(kem:bytes:)","role":"symbol","type":"topic","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"kem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"KEM","preciseIdentifier":"s:9SwiftHPKE3KEMO"},{"kind":"text","text":", "},{"kind":"externalParam","text":"bytes"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"}}} \ No newline at end of file +{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"schemaVersion":{"minor":3,"patch":0,"major":0},"metadata":{"fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"pem","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"title":"init(pem:)","role":"symbol","externalID":"s:9SwiftHPKE10PrivateKeyV3pemACSS_tKcfc","roleHeading":"Initializer","modules":[{"name":"SwiftHPKE"}],"symbolKind":"init"},"sections":[],"kind":"symbol","abstract":[{"type":"text","text":"Creates a PrivateKey from its PEM encoding."}],"seeAlsoSections":[{"title":"Constructors","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)"],"generated":true}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/privatekey\/init(pem:)"]}],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"init","kind":"keyword"},{"kind":"text","text":"("},{"text":"pem","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"platforms":["macOS"],"languages":["swift"]}]},{"kind":"parameters","parameters":[{"name":"pem","content":[{"inlineContent":[{"type":"text","text":"The PEM encoding of the key"}],"type":"paragraph"}]}]},{"kind":"content","content":[{"text":"Discussion","level":2,"anchor":"discussion","type":"heading"},{"type":"aside","name":"Throws","style":"note","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if the PEM encoding is wrong"}]}]}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(pem:)":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)","url":"\/documentation\/swifthpke\/privatekey\/init(pem:)","abstract":[{"type":"text","text":"Creates a PrivateKey from its PEM encoding."}],"role":"symbol","title":"init(pem:)","type":"topic","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"pem"},{"kind":"text","text":": "},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(kem:bytes:)":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)","url":"\/documentation\/swifthpke\/privatekey\/init(kem:bytes:)","abstract":[{"text":"Creates a PrivateKey from its type and key bytes","type":"text"}],"role":"symbol","title":"init(kem:bytes:)","type":"topic","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"kem","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"bytes"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(der:)":{"url":"\/documentation\/swifthpke\/privatekey\/init(der:)","kind":"symbol","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)","type":"topic","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"der","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"abstract":[{"type":"text","text":"Creates a PrivateKey from its DER encoding"}],"title":"init(der:)"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/pem.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/pem.json index 9f10d5a..dc8e0ae 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/pem.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/pem.json @@ -1 +1 @@ -{"abstract":[{"text":"The PEM base 64 encoding of ","type":"text"},{"code":"self","type":"codeVoice"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/privatekey\/pem"]}],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"pem"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":" { ","kind":"text"},{"kind":"keyword","text":"get"},{"kind":"text","text":" }"}],"languages":["swift"],"platforms":["macOS"]}]}],"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem"},"schemaVersion":{"major":0,"patch":0,"minor":3},"seeAlsoSections":[{"generated":true,"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"]}],"metadata":{"modules":[{"name":"SwiftHPKE"}],"symbolKind":"property","title":"pem","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pem","kind":"identifier"},{"kind":"text","text":": "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"roleHeading":"Instance Property","role":"symbol","externalID":"s:9SwiftHPKE10PrivateKeyV3pemSSvp"},"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/asn1":{"fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"asn1"},{"text":": ","kind":"text"},{"text":"ASN1","kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","title":"asn1","abstract":[{"type":"text","text":"The ASN1 encoding of "},{"type":"codeVoice","code":"self"}],"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/privatekey\/asn1","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/pem":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","role":"symbol","kind":"symbol","url":"\/documentation\/swifthpke\/privatekey\/pem","type":"topic","title":"pem","abstract":[{"text":"The PEM base 64 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/publicKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","role":"symbol","kind":"symbol","url":"\/documentation\/swifthpke\/privatekey\/publickey","title":"publicKey","type":"topic","abstract":[{"type":"text","text":"The corresponding public key"}],"fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/bytes":{"abstract":[{"text":"The serialized key bytes","type":"text"}],"title":"bytes","type":"topic","url":"\/documentation\/swifthpke\/privatekey\/bytes","kind":"symbol","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/der":{"abstract":[{"type":"text","text":"The DER encoding of "},{"type":"codeVoice","code":"self"}],"title":"der","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"role":"symbol","url":"\/documentation\/swifthpke\/privatekey\/der","kind":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/description":{"title":"description","role":"symbol","url":"\/documentation\/swifthpke\/privatekey\/description","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description","abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"kind":"symbol","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"}}} \ No newline at end of file +{"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"schemaVersion":{"minor":3,"patch":0,"major":0},"metadata":{"externalID":"s:9SwiftHPKE10PrivateKeyV3pemSSvp","title":"pem","roleHeading":"Instance Property","symbolKind":"property","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"pem"},{"kind":"text","text":": "},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"}],"modules":[{"name":"SwiftHPKE"}],"role":"symbol"},"seeAlsoSections":[{"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"],"generated":true}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","interfaceLanguage":"swift"},"variants":[{"paths":["\/documentation\/swifthpke\/privatekey\/pem"],"traits":[{"interfaceLanguage":"swift"}]}],"abstract":[{"type":"text","text":"The PEM base 64 encoding of "},{"code":"self","type":"codeVoice"}],"sections":[],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"pem"},{"kind":"text","text":": "},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"},{"text":" { ","kind":"text"},{"text":"get","kind":"keyword"},{"kind":"text","text":" }"}],"languages":["swift"]}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/publicKey":{"url":"\/documentation\/swifthpke\/privatekey\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","type":"topic","role":"symbol","abstract":[{"type":"text","text":"The corresponding public key"}],"title":"publicKey","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"publicKey","kind":"identifier"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/pem":{"url":"\/documentation\/swifthpke\/privatekey\/pem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","type":"topic","role":"symbol","abstract":[{"type":"text","text":"The PEM base 64 encoding of "},{"type":"codeVoice","code":"self"}],"title":"pem","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/der":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","type":"topic","role":"symbol","abstract":[{"text":"The DER encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"title":"der","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"der","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"url":"\/documentation\/swifthpke\/privatekey\/der"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/description":{"url":"\/documentation\/swifthpke\/privatekey\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description","type":"topic","role":"symbol","abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"type":"codeVoice","code":"self"}],"title":"description","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"kind":"text","text":": "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/asn1":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","type":"topic","role":"symbol","abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"title":"asn1","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"asn1","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC","text":"ASN1"}],"url":"\/documentation\/swifthpke\/privatekey\/asn1"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/bytes":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","type":"topic","role":"symbol","abstract":[{"text":"The serialized key bytes","type":"text"}],"title":"bytes","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"bytes"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/privatekey\/bytes"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/publickey.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/publickey.json index 048463a..0035307 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/publickey.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/privatekey/publickey.json @@ -1 +1 @@ -{"seeAlsoSections":[{"generated":true,"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"metadata":{"symbolKind":"property","roleHeading":"Instance Property","externalID":"s:9SwiftHPKE10PrivateKeyV06publicD0AA06PublicD0Vvp","modules":[{"name":"SwiftHPKE"}],"role":"symbol","title":"publicKey","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"publicKey","kind":"identifier"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"}]},"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"publicKey","kind":"identifier"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"}]}],"kind":"declarations"}],"abstract":[{"text":"The corresponding public key","type":"text"}],"sections":[],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey"},"kind":"symbol","schemaVersion":{"minor":3,"major":0,"patch":0},"variants":[{"paths":["\/documentation\/swifthpke\/privatekey\/publickey"],"traits":[{"interfaceLanguage":"swift"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/der":{"abstract":[{"type":"text","text":"The DER encoding of "},{"type":"codeVoice","code":"self"}],"title":"der","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"role":"symbol","url":"\/documentation\/swifthpke\/privatekey\/der","kind":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/bytes":{"abstract":[{"text":"The serialized key bytes","type":"text"}],"title":"bytes","type":"topic","url":"\/documentation\/swifthpke\/privatekey\/bytes","kind":"symbol","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/description":{"title":"description","role":"symbol","url":"\/documentation\/swifthpke\/privatekey\/description","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description","abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"kind":"symbol","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/publicKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","role":"symbol","kind":"symbol","url":"\/documentation\/swifthpke\/privatekey\/publickey","title":"publicKey","type":"topic","abstract":[{"type":"text","text":"The corresponding public key"}],"fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/asn1":{"fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"asn1"},{"text":": ","kind":"text"},{"text":"ASN1","kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","title":"asn1","abstract":[{"type":"text","text":"The ASN1 encoding of "},{"type":"codeVoice","code":"self"}],"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/privatekey\/asn1","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/pem":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","role":"symbol","kind":"symbol","url":"\/documentation\/swifthpke\/privatekey\/pem","type":"topic","title":"pem","abstract":[{"text":"The PEM base 64 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}]}}} \ No newline at end of file +{"metadata":{"roleHeading":"Instance Property","modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"}],"externalID":"s:9SwiftHPKE10PrivateKeyV06publicD0AA06PublicD0Vvp","title":"publicKey","symbolKind":"property","role":"symbol"},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey"},"kind":"symbol","schemaVersion":{"patch":0,"major":0,"minor":3},"abstract":[{"text":"The corresponding public key","type":"text"}],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"],"title":"Properties","generated":true}],"variants":[{"paths":["\/documentation\/swifthpke\/privatekey\/publickey"],"traits":[{"interfaceLanguage":"swift"}]}],"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"publicKey","kind":"identifier"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"}],"platforms":["macOS"]}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/description":{"url":"\/documentation\/swifthpke\/privatekey\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description","type":"topic","role":"symbol","abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"type":"codeVoice","code":"self"}],"title":"description","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"kind":"text","text":": "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/asn1":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","type":"topic","role":"symbol","abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"title":"asn1","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"asn1","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC","text":"ASN1"}],"url":"\/documentation\/swifthpke\/privatekey\/asn1"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/bytes":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","type":"topic","role":"symbol","abstract":[{"text":"The serialized key bytes","type":"text"}],"title":"bytes","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"bytes"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/privatekey\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/der":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","type":"topic","role":"symbol","abstract":[{"text":"The DER encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"title":"der","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"der","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"url":"\/documentation\/swifthpke\/privatekey\/der"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/publicKey":{"url":"\/documentation\/swifthpke\/privatekey\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","type":"topic","role":"symbol","abstract":[{"type":"text","text":"The corresponding public key"}],"title":"publicKey","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"publicKey","kind":"identifier"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/pem":{"url":"\/documentation\/swifthpke\/privatekey\/pem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","type":"topic","role":"symbol","abstract":[{"type":"text","text":"The PEM base 64 encoding of "},{"type":"codeVoice","code":"self"}],"title":"pem","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"}],"kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey.json index 4a201fe..cc257e1 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey.json @@ -1 +1 @@ -{"kind":"symbol","metadata":{"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"roleHeading":"Structure","externalID":"s:9SwiftHPKE9PublicKeyV","title":"PublicKey","modules":[{"name":"SwiftHPKE"}],"symbolKind":"struct","role":"symbol"},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"},"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"],"title":"Structures","generated":true}],"topicSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description"],"title":"Properties"},{"title":"Constructors","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)"]},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/==(_:_:)"],"title":"Equality"},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/Equatable-Implementations"],"title":"Default Implementations","generated":true}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"relationshipsSections":[{"identifiers":["doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","doc:\/\/SwiftHPKE\/SQ"],"title":"Conforms To","kind":"relationships","type":"conformsTo"}],"abstract":[{"text":"The public key","type":"text"}],"schemaVersion":{"patch":0,"minor":3,"major":0},"sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey"]}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"languages":["swift"]}],"kind":"declarations"},{"kind":"content","content":[{"text":"Overview","level":2,"anchor":"Overview","type":"heading"},{"inlineContent":[{"type":"text","text":"There are five different public key types corresponding to the five KEM’s"}],"type":"paragraph"},{"type":"unorderedList","items":[{"content":[{"type":"paragraph","inlineContent":[{"text":"P256 - the key is a 65 byte value corresponding to a NIST secp256r1 uncompressed curve point","type":"text"}]}]},{"content":[{"inlineContent":[{"text":"P384 - the key is a 97 byte value corresponding to a NIST secp384r1 uncompressed curve point","type":"text"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"P521 - the key is a 133 byte value corresponding to a NIST secp521r1 uncompressed curve point","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"X25519 - the key is a 32 byte value corresponding to a curve X25519 public key","type":"text"}]}]},{"content":[{"inlineContent":[{"type":"text","text":"X448 - the key is a 56 byte value corresponding to a curve X448 public key"}],"type":"paragraph"}]}]}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"type":"topic","title":"Base64","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Base64"}],"navigatorTitle":[{"kind":"identifier","text":"Base64"}],"url":"\/documentation\/swifthpke\/base64","role":"symbol","kind":"symbol","abstract":[{"type":"text","text":"The Base64 structure"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(der:)":{"role":"symbol","type":"topic","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)","url":"\/documentation\/swifthpke\/publickey\/init(der:)","title":"init(der:)","abstract":[{"type":"text","text":"Creates a PublicKey from its DER encoding"}],"fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"der","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(pem:)":{"role":"symbol","type":"topic","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)","url":"\/documentation\/swifthpke\/publickey\/init(pem:)","title":"init(pem:)","abstract":[{"type":"text","text":"Creates a PublicKey from its PEM encoding"}],"fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"pem","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/asn1":{"abstract":[{"type":"text","text":"The ASN1 encoding of "},{"type":"codeVoice","code":"self"}],"role":"symbol","title":"asn1","kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"asn1","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:4ASN1AAC","kind":"typeIdentifier","text":"ASN1"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","url":"\/documentation\/swifthpke\/publickey\/asn1"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/pem":{"abstract":[{"type":"text","text":"The PEM base 64 encoding of "},{"code":"self","type":"codeVoice"}],"role":"symbol","kind":"symbol","title":"pem","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"pem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","type":"topic","url":"\/documentation\/swifthpke\/publickey\/pem"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/SQ":{"title":"Swift.Equatable","type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/SQ"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/description":{"abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"role":"symbol","kind":"symbol","title":"description","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description","type":"topic","url":"\/documentation\/swifthpke\/publickey\/description"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(kem:bytes:)":{"role":"symbol","type":"topic","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)","url":"\/documentation\/swifthpke\/publickey\/init(kem:bytes:)","title":"init(kem:bytes:)","abstract":[{"type":"text","text":"Creates a PublicKey from its type and key bytes."}],"fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"text":"kem","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"bytes","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/Equatable-Implementations":{"title":"Equatable Implementations","abstract":[],"type":"topic","kind":"article","role":"collectionGroup","url":"\/documentation\/swifthpke\/publickey\/equatable-implementations","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/Equatable-Implementations"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/der":{"abstract":[{"type":"text","text":"The DER encoding of "},{"type":"codeVoice","code":"self"}],"role":"symbol","title":"der","kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","url":"\/documentation\/swifthpke\/publickey\/der"},"doc://SwiftHPKE/s23CustomStringConvertibleP":{"title":"Swift.CustomStringConvertible","type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/==(_:_:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/==(_:_:)","type":"topic","url":"\/documentation\/swifthpke\/publickey\/==(_:_:)","role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"==","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bool","preciseIdentifier":"s:Sb"}],"abstract":[{"type":"text","text":"Equality of two public keys"}],"kind":"symbol","title":"==(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/bytes":{"abstract":[{"text":"The serialized key bytes","type":"text"}],"title":"bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"role":"symbol","url":"\/documentation\/swifthpke\/publickey\/bytes","kind":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"}}} \ No newline at end of file +{"variants":[{"paths":["\/documentation\/swifthpke\/publickey"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"schemaVersion":{"minor":3,"patch":0,"major":0},"sections":[],"abstract":[{"type":"text","text":"The public key"}],"metadata":{"symbolKind":"struct","title":"PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"roleHeading":"Structure","navigatorTitle":[{"kind":"identifier","text":"PublicKey"}],"role":"symbol","externalID":"s:9SwiftHPKE9PublicKeyV","modules":[{"name":"SwiftHPKE"}]},"topicSections":[{"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description"]},{"title":"Constructors","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)"]},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/==(_:_:)"],"title":"Equality"},{"title":"Default Implementations","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/Equatable-Implementations"]}],"relationshipsSections":[{"type":"conformsTo","kind":"relationships","title":"Conforms To","identifiers":["doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","doc:\/\/SwiftHPKE\/SQ"]}],"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"],"title":"Structures"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"languages":["swift"],"platforms":["macOS"]}]},{"kind":"content","content":[{"text":"Overview","level":2,"type":"heading","anchor":"Overview"},{"inlineContent":[{"type":"text","text":"There are five different public key types corresponding to the five KEM’s"}],"type":"paragraph"},{"items":[{"content":[{"inlineContent":[{"type":"text","text":"P256 - the key is a 65 byte value corresponding to a NIST secp256r1 uncompressed curve point"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"P384 - the key is a 97 byte value corresponding to a NIST secp384r1 uncompressed curve point"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"P521 - the key is a 133 byte value corresponding to a NIST secp521r1 uncompressed curve point","type":"text"}]}]},{"content":[{"inlineContent":[{"type":"text","text":"X25519 - the key is a 32 byte value corresponding to a curve X25519 public key"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"X448 - the key is a 56 byte value corresponding to a curve X448 public key","type":"text"}]}]}],"type":"unorderedList"}]}],"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(der:)":{"abstract":[{"type":"text","text":"Creates a PublicKey from its DER encoding"}],"url":"\/documentation\/swifthpke\/publickey\/init(der:)","title":"init(der:)","type":"topic","role":"symbol","kind":"symbol","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"der"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"type":"topic","title":"Base64","url":"\/documentation\/swifthpke\/base64","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"text":"Base64","kind":"identifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","role":"symbol","kind":"symbol","abstract":[{"type":"text","text":"The Base64 structure"}],"navigatorTitle":[{"text":"Base64","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(kem:bytes:)":{"abstract":[{"text":"Creates a PublicKey from its type and key bytes.","type":"text"}],"url":"\/documentation\/swifthpke\/publickey\/init(kem:bytes:)","title":"init(kem:bytes:)","type":"topic","role":"symbol","kind":"symbol","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"kem"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"KEM","preciseIdentifier":"s:9SwiftHPKE3KEMO"},{"kind":"text","text":", "},{"kind":"externalParam","text":"bytes"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/asn1":{"abstract":[{"type":"text","text":"The ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"url":"\/documentation\/swifthpke\/publickey\/asn1","title":"asn1","type":"topic","role":"symbol","kind":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"asn1"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"ASN1","preciseIdentifier":"s:4ASN1AAC"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/der":{"abstract":[{"type":"text","text":"The DER encoding of "},{"code":"self","type":"codeVoice"}],"url":"\/documentation\/swifthpke\/publickey\/der","title":"der","type":"topic","role":"symbol","kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/==(_:_:)":{"fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"==","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":") -> "},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/==(_:_:)","kind":"symbol","url":"\/documentation\/swifthpke\/publickey\/==(_:_:)","role":"symbol","abstract":[{"type":"text","text":"Equality of two public keys"}],"type":"topic","title":"==(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(pem:)":{"abstract":[{"type":"text","text":"Creates a PublicKey from its PEM encoding"}],"url":"\/documentation\/swifthpke\/publickey\/init(pem:)","title":"init(pem:)","type":"topic","role":"symbol","kind":"symbol","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"pem","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/s23CustomStringConvertibleP":{"identifier":"doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","title":"Swift.CustomStringConvertible","type":"unresolvable"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/Equatable-Implementations":{"title":"Equatable Implementations","kind":"article","abstract":[],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/Equatable-Implementations","url":"\/documentation\/swifthpke\/publickey\/equatable-implementations","role":"collectionGroup","type":"topic"},"doc://SwiftHPKE/SQ":{"identifier":"doc:\/\/SwiftHPKE\/SQ","title":"Swift.Equatable","type":"unresolvable"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/pem":{"abstract":[{"text":"The PEM base 64 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"url":"\/documentation\/swifthpke\/publickey\/pem","title":"pem","type":"topic","role":"symbol","kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/bytes":{"abstract":[{"text":"The serialized key bytes","type":"text"}],"url":"\/documentation\/swifthpke\/publickey\/bytes","title":"bytes","type":"topic","role":"symbol","kind":"symbol","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"bytes"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/description":{"abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"url":"\/documentation\/swifthpke\/publickey\/description","title":"description","type":"topic","role":"symbol","kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/!=(_:_:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/!=(_:_:).json index ab94f2f..cf6ca90 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/!=(_:_:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/!=(_:_:).json @@ -1 +1 @@ -{"metadata":{"externalID":"s:SQsE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftHPKE9PublicKeyV","title":"!=(_:_:)","extendedModule":"Swift","roleHeading":"Operator","symbolKind":"op","role":"symbol","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":") -> "},{"text":"Bool","preciseIdentifier":"s:Sb","kind":"typeIdentifier"}],"modules":[{"name":"SwiftHPKE","relatedModules":["Swift"]}]},"primaryContentSections":[{"declarations":[{"tokens":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"kind":"text","text":" "},{"text":"(","kind":"text"},{"text":"lhs","kind":"internalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Self"},{"text":", ","kind":"text"},{"text":"rhs","kind":"internalParam"},{"text":": ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:Sb","text":"Bool"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"}],"abstract":[{"type":"text","text":"Inherited from "},{"type":"codeVoice","code":"Equatable.!=(_:_:)"},{"type":"text","text":"."}],"schemaVersion":{"minor":3,"patch":0,"major":0},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/!=(_:_:)"},"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/Equatable-Implementations"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey\/!=(_:_:)"]}],"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/Equatable-Implementations":{"title":"Equatable Implementations","abstract":[],"type":"topic","kind":"article","role":"collectionGroup","url":"\/documentation\/swifthpke\/publickey\/equatable-implementations","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/Equatable-Implementations"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/!=(_:_:)":{"role":"symbol","abstract":[],"kind":"symbol","type":"topic","title":"!=(_:_:)","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"!=","kind":"identifier"},{"kind":"text","text":" "},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":", "},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}],"url":"\/documentation\/swifthpke\/publickey\/!=(_:_:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/!=(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]}}} \ No newline at end of file +{"kind":"symbol","variants":[{"paths":["\/documentation\/swifthpke\/publickey\/!=(_:_:)"],"traits":[{"interfaceLanguage":"swift"}]}],"sections":[],"metadata":{"modules":[{"name":"SwiftHPKE","relatedModules":["Swift"]}],"externalID":"s:SQsE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftHPKE9PublicKeyV","role":"symbol","roleHeading":"Operator","extendedModule":"Swift","symbolKind":"op","fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"kind":"text","text":" "},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"preciseIdentifier":"s:Sb","kind":"typeIdentifier","text":"Bool"}],"title":"!=(_:_:)"},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/!=(_:_:)","interfaceLanguage":"swift"},"schemaVersion":{"major":0,"patch":0,"minor":3},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/Equatable-Implementations"]]},"primaryContentSections":[{"declarations":[{"tokens":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"lhs","kind":"internalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":", "},{"text":"rhs","kind":"internalParam"},{"text":": ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"}],"abstract":[{"text":"Inherited from ","type":"text"},{"code":"Equatable.!=(_:_:)","type":"codeVoice"},{"text":".","type":"text"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/Equatable-Implementations":{"title":"Equatable Implementations","kind":"article","abstract":[],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/Equatable-Implementations","url":"\/documentation\/swifthpke\/publickey\/equatable-implementations","role":"collectionGroup","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/!=(_:_:)":{"fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"!=","kind":"identifier"},{"kind":"text","text":" "},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:Sb","text":"Bool"}],"url":"\/documentation\/swifthpke\/publickey\/!=(_:_:)","type":"topic","abstract":[],"title":"!=(_:_:)","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/!=(_:_:)","role":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/==(_:_:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/==(_:_:).json index 266ea6a..6dec191 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/==(_:_:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/==(_:_:).json @@ -1 +1 @@ -{"sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey\/==(_:_:)"]}],"metadata":{"role":"symbol","roleHeading":"Operator","symbolKind":"op","modules":[{"name":"SwiftHPKE"}],"title":"==(_:_:)","externalID":"s:9SwiftHPKE9PublicKeyV2eeoiySbAC_ACtFZ","fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"==","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":") -> "},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}]},"schemaVersion":{"minor":3,"major":0,"patch":0},"kind":"symbol","abstract":[{"type":"text","text":"Equality of two public keys"}],"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"==","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"key1","kind":"internalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"key2","kind":"internalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":") -> ","kind":"text"},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}]}],"kind":"declarations"},{"parameters":[{"content":[{"inlineContent":[{"type":"text","text":"a public key"}],"type":"paragraph"}],"name":"key1"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"a public key"}]}],"name":"key2"}],"kind":"parameters"},{"content":[{"level":2,"type":"heading","text":"Return Value","anchor":"return-value"},{"inlineContent":[{"type":"text","text":""},{"code":"true","type":"codeVoice"},{"type":"text","text":" if key1 and key2 are equal, "},{"type":"codeVoice","code":"false"},{"type":"text","text":" otherwise"}],"type":"paragraph"}],"kind":"content"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/==(_:_:)","interfaceLanguage":"swift"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/==(_:_:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/==(_:_:)","type":"topic","url":"\/documentation\/swifthpke\/publickey\/==(_:_:)","role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"==","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bool","preciseIdentifier":"s:Sb"}],"abstract":[{"type":"text","text":"Equality of two public keys"}],"kind":"symbol","title":"==(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"}}} \ No newline at end of file +{"schemaVersion":{"major":0,"minor":3,"patch":0},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/==(_:_:)","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"=="},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"key1","kind":"internalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"key2","kind":"internalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"},{"kind":"text","text":") -> "},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}]}]},{"kind":"parameters","parameters":[{"name":"key1","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"a public key"}]}]},{"name":"key2","content":[{"inlineContent":[{"text":"a public key","type":"text"}],"type":"paragraph"}]}]},{"kind":"content","content":[{"text":"Return Value","anchor":"return-value","type":"heading","level":2},{"type":"paragraph","inlineContent":[{"type":"text","text":""},{"type":"codeVoice","code":"true"},{"type":"text","text":" if key1 and key2 are equal, "},{"code":"false","type":"codeVoice"},{"text":" otherwise","type":"text"}]}]}],"kind":"symbol","variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey\/==(_:_:)"]}],"metadata":{"title":"==(_:_:)","externalID":"s:9SwiftHPKE9PublicKeyV2eeoiySbAC_ACtFZ","role":"symbol","roleHeading":"Operator","modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"=="},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:Sb","kind":"typeIdentifier","text":"Bool"}],"symbolKind":"op"},"abstract":[{"text":"Equality of two public keys","type":"text"}],"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/==(_:_:)":{"fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"==","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":") -> "},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/==(_:_:)","kind":"symbol","url":"\/documentation\/swifthpke\/publickey\/==(_:_:)","role":"symbol","abstract":[{"type":"text","text":"Equality of two public keys"}],"type":"topic","title":"==(_:_:)"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/asn1.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/asn1.json index da3d9cb..dd5792f 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/asn1.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/asn1.json @@ -1 +1 @@ -{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","interfaceLanguage":"swift"},"seeAlsoSections":[{"generated":true,"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description"]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey\/asn1"]}],"metadata":{"role":"symbol","externalID":"s:9SwiftHPKE9PublicKeyV4asn14ASN1AECvp","roleHeading":"Instance Property","title":"asn1","modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"asn1","kind":"identifier"},{"text":": ","kind":"text"},{"text":"ASN1","preciseIdentifier":"s:4ASN1AAC","kind":"typeIdentifier"}],"symbolKind":"property"},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"asn1","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"ASN1","preciseIdentifier":"s:4ASN1AAC"},{"kind":"text","text":" { "},{"text":"get","kind":"keyword"},{"text":" }","kind":"text"}],"languages":["swift"]}],"kind":"declarations"}],"kind":"symbol","schemaVersion":{"patch":0,"minor":3,"major":0},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/bytes":{"abstract":[{"text":"The serialized key bytes","type":"text"}],"title":"bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"role":"symbol","url":"\/documentation\/swifthpke\/publickey\/bytes","kind":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/pem":{"abstract":[{"type":"text","text":"The PEM base 64 encoding of "},{"code":"self","type":"codeVoice"}],"role":"symbol","kind":"symbol","title":"pem","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"pem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","type":"topic","url":"\/documentation\/swifthpke\/publickey\/pem"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/der":{"abstract":[{"type":"text","text":"The DER encoding of "},{"type":"codeVoice","code":"self"}],"role":"symbol","title":"der","kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","url":"\/documentation\/swifthpke\/publickey\/der"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/description":{"abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"role":"symbol","kind":"symbol","title":"description","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description","type":"topic","url":"\/documentation\/swifthpke\/publickey\/description"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/asn1":{"abstract":[{"type":"text","text":"The ASN1 encoding of "},{"type":"codeVoice","code":"self"}],"role":"symbol","title":"asn1","kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"asn1","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:4ASN1AAC","kind":"typeIdentifier","text":"ASN1"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","url":"\/documentation\/swifthpke\/publickey\/asn1"}}} \ No newline at end of file +{"sections":[],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1"},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"text":"asn1","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:4ASN1AAC","text":"ASN1","kind":"typeIdentifier"},{"text":" { ","kind":"text"},{"text":"get","kind":"keyword"},{"text":" }","kind":"text"}],"languages":["swift"]}],"kind":"declarations"}],"metadata":{"externalID":"s:9SwiftHPKE9PublicKeyV4asn14ASN1AECvp","symbolKind":"property","role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"asn1"},{"text":": ","kind":"text"},{"text":"ASN1","kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC"}],"roleHeading":"Instance Property","modules":[{"name":"SwiftHPKE"}],"title":"asn1"},"abstract":[{"type":"text","text":"The ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"seeAlsoSections":[{"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description"],"generated":true}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"schemaVersion":{"patch":0,"major":0,"minor":3},"kind":"symbol","variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey\/asn1"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/pem":{"abstract":[{"text":"The PEM base 64 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"url":"\/documentation\/swifthpke\/publickey\/pem","title":"pem","type":"topic","role":"symbol","kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/der":{"abstract":[{"type":"text","text":"The DER encoding of "},{"code":"self","type":"codeVoice"}],"url":"\/documentation\/swifthpke\/publickey\/der","title":"der","type":"topic","role":"symbol","kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/asn1":{"abstract":[{"type":"text","text":"The ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"url":"\/documentation\/swifthpke\/publickey\/asn1","title":"asn1","type":"topic","role":"symbol","kind":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"asn1"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"ASN1","preciseIdentifier":"s:4ASN1AAC"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/description":{"abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"url":"\/documentation\/swifthpke\/publickey\/description","title":"description","type":"topic","role":"symbol","kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/bytes":{"abstract":[{"text":"The serialized key bytes","type":"text"}],"url":"\/documentation\/swifthpke\/publickey\/bytes","title":"bytes","type":"topic","role":"symbol","kind":"symbol","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"bytes"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/bytes.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/bytes.json index d60d5db..3471d2f 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/bytes.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/bytes.json @@ -1 +1 @@ -{"kind":"symbol","schemaVersion":{"major":0,"minor":3,"patch":0},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"metadata":{"roleHeading":"Instance Property","role":"symbol","externalID":"s:9SwiftHPKE9PublicKeyV5bytesSays5UInt8VGvp","title":"bytes","fragments":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"text":"bytes","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"symbolKind":"property","modules":[{"name":"SwiftHPKE"}]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey\/bytes"]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","interfaceLanguage":"swift"},"sections":[],"abstract":[{"type":"text","text":"The serialized key bytes"}],"seeAlsoSections":[{"generated":true,"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description"]}],"primaryContentSections":[{"declarations":[{"tokens":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"text":"bytes","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/description":{"abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"role":"symbol","kind":"symbol","title":"description","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description","type":"topic","url":"\/documentation\/swifthpke\/publickey\/description"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/asn1":{"abstract":[{"type":"text","text":"The ASN1 encoding of "},{"type":"codeVoice","code":"self"}],"role":"symbol","title":"asn1","kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"asn1","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:4ASN1AAC","kind":"typeIdentifier","text":"ASN1"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","url":"\/documentation\/swifthpke\/publickey\/asn1"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/pem":{"abstract":[{"type":"text","text":"The PEM base 64 encoding of "},{"code":"self","type":"codeVoice"}],"role":"symbol","kind":"symbol","title":"pem","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"pem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","type":"topic","url":"\/documentation\/swifthpke\/publickey\/pem"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/der":{"abstract":[{"type":"text","text":"The DER encoding of "},{"type":"codeVoice","code":"self"}],"role":"symbol","title":"der","kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","url":"\/documentation\/swifthpke\/publickey\/der"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/bytes":{"abstract":[{"text":"The serialized key bytes","type":"text"}],"title":"bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"role":"symbol","url":"\/documentation\/swifthpke\/publickey\/bytes","kind":"symbol","type":"topic"}}} \ No newline at end of file +{"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"metadata":{"roleHeading":"Instance Property","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"title":"bytes","role":"symbol","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE9PublicKeyV5bytesSays5UInt8VGvp","symbolKind":"property"},"kind":"symbol","identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes"},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"bytes"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"}],"platforms":["macOS"],"languages":["swift"]}]}],"abstract":[{"text":"The serialized key bytes","type":"text"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey\/bytes"]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description"],"generated":true,"title":"Properties"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/der":{"abstract":[{"type":"text","text":"The DER encoding of "},{"code":"self","type":"codeVoice"}],"url":"\/documentation\/swifthpke\/publickey\/der","title":"der","type":"topic","role":"symbol","kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/description":{"abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"url":"\/documentation\/swifthpke\/publickey\/description","title":"description","type":"topic","role":"symbol","kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/asn1":{"abstract":[{"type":"text","text":"The ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"url":"\/documentation\/swifthpke\/publickey\/asn1","title":"asn1","type":"topic","role":"symbol","kind":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"asn1"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"ASN1","preciseIdentifier":"s:4ASN1AAC"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/pem":{"abstract":[{"text":"The PEM base 64 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"url":"\/documentation\/swifthpke\/publickey\/pem","title":"pem","type":"topic","role":"symbol","kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/bytes":{"abstract":[{"text":"The serialized key bytes","type":"text"}],"url":"\/documentation\/swifthpke\/publickey\/bytes","title":"bytes","type":"topic","role":"symbol","kind":"symbol","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"bytes"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/der.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/der.json index 131b8f9..b602a12 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/der.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/der.json @@ -1 +1 @@ -{"sections":[],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"text":" { ","kind":"text"},{"kind":"keyword","text":"get"},{"text":" }","kind":"text"}],"languages":["swift"],"platforms":["macOS"]}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"abstract":[{"text":"The DER encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"metadata":{"role":"symbol","roleHeading":"Instance Property","title":"der","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"der"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"externalID":"s:9SwiftHPKE9PublicKeyV3derSays5UInt8VGvp","symbolKind":"property","modules":[{"name":"SwiftHPKE"}]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","interfaceLanguage":"swift"},"kind":"symbol","schemaVersion":{"major":0,"patch":0,"minor":3},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey\/der"]}],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description"],"title":"Properties","generated":true}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/asn1":{"abstract":[{"type":"text","text":"The ASN1 encoding of "},{"type":"codeVoice","code":"self"}],"role":"symbol","title":"asn1","kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"asn1","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:4ASN1AAC","kind":"typeIdentifier","text":"ASN1"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","url":"\/documentation\/swifthpke\/publickey\/asn1"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/description":{"abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"role":"symbol","kind":"symbol","title":"description","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description","type":"topic","url":"\/documentation\/swifthpke\/publickey\/description"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/der":{"abstract":[{"type":"text","text":"The DER encoding of "},{"type":"codeVoice","code":"self"}],"role":"symbol","title":"der","kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","url":"\/documentation\/swifthpke\/publickey\/der"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/bytes":{"abstract":[{"text":"The serialized key bytes","type":"text"}],"title":"bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"role":"symbol","url":"\/documentation\/swifthpke\/publickey\/bytes","kind":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/pem":{"abstract":[{"type":"text","text":"The PEM base 64 encoding of "},{"code":"self","type":"codeVoice"}],"role":"symbol","kind":"symbol","title":"pem","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"pem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","type":"topic","url":"\/documentation\/swifthpke\/publickey\/pem"}}} \ No newline at end of file +{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":" { ","kind":"text"},{"kind":"keyword","text":"get"},{"text":" }","kind":"text"}],"languages":["swift"]}]}],"variants":[{"paths":["\/documentation\/swifthpke\/publickey\/der"],"traits":[{"interfaceLanguage":"swift"}]}],"metadata":{"modules":[{"name":"SwiftHPKE"}],"symbolKind":"property","role":"symbol","roleHeading":"Instance Property","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"der"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"title":"der","externalID":"s:9SwiftHPKE9PublicKeyV3derSays5UInt8VGvp"},"schemaVersion":{"minor":3,"patch":0,"major":0},"abstract":[{"type":"text","text":"The DER encoding of "},{"type":"codeVoice","code":"self"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","interfaceLanguage":"swift"},"kind":"symbol","sections":[],"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description"],"title":"Properties"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/asn1":{"abstract":[{"type":"text","text":"The ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"url":"\/documentation\/swifthpke\/publickey\/asn1","title":"asn1","type":"topic","role":"symbol","kind":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"asn1"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"ASN1","preciseIdentifier":"s:4ASN1AAC"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/description":{"abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"url":"\/documentation\/swifthpke\/publickey\/description","title":"description","type":"topic","role":"symbol","kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/bytes":{"abstract":[{"text":"The serialized key bytes","type":"text"}],"url":"\/documentation\/swifthpke\/publickey\/bytes","title":"bytes","type":"topic","role":"symbol","kind":"symbol","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"bytes"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/der":{"abstract":[{"type":"text","text":"The DER encoding of "},{"code":"self","type":"codeVoice"}],"url":"\/documentation\/swifthpke\/publickey\/der","title":"der","type":"topic","role":"symbol","kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/pem":{"abstract":[{"text":"The PEM base 64 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"url":"\/documentation\/swifthpke\/publickey\/pem","title":"pem","type":"topic","role":"symbol","kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/description.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/description.json index 604e1c0..0443ec6 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/description.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/description.json @@ -1 +1 @@ -{"seeAlsoSections":[{"generated":true,"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der"]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey\/description"]}],"metadata":{"modules":[{"name":"SwiftHPKE"}],"symbolKind":"property","roleHeading":"Instance Property","title":"description","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"role":"symbol","externalID":"s:9SwiftHPKE9PublicKeyV11descriptionSSvp"},"kind":"symbol","schemaVersion":{"patch":0,"major":0,"minor":3},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"text":" { ","kind":"text"},{"kind":"keyword","text":"get"},{"text":" }","kind":"text"}]}]}],"abstract":[{"text":"A textual representation of the ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description","interfaceLanguage":"swift"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/asn1":{"abstract":[{"type":"text","text":"The ASN1 encoding of "},{"type":"codeVoice","code":"self"}],"role":"symbol","title":"asn1","kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"asn1","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:4ASN1AAC","kind":"typeIdentifier","text":"ASN1"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","url":"\/documentation\/swifthpke\/publickey\/asn1"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/description":{"abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"role":"symbol","kind":"symbol","title":"description","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description","type":"topic","url":"\/documentation\/swifthpke\/publickey\/description"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/der":{"abstract":[{"type":"text","text":"The DER encoding of "},{"type":"codeVoice","code":"self"}],"role":"symbol","title":"der","kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","url":"\/documentation\/swifthpke\/publickey\/der"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/pem":{"abstract":[{"type":"text","text":"The PEM base 64 encoding of "},{"code":"self","type":"codeVoice"}],"role":"symbol","kind":"symbol","title":"pem","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"pem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","type":"topic","url":"\/documentation\/swifthpke\/publickey\/pem"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/bytes":{"abstract":[{"text":"The serialized key bytes","type":"text"}],"title":"bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"role":"symbol","url":"\/documentation\/swifthpke\/publickey\/bytes","kind":"symbol","type":"topic"}}} \ No newline at end of file +{"sections":[],"kind":"symbol","metadata":{"modules":[{"name":"SwiftHPKE"}],"symbolKind":"property","role":"symbol","title":"description","roleHeading":"Instance Property","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"externalID":"s:9SwiftHPKE9PublicKeyV11descriptionSSvp"},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description","interfaceLanguage":"swift"},"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der"],"generated":true,"title":"Properties"}],"schemaVersion":{"patch":0,"major":0,"minor":3},"abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"type":"codeVoice","code":"self"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey\/description"]}],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"kind":"text","text":" { "},{"text":"get","kind":"keyword"},{"kind":"text","text":" }"}],"languages":["swift"]}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/asn1":{"abstract":[{"type":"text","text":"The ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"url":"\/documentation\/swifthpke\/publickey\/asn1","title":"asn1","type":"topic","role":"symbol","kind":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"asn1"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"ASN1","preciseIdentifier":"s:4ASN1AAC"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/bytes":{"abstract":[{"text":"The serialized key bytes","type":"text"}],"url":"\/documentation\/swifthpke\/publickey\/bytes","title":"bytes","type":"topic","role":"symbol","kind":"symbol","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"bytes"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/der":{"abstract":[{"type":"text","text":"The DER encoding of "},{"code":"self","type":"codeVoice"}],"url":"\/documentation\/swifthpke\/publickey\/der","title":"der","type":"topic","role":"symbol","kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/pem":{"abstract":[{"text":"The PEM base 64 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"url":"\/documentation\/swifthpke\/publickey\/pem","title":"pem","type":"topic","role":"symbol","kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/description":{"abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"url":"\/documentation\/swifthpke\/publickey\/description","title":"description","type":"topic","role":"symbol","kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/equatable-implementations.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/equatable-implementations.json index 13cde01..b41d45e 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/equatable-implementations.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/equatable-implementations.json @@ -1 +1 @@ -{"topicSections":[{"title":"Operators","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/!=(_:_:)"],"generated":true}],"kind":"article","schemaVersion":{"patch":0,"major":0,"minor":3},"variants":[{"paths":["\/documentation\/swifthpke\/publickey\/equatable-implementations"],"traits":[{"interfaceLanguage":"swift"}]}],"metadata":{"title":"Equatable Implementations","modules":[{"name":"SwiftHPKE"}],"roleHeading":"API Collection","role":"collectionGroup"},"sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/Equatable-Implementations","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/!=(_:_:)":{"role":"symbol","abstract":[],"kind":"symbol","type":"topic","title":"!=(_:_:)","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"!=","kind":"identifier"},{"kind":"text","text":" "},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":", "},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}],"url":"\/documentation\/swifthpke\/publickey\/!=(_:_:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/!=(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"}}} \ No newline at end of file +{"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"schemaVersion":{"major":0,"minor":3,"patch":0},"metadata":{"modules":[{"name":"SwiftHPKE"}],"role":"collectionGroup","roleHeading":"API Collection","title":"Equatable Implementations"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey\/equatable-implementations"]}],"kind":"article","topicSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/!=(_:_:)"],"title":"Operators","generated":true}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/Equatable-Implementations","interfaceLanguage":"swift"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/!=(_:_:)":{"fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"!=","kind":"identifier"},{"kind":"text","text":" "},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:Sb","text":"Bool"}],"url":"\/documentation\/swifthpke\/publickey\/!=(_:_:)","type":"topic","abstract":[],"title":"!=(_:_:)","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/!=(_:_:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/init(der:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/init(der:).json index 03d25cc..3ee1de0 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/init(der:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/init(der:).json @@ -1 +1 @@ -{"abstract":[{"text":"Creates a PublicKey from its DER encoding","type":"text"}],"metadata":{"role":"symbol","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Initializer","symbolKind":"init","externalID":"s:9SwiftHPKE9PublicKeyV3derACSays5UInt8VG_tKcfc","title":"init(der:)","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"der"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey\/init(der:)"]}],"kind":"symbol","schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"seeAlsoSections":[{"title":"Constructors","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)"]}],"primaryContentSections":[{"declarations":[{"tokens":[{"text":"init","kind":"keyword"},{"kind":"text","text":"("},{"text":"der","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"der","content":[{"inlineContent":[{"type":"text","text":"The DER encoding of the key"}],"type":"paragraph"}]}]},{"kind":"content","content":[{"anchor":"discussion","text":"Discussion","type":"heading","level":2},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if the DER encoding is wrong"}]}],"type":"aside","style":"note","name":"Throws"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(kem:bytes:)":{"role":"symbol","type":"topic","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)","url":"\/documentation\/swifthpke\/publickey\/init(kem:bytes:)","title":"init(kem:bytes:)","abstract":[{"type":"text","text":"Creates a PublicKey from its type and key bytes."}],"fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"text":"kem","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"bytes","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(pem:)":{"role":"symbol","type":"topic","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)","url":"\/documentation\/swifthpke\/publickey\/init(pem:)","title":"init(pem:)","abstract":[{"type":"text","text":"Creates a PublicKey from its PEM encoding"}],"fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"pem","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(der:)":{"role":"symbol","type":"topic","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)","url":"\/documentation\/swifthpke\/publickey\/init(der:)","title":"init(der:)","abstract":[{"type":"text","text":"Creates a PublicKey from its DER encoding"}],"fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"der","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]}}} \ No newline at end of file +{"abstract":[{"type":"text","text":"Creates a PublicKey from its DER encoding"}],"schemaVersion":{"patch":0,"major":0,"minor":3},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)"},"metadata":{"title":"init(der:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"der","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"roleHeading":"Initializer","externalID":"s:9SwiftHPKE9PublicKeyV3derACSays5UInt8VG_tKcfc","modules":[{"name":"SwiftHPKE"}],"role":"symbol","symbolKind":"init"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"sections":[],"primaryContentSections":[{"declarations":[{"tokens":[{"kind":"keyword","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"der"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The DER encoding of the key"}]}],"name":"der"}]},{"kind":"content","content":[{"level":2,"text":"Discussion","type":"heading","anchor":"discussion"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if the DER encoding is wrong"}]}],"type":"aside","name":"Throws","style":"note"}]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey\/init(der:)"]}],"seeAlsoSections":[{"title":"Constructors","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)"],"generated":true}],"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(pem:)":{"abstract":[{"type":"text","text":"Creates a PublicKey from its PEM encoding"}],"url":"\/documentation\/swifthpke\/publickey\/init(pem:)","title":"init(pem:)","type":"topic","role":"symbol","kind":"symbol","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"pem","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(der:)":{"abstract":[{"type":"text","text":"Creates a PublicKey from its DER encoding"}],"url":"\/documentation\/swifthpke\/publickey\/init(der:)","title":"init(der:)","type":"topic","role":"symbol","kind":"symbol","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"der"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(kem:bytes:)":{"abstract":[{"text":"Creates a PublicKey from its type and key bytes.","type":"text"}],"url":"\/documentation\/swifthpke\/publickey\/init(kem:bytes:)","title":"init(kem:bytes:)","type":"topic","role":"symbol","kind":"symbol","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"kem"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"KEM","preciseIdentifier":"s:9SwiftHPKE3KEMO"},{"kind":"text","text":", "},{"kind":"externalParam","text":"bytes"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/init(kem:bytes:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/init(kem:bytes:).json index d2406c5..b42ca71 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/init(kem:bytes:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/init(kem:bytes:).json @@ -1 +1 @@ -{"schemaVersion":{"patch":0,"major":0,"minor":3},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey\/init(kem:bytes:)"]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"seeAlsoSections":[{"generated":true,"title":"Constructors","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)"]}],"kind":"symbol","primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"init","kind":"keyword"},{"kind":"text","text":"("},{"text":"kem","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE3KEMO","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","text":"KEM","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"bytes","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"kem","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The key type"}]}]},{"name":"bytes","content":[{"inlineContent":[{"text":"The key bytes","type":"text"}],"type":"paragraph"}]}]},{"content":[{"type":"heading","text":"Discussion","anchor":"discussion","level":2},{"type":"paragraph","inlineContent":[{"type":"text","text":"For types P256, P384 and P521 the key bytes represents"},{"type":"text","text":" "},{"type":"text","text":"either a compressed curve point or an uncompressed curve point."}]},{"name":"Throws","style":"note","content":[{"inlineContent":[{"text":"An exception if ","type":"text"},{"type":"codeVoice","code":"bytes"},{"type":"text","text":" has wrong size for the key type"}],"type":"paragraph"}],"type":"aside"}],"kind":"content"}],"sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)","interfaceLanguage":"swift"},"metadata":{"externalID":"s:9SwiftHPKE9PublicKeyV3kem5bytesAcA3KEMO_Says5UInt8VGtKcfc","roleHeading":"Initializer","title":"init(kem:bytes:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"kem"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE3KEMO","kind":"typeIdentifier","text":"KEM"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"bytes"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"symbolKind":"init","modules":[{"name":"SwiftHPKE"}],"role":"symbol"},"abstract":[{"text":"Creates a PublicKey from its type and key bytes.","type":"text"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(pem:)":{"role":"symbol","type":"topic","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)","url":"\/documentation\/swifthpke\/publickey\/init(pem:)","title":"init(pem:)","abstract":[{"type":"text","text":"Creates a PublicKey from its PEM encoding"}],"fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"pem","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(kem:bytes:)":{"role":"symbol","type":"topic","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)","url":"\/documentation\/swifthpke\/publickey\/init(kem:bytes:)","title":"init(kem:bytes:)","abstract":[{"type":"text","text":"Creates a PublicKey from its type and key bytes."}],"fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"text":"kem","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"bytes","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","navigatorTitle":[{"text":"KEM","kind":"identifier"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"title":"KEM","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"KEM","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(der:)":{"role":"symbol","type":"topic","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)","url":"\/documentation\/swifthpke\/publickey\/init(der:)","title":"init(der:)","abstract":[{"type":"text","text":"Creates a PublicKey from its DER encoding"}],"fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"der","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"}}} \ No newline at end of file +{"seeAlsoSections":[{"title":"Constructors","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)"]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"sections":[],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)"},"schemaVersion":{"minor":3,"patch":0,"major":0},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"init","kind":"keyword"},{"text":"(","kind":"text"},{"text":"kem","kind":"externalParam"},{"kind":"text","text":": "},{"text":"KEM","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO"},{"kind":"text","text":", "},{"kind":"externalParam","text":"bytes"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]}]},{"parameters":[{"content":[{"inlineContent":[{"type":"text","text":"The key type"}],"type":"paragraph"}],"name":"kem"},{"content":[{"type":"paragraph","inlineContent":[{"text":"The key bytes","type":"text"}]}],"name":"bytes"}],"kind":"parameters"},{"content":[{"type":"heading","anchor":"discussion","level":2,"text":"Discussion"},{"type":"paragraph","inlineContent":[{"type":"text","text":"For types P256, P384 and P521 the key bytes represents"},{"type":"text","text":" "},{"type":"text","text":"either a compressed curve point or an uncompressed curve point."}]},{"style":"note","name":"Throws","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if ","type":"text"},{"type":"codeVoice","code":"bytes"},{"text":" has wrong size for the key type","type":"text"}]}],"type":"aside"}],"kind":"content"}],"abstract":[{"type":"text","text":"Creates a PublicKey from its type and key bytes."}],"kind":"symbol","variants":[{"paths":["\/documentation\/swifthpke\/publickey\/init(kem:bytes:)"],"traits":[{"interfaceLanguage":"swift"}]}],"metadata":{"externalID":"s:9SwiftHPKE9PublicKeyV3kem5bytesAcA3KEMO_Says5UInt8VGtKcfc","symbolKind":"init","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Initializer","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"kem"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"bytes"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"title":"init(kem:bytes:)","role":"symbol"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(pem:)":{"abstract":[{"type":"text","text":"Creates a PublicKey from its PEM encoding"}],"url":"\/documentation\/swifthpke\/publickey\/init(pem:)","title":"init(pem:)","type":"topic","role":"symbol","kind":"symbol","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"pem","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(der:)":{"abstract":[{"type":"text","text":"Creates a PublicKey from its DER encoding"}],"url":"\/documentation\/swifthpke\/publickey\/init(der:)","title":"init(der:)","type":"topic","role":"symbol","kind":"symbol","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"der"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"KEM"}],"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"url":"\/documentation\/swifthpke\/kem","kind":"symbol","title":"KEM","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(kem:bytes:)":{"abstract":[{"text":"Creates a PublicKey from its type and key bytes.","type":"text"}],"url":"\/documentation\/swifthpke\/publickey\/init(kem:bytes:)","title":"init(kem:bytes:)","type":"topic","role":"symbol","kind":"symbol","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"kem"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"KEM","preciseIdentifier":"s:9SwiftHPKE3KEMO"},{"kind":"text","text":", "},{"kind":"externalParam","text":"bytes"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/init(pem:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/init(pem:).json index 6f4e98f..fdc5863 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/init(pem:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/init(pem:).json @@ -1 +1 @@ -{"schemaVersion":{"minor":3,"patch":0,"major":0},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)","interfaceLanguage":"swift"},"metadata":{"externalID":"s:9SwiftHPKE9PublicKeyV3pemACSS_tKcfc","title":"init(pem:)","modules":[{"name":"SwiftHPKE"}],"symbolKind":"init","roleHeading":"Initializer","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"text":"pem","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"role":"symbol"},"kind":"symbol","abstract":[{"type":"text","text":"Creates a PublicKey from its PEM encoding"}],"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey\/init(pem:)"]}],"primaryContentSections":[{"declarations":[{"tokens":[{"text":"init","kind":"keyword"},{"kind":"text","text":"("},{"text":"pem","kind":"externalParam"},{"kind":"text","text":": "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"},{"parameters":[{"name":"pem","content":[{"inlineContent":[{"text":"The PEM encoding of the key","type":"text"}],"type":"paragraph"}]}],"kind":"parameters"},{"kind":"content","content":[{"level":2,"anchor":"discussion","type":"heading","text":"Discussion"},{"name":"Throws","style":"note","type":"aside","content":[{"inlineContent":[{"text":"An exception if the PEM encoding is wrong","type":"text"}],"type":"paragraph"}]}]}],"seeAlsoSections":[{"generated":true,"title":"Constructors","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(pem:)":{"role":"symbol","type":"topic","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)","url":"\/documentation\/swifthpke\/publickey\/init(pem:)","title":"init(pem:)","abstract":[{"type":"text","text":"Creates a PublicKey from its PEM encoding"}],"fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"pem","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(der:)":{"role":"symbol","type":"topic","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)","url":"\/documentation\/swifthpke\/publickey\/init(der:)","title":"init(der:)","abstract":[{"type":"text","text":"Creates a PublicKey from its DER encoding"}],"fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"der","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(kem:bytes:)":{"role":"symbol","type":"topic","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)","url":"\/documentation\/swifthpke\/publickey\/init(kem:bytes:)","title":"init(kem:bytes:)","abstract":[{"type":"text","text":"Creates a PublicKey from its type and key bytes."}],"fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"text":"kem","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"bytes","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}]}}} \ No newline at end of file +{"kind":"symbol","metadata":{"externalID":"s:9SwiftHPKE9PublicKeyV3pemACSS_tKcfc","title":"init(pem:)","role":"symbol","symbolKind":"init","roleHeading":"Initializer","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"pem"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"modules":[{"name":"SwiftHPKE"}]},"abstract":[{"type":"text","text":"Creates a PublicKey from its PEM encoding"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"schemaVersion":{"minor":3,"patch":0,"major":0},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)","interfaceLanguage":"swift"},"seeAlsoSections":[{"generated":true,"title":"Constructors","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)"]}],"sections":[],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"init"},{"text":"(","kind":"text"},{"text":"pem","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}]}]},{"kind":"parameters","parameters":[{"content":[{"inlineContent":[{"type":"text","text":"The PEM encoding of the key"}],"type":"paragraph"}],"name":"pem"}]},{"content":[{"level":2,"text":"Discussion","type":"heading","anchor":"discussion"},{"type":"aside","name":"Throws","style":"note","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if the PEM encoding is wrong"}]}]}],"kind":"content"}],"variants":[{"paths":["\/documentation\/swifthpke\/publickey\/init(pem:)"],"traits":[{"interfaceLanguage":"swift"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(pem:)":{"abstract":[{"type":"text","text":"Creates a PublicKey from its PEM encoding"}],"url":"\/documentation\/swifthpke\/publickey\/init(pem:)","title":"init(pem:)","type":"topic","role":"symbol","kind":"symbol","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"pem","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(kem:bytes:)":{"abstract":[{"text":"Creates a PublicKey from its type and key bytes.","type":"text"}],"url":"\/documentation\/swifthpke\/publickey\/init(kem:bytes:)","title":"init(kem:bytes:)","type":"topic","role":"symbol","kind":"symbol","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"kem"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"KEM","preciseIdentifier":"s:9SwiftHPKE3KEMO"},{"kind":"text","text":", "},{"kind":"externalParam","text":"bytes"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(der:)":{"abstract":[{"type":"text","text":"Creates a PublicKey from its DER encoding"}],"url":"\/documentation\/swifthpke\/publickey\/init(der:)","title":"init(der:)","type":"topic","role":"symbol","kind":"symbol","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"der"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/pem.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/pem.json index ccc73d0..8a172fa 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/pem.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/publickey/pem.json @@ -1 +1 @@ -{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"pem"},{"kind":"text","text":": "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":" { ","kind":"text"},{"kind":"keyword","text":"get"},{"kind":"text","text":" }"}]}]}],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description"],"generated":true,"title":"Properties"}],"schemaVersion":{"major":0,"patch":0,"minor":3},"abstract":[{"type":"text","text":"The PEM base 64 encoding of "},{"code":"self","type":"codeVoice"}],"sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey\/pem"]}],"kind":"symbol","metadata":{"externalID":"s:9SwiftHPKE9PublicKeyV3pemSSvp","role":"symbol","title":"pem","symbolKind":"property","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"roleHeading":"Instance Property","modules":[{"name":"SwiftHPKE"}]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","interfaceLanguage":"swift"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/pem":{"abstract":[{"type":"text","text":"The PEM base 64 encoding of "},{"code":"self","type":"codeVoice"}],"role":"symbol","kind":"symbol","title":"pem","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"pem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","type":"topic","url":"\/documentation\/swifthpke\/publickey\/pem"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/asn1":{"abstract":[{"type":"text","text":"The ASN1 encoding of "},{"type":"codeVoice","code":"self"}],"role":"symbol","title":"asn1","kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"asn1","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:4ASN1AAC","kind":"typeIdentifier","text":"ASN1"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","url":"\/documentation\/swifthpke\/publickey\/asn1"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/bytes":{"abstract":[{"text":"The serialized key bytes","type":"text"}],"title":"bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"role":"symbol","url":"\/documentation\/swifthpke\/publickey\/bytes","kind":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/description":{"abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"role":"symbol","kind":"symbol","title":"description","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description","type":"topic","url":"\/documentation\/swifthpke\/publickey\/description"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/der":{"abstract":[{"type":"text","text":"The DER encoding of "},{"type":"codeVoice","code":"self"}],"role":"symbol","title":"der","kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","url":"\/documentation\/swifthpke\/publickey\/der"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]}}} \ No newline at end of file +{"seeAlsoSections":[{"title":"Properties","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description"]}],"kind":"symbol","identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem"},"sections":[],"variants":[{"paths":["\/documentation\/swifthpke\/publickey\/pem"],"traits":[{"interfaceLanguage":"swift"}]}],"metadata":{"role":"symbol","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Instance Property","symbolKind":"property","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"pem"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"externalID":"s:9SwiftHPKE9PublicKeyV3pemSSvp","title":"pem"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"schemaVersion":{"major":0,"minor":3,"patch":0},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"pem","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"kind":"text","text":" { "},{"kind":"keyword","text":"get"},{"text":" }","kind":"text"}],"languages":["swift"],"platforms":["macOS"]}]}],"abstract":[{"text":"The PEM base 64 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/asn1":{"abstract":[{"type":"text","text":"The ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"url":"\/documentation\/swifthpke\/publickey\/asn1","title":"asn1","type":"topic","role":"symbol","kind":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"asn1"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"ASN1","preciseIdentifier":"s:4ASN1AAC"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/bytes":{"abstract":[{"text":"The serialized key bytes","type":"text"}],"url":"\/documentation\/swifthpke\/publickey\/bytes","title":"bytes","type":"topic","role":"symbol","kind":"symbol","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"bytes"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/der":{"abstract":[{"type":"text","text":"The DER encoding of "},{"code":"self","type":"codeVoice"}],"url":"\/documentation\/swifthpke\/publickey\/der","title":"der","type":"topic","role":"symbol","kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/description":{"abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"url":"\/documentation\/swifthpke\/publickey\/description","title":"description","type":"topic","role":"symbol","kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/pem":{"abstract":[{"text":"The PEM base 64 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"url":"\/documentation\/swifthpke\/publickey\/pem","title":"pem","type":"topic","role":"symbol","kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/recipient.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/recipient.json index db85d25..9dda56a 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/recipient.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/recipient.json @@ -1 +1 @@ -{"kind":"symbol","identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"},"metadata":{"roleHeading":"Class","role":"symbol","externalID":"s:9SwiftHPKE9RecipientC","fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"text":"Recipient","kind":"identifier"}],"modules":[{"name":"SwiftHPKE"}],"title":"Recipient","navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"symbolKind":"class"},"sections":[],"topicSections":[{"title":"Constructors","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)"]},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/open(ct:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/receiveExport(context:L:)"],"title":"Methods"}],"variants":[{"paths":["\/documentation\/swifthpke\/recipient"],"traits":[{"interfaceLanguage":"swift"}]}],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"text":"Recipient","kind":"identifier"}],"languages":["swift"]}]},{"content":[{"text":"Overview","type":"heading","level":2,"anchor":"Overview"},{"inlineContent":[{"type":"text","text":"Based on its "},{"type":"reference","isActive":true,"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"},{"type":"text","text":", a "},{"code":"Recipient","type":"codeVoice"},{"type":"text","text":" instance can decrypt a sequence of messages in one of four modes:"}],"type":"paragraph"},{"items":[{"content":[{"type":"paragraph","inlineContent":[{"text":"Base mode","type":"text"}]}]},{"content":[{"inlineContent":[{"type":"text","text":"Preshared key mode"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Authenticated mode"}]}]},{"content":[{"inlineContent":[{"type":"text","text":"Authenticated, preshared key mode"}],"type":"paragraph"}]}],"type":"unorderedList"},{"name":"Important","type":"aside","style":"important","content":[{"inlineContent":[{"type":"text","text":""},{"type":"text","text":" "},{"type":"text","text":"The decryption of the messages must be done in the order in which they were encrypted."}],"type":"paragraph"}]},{"type":"paragraph","inlineContent":[{"type":"text","text":"A "},{"type":"codeVoice","code":"Recipient"},{"type":"text","text":" instance can also retrieve a generated export secret."}]}],"kind":"content"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"schemaVersion":{"major":0,"minor":3,"patch":0},"abstract":[{"type":"text","text":"The recipient"}],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"],"title":"Classes","generated":true}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:encap:)":{"abstract":[{"type":"text","text":"Creates a Recipient instance in base mode"}],"role":"symbol","type":"topic","title":"init(suite:privateKey:info:encap:)","kind":"symbol","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:psk:pskId:encap:)":{"url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:psk:pskid:encap:)","kind":"symbol","title":"init(suite:privateKey:info:authentication:psk:pskId:encap:)","role":"symbol","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"abstract":[{"text":"Creates a Recipient instance in authenticated, preshared key mode","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/receiveExport(context:L:)":{"role":"symbol","abstract":[{"type":"text","text":"Retrieve an export secret"}],"kind":"symbol","type":"topic","title":"receiveExport(context:L:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"url":"\/documentation\/swifthpke\/recipient\/receiveexport(context:l:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/receiveExport(context:L:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/open(ct:aad:)":{"fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/open(ct:aad:)","type":"topic","url":"\/documentation\/swifthpke\/recipient\/open(ct:aad:)","title":"open(ct:aad:)","abstract":[{"text":"Decrypts a message","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"kind":"keyword","text":"class"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Sender"}],"navigatorTitle":[{"text":"Sender","kind":"identifier"}],"title":"Sender","abstract":[{"type":"text","text":"The sender"}],"type":"topic","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","url":"\/documentation\/swifthpke\/sender"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:encap:)":{"abstract":[{"type":"text","text":"Creates a Recipient instance in authenticated mode"}],"role":"symbol","type":"topic","title":"init(suite:privateKey:info:authentication:encap:)","kind":"symbol","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"abstract":[{"type":"text","text":"The recipient"}],"navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"role":"symbol","type":"topic","title":"Recipient","kind":"symbol","url":"\/documentation\/swifthpke\/recipient","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","fragments":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Recipient"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:psk:pskId:encap:)":{"abstract":[{"text":"Creates a Recipient instance in preshared key mode","type":"text"}],"role":"symbol","type":"topic","title":"init(suite:privateKey:info:psk:pskId:encap:)","kind":"symbol","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:psk:pskid:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}]}}} \ No newline at end of file +{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"topicSections":[{"title":"Constructors","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)"]},{"title":"Methods","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/open(ct:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/receiveExport(context:L:)"]}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"Recipient"}]}],"kind":"declarations"},{"kind":"content","content":[{"level":2,"anchor":"Overview","text":"Overview","type":"heading"},{"inlineContent":[{"type":"text","text":"Based on its "},{"type":"reference","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","isActive":true},{"type":"text","text":", a "},{"code":"Recipient","type":"codeVoice"},{"text":" instance can decrypt a sequence of messages in one of four modes:","type":"text"}],"type":"paragraph"},{"type":"unorderedList","items":[{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Base mode"}]}]},{"content":[{"inlineContent":[{"text":"Preshared key mode","type":"text"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"Authenticated mode","type":"text"}]}]},{"content":[{"inlineContent":[{"type":"text","text":"Authenticated, preshared key mode"}],"type":"paragraph"}]}]},{"style":"important","content":[{"inlineContent":[{"type":"text","text":""},{"type":"text","text":" "},{"type":"text","text":"The decryption of the messages must be done in the order in which they were encrypted."}],"type":"paragraph"}],"type":"aside","name":"Important"},{"type":"paragraph","inlineContent":[{"text":"A ","type":"text"},{"type":"codeVoice","code":"Recipient"},{"type":"text","text":" instance can also retrieve a generated export secret."}]}]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/recipient"]}],"metadata":{"roleHeading":"Class","fragments":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Recipient"}],"role":"symbol","modules":[{"name":"SwiftHPKE"}],"navigatorTitle":[{"kind":"identifier","text":"Recipient"}],"externalID":"s:9SwiftHPKE9RecipientC","title":"Recipient","symbolKind":"class"},"schemaVersion":{"minor":3,"patch":0,"major":0},"abstract":[{"type":"text","text":"The recipient"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"},"kind":"symbol","sections":[],"seeAlsoSections":[{"title":"Classes","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"],"generated":true}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:psk:pskId:encap:)":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)","abstract":[{"text":"Creates a Recipient instance in authenticated, preshared key mode","type":"text"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:psk:pskid:encap:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"title":"init(suite:privateKey:info:authentication:psk:pskId:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","abstract":[{"type":"text","text":"The recipient"}],"navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/recipient","fragments":[{"kind":"keyword","text":"class"},{"text":" ","kind":"text"},{"text":"Recipient","kind":"identifier"}],"title":"Recipient"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:psk:pskId:encap:)":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in preshared key mode"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:psk:pskid:encap:)","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"title":"init(suite:privateKey:info:psk:pskId:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:encap:)":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in base mode"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:encap:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"title":"init(suite:privateKey:info:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:encap:)":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in authenticated mode"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:encap:)","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"title":"init(suite:privateKey:info:authentication:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/receiveExport(context:L:)":{"abstract":[{"text":"Retrieve an export secret","type":"text"}],"url":"\/documentation\/swifthpke\/recipient\/receiveexport(context:l:)","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"type":"topic","title":"receiveExport(context:L:)","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/receiveExport(context:L:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/open(ct:aad:)":{"role":"symbol","title":"open(ct:aad:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"url":"\/documentation\/swifthpke\/recipient\/open(ct:aad:)","abstract":[{"type":"text","text":"Decrypts a message"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/open(ct:aad:)","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"text":"Sender","kind":"identifier"}],"title":"Sender","url":"\/documentation\/swifthpke\/sender","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","role":"symbol","type":"topic","abstract":[{"text":"The sender","type":"text"}],"kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"Sender"}]}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:encap:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:encap:).json index cd992db..144b88e 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:encap:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:encap:).json @@ -1 +1 @@ -{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"]]},"abstract":[{"text":"Creates a Recipient instance in authenticated mode","type":"text"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","interfaceLanguage":"swift"},"sections":[],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)"],"title":"Constructors","generated":true}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:encap:)"]}],"metadata":{"title":"init(suite:privateKey:info:authentication:encap:)","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE9RecipientC5suite10privateKey4info14authentication5encapAcA11CipherSuiteV_AA07PrivateF0VSays5UInt8VGAA06PublicF0VAOtKcfc","symbolKind":"init","role":"symbol","roleHeading":"Initializer","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"kind":"keyword","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]}]},{"kind":"parameters","parameters":[{"name":"suite","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The CipherSuite of the Recipient"}]}]},{"name":"privateKey","content":[{"inlineContent":[{"type":"text","text":"The recipient private key"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"text":"The additional information","type":"text"}],"type":"paragraph"}],"name":"info"},{"content":[{"inlineContent":[{"type":"text","text":"The sender public key"}],"type":"paragraph"}],"name":"authentication"},{"name":"encap","content":[{"type":"paragraph","inlineContent":[{"text":"The encapsulated key","type":"text"}]}]}]},{"kind":"content","content":[{"text":"Discussion","level":2,"anchor":"discussion","type":"heading"},{"style":"note","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if one of the keys does not match ","type":"text"},{"code":"suite","type":"codeVoice"}]}],"name":"Throws","type":"aside"}]}],"kind":"symbol","schemaVersion":{"minor":3,"patch":0,"major":0},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"abstract":[{"type":"text","text":"The recipient"}],"navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"role":"symbol","type":"topic","title":"Recipient","kind":"symbol","url":"\/documentation\/swifthpke\/recipient","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","fragments":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Recipient"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:encap:)":{"abstract":[{"type":"text","text":"Creates a Recipient instance in base mode"}],"role":"symbol","type":"topic","title":"init(suite:privateKey:info:encap:)","kind":"symbol","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:psk:pskId:encap:)":{"abstract":[{"text":"Creates a Recipient instance in preshared key mode","type":"text"}],"role":"symbol","type":"topic","title":"init(suite:privateKey:info:psk:pskId:encap:)","kind":"symbol","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:psk:pskid:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:encap:)":{"abstract":[{"type":"text","text":"Creates a Recipient instance in authenticated mode"}],"role":"symbol","type":"topic","title":"init(suite:privateKey:info:authentication:encap:)","kind":"symbol","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:psk:pskId:encap:)":{"url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:psk:pskid:encap:)","kind":"symbol","title":"init(suite:privateKey:info:authentication:psk:pskId:encap:)","role":"symbol","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"abstract":[{"text":"Creates a Recipient instance in authenticated, preshared key mode","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"}}} \ No newline at end of file +{"schemaVersion":{"minor":3,"major":0,"patch":0},"primaryContentSections":[{"declarations":[{"tokens":[{"text":"init","kind":"keyword"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","text":"CipherSuite"},{"kind":"text","text":", "},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"content":[{"inlineContent":[{"text":"The CipherSuite of the Recipient","type":"text"}],"type":"paragraph"}],"name":"suite"},{"content":[{"type":"paragraph","inlineContent":[{"text":"The recipient private key","type":"text"}]}],"name":"privateKey"},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}]},{"content":[{"inlineContent":[{"text":"The sender public key","type":"text"}],"type":"paragraph"}],"name":"authentication"},{"name":"encap","content":[{"type":"paragraph","inlineContent":[{"text":"The encapsulated key","type":"text"}]}]}]},{"kind":"content","content":[{"text":"Discussion","type":"heading","level":2,"anchor":"discussion"},{"type":"aside","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if one of the keys does not match ","type":"text"},{"type":"codeVoice","code":"suite"}]}],"name":"Throws","style":"note"}]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)"},"abstract":[{"type":"text","text":"Creates a Recipient instance in authenticated mode"}],"metadata":{"roleHeading":"Initializer","externalID":"s:9SwiftHPKE9RecipientC5suite10privateKey4info14authentication5encapAcA11CipherSuiteV_AA07PrivateF0VSays5UInt8VGAA06PublicF0VAOtKcfc","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier","text":"CipherSuite"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"role":"symbol","symbolKind":"init","title":"init(suite:privateKey:info:authentication:encap:)","modules":[{"name":"SwiftHPKE"}]},"sections":[],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"]]},"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)"],"title":"Constructors"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:encap:)"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","abstract":[{"type":"text","text":"The recipient"}],"navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/recipient","fragments":[{"kind":"keyword","text":"class"},{"text":" ","kind":"text"},{"text":"Recipient","kind":"identifier"}],"title":"Recipient"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:psk:pskId:encap:)":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in preshared key mode"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:psk:pskid:encap:)","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"title":"init(suite:privateKey:info:psk:pskId:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:encap:)":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in base mode"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:encap:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"title":"init(suite:privateKey:info:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:psk:pskId:encap:)":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)","abstract":[{"text":"Creates a Recipient instance in authenticated, preshared key mode","type":"text"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:psk:pskid:encap:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"title":"init(suite:privateKey:info:authentication:psk:pskId:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:encap:)":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in authenticated mode"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:encap:)","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"title":"init(suite:privateKey:info:authentication:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:psk:pskid:encap:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:psk:pskid:encap:).json index 5e825b7..bda5906 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:psk:pskid:encap:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:psk:pskid:encap:).json @@ -1 +1 @@ -{"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"init","kind":"keyword"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}]}]},{"kind":"parameters","parameters":[{"content":[{"inlineContent":[{"text":"The CipherSuite of the Recipient","type":"text"}],"type":"paragraph"}],"name":"suite"},{"name":"privateKey","content":[{"inlineContent":[{"text":"The recipient private key","type":"text"}],"type":"paragraph"}]},{"name":"info","content":[{"inlineContent":[{"type":"text","text":"The additional information"}],"type":"paragraph"}]},{"name":"authentication","content":[{"type":"paragraph","inlineContent":[{"text":"The sender public key","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"The preshared key","type":"text"}]}],"name":"psk"},{"content":[{"inlineContent":[{"type":"text","text":"The preshared key id"}],"type":"paragraph"}],"name":"pskId"},{"name":"encap","content":[{"inlineContent":[{"type":"text","text":"The encapsulated key"}],"type":"paragraph"}]}]},{"content":[{"anchor":"discussion","text":"Discussion","level":2,"type":"heading"},{"style":"note","name":"Throws","type":"aside","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if one of the keys does not match ","type":"text"},{"type":"codeVoice","code":"suite"}]}]}],"kind":"content"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)","interfaceLanguage":"swift"},"kind":"symbol","sections":[],"seeAlsoSections":[{"title":"Constructors","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)"]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"]]},"metadata":{"modules":[{"name":"SwiftHPKE"}],"role":"symbol","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier","text":"CipherSuite"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"title":"init(suite:privateKey:info:authentication:psk:pskId:encap:)","roleHeading":"Initializer","externalID":"s:9SwiftHPKE9RecipientC5suite10privateKey4info14authentication3psk0I2Id5encapAcA11CipherSuiteV_AA07PrivateF0VSays5UInt8VGAA06PublicF0VA3QtKcfc","symbolKind":"init"},"abstract":[{"text":"Creates a Recipient instance in authenticated, preshared key mode","type":"text"}],"variants":[{"paths":["\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:psk:pskid:encap:)"],"traits":[{"interfaceLanguage":"swift"}]}],"schemaVersion":{"patch":0,"major":0,"minor":3},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:psk:pskId:encap:)":{"abstract":[{"text":"Creates a Recipient instance in preshared key mode","type":"text"}],"role":"symbol","type":"topic","title":"init(suite:privateKey:info:psk:pskId:encap:)","kind":"symbol","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:psk:pskid:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:encap:)":{"abstract":[{"type":"text","text":"Creates a Recipient instance in base mode"}],"role":"symbol","type":"topic","title":"init(suite:privateKey:info:encap:)","kind":"symbol","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"abstract":[{"type":"text","text":"The recipient"}],"navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"role":"symbol","type":"topic","title":"Recipient","kind":"symbol","url":"\/documentation\/swifthpke\/recipient","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","fragments":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Recipient"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:encap:)":{"abstract":[{"type":"text","text":"Creates a Recipient instance in authenticated mode"}],"role":"symbol","type":"topic","title":"init(suite:privateKey:info:authentication:encap:)","kind":"symbol","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:psk:pskId:encap:)":{"url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:psk:pskid:encap:)","kind":"symbol","title":"init(suite:privateKey:info:authentication:psk:pskId:encap:)","role":"symbol","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"abstract":[{"text":"Creates a Recipient instance in authenticated, preshared key mode","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"}}} \ No newline at end of file +{"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"]]},"abstract":[{"type":"text","text":"Creates a Recipient instance in authenticated, preshared key mode"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:psk:pskid:encap:)"]}],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"init","kind":"keyword"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"text":"CipherSuite","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"languages":["swift"],"platforms":["macOS"]}]},{"kind":"parameters","parameters":[{"name":"suite","content":[{"inlineContent":[{"type":"text","text":"The CipherSuite of the Recipient"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"type":"text","text":"The recipient private key"}],"type":"paragraph"}],"name":"privateKey"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}],"name":"info"},{"content":[{"type":"paragraph","inlineContent":[{"text":"The sender public key","type":"text"}]}],"name":"authentication"},{"name":"psk","content":[{"type":"paragraph","inlineContent":[{"text":"The preshared key","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"The preshared key id","type":"text"}]}],"name":"pskId"},{"content":[{"inlineContent":[{"text":"The encapsulated key","type":"text"}],"type":"paragraph"}],"name":"encap"}]},{"kind":"content","content":[{"text":"Discussion","type":"heading","anchor":"discussion","level":2},{"style":"note","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if one of the keys does not match ","type":"text"},{"type":"codeVoice","code":"suite"}]}],"type":"aside","name":"Throws"}]}],"sections":[],"schemaVersion":{"major":0,"patch":0,"minor":3},"seeAlsoSections":[{"title":"Constructors","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)"]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)"},"metadata":{"roleHeading":"Initializer","title":"init(suite:privateKey:info:authentication:psk:pskId:encap:)","modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"symbolKind":"init","externalID":"s:9SwiftHPKE9RecipientC5suite10privateKey4info14authentication3psk0I2Id5encapAcA11CipherSuiteV_AA07PrivateF0VSays5UInt8VGAA06PublicF0VA3QtKcfc","role":"symbol"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","abstract":[{"type":"text","text":"The recipient"}],"navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/recipient","fragments":[{"kind":"keyword","text":"class"},{"text":" ","kind":"text"},{"text":"Recipient","kind":"identifier"}],"title":"Recipient"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:psk:pskId:encap:)":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)","abstract":[{"text":"Creates a Recipient instance in authenticated, preshared key mode","type":"text"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:psk:pskid:encap:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"title":"init(suite:privateKey:info:authentication:psk:pskId:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:psk:pskId:encap:)":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in preshared key mode"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:psk:pskid:encap:)","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"title":"init(suite:privateKey:info:psk:pskId:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:encap:)":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in base mode"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:encap:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"title":"init(suite:privateKey:info:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:encap:)":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in authenticated mode"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:encap:)","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"title":"init(suite:privateKey:info:authentication:encap:)"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/recipient/init(suite:privatekey:info:encap:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/recipient/init(suite:privatekey:info:encap:).json index 20ce4ba..7dd50d2 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/recipient/init(suite:privatekey:info:encap:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/recipient/init(suite:privatekey:info:encap:).json @@ -1 +1 @@ -{"seeAlsoSections":[{"title":"Constructors","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)"]}],"abstract":[{"text":"Creates a Recipient instance in base mode","type":"text"}],"kind":"symbol","schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"]]},"primaryContentSections":[{"declarations":[{"tokens":[{"kind":"keyword","text":"init"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"},{"parameters":[{"name":"suite","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The CipherSuite of the Recipient"}]}]},{"name":"privateKey","content":[{"type":"paragraph","inlineContent":[{"text":"The recipient private key","type":"text"}]}]},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"text":"The additional information","type":"text"}]}]},{"name":"encap","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The encapsulated key"}]}]}],"kind":"parameters"},{"content":[{"level":2,"type":"heading","anchor":"discussion","text":"Discussion"},{"type":"aside","name":"Throws","style":"note","content":[{"inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"code":"suite","type":"codeVoice"}],"type":"paragraph"}]}],"kind":"content"}],"metadata":{"externalID":"s:9SwiftHPKE9RecipientC5suite10privateKey4info5encapAcA11CipherSuiteV_AA07PrivateF0VSays5UInt8VGANtKcfc","symbolKind":"init","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Initializer","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"title":"init(suite:privateKey:info:encap:)","role":"symbol"},"variants":[{"paths":["\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:encap:)"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:psk:pskId:encap:)":{"url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:psk:pskid:encap:)","kind":"symbol","title":"init(suite:privateKey:info:authentication:psk:pskId:encap:)","role":"symbol","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"abstract":[{"text":"Creates a Recipient instance in authenticated, preshared key mode","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"abstract":[{"type":"text","text":"The recipient"}],"navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"role":"symbol","type":"topic","title":"Recipient","kind":"symbol","url":"\/documentation\/swifthpke\/recipient","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","fragments":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Recipient"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:psk:pskId:encap:)":{"abstract":[{"text":"Creates a Recipient instance in preshared key mode","type":"text"}],"role":"symbol","type":"topic","title":"init(suite:privateKey:info:psk:pskId:encap:)","kind":"symbol","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:psk:pskid:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:encap:)":{"abstract":[{"type":"text","text":"Creates a Recipient instance in authenticated mode"}],"role":"symbol","type":"topic","title":"init(suite:privateKey:info:authentication:encap:)","kind":"symbol","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:encap:)":{"abstract":[{"type":"text","text":"Creates a Recipient instance in base mode"}],"role":"symbol","type":"topic","title":"init(suite:privateKey:info:encap:)","kind":"symbol","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]}}} \ No newline at end of file +{"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"]]},"abstract":[{"text":"Creates a Recipient instance in base mode","type":"text"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:encap:)"]}],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"init","kind":"keyword"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"text":"PrivateKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"platforms":["macOS"],"languages":["swift"]}]},{"kind":"parameters","parameters":[{"content":[{"inlineContent":[{"type":"text","text":"The CipherSuite of the Recipient"}],"type":"paragraph"}],"name":"suite"},{"name":"privateKey","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient private key"}]}]},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"text":"The additional information","type":"text"}]}]},{"name":"encap","content":[{"inlineContent":[{"type":"text","text":"The encapsulated key"}],"type":"paragraph"}]}]},{"kind":"content","content":[{"type":"heading","text":"Discussion","level":2,"anchor":"discussion"},{"type":"aside","name":"Throws","style":"note","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if one of the keys does not match ","type":"text"},{"type":"codeVoice","code":"suite"}]}]}]}],"sections":[],"schemaVersion":{"patch":0,"major":0,"minor":3},"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)"],"generated":true,"title":"Constructors"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)"},"metadata":{"roleHeading":"Initializer","title":"init(suite:privateKey:info:encap:)","modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"symbolKind":"init","externalID":"s:9SwiftHPKE9RecipientC5suite10privateKey4info5encapAcA11CipherSuiteV_AA07PrivateF0VSays5UInt8VGANtKcfc","role":"symbol"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:encap:)":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in authenticated mode"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:encap:)","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"title":"init(suite:privateKey:info:authentication:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","abstract":[{"type":"text","text":"The recipient"}],"navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/recipient","fragments":[{"kind":"keyword","text":"class"},{"text":" ","kind":"text"},{"text":"Recipient","kind":"identifier"}],"title":"Recipient"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:psk:pskId:encap:)":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)","abstract":[{"text":"Creates a Recipient instance in authenticated, preshared key mode","type":"text"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:psk:pskid:encap:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"title":"init(suite:privateKey:info:authentication:psk:pskId:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:encap:)":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in base mode"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:encap:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"title":"init(suite:privateKey:info:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:psk:pskId:encap:)":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in preshared key mode"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:psk:pskid:encap:)","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"title":"init(suite:privateKey:info:psk:pskId:encap:)"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/recipient/init(suite:privatekey:info:psk:pskid:encap:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/recipient/init(suite:privatekey:info:psk:pskid:encap:).json index 014c510..3d989a7 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/recipient/init(suite:privatekey:info:psk:pskid:encap:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/recipient/init(suite:privatekey:info:psk:pskid:encap:).json @@ -1 +1 @@ -{"seeAlsoSections":[{"title":"Constructors","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)"]}],"metadata":{"roleHeading":"Initializer","symbolKind":"init","role":"symbol","externalID":"s:9SwiftHPKE9RecipientC5suite10privateKey4info3psk0H2Id5encapAcA11CipherSuiteV_AA07PrivateF0VSays5UInt8VGA3PtKcfc","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"modules":[{"name":"SwiftHPKE"}],"title":"init(suite:privateKey:info:psk:pskId:encap:)"},"abstract":[{"text":"Creates a Recipient instance in preshared key mode","type":"text"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","interfaceLanguage":"swift"},"schemaVersion":{"patch":0,"minor":3,"major":0},"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"]]},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"text":"CipherSuite","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","text":"PrivateKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"languages":["swift"],"platforms":["macOS"]}]},{"parameters":[{"name":"suite","content":[{"inlineContent":[{"text":"The CipherSuite of the Recipient","type":"text"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"type":"text","text":"The recipient private key"}],"type":"paragraph"}],"name":"privateKey"},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}]},{"content":[{"inlineContent":[{"type":"text","text":"The preshared key"}],"type":"paragraph"}],"name":"psk"},{"name":"pskId","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key id"}]}]},{"name":"encap","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The encapsulated key"}]}]}],"kind":"parameters"},{"kind":"content","content":[{"type":"heading","anchor":"discussion","level":2,"text":"Discussion"},{"style":"note","name":"Throws","type":"aside","content":[{"inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"suite"}],"type":"paragraph"}]}]}],"sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:psk:pskid:encap:)"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"abstract":[{"type":"text","text":"The recipient"}],"navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"role":"symbol","type":"topic","title":"Recipient","kind":"symbol","url":"\/documentation\/swifthpke\/recipient","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","fragments":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Recipient"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:encap:)":{"abstract":[{"type":"text","text":"Creates a Recipient instance in base mode"}],"role":"symbol","type":"topic","title":"init(suite:privateKey:info:encap:)","kind":"symbol","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:encap:)":{"abstract":[{"type":"text","text":"Creates a Recipient instance in authenticated mode"}],"role":"symbol","type":"topic","title":"init(suite:privateKey:info:authentication:encap:)","kind":"symbol","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:psk:pskId:encap:)":{"abstract":[{"text":"Creates a Recipient instance in preshared key mode","type":"text"}],"role":"symbol","type":"topic","title":"init(suite:privateKey:info:psk:pskId:encap:)","kind":"symbol","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:psk:pskid:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:psk:pskId:encap:)":{"url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:psk:pskid:encap:)","kind":"symbol","title":"init(suite:privateKey:info:authentication:psk:pskId:encap:)","role":"symbol","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"abstract":[{"text":"Creates a Recipient instance in authenticated, preshared key mode","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"}}} \ No newline at end of file +{"sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:psk:pskid:encap:)"]}],"schemaVersion":{"patch":0,"minor":3,"major":0},"kind":"symbol","primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"init","kind":"keyword"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"},{"kind":"text","text":", "},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}]}]},{"kind":"parameters","parameters":[{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The CipherSuite of the Recipient"}]}],"name":"suite"},{"name":"privateKey","content":[{"inlineContent":[{"text":"The recipient private key","type":"text"}],"type":"paragraph"}]},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}]},{"name":"psk","content":[{"type":"paragraph","inlineContent":[{"text":"The preshared key","type":"text"}]}]},{"name":"pskId","content":[{"inlineContent":[{"type":"text","text":"The preshared key id"}],"type":"paragraph"}]},{"name":"encap","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The encapsulated key"}]}]}]},{"content":[{"text":"Discussion","type":"heading","level":2,"anchor":"discussion"},{"style":"note","content":[{"inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"suite"}],"type":"paragraph"}],"type":"aside","name":"Throws"}],"kind":"content"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"]]},"abstract":[{"type":"text","text":"Creates a Recipient instance in preshared key mode"}],"seeAlsoSections":[{"title":"Constructors","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)"],"generated":true}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)"},"metadata":{"symbolKind":"init","externalID":"s:9SwiftHPKE9RecipientC5suite10privateKey4info3psk0H2Id5encapAcA11CipherSuiteV_AA07PrivateF0VSays5UInt8VGA3PtKcfc","roleHeading":"Initializer","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier","text":"CipherSuite"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"modules":[{"name":"SwiftHPKE"}],"role":"symbol","title":"init(suite:privateKey:info:psk:pskId:encap:)"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:psk:pskId:encap:)":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)","abstract":[{"text":"Creates a Recipient instance in authenticated, preshared key mode","type":"text"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:psk:pskid:encap:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"title":"init(suite:privateKey:info:authentication:psk:pskId:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:psk:pskId:encap:)":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in preshared key mode"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:psk:pskid:encap:)","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"title":"init(suite:privateKey:info:psk:pskId:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:encap:)":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in authenticated mode"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:encap:)","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"title":"init(suite:privateKey:info:authentication:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:encap:)":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in base mode"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:encap:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"title":"init(suite:privateKey:info:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","abstract":[{"type":"text","text":"The recipient"}],"navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/recipient","fragments":[{"kind":"keyword","text":"class"},{"text":" ","kind":"text"},{"text":"Recipient","kind":"identifier"}],"title":"Recipient"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/recipient/open(ct:aad:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/recipient/open(ct:aad:).json index 4009a3e..4256142 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/recipient/open(ct:aad:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/recipient/open(ct:aad:).json @@ -1 +1 @@ -{"schemaVersion":{"major":0,"minor":3,"patch":0},"variants":[{"paths":["\/documentation\/swifthpke\/recipient\/open(ct:aad:)"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"]]},"abstract":[{"type":"text","text":"Decrypts a message"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}]}]},{"kind":"parameters","parameters":[{"name":"ct","content":[{"inlineContent":[{"text":"The cipher text to decrypt","type":"text"}],"type":"paragraph"}]},{"name":"aad","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The associated data"}]}]}]},{"kind":"content","content":[{"text":"Return Value","level":2,"type":"heading","anchor":"return-value"},{"inlineContent":[{"type":"text","text":"The plain text"}],"type":"paragraph"}]},{"content":[{"anchor":"discussion","text":"Discussion","type":"heading","level":2},{"type":"aside","name":"Throws","style":"note","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if decryption fails or "},{"type":"codeVoice","code":"self.suite.aead"},{"text":" is EXPORTONLY","type":"text"}]}]}],"kind":"content"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/open(ct:aad:)","interfaceLanguage":"swift"},"metadata":{"role":"symbol","modules":[{"name":"SwiftHPKE"}],"symbolKind":"method","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"text":"ct","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"title":"open(ct:aad:)","roleHeading":"Instance Method","externalID":"s:9SwiftHPKE9RecipientC4open2ct3aadSays5UInt8VGAI_AItKF"},"seeAlsoSections":[{"title":"Methods","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/receiveExport(context:L:)"],"generated":true}],"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"abstract":[{"type":"text","text":"The recipient"}],"navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"role":"symbol","type":"topic","title":"Recipient","kind":"symbol","url":"\/documentation\/swifthpke\/recipient","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","fragments":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Recipient"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/receiveExport(context:L:)":{"role":"symbol","abstract":[{"type":"text","text":"Retrieve an export secret"}],"kind":"symbol","type":"topic","title":"receiveExport(context:L:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"url":"\/documentation\/swifthpke\/recipient\/receiveexport(context:l:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/receiveExport(context:L:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/open(ct:aad:)":{"fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/open(ct:aad:)","type":"topic","url":"\/documentation\/swifthpke\/recipient\/open(ct:aad:)","title":"open(ct:aad:)","abstract":[{"text":"Decrypts a message","type":"text"}],"role":"symbol"}}} \ No newline at end of file +{"kind":"symbol","identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/open(ct:aad:)","interfaceLanguage":"swift"},"schemaVersion":{"minor":3,"patch":0,"major":0},"sections":[],"abstract":[{"type":"text","text":"Decrypts a message"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"}],"platforms":["macOS"],"languages":["swift"]}]},{"kind":"parameters","parameters":[{"content":[{"inlineContent":[{"type":"text","text":"The cipher text to decrypt"}],"type":"paragraph"}],"name":"ct"},{"content":[{"inlineContent":[{"text":"The associated data","type":"text"}],"type":"paragraph"}],"name":"aad"}]},{"kind":"content","content":[{"type":"heading","anchor":"return-value","text":"Return Value","level":2},{"inlineContent":[{"type":"text","text":"The plain text"}],"type":"paragraph"}]},{"kind":"content","content":[{"anchor":"discussion","type":"heading","level":2,"text":"Discussion"},{"type":"aside","content":[{"inlineContent":[{"type":"text","text":"An exception if decryption fails or "},{"code":"self.suite.aead","type":"codeVoice"},{"type":"text","text":" is EXPORTONLY"}],"type":"paragraph"}],"style":"note","name":"Throws"}]}],"metadata":{"externalID":"s:9SwiftHPKE9RecipientC4open2ct3aadSays5UInt8VGAI_AItKF","modules":[{"name":"SwiftHPKE"}],"title":"open(ct:aad:)","role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"ct"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"roleHeading":"Instance Method","symbolKind":"method"},"variants":[{"paths":["\/documentation\/swifthpke\/recipient\/open(ct:aad:)"],"traits":[{"interfaceLanguage":"swift"}]}],"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/receiveExport(context:L:)"],"title":"Methods"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","abstract":[{"type":"text","text":"The recipient"}],"navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/recipient","fragments":[{"kind":"keyword","text":"class"},{"text":" ","kind":"text"},{"text":"Recipient","kind":"identifier"}],"title":"Recipient"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/receiveExport(context:L:)":{"abstract":[{"text":"Retrieve an export secret","type":"text"}],"url":"\/documentation\/swifthpke\/recipient\/receiveexport(context:l:)","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"type":"topic","title":"receiveExport(context:L:)","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/receiveExport(context:L:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/open(ct:aad:)":{"role":"symbol","title":"open(ct:aad:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"url":"\/documentation\/swifthpke\/recipient\/open(ct:aad:)","abstract":[{"type":"text","text":"Decrypts a message"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/open(ct:aad:)","type":"topic","kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/recipient/receiveexport(context:l:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/recipient/receiveexport(context:l:).json index b01d2ad..fb197eb 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/recipient/receiveexport(context:l:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/recipient/receiveexport(context:l:).json @@ -1 +1 @@ -{"variants":[{"paths":["\/documentation\/swifthpke\/recipient\/receiveexport(context:l:)"],"traits":[{"interfaceLanguage":"swift"}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"]]},"abstract":[{"text":"Retrieve an export secret","type":"text"}],"schemaVersion":{"major":0,"patch":0,"minor":3},"kind":"symbol","sections":[],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/receiveExport(context:L:)"},"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/open(ct:aad:)"],"title":"Methods"}],"metadata":{"role":"symbol","symbolKind":"method","externalID":"s:9SwiftHPKE9RecipientC13receiveExport7context1LSays5UInt8VGAI_SitKF","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Instance Method","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"title":"receiveExport(context:L:)"},"primaryContentSections":[{"declarations":[{"languages":["swift"],"tokens":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"}],"platforms":["macOS"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The export context"}]}],"name":"context"},{"name":"L","content":[{"type":"paragraph","inlineContent":[{"text":"The length of the export secret","type":"text"}]}]}]},{"kind":"content","content":[{"text":"Return Value","level":2,"anchor":"return-value","type":"heading"},{"type":"paragraph","inlineContent":[{"text":"The export secret","type":"text"}]}]},{"kind":"content","content":[{"level":2,"anchor":"discussion","type":"heading","text":"Discussion"},{"type":"aside","style":"note","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if L is negative or too large"}]}],"name":"Throws"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/receiveExport(context:L:)":{"role":"symbol","abstract":[{"type":"text","text":"Retrieve an export secret"}],"kind":"symbol","type":"topic","title":"receiveExport(context:L:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"url":"\/documentation\/swifthpke\/recipient\/receiveexport(context:l:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/receiveExport(context:L:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"abstract":[{"type":"text","text":"The recipient"}],"navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"role":"symbol","type":"topic","title":"Recipient","kind":"symbol","url":"\/documentation\/swifthpke\/recipient","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","fragments":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Recipient"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/open(ct:aad:)":{"fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/open(ct:aad:)","type":"topic","url":"\/documentation\/swifthpke\/recipient\/open(ct:aad:)","title":"open(ct:aad:)","abstract":[{"text":"Decrypts a message","type":"text"}],"role":"symbol"}}} \ No newline at end of file +{"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/recipient\/receiveexport(context:l:)"]}],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"receiveExport"},{"text":"(","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}]}]},{"kind":"parameters","parameters":[{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The export context"}]}],"name":"context"},{"name":"L","content":[{"type":"paragraph","inlineContent":[{"text":"The length of the export secret","type":"text"}]}]}]},{"content":[{"anchor":"return-value","type":"heading","level":2,"text":"Return Value"},{"inlineContent":[{"type":"text","text":"The export secret"}],"type":"paragraph"}],"kind":"content"},{"content":[{"type":"heading","text":"Discussion","anchor":"discussion","level":2},{"style":"note","content":[{"inlineContent":[{"text":"An exception if L is negative or too large","type":"text"}],"type":"paragraph"}],"name":"Throws","type":"aside"}],"kind":"content"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/receiveExport(context:L:)"},"sections":[],"kind":"symbol","metadata":{"symbolKind":"method","roleHeading":"Instance Method","title":"receiveExport(context:L:)","role":"symbol","externalID":"s:9SwiftHPKE9RecipientC13receiveExport7context1LSays5UInt8VGAI_SitKF","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"modules":[{"name":"SwiftHPKE"}]},"abstract":[{"type":"text","text":"Retrieve an export secret"}],"schemaVersion":{"major":0,"minor":3,"patch":0},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"]]},"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/open(ct:aad:)"],"title":"Methods","generated":true}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/receiveExport(context:L:)":{"abstract":[{"text":"Retrieve an export secret","type":"text"}],"url":"\/documentation\/swifthpke\/recipient\/receiveexport(context:l:)","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"type":"topic","title":"receiveExport(context:L:)","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/receiveExport(context:L:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/open(ct:aad:)":{"role":"symbol","title":"open(ct:aad:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"url":"\/documentation\/swifthpke\/recipient\/open(ct:aad:)","abstract":[{"type":"text","text":"Decrypts a message"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/open(ct:aad:)","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","abstract":[{"type":"text","text":"The recipient"}],"navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/recipient","fragments":[{"kind":"keyword","text":"class"},{"text":" ","kind":"text"},{"text":"Recipient","kind":"identifier"}],"title":"Recipient"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/references.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/references.json index 2bcd3ee..e092cd6 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/references.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/references.json @@ -1 +1 @@ -{"primaryContentSections":[{"kind":"content","content":[{"level":2,"type":"heading","anchor":"","text":""},{"type":"unorderedList","items":[{"content":[{"type":"paragraph","inlineContent":[{"text":"[FIPS 180-4] - FIPS PUB 180-4 - Secure Hash Standard (SHS), August 2015","type":"text"}]}]},{"content":[{"inlineContent":[{"text":"[GUIDE] - Hankerson, Menezes, Vanstone: Guide to Elliptic Curve Cryptography. Springer 2004","type":"text"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"text":"[RFC 9180] - Hybrid Public Key Encryption, February 2022","type":"text"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"text":"[SEC 1] - Standards for Efficient Cryptography 1 (SEC 1), Certicom Corp. 2009","type":"text"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"[SEC 2] - Standards for Efficient Cryptography 2 (SEC 2), Certicom Corp. 2010","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"[WARREN] - Henry S. Warren, Jr.: Montgomery Multiplication, July 2012"}]}]}]}]}],"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"seeAlsoSections":[{"generated":true,"title":"Additional Information","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance"]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References","interfaceLanguage":"swift"},"schemaVersion":{"patch":0,"major":0,"minor":3},"abstract":[{"text":"Algorithms from the following books and papers have been used in the implementation","type":"text"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/references"]}],"metadata":{"roleHeading":"Article","role":"article","title":"References","modules":[{"name":"SwiftHPKE"}]},"kind":"article","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KeyManagement":{"role":"article","title":"Key Management","abstract":[{"type":"text","text":"Creating new keys and loading exsisting keys"}],"url":"\/documentation\/swifthpke\/keymanagement","kind":"article","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement"},"doc://SwiftHPKE/documentation/SwiftHPKE/SecretExport":{"kind":"article","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","role":"article","url":"\/documentation\/swifthpke\/secretexport","abstract":[{"type":"text","text":"Creating secret messages"}],"title":"Secret Export"},"doc://SwiftHPKE/documentation/SwiftHPKE/CryptoKit":{"kind":"article","abstract":[{"type":"text","text":"SwiftHPKE is compatible with Apple’s CryptoKit framework"}],"title":"CryptoKit Compatibility","url":"\/documentation\/swifthpke\/cryptokit","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","role":"article","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/Performance":{"url":"\/documentation\/swifthpke\/performance","title":"Performance","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","abstract":[{"type":"text","text":"Encryption and decryption speed"}],"role":"article","kind":"article","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"}}} \ No newline at end of file +{"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance"],"title":"Additional Information","generated":true}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References"},"primaryContentSections":[{"kind":"content","content":[{"anchor":"","text":"","type":"heading","level":2},{"type":"unorderedList","items":[{"content":[{"type":"paragraph","inlineContent":[{"text":"[FIPS 180-4] - FIPS PUB 180-4 - Secure Hash Standard (SHS), August 2015","type":"text"}]}]},{"content":[{"inlineContent":[{"type":"text","text":"[GUIDE] - Hankerson, Menezes, Vanstone: Guide to Elliptic Curve Cryptography. Springer 2004"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"type":"text","text":"[RFC 9180] - Hybrid Public Key Encryption, February 2022"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"type":"text","text":"[SEC 1] - Standards for Efficient Cryptography 1 (SEC 1), Certicom Corp. 2009"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"[SEC 2] - Standards for Efficient Cryptography 2 (SEC 2), Certicom Corp. 2010"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"[WARREN] - Henry S. Warren, Jr.: Montgomery Multiplication, July 2012"}]}]}]}]}],"kind":"article","sections":[],"abstract":[{"type":"text","text":"Algorithms from the following books and papers have been used in the implementation"}],"metadata":{"roleHeading":"Article","modules":[{"name":"SwiftHPKE"}],"title":"References","role":"article"},"schemaVersion":{"minor":3,"major":0,"patch":0},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/references"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Performance":{"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","title":"Performance","url":"\/documentation\/swifthpke\/performance","kind":"article","abstract":[{"type":"text","text":"Encryption and decryption speed"}],"role":"article"},"doc://SwiftHPKE/documentation/SwiftHPKE/KeyManagement":{"role":"article","title":"Key Management","url":"\/documentation\/swifthpke\/keymanagement","type":"topic","kind":"article","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","abstract":[{"text":"Creating new keys and loading exsisting keys","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/SecretExport":{"role":"article","title":"Secret Export","url":"\/documentation\/swifthpke\/secretexport","type":"topic","kind":"article","abstract":[{"text":"Creating secret messages","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport"},"doc://SwiftHPKE/documentation/SwiftHPKE/CryptoKit":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","kind":"article","role":"article","abstract":[{"text":"SwiftHPKE is compatible with Apple’s CryptoKit framework","type":"text"}],"url":"\/documentation\/swifthpke\/cryptokit","type":"topic","title":"CryptoKit Compatibility"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/secretexport.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/secretexport.json index 1619eee..b9efc20 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/secretexport.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/secretexport.json @@ -1 +1 @@ -{"kind":"article","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"schemaVersion":{"minor":3,"major":0,"patch":0},"metadata":{"roleHeading":"Article","role":"article","modules":[{"name":"SwiftHPKE"}],"title":"Secret Export"},"seeAlsoSections":[{"title":"Additional Information","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References"],"generated":true}],"sections":[],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport"},"primaryContentSections":[{"kind":"content","content":[{"type":"heading","anchor":"","level":2,"text":""},{"type":"paragraph","inlineContent":[{"type":"text","text":"Given the recipient’s public key, a sender can generate a secret that only the recipient can know."}]},{"text":"Example 1","type":"heading","anchor":"Example-1","level":3},{"code":["import SwiftHPKE","","\/\/ The aead need not be .EXPORTONLY, any aead will work","","let theSuite = CipherSuite(kem: .P256, kdf: .KDF256, aead: .EXPORTONLY)","let (recipientPubKey, recipientPrivKey) = try theSuite.makeKeyPair()","","\/\/ Generate the secret","","let (encapsulated, secret) = try theSuite.sendExport(publicKey: recipientPubKey, info: [], context: [1, 2, 3], L: 10)","print(\"Generated secret:\", secret)","","\/\/ The recipient retrieves the secret by means of the encapsulated key","","let retrievedSecret = try theSuite.receiveExport(privateKey: recipientPrivKey, info: [], context: [1, 2, 3], L: 10, encap: encapsulated)","print(\"Retrieved secret:\", retrievedSecret)"],"type":"codeListing","syntax":"swift"},{"inlineContent":[{"text":"giving (for example):","type":"text"}],"type":"paragraph"},{"type":"codeListing","syntax":"swift","code":["Generated secret: [172, 169, 119, 121, 167, 53, 213, 12, 0, 29]","Retrieved secret: [172, 169, 119, 121, 167, 53, 213, 12, 0, 29]"]},{"text":"Example 2","anchor":"Example-2","type":"heading","level":3},{"type":"codeListing","code":["import SwiftHPKE","","\/\/ The aead need not be .EXPORTONLY, any aead will work","","let theSuite = CipherSuite(kem: .P256, kdf: .KDF256, aead: .EXPORTONLY)","let (recipientPubKey, recipientPrivKey) = try theSuite.makeKeyPair()","let sender = try Sender(suite: theSuite, publicKey: recipientPubKey, info: [])","","\/\/ Generate the secret","","let secret = try sender.sendExport(context: [1, 2, 3], L: 10)","print(\"Generated secret:\", secret)","","\/\/ The recipient retrieves the secret by means of the encapsulated key","","let receiver = try Recipient(suite: theSuite, privateKey: recipientPrivKey, info: [], encap: sender.encapsulatedKey)","let retrievedSecret = try receiver.receiveExport(context: [1, 2, 3], L: 10)","print(\"Retrieved secret:\", retrievedSecret)"],"syntax":"swift"},{"type":"paragraph","inlineContent":[{"type":"text","text":"giving (for example):"}]},{"type":"codeListing","code":["Generated secret: [3, 230, 139, 128, 86, 4, 81, 78, 110, 135]","Retrieved secret: [3, 230, 139, 128, 86, 4, 81, 78, 110, 135]"],"syntax":"swift"},{"inlineContent":[{"type":"text","text":"The above examples use Base mode. Preshared key mode, Authenticated mode and Authenticated, preshared key mode"},{"type":"text","text":" "},{"text":"can also be used.","type":"text"}],"type":"paragraph"}]}],"abstract":[{"type":"text","text":"Creating secret messages"}],"variants":[{"paths":["\/documentation\/swifthpke\/secretexport"],"traits":[{"interfaceLanguage":"swift"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KeyManagement":{"role":"article","title":"Key Management","abstract":[{"type":"text","text":"Creating new keys and loading exsisting keys"}],"url":"\/documentation\/swifthpke\/keymanagement","kind":"article","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/CryptoKit":{"kind":"article","abstract":[{"type":"text","text":"SwiftHPKE is compatible with Apple’s CryptoKit framework"}],"title":"CryptoKit Compatibility","url":"\/documentation\/swifthpke\/cryptokit","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","role":"article","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/Performance":{"url":"\/documentation\/swifthpke\/performance","title":"Performance","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","abstract":[{"type":"text","text":"Encryption and decryption speed"}],"role":"article","kind":"article","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/References":{"role":"article","title":"References","abstract":[{"type":"text","text":"Algorithms from the following books and papers have been used in the implementation"}],"url":"\/documentation\/swifthpke\/references","kind":"article","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References"}}} \ No newline at end of file +{"schemaVersion":{"minor":3,"major":0,"patch":0},"primaryContentSections":[{"kind":"content","content":[{"text":"","type":"heading","level":2,"anchor":""},{"type":"paragraph","inlineContent":[{"text":"Given the recipient’s public key, a sender can generate a secret that only the recipient can know.","type":"text"}]},{"anchor":"Example-1","text":"Example 1","type":"heading","level":3},{"type":"codeListing","code":["import SwiftHPKE","","\/\/ The aead need not be .EXPORTONLY, any aead will work","","let theSuite = CipherSuite(kem: .P256, kdf: .KDF256, aead: .EXPORTONLY)","let (recipientPubKey, recipientPrivKey) = try theSuite.makeKeyPair()","","\/\/ Generate the secret","","let (encapsulated, secret) = try theSuite.sendExport(publicKey: recipientPubKey, info: [], context: [1, 2, 3], L: 10)","print(\"Generated secret:\", secret)","","\/\/ The recipient retrieves the secret by means of the encapsulated key","","let retrievedSecret = try theSuite.receiveExport(privateKey: recipientPrivKey, info: [], context: [1, 2, 3], L: 10, encap: encapsulated)","print(\"Retrieved secret:\", retrievedSecret)"],"syntax":"swift"},{"type":"paragraph","inlineContent":[{"type":"text","text":"giving (for example):"}]},{"syntax":"swift","type":"codeListing","code":["Generated secret: [172, 169, 119, 121, 167, 53, 213, 12, 0, 29]","Retrieved secret: [172, 169, 119, 121, 167, 53, 213, 12, 0, 29]"]},{"anchor":"Example-2","text":"Example 2","level":3,"type":"heading"},{"syntax":"swift","type":"codeListing","code":["import SwiftHPKE","","\/\/ The aead need not be .EXPORTONLY, any aead will work","","let theSuite = CipherSuite(kem: .P256, kdf: .KDF256, aead: .EXPORTONLY)","let (recipientPubKey, recipientPrivKey) = try theSuite.makeKeyPair()","let sender = try Sender(suite: theSuite, publicKey: recipientPubKey, info: [])","","\/\/ Generate the secret","","let secret = try sender.sendExport(context: [1, 2, 3], L: 10)","print(\"Generated secret:\", secret)","","\/\/ The recipient retrieves the secret by means of the encapsulated key","","let receiver = try Recipient(suite: theSuite, privateKey: recipientPrivKey, info: [], encap: sender.encapsulatedKey)","let retrievedSecret = try receiver.receiveExport(context: [1, 2, 3], L: 10)","print(\"Retrieved secret:\", retrievedSecret)"]},{"inlineContent":[{"text":"giving (for example):","type":"text"}],"type":"paragraph"},{"syntax":"swift","code":["Generated secret: [3, 230, 139, 128, 86, 4, 81, 78, 110, 135]","Retrieved secret: [3, 230, 139, 128, 86, 4, 81, 78, 110, 135]"],"type":"codeListing"},{"type":"paragraph","inlineContent":[{"type":"text","text":"The above examples use Base mode. Preshared key mode, Authenticated mode and Authenticated, preshared key mode"},{"type":"text","text":" "},{"text":"can also be used.","type":"text"}]}]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport"},"kind":"article","metadata":{"roleHeading":"Article","modules":[{"name":"SwiftHPKE"}],"title":"Secret Export","role":"article"},"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References"],"title":"Additional Information"}],"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"variants":[{"paths":["\/documentation\/swifthpke\/secretexport"],"traits":[{"interfaceLanguage":"swift"}]}],"abstract":[{"text":"Creating secret messages","type":"text"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Performance":{"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","title":"Performance","url":"\/documentation\/swifthpke\/performance","kind":"article","abstract":[{"type":"text","text":"Encryption and decryption speed"}],"role":"article"},"doc://SwiftHPKE/documentation/SwiftHPKE/References":{"role":"article","title":"References","url":"\/documentation\/swifthpke\/references","type":"topic","abstract":[{"text":"Algorithms from the following books and papers have been used in the implementation","type":"text"}],"kind":"article","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References"},"doc://SwiftHPKE/documentation/SwiftHPKE/CryptoKit":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","kind":"article","role":"article","abstract":[{"text":"SwiftHPKE is compatible with Apple’s CryptoKit framework","type":"text"}],"url":"\/documentation\/swifthpke\/cryptokit","type":"topic","title":"CryptoKit Compatibility"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KeyManagement":{"role":"article","title":"Key Management","url":"\/documentation\/swifthpke\/keymanagement","type":"topic","kind":"article","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","abstract":[{"text":"Creating new keys and loading exsisting keys","type":"text"}]}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender.json index c462c4c..9e8a129 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender.json @@ -1 +1 @@ -{"abstract":[{"text":"The sender","type":"text"}],"topicSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/encapsulatedKey"],"title":"Properties"},{"title":"Constructors","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)"]},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/seal(pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/sendExport(context:L:)"],"title":"Methods"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"text":"Sender","kind":"identifier"}],"platforms":["macOS"],"languages":["swift"]}]},{"content":[{"type":"heading","text":"Overview","anchor":"Overview","level":2},{"type":"paragraph","inlineContent":[{"text":"Based on its ","type":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","isActive":true,"type":"reference"},{"type":"text","text":", a "},{"type":"codeVoice","code":"Sender"},{"type":"text","text":" instance can encrypt a sequence of messages in one of four modes:"}]},{"type":"unorderedList","items":[{"content":[{"inlineContent":[{"type":"text","text":"Base mode"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"Preshared key mode","type":"text"}]}]},{"content":[{"inlineContent":[{"text":"Authenticated mode","type":"text"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"type":"text","text":"Authenticated, preshared key mode"}],"type":"paragraph"}]}]},{"type":"paragraph","inlineContent":[{"type":"text","text":"A "},{"type":"codeVoice","code":"Sender"},{"text":" instance can also generate an export secret that only the recipient can know.","type":"text"}]}],"kind":"content"}],"schemaVersion":{"minor":3,"patch":0,"major":0},"kind":"symbol","variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/sender"]}],"metadata":{"modules":[{"name":"SwiftHPKE"}],"navigatorTitle":[{"kind":"identifier","text":"Sender"}],"externalID":"s:9SwiftHPKE6SenderC","symbolKind":"class","title":"Sender","roleHeading":"Class","role":"symbol","fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"Sender"}]},"sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"seeAlsoSections":[{"title":"Classes","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"],"generated":true}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/sendExport(context:L:)":{"abstract":[{"text":"Generate an export secret","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/sendExport(context:L:)","kind":"symbol","url":"\/documentation\/swifthpke\/sender\/sendexport(context:l:)","title":"sendExport(context:L:)","role":"symbol","type":"topic","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"kind":"keyword","text":"class"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Sender"}],"navigatorTitle":[{"text":"Sender","kind":"identifier"}],"title":"Sender","abstract":[{"type":"text","text":"The sender"}],"type":"topic","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","url":"\/documentation\/swifthpke\/sender"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"abstract":[{"type":"text","text":"The recipient"}],"navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"role":"symbol","type":"topic","title":"Recipient","kind":"symbol","url":"\/documentation\/swifthpke\/recipient","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","fragments":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Recipient"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:)":{"fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","title":"init(suite:publicKey:info:authentication:)","kind":"symbol","role":"symbol","abstract":[{"text":"Creates a Sender instance in authenticated mode","type":"text"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:)","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/seal(pt:aad:)":{"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/seal(pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"pt"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"abstract":[{"text":"Encrypts a message","type":"text"}],"url":"\/documentation\/swifthpke\/sender\/seal(pt:aad:)","role":"symbol","title":"seal(pt:aad:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/encapsulatedKey":{"url":"\/documentation\/swifthpke\/sender\/encapsulatedkey","kind":"symbol","type":"topic","title":"encapsulatedKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/encapsulatedKey","abstract":[{"text":"The encapsulated key","type":"text"}],"fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"encapsulatedKey","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:psk:pskId:)":{"fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)","title":"init(suite:publicKey:info:authentication:psk:pskId:)","kind":"symbol","role":"symbol","abstract":[{"text":"Creates a Sender instance in authenticated, preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:psk:pskid:)","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:psk:pskId:)":{"fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","title":"init(suite:publicKey:info:psk:pskId:)","kind":"symbol","role":"symbol","abstract":[{"type":"text","text":"Creates a Sender instance in preshared key mode"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:psk:pskid:)","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:)":{"fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"kind":"text","text":", "},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","title":"init(suite:publicKey:info:)","kind":"symbol","role":"symbol","abstract":[{"text":"Creates a Sender instance in base mode","type":"text"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:)","type":"topic"}}} \ No newline at end of file +{"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","interfaceLanguage":"swift"},"variants":[{"paths":["\/documentation\/swifthpke\/sender"],"traits":[{"interfaceLanguage":"swift"}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"metadata":{"roleHeading":"Class","navigatorTitle":[{"text":"Sender","kind":"identifier"}],"externalID":"s:9SwiftHPKE6SenderC","symbolKind":"class","modules":[{"name":"SwiftHPKE"}],"title":"Sender","fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"text":"Sender","kind":"identifier"}],"role":"symbol"},"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"],"title":"Classes"}],"sections":[],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"abstract":[{"text":"The sender","type":"text"}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"Sender"}],"languages":["swift"]}],"kind":"declarations"},{"content":[{"text":"Overview","level":2,"anchor":"Overview","type":"heading"},{"inlineContent":[{"type":"text","text":"Based on its "},{"isActive":true,"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","type":"reference"},{"text":", a ","type":"text"},{"code":"Sender","type":"codeVoice"},{"text":" instance can encrypt a sequence of messages in one of four modes:","type":"text"}],"type":"paragraph"},{"type":"unorderedList","items":[{"content":[{"type":"paragraph","inlineContent":[{"text":"Base mode","type":"text"}]}]},{"content":[{"inlineContent":[{"type":"text","text":"Preshared key mode"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Authenticated mode"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Authenticated, preshared key mode"}]}]}]},{"inlineContent":[{"text":"A ","type":"text"},{"type":"codeVoice","code":"Sender"},{"text":" instance can also generate an export secret that only the recipient can know.","type":"text"}],"type":"paragraph"}],"kind":"content"}],"topicSections":[{"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/encapsulatedKey"]},{"title":"Constructors","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)"]},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/seal(pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/sendExport(context:L:)"],"title":"Methods"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/encapsulatedKey":{"role":"symbol","kind":"symbol","url":"\/documentation\/swifthpke\/sender\/encapsulatedkey","abstract":[{"text":"The encapsulated key","type":"text"}],"type":"topic","title":"encapsulatedKey","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"kind":"identifier","text":"encapsulatedKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/encapsulatedKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/sendExport(context:L:)":{"kind":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"text":"(","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/sender\/sendexport(context:l:)","abstract":[{"text":"Generate an export secret","type":"text"}],"type":"topic","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/sendExport(context:L:)","title":"sendExport(context:L:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:psk:pskId:)":{"title":"init(suite:publicKey:info:psk:pskId:)","abstract":[{"type":"text","text":"Creates a Sender instance in preshared key mode"}],"role":"symbol","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"text":", ","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","type":"topic","url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:psk:pskid:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:psk:pskId:)":{"abstract":[{"text":"Creates a Sender instance in authenticated, preshared key mode","type":"text"}],"kind":"symbol","role":"symbol","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)","type":"topic","url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:psk:pskid:)","title":"init(suite:publicKey:info:authentication:psk:pskId:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/seal(pt:aad:)":{"kind":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"pt"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"url":"\/documentation\/swifthpke\/sender\/seal(pt:aad:)","abstract":[{"text":"Encrypts a message","type":"text"}],"type":"topic","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/seal(pt:aad:)","title":"seal(pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","abstract":[{"type":"text","text":"The recipient"}],"navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/recipient","fragments":[{"kind":"keyword","text":"class"},{"text":" ","kind":"text"},{"text":"Recipient","kind":"identifier"}],"title":"Recipient"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:)":{"abstract":[{"text":"Creates a Sender instance in base mode","type":"text"}],"kind":"symbol","role":"symbol","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","type":"topic","url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:)","title":"init(suite:publicKey:info:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"text":"Sender","kind":"identifier"}],"title":"Sender","url":"\/documentation\/swifthpke\/sender","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","role":"symbol","type":"topic","abstract":[{"text":"The sender","type":"text"}],"kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"Sender"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:)":{"title":"init(suite:publicKey:info:authentication:)","abstract":[{"text":"Creates a Sender instance in authenticated mode","type":"text"}],"role":"symbol","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","type":"topic","url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender/encapsulatedkey.json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender/encapsulatedkey.json index ab2a292..0fe6a11 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender/encapsulatedkey.json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender/encapsulatedkey.json @@ -1 +1 @@ -{"metadata":{"fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"kind":"identifier","text":"encapsulatedKey"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"symbolKind":"property","title":"encapsulatedKey","externalID":"s:9SwiftHPKE6SenderC15encapsulatedKeySays5UInt8VGvp","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Instance Property","role":"symbol"},"kind":"symbol","abstract":[{"text":"The encapsulated key","type":"text"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/encapsulatedKey","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"]]},"schemaVersion":{"minor":3,"patch":0,"major":0},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/sender\/encapsulatedkey"]}],"sections":[],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"encapsulatedKey"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"}],"languages":["swift"]}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/encapsulatedKey":{"url":"\/documentation\/swifthpke\/sender\/encapsulatedkey","kind":"symbol","type":"topic","title":"encapsulatedKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/encapsulatedKey","abstract":[{"text":"The encapsulated key","type":"text"}],"fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"encapsulatedKey","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"kind":"keyword","text":"class"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Sender"}],"navigatorTitle":[{"text":"Sender","kind":"identifier"}],"title":"Sender","abstract":[{"type":"text","text":"The sender"}],"type":"topic","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","url":"\/documentation\/swifthpke\/sender"}}} \ No newline at end of file +{"sections":[],"variants":[{"paths":["\/documentation\/swifthpke\/sender\/encapsulatedkey"],"traits":[{"interfaceLanguage":"swift"}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"metadata":{"role":"symbol","symbolKind":"property","roleHeading":"Instance Property","externalID":"s:9SwiftHPKE6SenderC15encapsulatedKeySays5UInt8VGvp","fragments":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"kind":"identifier","text":"encapsulatedKey"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"modules":[{"name":"SwiftHPKE"}],"title":"encapsulatedKey"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"]]},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"encapsulatedKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}]}]}],"abstract":[{"type":"text","text":"The encapsulated key"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/encapsulatedKey"},"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/encapsulatedKey":{"role":"symbol","kind":"symbol","url":"\/documentation\/swifthpke\/sender\/encapsulatedkey","abstract":[{"text":"The encapsulated key","type":"text"}],"type":"topic","title":"encapsulatedKey","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"kind":"identifier","text":"encapsulatedKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/encapsulatedKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"text":"Sender","kind":"identifier"}],"title":"Sender","url":"\/documentation\/swifthpke\/sender","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","role":"symbol","type":"topic","abstract":[{"text":"The sender","type":"text"}],"kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"Sender"}]}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender/init(suite:publickey:info:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender/init(suite:publickey:info:).json index d32dc04..baa52ee 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender/init(suite:publickey:info:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender/init(suite:publickey:info:).json @@ -1 +1 @@ -{"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/sender\/init(suite:publickey:info:)"]}],"kind":"symbol","schemaVersion":{"major":0,"patch":0,"minor":3},"abstract":[{"type":"text","text":"Creates a Sender instance in base mode"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)"},"metadata":{"symbolKind":"init","roleHeading":"Initializer","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE6SenderC5suite9publicKey4infoAcA11CipherSuiteV_AA06PublicF0VSays5UInt8VGtKcfc","role":"symbol","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"title":"init(suite:publicKey:info:)"},"seeAlsoSections":[{"title":"Constructors","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)"]}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"kind":"keyword","text":"convenience"},{"text":" ","kind":"text"},{"kind":"keyword","text":"init"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"CipherSuite","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"publicKey"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}]}],"kind":"declarations"},{"parameters":[{"name":"suite","content":[{"inlineContent":[{"text":"The CipherSuite of the Sender","type":"text"}],"type":"paragraph"}]},{"name":"publicKey","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient public key"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"The additional information","type":"text"}]}],"name":"info"}],"kind":"parameters"},{"kind":"content","content":[{"anchor":"discussion","type":"heading","text":"Discussion","level":2},{"name":"Throws","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if ","type":"text"},{"type":"codeVoice","code":"publicKey"},{"type":"text","text":" does not match "},{"type":"codeVoice","code":"suite"}]}],"type":"aside","style":"note"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:)":{"fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","title":"init(suite:publicKey:info:authentication:)","kind":"symbol","role":"symbol","abstract":[{"text":"Creates a Sender instance in authenticated mode","type":"text"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:)","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:)":{"fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"kind":"text","text":", "},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","title":"init(suite:publicKey:info:)","kind":"symbol","role":"symbol","abstract":[{"text":"Creates a Sender instance in base mode","type":"text"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:)","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"kind":"keyword","text":"class"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Sender"}],"navigatorTitle":[{"text":"Sender","kind":"identifier"}],"title":"Sender","abstract":[{"type":"text","text":"The sender"}],"type":"topic","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","url":"\/documentation\/swifthpke\/sender"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:psk:pskId:)":{"fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","title":"init(suite:publicKey:info:psk:pskId:)","kind":"symbol","role":"symbol","abstract":[{"type":"text","text":"Creates a Sender instance in preshared key mode"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:psk:pskid:)","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:psk:pskId:)":{"fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)","title":"init(suite:publicKey:info:authentication:psk:pskId:)","kind":"symbol","role":"symbol","abstract":[{"text":"Creates a Sender instance in authenticated, preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:psk:pskid:)","type":"topic"}}} \ No newline at end of file +{"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","interfaceLanguage":"swift"},"primaryContentSections":[{"declarations":[{"tokens":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"CipherSuite","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"content":[{"type":"paragraph","inlineContent":[{"text":"The CipherSuite of the Sender","type":"text"}]}],"name":"suite"},{"content":[{"inlineContent":[{"type":"text","text":"The recipient public key"}],"type":"paragraph"}],"name":"publicKey"},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"text":"The additional information","type":"text"}]}]}]},{"kind":"content","content":[{"type":"heading","level":2,"text":"Discussion","anchor":"discussion"},{"type":"aside","style":"note","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if ","type":"text"},{"code":"publicKey","type":"codeVoice"},{"type":"text","text":" does not match "},{"code":"suite","type":"codeVoice"}]}],"name":"Throws"}]}],"seeAlsoSections":[{"generated":true,"title":"Constructors","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)"]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/sender\/init(suite:publickey:info:)"]}],"sections":[],"metadata":{"modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE6SenderC5suite9publicKey4infoAcA11CipherSuiteV_AA06PublicF0VSays5UInt8VGtKcfc","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"text":", ","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"roleHeading":"Initializer","symbolKind":"init","role":"symbol","title":"init(suite:publicKey:info:)"},"schemaVersion":{"patch":0,"major":0,"minor":3},"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"]]},"abstract":[{"text":"Creates a Sender instance in base mode","type":"text"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"text":"Sender","kind":"identifier"}],"title":"Sender","url":"\/documentation\/swifthpke\/sender","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","role":"symbol","type":"topic","abstract":[{"text":"The sender","type":"text"}],"kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"Sender"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:psk:pskId:)":{"title":"init(suite:publicKey:info:psk:pskId:)","abstract":[{"type":"text","text":"Creates a Sender instance in preshared key mode"}],"role":"symbol","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"text":", ","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","type":"topic","url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:psk:pskid:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:psk:pskId:)":{"abstract":[{"text":"Creates a Sender instance in authenticated, preshared key mode","type":"text"}],"kind":"symbol","role":"symbol","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)","type":"topic","url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:psk:pskid:)","title":"init(suite:publicKey:info:authentication:psk:pskId:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:)":{"title":"init(suite:publicKey:info:authentication:)","abstract":[{"text":"Creates a Sender instance in authenticated mode","type":"text"}],"role":"symbol","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","type":"topic","url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:)":{"abstract":[{"text":"Creates a Sender instance in base mode","type":"text"}],"kind":"symbol","role":"symbol","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","type":"topic","url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:)","title":"init(suite:publicKey:info:)"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender/init(suite:publickey:info:authentication:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender/init(suite:publickey:info:authentication:).json index c2b7a94..b727865 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender/init(suite:publickey:info:authentication:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender/init(suite:publickey:info:authentication:).json @@ -1 +1 @@ -{"sections":[],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"convenience","kind":"keyword"},{"kind":"text","text":" "},{"text":"init","kind":"keyword"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}]}]},{"kind":"parameters","parameters":[{"name":"suite","content":[{"inlineContent":[{"text":"The CipherSuite of the Sender","type":"text"}],"type":"paragraph"}]},{"name":"publicKey","content":[{"type":"paragraph","inlineContent":[{"text":"The recipient public key","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}],"name":"info"},{"content":[{"type":"paragraph","inlineContent":[{"text":"The sender private key","type":"text"}]}],"name":"authentication"}]},{"kind":"content","content":[{"type":"heading","text":"Discussion","anchor":"discussion","level":2},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"suite"}]}],"name":"Throws","type":"aside","style":"note"}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"]]},"abstract":[{"text":"Creates a Sender instance in authenticated mode","type":"text"}],"metadata":{"role":"symbol","roleHeading":"Initializer","title":"init(suite:publicKey:info:authentication:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"symbolKind":"init","externalID":"s:9SwiftHPKE6SenderC5suite9publicKey4info14authenticationAcA11CipherSuiteV_AA06PublicF0VSays5UInt8VGAA07PrivateF0VtKcfc","modules":[{"name":"SwiftHPKE"}]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","interfaceLanguage":"swift"},"kind":"symbol","schemaVersion":{"minor":3,"patch":0,"major":0},"variants":[{"paths":["\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:)"],"traits":[{"interfaceLanguage":"swift"}]}],"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)"],"title":"Constructors"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"kind":"keyword","text":"class"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Sender"}],"navigatorTitle":[{"text":"Sender","kind":"identifier"}],"title":"Sender","abstract":[{"type":"text","text":"The sender"}],"type":"topic","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","url":"\/documentation\/swifthpke\/sender"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:psk:pskId:)":{"fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","title":"init(suite:publicKey:info:psk:pskId:)","kind":"symbol","role":"symbol","abstract":[{"type":"text","text":"Creates a Sender instance in preshared key mode"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:psk:pskid:)","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:)":{"fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","title":"init(suite:publicKey:info:authentication:)","kind":"symbol","role":"symbol","abstract":[{"text":"Creates a Sender instance in authenticated mode","type":"text"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:)","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:)":{"fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"kind":"text","text":", "},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","title":"init(suite:publicKey:info:)","kind":"symbol","role":"symbol","abstract":[{"text":"Creates a Sender instance in base mode","type":"text"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:)","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:psk:pskId:)":{"fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)","title":"init(suite:publicKey:info:authentication:psk:pskId:)","kind":"symbol","role":"symbol","abstract":[{"text":"Creates a Sender instance in authenticated, preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:psk:pskid:)","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]}}} \ No newline at end of file +{"schemaVersion":{"minor":3,"patch":0,"major":0},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"convenience","kind":"keyword"},{"kind":"text","text":" "},{"kind":"keyword","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"text":", ","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","text":"PrivateKey"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"languages":["swift"]}]},{"parameters":[{"name":"suite","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The CipherSuite of the Sender"}]}]},{"content":[{"inlineContent":[{"type":"text","text":"The recipient public key"}],"type":"paragraph"}],"name":"publicKey"},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}]},{"content":[{"inlineContent":[{"type":"text","text":"The sender private key"}],"type":"paragraph"}],"name":"authentication"}],"kind":"parameters"},{"kind":"content","content":[{"level":2,"type":"heading","text":"Discussion","anchor":"discussion"},{"name":"Throws","type":"aside","content":[{"inlineContent":[{"text":"An exception if one of the keys does not match ","type":"text"},{"type":"codeVoice","code":"suite"}],"type":"paragraph"}],"style":"note"}]}],"abstract":[{"type":"text","text":"Creates a Sender instance in authenticated mode"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"]]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","interfaceLanguage":"swift"},"kind":"symbol","seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)"],"generated":true,"title":"Constructors"}],"variants":[{"paths":["\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:)"],"traits":[{"interfaceLanguage":"swift"}]}],"sections":[],"metadata":{"fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier","text":"CipherSuite"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"role":"symbol","externalID":"s:9SwiftHPKE6SenderC5suite9publicKey4info14authenticationAcA11CipherSuiteV_AA06PublicF0VSays5UInt8VGAA07PrivateF0VtKcfc","roleHeading":"Initializer","title":"init(suite:publicKey:info:authentication:)","modules":[{"name":"SwiftHPKE"}],"symbolKind":"init"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:psk:pskId:)":{"title":"init(suite:publicKey:info:psk:pskId:)","abstract":[{"type":"text","text":"Creates a Sender instance in preshared key mode"}],"role":"symbol","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"text":", ","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","type":"topic","url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:psk:pskid:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:)":{"title":"init(suite:publicKey:info:authentication:)","abstract":[{"text":"Creates a Sender instance in authenticated mode","type":"text"}],"role":"symbol","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","type":"topic","url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"text":"Sender","kind":"identifier"}],"title":"Sender","url":"\/documentation\/swifthpke\/sender","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","role":"symbol","type":"topic","abstract":[{"text":"The sender","type":"text"}],"kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"Sender"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:)":{"abstract":[{"text":"Creates a Sender instance in base mode","type":"text"}],"kind":"symbol","role":"symbol","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","type":"topic","url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:)","title":"init(suite:publicKey:info:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:psk:pskId:)":{"abstract":[{"text":"Creates a Sender instance in authenticated, preshared key mode","type":"text"}],"kind":"symbol","role":"symbol","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)","type":"topic","url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:psk:pskid:)","title":"init(suite:publicKey:info:authentication:psk:pskId:)"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender/init(suite:publickey:info:authentication:psk:pskid:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender/init(suite:publickey:info:authentication:psk:pskid:).json index 3ee6821..beeddeb 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender/init(suite:publickey:info:authentication:psk:pskid:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender/init(suite:publickey:info:authentication:psk:pskid:).json @@ -1 +1 @@ -{"sections":[],"primaryContentSections":[{"declarations":[{"tokens":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"init"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"},{"kind":"text","text":", "},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"suite","content":[{"type":"paragraph","inlineContent":[{"text":"The CipherSuite of the Sender","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient public key"}]}],"name":"publicKey"},{"name":"info","content":[{"inlineContent":[{"type":"text","text":"The additional information"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"type":"text","text":"The sender private key"}],"type":"paragraph"}],"name":"authentication"},{"name":"psk","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key"}]}]},{"name":"pskId","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key id"}]}]}]},{"content":[{"text":"Discussion","anchor":"discussion","level":2,"type":"heading"},{"type":"aside","style":"note","name":"Throws","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"suite"},{"type":"text","text":" or the "},{"type":"codeVoice","code":"psk"},{"type":"text","text":" parameters are inconsistent"}]}]}],"kind":"content"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"]]},"abstract":[{"type":"text","text":"Creates a Sender instance in authenticated, preshared key mode"}],"metadata":{"title":"init(suite:publicKey:info:authentication:psk:pskId:)","role":"symbol","externalID":"s:9SwiftHPKE6SenderC5suite9publicKey4info14authentication3psk0I2IdAcA11CipherSuiteV_AA06PublicF0VSays5UInt8VGAA07PrivateF0VA2PtKcfc","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"roleHeading":"Initializer","modules":[{"name":"SwiftHPKE"}],"symbolKind":"init"},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)","interfaceLanguage":"swift"},"kind":"symbol","schemaVersion":{"major":0,"minor":3,"patch":0},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:psk:pskid:)"]}],"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)"],"title":"Constructors"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:)":{"fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"kind":"text","text":", "},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","title":"init(suite:publicKey:info:)","kind":"symbol","role":"symbol","abstract":[{"text":"Creates a Sender instance in base mode","type":"text"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:)","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"kind":"keyword","text":"class"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Sender"}],"navigatorTitle":[{"text":"Sender","kind":"identifier"}],"title":"Sender","abstract":[{"type":"text","text":"The sender"}],"type":"topic","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","url":"\/documentation\/swifthpke\/sender"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:psk:pskId:)":{"fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)","title":"init(suite:publicKey:info:authentication:psk:pskId:)","kind":"symbol","role":"symbol","abstract":[{"text":"Creates a Sender instance in authenticated, preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:psk:pskid:)","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"topic","abstract":[{"text":"The private key","type":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:psk:pskId:)":{"fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","title":"init(suite:publicKey:info:psk:pskId:)","kind":"symbol","role":"symbol","abstract":[{"type":"text","text":"Creates a Sender instance in preshared key mode"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:psk:pskid:)","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:)":{"fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","title":"init(suite:publicKey:info:authentication:)","kind":"symbol","role":"symbol","abstract":[{"text":"Creates a Sender instance in authenticated mode","type":"text"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:)","type":"topic"}}} \ No newline at end of file +{"kind":"symbol","metadata":{"roleHeading":"Initializer","title":"init(suite:publicKey:info:authentication:psk:pskId:)","role":"symbol","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier","text":"CipherSuite"},{"text":", ","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE6SenderC5suite9publicKey4info14authentication3psk0I2IdAcA11CipherSuiteV_AA06PublicF0VSays5UInt8VGAA07PrivateF0VA2PtKcfc","symbolKind":"init"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"]]},"schemaVersion":{"patch":0,"major":0,"minor":3},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)","interfaceLanguage":"swift"},"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)"],"generated":true,"title":"Constructors"}],"abstract":[{"text":"Creates a Sender instance in authenticated, preshared key mode","type":"text"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"convenience"},{"text":" ","kind":"text"},{"text":"init","kind":"keyword"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","text":"CipherSuite"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}]}]},{"parameters":[{"name":"suite","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The CipherSuite of the Sender"}]}]},{"name":"publicKey","content":[{"type":"paragraph","inlineContent":[{"text":"The recipient public key","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"The additional information","type":"text"}]}],"name":"info"},{"name":"authentication","content":[{"type":"paragraph","inlineContent":[{"text":"The sender private key","type":"text"}]}]},{"name":"psk","content":[{"type":"paragraph","inlineContent":[{"text":"The preshared key","type":"text"}]}]},{"name":"pskId","content":[{"inlineContent":[{"text":"The preshared key id","type":"text"}],"type":"paragraph"}]}],"kind":"parameters"},{"kind":"content","content":[{"anchor":"discussion","level":2,"type":"heading","text":"Discussion"},{"style":"note","type":"aside","name":"Throws","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if one of the keys does not match ","type":"text"},{"type":"codeVoice","code":"suite"},{"text":" or the ","type":"text"},{"type":"codeVoice","code":"psk"},{"type":"text","text":" parameters are inconsistent"}]}]}]}],"sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:psk:pskid:)"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","abstract":[{"type":"text","text":"The private key"}],"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PrivateKey"}],"title":"PrivateKey","url":"\/documentation\/swifthpke\/privatekey","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:)":{"abstract":[{"text":"Creates a Sender instance in base mode","type":"text"}],"kind":"symbol","role":"symbol","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","type":"topic","url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:)","title":"init(suite:publicKey:info:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"text":"Sender","kind":"identifier"}],"title":"Sender","url":"\/documentation\/swifthpke\/sender","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","role":"symbol","type":"topic","abstract":[{"text":"The sender","type":"text"}],"kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"Sender"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:psk:pskId:)":{"abstract":[{"text":"Creates a Sender instance in authenticated, preshared key mode","type":"text"}],"kind":"symbol","role":"symbol","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)","type":"topic","url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:psk:pskid:)","title":"init(suite:publicKey:info:authentication:psk:pskId:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:psk:pskId:)":{"title":"init(suite:publicKey:info:psk:pskId:)","abstract":[{"type":"text","text":"Creates a Sender instance in preshared key mode"}],"role":"symbol","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"text":", ","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","type":"topic","url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:psk:pskid:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:)":{"title":"init(suite:publicKey:info:authentication:)","abstract":[{"text":"Creates a Sender instance in authenticated mode","type":"text"}],"role":"symbol","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","type":"topic","url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:)","kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender/init(suite:publickey:info:psk:pskid:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender/init(suite:publickey:info:psk:pskid:).json index d52805b..9abd622 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender/init(suite:publickey:info:psk:pskid:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender/init(suite:publickey:info:psk:pskid:).json @@ -1 +1 @@ -{"abstract":[{"text":"Creates a Sender instance in preshared key mode","type":"text"}],"variants":[{"paths":["\/documentation\/swifthpke\/sender\/init(suite:publickey:info:psk:pskid:)"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"]]},"sections":[],"seeAlsoSections":[{"title":"Constructors","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)"],"generated":true}],"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"convenience","kind":"keyword"},{"kind":"text","text":" "},{"text":"init","kind":"keyword"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","text":"CipherSuite"},{"kind":"text","text":", "},{"kind":"externalParam","text":"publicKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}]}],"kind":"declarations"},{"parameters":[{"content":[{"inlineContent":[{"type":"text","text":"The CipherSuite of the Sender"}],"type":"paragraph"}],"name":"suite"},{"content":[{"inlineContent":[{"text":"The recipient public key","type":"text"}],"type":"paragraph"}],"name":"publicKey"},{"content":[{"inlineContent":[{"type":"text","text":"The additional information"}],"type":"paragraph"}],"name":"info"},{"name":"psk","content":[{"type":"paragraph","inlineContent":[{"text":"The preshared key","type":"text"}]}]},{"content":[{"inlineContent":[{"text":"The preshared key id","type":"text"}],"type":"paragraph"}],"name":"pskId"}],"kind":"parameters"},{"kind":"content","content":[{"anchor":"discussion","level":2,"text":"Discussion","type":"heading"},{"name":"Throws","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if ","type":"text"},{"code":"publicKey","type":"codeVoice"},{"text":" does not match ","type":"text"},{"code":"suite","type":"codeVoice"},{"text":" or the ","type":"text"},{"code":"psk","type":"codeVoice"},{"type":"text","text":" parameters are inconsistent"}]}],"style":"note","type":"aside"}]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)"},"schemaVersion":{"patch":0,"minor":3,"major":0},"metadata":{"symbolKind":"init","externalID":"s:9SwiftHPKE6SenderC5suite9publicKey4info3psk0H2IdAcA11CipherSuiteV_AA06PublicF0VSays5UInt8VGA2OtKcfc","title":"init(suite:publicKey:info:psk:pskId:)","role":"symbol","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Initializer","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:)":{"fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","title":"init(suite:publicKey:info:authentication:)","kind":"symbol","role":"symbol","abstract":[{"text":"Creates a Sender instance in authenticated mode","type":"text"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:)","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:psk:pskId:)":{"fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","title":"init(suite:publicKey:info:psk:pskId:)","kind":"symbol","role":"symbol","abstract":[{"type":"text","text":"Creates a Sender instance in preshared key mode"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:psk:pskid:)","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:psk:pskId:)":{"fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)","title":"init(suite:publicKey:info:authentication:psk:pskId:)","kind":"symbol","role":"symbol","abstract":[{"text":"Creates a Sender instance in authenticated, preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:psk:pskid:)","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","kind":"symbol","title":"CipherSuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:)":{"fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"kind":"text","text":", "},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","title":"init(suite:publicKey:info:)","kind":"symbol","role":"symbol","abstract":[{"text":"Creates a Sender instance in base mode","type":"text"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:)","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"kind":"keyword","text":"class"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Sender"}],"navigatorTitle":[{"text":"Sender","kind":"identifier"}],"title":"Sender","abstract":[{"type":"text","text":"The sender"}],"type":"topic","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","url":"\/documentation\/swifthpke\/sender"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"}}} \ No newline at end of file +{"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)"],"title":"Constructors"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/sender\/init(suite:publickey:info:psk:pskid:)"]}],"kind":"symbol","schemaVersion":{"major":0,"patch":0,"minor":3},"abstract":[{"type":"text","text":"Creates a Sender instance in preshared key mode"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"init"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","text":"CipherSuite"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}]}]},{"parameters":[{"name":"suite","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The CipherSuite of the Sender"}]}]},{"content":[{"inlineContent":[{"text":"The recipient public key","type":"text"}],"type":"paragraph"}],"name":"publicKey"},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}]},{"name":"psk","content":[{"inlineContent":[{"text":"The preshared key","type":"text"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"type":"text","text":"The preshared key id"}],"type":"paragraph"}],"name":"pskId"}],"kind":"parameters"},{"kind":"content","content":[{"type":"heading","anchor":"discussion","text":"Discussion","level":2},{"style":"note","type":"aside","name":"Throws","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if "},{"code":"publicKey","type":"codeVoice"},{"type":"text","text":" does not match "},{"code":"suite","type":"codeVoice"},{"text":" or the ","type":"text"},{"type":"codeVoice","code":"psk"},{"type":"text","text":" parameters are inconsistent"}]}]}]}],"metadata":{"title":"init(suite:publicKey:info:psk:pskId:)","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"roleHeading":"Initializer","role":"symbol","modules":[{"name":"SwiftHPKE"}],"symbolKind":"init","externalID":"s:9SwiftHPKE6SenderC5suite9publicKey4info3psk0H2IdAcA11CipherSuiteV_AA06PublicF0VSays5UInt8VGA2OtKcfc"},"sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:psk:pskId:)":{"title":"init(suite:publicKey:info:psk:pskId:)","abstract":[{"type":"text","text":"Creates a Sender instance in preshared key mode"}],"role":"symbol","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"text":", ","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","type":"topic","url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:psk:pskid:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:psk:pskId:)":{"abstract":[{"text":"Creates a Sender instance in authenticated, preshared key mode","type":"text"}],"kind":"symbol","role":"symbol","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)","type":"topic","url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:psk:pskid:)","title":"init(suite:publicKey:info:authentication:psk:pskId:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","title":"PublicKey","url":"\/documentation\/swifthpke\/publickey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","role":"symbol","kind":"symbol","abstract":[{"text":"The public key","type":"text"}],"navigatorTitle":[{"kind":"identifier","text":"PublicKey"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"text":"Sender","kind":"identifier"}],"title":"Sender","url":"\/documentation\/swifthpke\/sender","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","role":"symbol","type":"topic","abstract":[{"text":"The sender","type":"text"}],"kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"Sender"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"type":"text","text":"The cipher suite"}],"url":"\/documentation\/swifthpke\/ciphersuite","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"type":"topic","title":"CipherSuite","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:)":{"abstract":[{"text":"Creates a Sender instance in base mode","type":"text"}],"kind":"symbol","role":"symbol","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","type":"topic","url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:)","title":"init(suite:publicKey:info:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:)":{"title":"init(suite:publicKey:info:authentication:)","abstract":[{"text":"Creates a Sender instance in authenticated mode","type":"text"}],"role":"symbol","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","type":"topic","url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender/seal(pt:aad:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender/seal(pt:aad:).json index fe8b586..b7a9d1b 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender/seal(pt:aad:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender/seal(pt:aad:).json @@ -1 +1 @@ -{"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/sender\/seal(pt:aad:)"]}],"primaryContentSections":[{"declarations":[{"tokens":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"pt","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The plain text to encrypt"}]}]},{"name":"aad","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The associated data"}]}]}]},{"content":[{"text":"Return Value","type":"heading","anchor":"return-value","level":2},{"type":"paragraph","inlineContent":[{"text":"The cipher text","type":"text"}]}],"kind":"content"},{"content":[{"anchor":"discussion","type":"heading","text":"Discussion","level":2},{"type":"aside","name":"Throws","content":[{"inlineContent":[{"type":"text","text":"An exception if encryption fails or "},{"code":"self.suite.aead","type":"codeVoice"},{"text":" is EXPORTONLY","type":"text"}],"type":"paragraph"}],"style":"note"}],"kind":"content"}],"kind":"symbol","metadata":{"externalID":"s:9SwiftHPKE6SenderC4seal2pt3aadSays5UInt8VGAI_AItKF","roleHeading":"Instance Method","modules":[{"name":"SwiftHPKE"}],"fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"symbolKind":"method","title":"seal(pt:aad:)","role":"symbol"},"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/sendExport(context:L:)"],"title":"Methods","generated":true}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/seal(pt:aad:)"},"schemaVersion":{"patch":0,"minor":3,"major":0},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"]]},"abstract":[{"type":"text","text":"Encrypts a message"}],"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/seal(pt:aad:)":{"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/seal(pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"pt"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"abstract":[{"text":"Encrypts a message","type":"text"}],"url":"\/documentation\/swifthpke\/sender\/seal(pt:aad:)","role":"symbol","title":"seal(pt:aad:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/sendExport(context:L:)":{"abstract":[{"text":"Generate an export secret","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/sendExport(context:L:)","kind":"symbol","url":"\/documentation\/swifthpke\/sender\/sendexport(context:l:)","title":"sendExport(context:L:)","role":"symbol","type":"topic","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"kind":"keyword","text":"class"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Sender"}],"navigatorTitle":[{"text":"Sender","kind":"identifier"}],"title":"Sender","abstract":[{"type":"text","text":"The sender"}],"type":"topic","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","url":"\/documentation\/swifthpke\/sender"}}} \ No newline at end of file +{"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/seal(pt:aad:)"},"sections":[],"metadata":{"fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"pt"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"roleHeading":"Instance Method","modules":[{"name":"SwiftHPKE"}],"symbolKind":"method","role":"symbol","externalID":"s:9SwiftHPKE6SenderC4seal2pt3aadSays5UInt8VGAI_AItKF","title":"seal(pt:aad:)"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"]]},"primaryContentSections":[{"declarations":[{"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"},{"parameters":[{"name":"pt","content":[{"type":"paragraph","inlineContent":[{"text":"The plain text to encrypt","type":"text"}]}]},{"content":[{"inlineContent":[{"type":"text","text":"The associated data"}],"type":"paragraph"}],"name":"aad"}],"kind":"parameters"},{"kind":"content","content":[{"type":"heading","text":"Return Value","anchor":"return-value","level":2},{"inlineContent":[{"text":"The cipher text","type":"text"}],"type":"paragraph"}]},{"content":[{"text":"Discussion","anchor":"discussion","type":"heading","level":2},{"style":"note","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if encryption fails or ","type":"text"},{"type":"codeVoice","code":"self.suite.aead"},{"type":"text","text":" is EXPORTONLY"}]}],"name":"Throws","type":"aside"}],"kind":"content"}],"schemaVersion":{"patch":0,"major":0,"minor":3},"kind":"symbol","variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/sender\/seal(pt:aad:)"]}],"seeAlsoSections":[{"generated":true,"title":"Methods","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/sendExport(context:L:)"]}],"abstract":[{"text":"Encrypts a message","type":"text"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/seal(pt:aad:)":{"kind":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"pt"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"url":"\/documentation\/swifthpke\/sender\/seal(pt:aad:)","abstract":[{"text":"Encrypts a message","type":"text"}],"type":"topic","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/seal(pt:aad:)","title":"seal(pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/sendExport(context:L:)":{"kind":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"text":"(","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/sender\/sendexport(context:l:)","abstract":[{"text":"Generate an export secret","type":"text"}],"type":"topic","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/sendExport(context:L:)","title":"sendExport(context:L:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"text":"Sender","kind":"identifier"}],"title":"Sender","url":"\/documentation\/swifthpke\/sender","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","role":"symbol","type":"topic","abstract":[{"text":"The sender","type":"text"}],"kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"Sender"}]}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender/sendexport(context:l:).json b/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender/sendexport(context:l:).json index ad1817f..43cb0bd 100644 --- a/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender/sendexport(context:l:).json +++ b/SwiftHPKE.doccarchive/data/documentation/swifthpke/sender/sendexport(context:l:).json @@ -1 +1 @@ -{"kind":"symbol","schemaVersion":{"patch":0,"minor":3,"major":0},"metadata":{"symbolKind":"method","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"externalID":"s:9SwiftHPKE6SenderC10sendExport7context1LSays5UInt8VGAI_SitKF","modules":[{"name":"SwiftHPKE"}],"title":"sendExport(context:L:)","roleHeading":"Instance Method","role":"symbol"},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/sendExport(context:L:)"},"abstract":[{"type":"text","text":"Generate an export secret"}],"sections":[],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"kind":"text","text":"("},{"kind":"externalParam","text":"context"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"}],"languages":["swift"]}]},{"parameters":[{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The export context"}]}],"name":"context"},{"content":[{"inlineContent":[{"text":"The length of the export secret","type":"text"}],"type":"paragraph"}],"name":"L"}],"kind":"parameters"},{"content":[{"anchor":"return-value","type":"heading","text":"Return Value","level":2},{"type":"paragraph","inlineContent":[{"text":"The export secret","type":"text"}]}],"kind":"content"},{"kind":"content","content":[{"text":"Discussion","type":"heading","level":2,"anchor":"discussion"},{"name":"Throws","style":"note","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if L is negative or too large","type":"text"}]}],"type":"aside"}]}],"seeAlsoSections":[{"title":"Methods","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/seal(pt:aad:)"],"generated":true}],"variants":[{"paths":["\/documentation\/swifthpke\/sender\/sendexport(context:l:)"],"traits":[{"interfaceLanguage":"swift"}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/sendExport(context:L:)":{"abstract":[{"text":"Generate an export secret","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/sendExport(context:L:)","kind":"symbol","url":"\/documentation\/swifthpke\/sender\/sendexport(context:l:)","title":"sendExport(context:L:)","role":"symbol","type":"topic","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"url":"\/documentation\/swifthpke\/bytes","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"title":"SwiftHPKE","type":"topic","role":"collection","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/seal(pt:aad:)":{"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/seal(pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"pt"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"abstract":[{"text":"Encrypts a message","type":"text"}],"url":"\/documentation\/swifthpke\/sender\/seal(pt:aad:)","role":"symbol","title":"seal(pt:aad:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"kind":"keyword","text":"class"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Sender"}],"navigatorTitle":[{"text":"Sender","kind":"identifier"}],"title":"Sender","abstract":[{"type":"text","text":"The sender"}],"type":"topic","role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","url":"\/documentation\/swifthpke\/sender"}}} \ No newline at end of file +{"kind":"symbol","schemaVersion":{"minor":3,"patch":0,"major":0},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"]]},"sections":[],"seeAlsoSections":[{"title":"Methods","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/seal(pt:aad:)"],"generated":true}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/sendExport(context:L:)","interfaceLanguage":"swift"},"metadata":{"roleHeading":"Instance Method","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"symbolKind":"method","modules":[{"name":"SwiftHPKE"}],"title":"sendExport(context:L:)","externalID":"s:9SwiftHPKE6SenderC10sendExport7context1LSays5UInt8VGAI_SitKF","role":"symbol"},"abstract":[{"text":"Generate an export secret","type":"text"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"}],"languages":["swift"]}]},{"kind":"parameters","parameters":[{"content":[{"inlineContent":[{"type":"text","text":"The export context"}],"type":"paragraph"}],"name":"context"},{"content":[{"type":"paragraph","inlineContent":[{"text":"The length of the export secret","type":"text"}]}],"name":"L"}]},{"kind":"content","content":[{"anchor":"return-value","level":2,"type":"heading","text":"Return Value"},{"type":"paragraph","inlineContent":[{"text":"The export secret","type":"text"}]}]},{"content":[{"text":"Discussion","type":"heading","anchor":"discussion","level":2},{"style":"note","type":"aside","name":"Throws","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if L is negative or too large"}]}]}],"kind":"content"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/sender\/sendexport(context:l:)"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"role":"symbol","abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","kind":"symbol","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/sendExport(context:L:)":{"kind":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"text":"(","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/sender\/sendexport(context:l:)","abstract":[{"text":"Generate an export secret","type":"text"}],"type":"topic","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/sendExport(context:L:)","title":"sendExport(context:L:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"role":"collection","title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"url":"\/documentation\/swifthpke","type":"topic","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/seal(pt:aad:)":{"kind":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"pt"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"url":"\/documentation\/swifthpke\/sender\/seal(pt:aad:)","abstract":[{"text":"Encrypts a message","type":"text"}],"type":"topic","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/seal(pt:aad:)","title":"seal(pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"text":"Sender","kind":"identifier"}],"title":"Sender","url":"\/documentation\/swifthpke\/sender","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","role":"symbol","type":"topic","abstract":[{"text":"The sender","type":"text"}],"kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"Sender"}]}}} \ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/aead/!=(_:_:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/aead/!=(_:_:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/aead/!=(_:_:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/aead/!=(_:_:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/aead/aesgcm128/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/aead/aesgcm128/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/aead/aesgcm128/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/aead/aesgcm128/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/aead/aesgcm256/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/aead/aesgcm256/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/aead/aesgcm256/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/aead/aesgcm256/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/aead/chachapoly/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/aead/chachapoly/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/aead/chachapoly/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/aead/chachapoly/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/aead/description/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/aead/description/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/aead/description/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/aead/description/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/aead/equatable-implementations/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/aead/equatable-implementations/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/aead/equatable-implementations/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/aead/equatable-implementations/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/aead/exportonly/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/aead/exportonly/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/aead/exportonly/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/aead/exportonly/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/aead/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/aead/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/aead/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/aead/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/base64/decode(_:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/base64/decode(_:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/base64/decode(_:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/base64/decode(_:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/base64/encode(_:_:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/base64/encode(_:_:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/base64/encode(_:_:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/base64/encode(_:_:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/base64/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/base64/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/base64/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/base64/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/base64/pemdecode(_:_:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/base64/pemdecode(_:_:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/base64/pemdecode(_:_:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/base64/pemdecode(_:_:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/base64/pemencode(_:_:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/base64/pemencode(_:_:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/base64/pemencode(_:_:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/base64/pemencode(_:_:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/byte/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/byte/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/byte/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/byte/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/bytes/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/bytes/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/bytes/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/bytes/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/aead/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/aead/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/aead/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/aead/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/derivekeypair(ikm:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/derivekeypair(ikm:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/derivekeypair(ikm:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/derivekeypair(ikm:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/description/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/description/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/description/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/description/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/init(kem:kdf:aead:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/init(kem:kdf:aead:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/init(kem:kdf:aead:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/init(kem:kdf:aead:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/kdf/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/kdf/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/kdf/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/kdf/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/kem/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/kem/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/kem/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/kem/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/makekeypair()/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/makekeypair()/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/makekeypair()/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/makekeypair()/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:ct:aad:encap:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:ct:aad:encap:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:ct:aad:encap:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:ct:aad:encap:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/open(privatekey:info:ct:aad:encap:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/open(privatekey:info:ct:aad:encap:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/open(privatekey:info:ct:aad:encap:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/open(privatekey:info:ct:aad:encap:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/open(privatekey:info:psk:pskid:ct:aad:encap:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/open(privatekey:info:psk:pskid:ct:aad:encap:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/open(privatekey:info:psk:pskid:ct:aad:encap:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/open(privatekey:info:psk:pskid:ct:aad:encap:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:encap:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:encap:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:encap:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:encap:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:encap:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:encap:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:encap:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:encap:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:psk:pskid:encap:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:psk:pskid:encap:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:psk:pskid:encap:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:psk:pskid:encap:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:psk:pskid:pt:aad:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:psk:pskid:pt:aad:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:psk:pskid:pt:aad:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:psk:pskid:pt:aad:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:pt:aad:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:pt:aad:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:pt:aad:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:pt:aad:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/seal(publickey:info:psk:pskid:pt:aad:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/seal(publickey:info:psk:pskid:pt:aad:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/seal(publickey:info:psk:pskid:pt:aad:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/seal(publickey:info:psk:pskid:pt:aad:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/seal(publickey:info:pt:aad:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/seal(publickey:info:pt:aad:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/seal(publickey:info:pt:aad:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/seal(publickey:info:pt:aad:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:psk:pskid:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:psk:pskid:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:psk:pskid:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:psk:pskid:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:psk:pskid:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:psk:pskid:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:psk:pskid:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:psk:pskid:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/cryptokit/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/cryptokit/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/cryptokit/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/cryptokit/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/!=(_:_:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/!=(_:_:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/!=(_:_:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/!=(_:_:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/asn1structure/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/asn1structure/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/asn1structure/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/asn1structure/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/base64/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/base64/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/base64/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/base64/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/decodepoint/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/decodepoint/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/decodepoint/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/decodepoint/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/derivedkeyerror/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/derivedkeyerror/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/derivedkeyerror/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/derivedkeyerror/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/description/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/description/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/description/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/description/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/equatable-implementations/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/equatable-implementations/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/equatable-implementations/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/equatable-implementations/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/error-implementations/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/error-implementations/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/error-implementations/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/error-implementations/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/exportonlyerror/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/exportonlyerror/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/exportonlyerror/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/exportonlyerror/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/exportsize/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/exportsize/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/exportsize/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/exportsize/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/keymismatch/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/keymismatch/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/keymismatch/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/keymismatch/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/localizeddescription/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/localizeddescription/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/localizeddescription/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/localizeddescription/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/pemstructure/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/pemstructure/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/pemstructure/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/pemstructure/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/privatekeyparameter/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/privatekeyparameter/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/privatekeyparameter/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/privatekeyparameter/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/pskerror/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/pskerror/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/pskerror/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/pskerror/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/publickeyparameter/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/publickeyparameter/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/publickeyparameter/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/publickeyparameter/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/smallorder/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/smallorder/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/smallorder/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/hpkeexception/smallorder/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/kdf/!=(_:_:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/kdf/!=(_:_:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/kdf/!=(_:_:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/kdf/!=(_:_:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/kdf/description/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/kdf/description/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/kdf/description/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/kdf/description/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/kdf/equatable-implementations/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/kdf/equatable-implementations/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/kdf/equatable-implementations/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/kdf/equatable-implementations/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/kdf/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/kdf/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/kdf/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/kdf/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/kdf/kdf256/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/kdf/kdf256/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/kdf/kdf256/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/kdf/kdf256/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/kdf/kdf384/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/kdf/kdf384/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/kdf/kdf384/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/kdf/kdf384/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/kdf/kdf512/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/kdf/kdf512/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/kdf/kdf512/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/kdf/kdf512/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/kem/!=(_:_:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/kem/!=(_:_:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/kem/!=(_:_:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/kem/!=(_:_:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/kem/description/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/kem/description/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/kem/description/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/kem/description/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/kem/equatable-implementations/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/kem/equatable-implementations/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/kem/equatable-implementations/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/kem/equatable-implementations/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/kem/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/kem/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/kem/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/kem/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/kem/p256/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/kem/p256/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/kem/p256/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/kem/p256/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/kem/p384/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/kem/p384/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/kem/p384/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/kem/p384/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/kem/p521/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/kem/p521/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/kem/p521/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/kem/p521/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/kem/x25519/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/kem/x25519/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/kem/x25519/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/kem/x25519/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/kem/x448/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/kem/x448/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/kem/x448/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/kem/x448/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/keymanagement/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/keymanagement/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/keymanagement/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/keymanagement/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/performance/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/performance/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/performance/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/performance/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/!=(_:_:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/!=(_:_:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/!=(_:_:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/!=(_:_:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/==(_:_:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/==(_:_:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/==(_:_:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/==(_:_:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/asn1/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/asn1/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/asn1/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/asn1/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/bytes/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/bytes/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/bytes/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/bytes/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/der/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/der/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/der/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/der/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/description/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/description/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/description/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/description/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/equatable-implementations/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/equatable-implementations/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/equatable-implementations/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/equatable-implementations/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/init(der:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/init(der:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/init(der:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/init(der:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/init(kem:bytes:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/init(kem:bytes:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/init(kem:bytes:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/init(kem:bytes:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/init(pem:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/init(pem:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/init(pem:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/init(pem:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/pem/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/pem/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/pem/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/pem/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/publickey/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/publickey/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/publickey/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/privatekey/publickey/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/!=(_:_:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/!=(_:_:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/!=(_:_:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/!=(_:_:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/==(_:_:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/==(_:_:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/==(_:_:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/==(_:_:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/asn1/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/asn1/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/asn1/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/asn1/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/bytes/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/bytes/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/bytes/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/bytes/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/der/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/der/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/der/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/der/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/description/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/description/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/description/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/description/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/equatable-implementations/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/equatable-implementations/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/equatable-implementations/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/equatable-implementations/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/init(der:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/init(der:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/init(der:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/init(der:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/init(kem:bytes:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/init(kem:bytes:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/init(kem:bytes:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/init(kem:bytes:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/init(pem:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/init(pem:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/init(pem:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/init(pem:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/pem/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/pem/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/pem/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/publickey/pem/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/recipient/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/recipient/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/recipient/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/recipient/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:encap:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:encap:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:encap:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:encap:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:psk:pskid:encap:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:psk:pskid:encap:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:psk:pskid:encap:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:psk:pskid:encap:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/recipient/init(suite:privatekey:info:encap:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/recipient/init(suite:privatekey:info:encap:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/recipient/init(suite:privatekey:info:encap:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/recipient/init(suite:privatekey:info:encap:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/recipient/init(suite:privatekey:info:psk:pskid:encap:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/recipient/init(suite:privatekey:info:psk:pskid:encap:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/recipient/init(suite:privatekey:info:psk:pskid:encap:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/recipient/init(suite:privatekey:info:psk:pskid:encap:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/recipient/open(ct:aad:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/recipient/open(ct:aad:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/recipient/open(ct:aad:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/recipient/open(ct:aad:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/recipient/receiveexport(context:l:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/recipient/receiveexport(context:l:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/recipient/receiveexport(context:l:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/recipient/receiveexport(context:l:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/references/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/references/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/references/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/references/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/secretexport/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/secretexport/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/secretexport/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/secretexport/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/sender/encapsulatedkey/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/sender/encapsulatedkey/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/sender/encapsulatedkey/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/sender/encapsulatedkey/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/sender/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/sender/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/sender/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/sender/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/sender/init(suite:publickey:info:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/sender/init(suite:publickey:info:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/sender/init(suite:publickey:info:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/sender/init(suite:publickey:info:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/sender/init(suite:publickey:info:authentication:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/sender/init(suite:publickey:info:authentication:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/sender/init(suite:publickey:info:authentication:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/sender/init(suite:publickey:info:authentication:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/sender/init(suite:publickey:info:authentication:psk:pskid:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/sender/init(suite:publickey:info:authentication:psk:pskid:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/sender/init(suite:publickey:info:authentication:psk:pskid:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/sender/init(suite:publickey:info:authentication:psk:pskid:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/sender/init(suite:publickey:info:psk:pskid:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/sender/init(suite:publickey:info:psk:pskid:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/sender/init(suite:publickey:info:psk:pskid:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/sender/init(suite:publickey:info:psk:pskid:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/sender/seal(pt:aad:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/sender/seal(pt:aad:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/sender/seal(pt:aad:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/sender/seal(pt:aad:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/documentation/swifthpke/sender/sendexport(context:l:)/index.html b/SwiftHPKE.doccarchive/documentation/swifthpke/sender/sendexport(context:l:)/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/documentation/swifthpke/sender/sendexport(context:l:)/index.html +++ b/SwiftHPKE.doccarchive/documentation/swifthpke/sender/sendexport(context:l:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/index.html b/SwiftHPKE.doccarchive/index.html index 3d12102..d5df4d7 100644 --- a/SwiftHPKE.doccarchive/index.html +++ b/SwiftHPKE.doccarchive/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/SwiftHPKE.doccarchive/index/availability.index b/SwiftHPKE.doccarchive/index/availability.index index 2bdce8584f7dd049dcc0b23570a355dc9a7ecc51..426156a19f9bd600294937a49f7db6caa13cc422 100644 GIT binary patch delta 63 zcmaFH`iynMZ$@K5p-cP%`r1H3Mixk@DJ^un%x@!LYiGa2!_&(fCJt7nrUX_yS&wN4 E0CTSrT>t<8 delta 63 zcmaFH`iynMZ$@J^rAzz*ft<8 diff --git a/SwiftHPKE.doccarchive/index/data.mdb b/SwiftHPKE.doccarchive/index/data.mdb index c7472237db3735dfa78f484618e34fe12ec9174e..d8519edbac74ec7558f22016f1a7c72df4f95c62 100755 GIT binary patch delta 8073 zcmeHMdr(yOy+3dXvaqm+<+Tr7&hiQZ!g)Uy*d>NWYKbvQ5OpJ-=kgK|2|;RwrcSCR z@%6QhHBL3XX)fbryrM?A5z*^p97_lxosOZImOLiYo8fwu>D)=v)Z5$NS(nwJ&9wh? z@(;`G0>AI)`~7`izwbGpJ%cCX1_zT4<|bg(nE9$cR9qO7c<9OU)cElK7?v3M9e>VC z{LpreB>Eos7(O`|a~Qv`4aN9o%e=;tuhk%IO9C^2(}5d-zYXDHVAqLws17v4P!W_8kqVTln}A_#2|hzo`gtP7zS6LAO{|b{u_&3i|tCh8R!b&fgyj5 zf2L|zm8WX7GFW-H;&=sJG49*xBYmGrKbDH5qhhS62)Fqz9^-d&e`dSb51Cfx_w*jx zL!YOrsraO;<)>X^w$s+@Bwu)nz@@XkBI@AsgZ}o?_~LzuYZ;?zl`xmzKCtX$@hL|g zIh9?sv_ALatY4LMq_O1ZTz2ww`J9K%^Q0b0P4~ppH;TS+Xx{qrYNDOnow4s>yLY^7 zTzbya$TtSw&W*3~mrWFWNSEO&T)y*aMh2OaSlw^Mz&q|jQiBBeid|I&{9u7}yo zqnQ(IYsS9HU%8v@u9C9_U5RT;k67dKUkiL*T3i{-8uwnvK9)YjtQaU5uPAlomrr~8 z{G%mbieovS+W+kOrEohjrR;Ro8@Ub6ACuX6x2fttHJ?qES`Xu|+a?Mf34c z%kD1C#J?h1J=f?lemcJ)?MBw^W$8sYb*8A;6p>g zy0pVNwDgU<&nk9Fzf3W5&Ssu18x*ILpR@mtok==Q6_!;mEiD=g%w}{a$1W!_YHWM* zPm{YVD$Bd*oBU_q8tW-M)BSmNZ+3k4QFod9x@)6r&iVXGXNvQhBk1@tYkyXH)_A6o z8Jl@LL(G^+Uz`5FY0szG(~j8*`x~iz>NWf^{H85vn@#CSnM>Z6%qCyA2CZKt?N9O~ z{VZ|#(CH;W^u}|^*t%z1jGpCGd#|Q+89z7MJ1*SgR*W)uiI;VX=M>5mREO8&u%E;G zljSh_i*#rmA#jp63|^xphSQ~gMF^PsMKw8Z;-2wmyE;Stp;wV`eqEvsO;i+?)-=If z2Yj4|O4*qkMQFUJs+!J98n2!}h+_0M^-sVjXA2U%RYgs{Cf_nRHbOw=2RQ5;7hDnD zXh>U|LmgW~uOKz}q`_$+BNkqPn0+PpEp*9FXLMIa($%` zqf)d%Q!ks+vUeVbst=s7^PMM|g}WQwV)wRZj+mQ9qm~WYkaUJtB+V4SxZE21GmK=!5#`@U!1VRI7-g! z8XSH)v9KcT#xp!C9SGYt)vTB(@S4igv_i|IxehZE-+@1lcyU7#XqwhZRwTv!rl9!U zng#W3-LbX5UwH`$=e=WDi4}E`RRx(f*P-LxN8x{D7o^bTSES!(J%dkHd{gKNJlU5L9rB z6hZwkjPk#i3~h=N>fT%Fh11y&$6|S~S(@5e6{`Jn4qUVRoUMX=5d(ZvcarF1X>vVH$2J4|JS) zZd67Q1cB6cq5WYDAv`JpuU)jm+%WB!PpP5^EGJ2n$}-G%P2k{kEw#XvZEQzK>f2$4 zF|Q^oq(mAz#nLQ?1kiG}0=8TxpaG>U_Sfu!exlWoqPF)!V6Pjd&;C^?N^4(pFZB!t zohVf6IX3DXhq^`+Nt%)ceY@#g^|@LoxXowvi3>YT5<6;lL?CUuk!l2=;L)}NdYEX<=|^pTzI&G+0e zKhgP6Xj0^Oj?!2e2_WaqM<82!ppXn{pdVGH1X2tk71;7-Ej*91Jbj@aDz$9biNb$v zrUvjaM=~qvJSA{EODUQR7xz8_)2JqiYjOB;uOHTE9=8=^Nlp?tRWt`-6EY~8j-a$O zq4`BZ=f2d`XbUPW?VYUjGzO_NZs>oj8m6ugHpQGHx*@3)r3aBe|M8ZzFl|h4`?ip{ z34`*rZutFMA{^HqNE9V%oGhq1t&#LbWMJ7P3FeTSt!weB z0W<;%U%;VQ55OPByfBWk)vA9h27@!Y6aMd_6P|0XhSLUtawju_ED9>A$%?TW8JlmZ z)sWg$5?8M2-JpdCyA{(_mQ;COWOYV<+}!o6W)TjeAZriY53JsMV+ZSw-r3#%Y&8Z0>)h~Fy8?F&0wqM$X;I>7k*0VRU5H@Q)@?AZ6E=pG(ahp# zLFAY!wEoW45Zo{b7+GfrxiaG{dvoJNW0NEjNUo7aLh5pODxH!I+ijx4wp za@o*biOMN5h2FZ#N$^DHHt4(JNY)fuK+&?KB8wt?v~Dw;81=%f-{Rn}-vD=But2Pl z3GpaJN9!BY?;jjl?QfG=b1Rsw-vlqCzFPg%2C$)C6EEO!v|%j}mmN^lfWwOQD-Jgk zP;=34DU0}4W@ai*)@2PoMhQ)P35T)uK4=^zYzFd#*L8H8!>XwJ;1BC7;Ob?_K>%q!>=+B}rwCWoUgzV*nmQiMrWohml4DiqHV<`v?cmh9Hor z58nE%9r`ykK=mkr^C~(vn!-u4A?BN*Ol_!xHOQeakVDxUtKkg#y8#`Y;KtQ3gsMG_ zrs%1SE8u9ztR2l8yi94d%IM5er2XF;x4|BB)}rl#n+zC1TlZeX;o7DxF>&zzzo*5x z;PD2xWmO~#F8F>h4^{_@Ve+B_`hqOXJ>`Hmf;{AQI^feF>z$tr3aO|DBXJTsa~Vi` z{-!Pi{tfNL!c}AvE5&qKC=G;&i zo#kbj)k#51M)va}dnBVmd!cJ{JWPaff-172pwNaPC{~2Yjo_>iTpX~dReBHDEoME; zLzNhoOr4L1#w&zVA~ivw1e&E8#)9MzM^F|tPK&|W?1h^j*&(6nuddHK`nrXlCGhSY zH&iz9uo~^sx7QBcO(fhvMZWPAZke|g7cR?WQvw_b&qSRxR6|F{L*(^Xv>z%pdc|R} z$TI@|zbQE}6Z8FJ6#7T-@_-BO3?$@4`S6mkHS;4D`-knUM|S-4w(fK5`~Dr-4@6n^H$$=qqAdHHA=v{_mi^6;>@`uAy-2bbNj4fc*2s4w z&n}YeMUst0?->_K_9Dq%B-x83dy!->lI%s2y-2drcOQsk{|oxg0{-oQH~LgN9^OCT me+Y5cp|5$={9W@=^NWcl#T`P=qrVO||3o^_{PK`3rtvS)&KO_- literal 69632 zcmeHQdyFJixv%b?>F((#Zg3@txUPshD=_tbjKE!2+`A$m0v82Wq#mbcdZu5~kC~p) z%Uy9*E~4Uw=!#r?p&`T&LJT3q5VEcjUgL@_xq~)R9Dwb zPgk>Gym%UVs`oqR`_8FfojR}YaX5~CvfhuEp8B6B6O`m#_ocndSsa(;1}TGIe&%GK z2eO4egIt4OesZdxtK7d*KEJS#2=vFa#I^3;~7!Lx3T`5MT%}1Q-Ggfip&6 zur7aR*8jc~TCIWf!7o3JuKzRrtaSZP|4k*ZD?@-Gzz|>vFa#I^3;~7!Lx3T`5MT%} z1Q-HmjsVr$b6k?!$vs?tsr+#HX{wYzbMZ_9Lx3T`5MT%}1Q-Gg0fqoWfFZyTU(g^w)9frBG~0`$b@derH{+$A#aZ3DQzf5u zNWD{WE2MS(TE*=gy!LaS;iw+oU;odS=gY^-x3TsA1W$%#We6|?7y=9dh5$o=A;1t| z2rvW~0t|uoHUd1{UXm+t=Bin#npUM+>8$&AJg{{i{PI(%wtcD(jV~k5RqAe|RWm!4 zM!lah_VU;Mhx27jgACXX7|Yhr5OC9);Juv9Jym|a{1jXL$3>ClV+b$=7y=9dh5$o= zA;1t|2rvW~0t|tF00iF7`k(Fx(0zb2U;pp&kRC+li>rAV4~SBNetGA}D2O|h&yLUh$O4AmsO&8ybo z5M7dW!_-C76nP7+HE4ZA*EA&E6^N=R-4I<7P2SOYQ7|>q4$*m&NP_CrSBcD^Qx^Hf~eW54AQagSQ7q@k5A29#=1AnN^8$-oywLJ zBFnC9!uxATAP=7x%EsUEWjh4038Yt+YxA=%EkUz&S%+5uURA5$$;J{2oTdw|WWvj9 z**xYA@@tAB@QUfGwzw-y7c|`AJQAc=5iKMmDr)VMIJzm2vZ1!N)Kh)VpLI;3s4Dot<4|B}80yvCP+w|8-$6R+_( z0UVBUUNjjesd1m|m$`Q=r`LzH!d*$I@8HC~oZ0wt@a68m%{YP}>K~8G?KKUrZ<~*F zXlA#wh=!52*B{O|+spW^VB4X6=Y{WhDYG1oId}&jJ9F8gD(^#~AoT+HyM2r3Kb_II z%wms-vUbOn<#pceZWa1<2RcU_-H?A5{N27TEdpat1s=j2{36i#^@pBtd!g^yhbNHc zjWl+@$#6DsVtqa|frKzTkr8WTyXlW%9BrfLy({I>Qf|PTg1h?QJ5$P_E%gha?G$_Q zxKD8#)cR8QV5OnfXxBVWs!LkHMcUX?APO zuZP1jlH+)|H01CXKn13N>PYfH`l9rX^mVDz)7MU& zoPK8djVU*;&pez+=dZ~>kW=&L=jr{?(G17*t#I^b%th{cTq9j9R979V>HZorxBQd> zXNaz&Tb3+3j`j;kh;Zn2b4k;G1_@>)rM9?GuPxxDvk^&=YD>0S`w671MpE3C-dgG2 z11XDs3Y2fUq6?FD5f;ms5aCc-y6EypAt6{T=$h)-swi5pr|^T#919&?+#q*B!dgU@ zEiBiih3`U2zmx)}6GK!DSYx}AjtLQtC0nbz`kg}@t_CY(0xJxOd?(-lNv0^^Da2u;itO|%1wl&+YyZe^tg3H|3AAja#G)l!xqMTqb$@zo_>t8Bre zxjnv7U4)cAE>OND^17lbf+L%l5RuhdGg?Ar0TQ~AltrQ0U0e31SAI&N{}zesMpqRE zyGB8c!Ca~#8(#rg(Pu2JR#z7EFK?A1v}LW0TS`%$m3D8bLjDC(qHmtkHoEGQ!hXAXGPHv*oDzeyf4P3%SQx+|~>3SQ5 zn^Iu!Nm{vj3m)RAYs)R1&P91(A*A%`xNwQ4Sf;(PYB6K1>-m zE^ql>hPF>|2Lt6}Gl>0O!7EAm@Il1pgRbCWEDp-MY7#!PT^E8K4}4|fmq>SCy@vwj zV$+Sy?R6V1;J_Lm9LpJ+r$$!dgFZ333p{Qaj3Wt_{?8MY9%uh~WXZE`zf9ak-X5#) z9dEfWJ+hGgwnBeBi(?$#50l3-dTzLJp1=|3*H{w-~Nfp zd>c=3_E5j1Pfb)(oM$)u#BjQRceD@w#&08Wo>+9h35S&UCB%JBn>K2K{U#jsYUmQLo2H@Q zge0IlFbOA;WP{oSd+LC$@PcJZrU@!r+)E1RpfI%rO_W7R!X1a3;ESm^yvDD4+^61u z9fQ(!BI<@J>Y|`}Qx{q*-QjgdfTf};yEqXG=pyferpQuF$Jh&WoC*3LjQ=%jE?Aq%-k3!*E58@#Tb>Hov+iRu5rlRWf(G5!D67O!t#|IhXP z?%yT<|3ol<8~pM~seX#555eC&e3M{J5c2;|a+GVJ-uKyV>L+-+^+@tI^u09n|9_7P&EI=yT9Qm~}UsA_Ycck{E3aJ;9 z4~7i|=R{30lmh~?yNNBK~=3#ly}t#pTmj0u15G+Y7uWN&o~I~ z6@Am<-|Ln-)`(`6qCUzSbCj3kDDPHqE8~d+ZkML3U*J6-_ybQb>K%%f82I$i!YuwB zZK=_X`16hOA06dKJIY^ECgAp|N{+x3H9_5=l%IA5MPp>q>S2^n2 zjFt_E4ccPH$7TzE$^fBJUf83&aYuRej`A`VRd78P9B|qu5}NN(L`Bfe%a%(-Vwt!Y z59qugDd3)J*s_cM1(bdc{KnNfy;8kB-3IUsG$Dt#c!w*^M>hayKD1E458Xzf|Muhm zJqYXn2dM}@Bm2t`U+a*k|KH`6l=Y$p z;7_`Kr~3QoegIwn`}+sDy7xbHKfrU!15#iJ044+Harc$qEZxmGh z+qe)}fCq!sjpu19qChz?R$UAZNtY?dzsBPb71ayL1-1Ixcn-&%BP(6AV_H>mai!L* zdht!Yu*&Tq;xyV!j;Sli2?clxuw0A93DK<;L8SPjCFc0jfCsRlJQ$QO77w7~g%|^L z+GBYzPU>iQXmqEQcydDU(0Ejhc$|Ky+D5&)9z2nHJWhMjg#Vij;H0s$YVkNt(q6D@ zfEMMePQoXM`W)oPHv{cnw|_F07XcQUkKJ&{p07d-Z=ugyiOUO)l|CG@>b{%3B)waG1_p zrb-Bm8nTT~BghZd#jXs8SinglXroE#&^HpIKoC*M6fiK|fUdc+=E8XumW>DpbX(?a zRn=u8nOBGD7+lhldESss9H)Z(iX-T78j0&j1bdo*E?Cef%aTD16Z^w}&bzitObC^! z65P`s&_zjgbqUO=O^m_yDfnV4fxp|gn1OZl=)Q}V;#hEMgb24`K@B|lSW1C&4BoJ0 zI9Ni~EPRuL{IUusr@%oUM3O%iri-R1@q}1l8vel$9ZbP>+fYnJHWjo3rE+ZBQe+8^ zP7pN6F1nb&(W6Lo2EwdMZG<3e5< zw{or7SlC$j#U{FIH1&${ADifFtqpCF{BRT9txBtseD@}L)$OXX@qJ?*ltI)nT{Wim4-kZniYJaUk8jA7oWcsL|gyz z1bon`2V))vpp9D|hJB>tGsXpr%jZW)-wzy!@)yT*1~JJ;&oHo;Mrk-ojH$;!+GUr) z7>eWI@Y}nw41u8AIG2pjf$DZH*hKGDG+kZ`k2lwQy}(+pqALc@T!!VWHPzOF7w>`qB4jkDe)pl%>-&QvG)g_$w49joJy_RTydJ}zRb!~NB z!db|0{*{`(*sI`pri1oAOuOC8^RpxQV{#8f|09>&cfxnwBUpVvjLgF5wrowzg{%-LYD5E)nJ( z&hJQTEwPPn1mAAk1+%;%Dqs0 zE%#*cH^uK4U&uX_Iy<#mOr~!s9w@$*IFkP3)Fs8$>7B*53Wsv96rL+Q2DLbz`gY-p zM7?lh;qtb7)*$9NEF}Mq;{WgSI-)7=*Klp)x@hDHtwZO3%~cz=S*>gkC$t+(_Zx9%WfEB* z=`Zwf?SQjI+=1DiAN3YduAhzPg1vppMOW~+tFwJs-rhN7YtY@MpN{1l?Cnuzx(fcu zc;3M(m@+rKB^{vicFn9-8!dRVydzXV!Vf2u5In7>*)nTzs$Pq>X57cyzJ(0q4N>1c$o~oW@Lq7g zZzBHS*#}i=(LFERBb-PUskJ+;uHEUj2z@@dpE!vOJTI^U0C()g27NwvO(?@x{IsFJ z_#|*5D&Kuu5>R#Ifg79zd*_65e1CjAA=HzzOi{u0>m;c7dX{FRQtxzWJd-;nl;P`( z4B$dUP@_9Z4RC)ic(@|P^;=`5VBa}X+t8vrhTn`OC-m-eRJ;3)Se!js){BtS|0JQ; z_;Y%o{~y-=KTx`>)F~Y*T~WHIbYtf1(qD=%7oRO&4srQ@SNwDOzT%OhT0Fm)F1}W{ zF!Ms;$wEEzo5J@CtA$$%2MU)Ib{0wyzwfR5lMoSbUw$h8Z0?@i&ADB?S(;I2 zk~2?d55q};=VebptiN|F>fhxFdav*PmFkiYLs8qeD5n39oT_eva9w{3^WhNIfJcA<1vCyL?7 zilyj7I%lFtU?^q_qALnN4&`@5%O;MlDsX@&&gQ8cTbCqJlXOFqY@AP1Ispy5WAS*- zkczWpN_P!S6h*>=DS;l=MLUuv*bWaS5xj`AE!raoSg6m;FDsE(=cUX4Yl+-WNFgZCIB@ErqDz3LRN3+Z06y z;ta}?61F$7EKODnL$GB@`kL44_;s)hljjBACc47!2-9&iC$3=&0txHYN7<2E8X9Lp zs90XL&;m86k1Pq2Ws1CMSYbOFOCqvrnlj-v2iN97egQ&|@{*?VL=W2qSiEJslA#!2 zb@~2Ke$!FFH9#V~qBz+wJ>)ll`wJ!b`ky3M=QeV5{m12CkSHqJs+{c>0;d zR?zC93}63~#P&%h{s`z`*?_X8iSv*bxiq1>U|dEf)EF?0UR1R^M z(vPN=QaZ)PM@1Ro;=O%NSsRSO3$b6 zOl%~NO^L~DdVgYf%1T~7_4;%&`Qr3b(+?#doIaU)106xxhatcaU?4+8x%_+l#B>u#?-43G4cdZn`m465eA2xuPFiXqQc-f?)$hqoZJ3J5H3bvik_e((yO{{y3UCJzXWncEk&Rlk=%KQ3K zFF13lLF^Lr-;H(m-jVd}Zq@7%wC<(W^1H_Jw+Ot&6)?$~gI}bwN_=DGJ>m93-!t@j z-o7>iY2Jx={S)wJz33F!WxtqA!(NFky6(aZ+8<0xsgk1He1|z*wFpX}OJ7%>*v5hd{2K zW4Y|sdb875u5>u;+mHt}s@vDDP3#tUDtJbf)Sm^%!R@)wp5LsS3toJzAR-0onYZT~ z@^aul0{O9)?;FbpLt>Eotns;Fe86`eWy4Z%Or3BX`e;8lYOJ@v13$6_m5$!$sT%ak@V?j z@XM#rg{nW7pfcjb|ECgz>tFjHFZNCn&IPE{9nz!4(1O!Je*ec!{RD*4`(SJEKS}Ov z?m>wD$Ikzwh_EX|fFZyTUx}c{!3Ao3B PpOk;$c6rzM=LG&A7(2}l diff --git a/SwiftHPKE.doccarchive/js/903.5a8b9c15.js b/SwiftHPKE.doccarchive/js/903.b3710a74.js similarity index 100% rename from SwiftHPKE.doccarchive/js/903.5a8b9c15.js rename to SwiftHPKE.doccarchive/js/903.b3710a74.js diff --git a/SwiftHPKE.doccarchive/js/index.91ed7402.js b/SwiftHPKE.doccarchive/js/index.2871ffbd.js similarity index 99% rename from SwiftHPKE.doccarchive/js/index.91ed7402.js rename to SwiftHPKE.doccarchive/js/index.2871ffbd.js index 217de33..193c00b 100644 --- a/SwiftHPKE.doccarchive/js/index.91ed7402.js +++ b/SwiftHPKE.doccarchive/js/index.2871ffbd.js @@ -6,4 +6,4 @@ * * See https://swift.org/LICENSE.txt for license information * See https://swift.org/CONTRIBUTORS.txt for Swift project authors - */(function(){var e={1970:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=function(){var e=this,t=e._self._c;return t("SVGIcon",{staticClass:"close-icon",attrs:{viewBox:"0 0 14 14",themeId:"close"}},[t("path",{attrs:{d:"M12.73,0l1.27,1.27-5.74,5.73,5.72,5.72-1.27,1.27-5.72-5.72L1.28,13.99,.01,12.72,5.72,7.01,0,1.28,1.27,.01,6.99,5.73,12.73,0Z"}})])},o=[],i=n(3453),a={name:"CloseIcon",components:{SVGIcon:i.Z}},s=a,c=n(1001),l=(0,c.Z)(s,r,o,!1,null,null,null),u=l.exports},8785:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=function(){var e=this,t=e._self._c;return t("SVGIcon",{staticClass:"inline-chevron-right-icon",attrs:{viewBox:"0 0 14 14",themeId:"inline-chevron-right"}},[t("path",{attrs:{d:"M2.964 1.366l0.649-0.76 7.426 6.343-7.423 6.445-0.655-0.755 6.545-5.683-6.542-5.59z"}})])},o=[],i=n(3453),a={name:"InlineChevronRightIcon",components:{SVGIcon:i.Z}},s=a,c=n(1001),l=(0,c.Z)(s,r,o,!1,null,null,null),u=l.exports},3453:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=function(){var e=this,t=e._self._c;return t("svg",{staticClass:"svg-icon",attrs:{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[e.themeOverrideURL?t("use",{attrs:{href:`${e.themeOverrideURL}#${e.themeId}`,width:"100%",height:"100%"}}):e._t("default")],2)},o=[],i=n(9089),a={name:"SVGIcon",props:{themeId:{type:String,required:!1},iconUrl:{type:String,default:null}},computed:{themeOverrideURL:({iconUrl:e,themeId:t})=>e||(0,i.$8)(["theme","icons",t],void 0)}},s=a,c=n(1001),l=(0,c.Z)(s,r,o,!1,null,"979a134a",null),u=l.exports},5670:function(e,t,n){"use strict";n(647);var r=n(144),o=n(7152),i=n(8345),a=function(){var e=this,t=e._self._c;return t("div",{class:{fromkeyboard:e.fromKeyboard,hascustomheader:e.hasCustomHeader},attrs:{id:"app"}},[t("div",{attrs:{id:e.AppTopID}}),e.isTargetIDE?e._e():t("a",{attrs:{href:"#main",id:"skip-nav"}},[e._v(e._s(e.$t("accessibility.skip-navigation")))]),t("InitialLoadingPlaceholder"),e._t("header",(function(){return[e.enablei18n?t("SuggestLang"):e._e(),e.hasCustomHeader?t("custom-header",{attrs:{"data-color-scheme":e.preferredColorScheme}}):e._e()]}),{isTargetIDE:e.isTargetIDE}),t("div",{attrs:{id:e.baseNavStickyAnchorId}}),e._t("default",(function(){return[t("router-view",{staticClass:"router-content"}),e.hasCustomFooter?t("custom-footer",{attrs:{"data-color-scheme":e.preferredColorScheme}}):e.isTargetIDE?e._e():t("Footer",{scopedSlots:e._u([{key:"default",fn:function({className:n}){return[e.enablei18n?t("div",{class:n},[t("LocaleSelector")],1):e._e()]}}])})]}),{isTargetIDE:e.isTargetIDE}),e._t("footer",null,{isTargetIDE:e.isTargetIDE})],2)},s=[],c=n(4030),l=n(9804),u=function(){var e=this,t=e._self._c;return t("footer",{staticClass:"footer"},[t("div",{staticClass:"row"},[t("ColorSchemeToggle")],1),e._t("default",null,{className:"row"})],2)},d=[],m=function(){var e=this,t=e._self._c;return t("fieldset",{staticClass:"color-scheme-toggle",attrs:{role:"radiogroup"}},[t("legend",{staticClass:"visuallyhidden"},[e._v(e._s(e.$t("color-scheme.select")))]),e._l(e.options,(function(n){return t("label",{key:n},[t("input",{attrs:{type:"radio"},domProps:{checked:n==e.preferredColorScheme,value:n},on:{input:e.setPreferredColorScheme}}),t("div",{staticClass:"text"},[e._v(e._s(e.$t(`color-scheme.${n}`)))])])}))],2)},f=[],h={name:"ColorSchemeToggle",data:()=>({appState:c["default"].state}),computed:{options:({supportsAutoColorScheme:e})=>[l.Z.light,l.Z.dark,...e?[l.Z.auto]:[]],preferredColorScheme:({appState:e})=>e.preferredColorScheme,supportsAutoColorScheme:({appState:e})=>e.supportsAutoColorScheme},methods:{setPreferredColorScheme:e=>{c["default"].setPreferredColorScheme(e.target.value)}},watch:{preferredColorScheme:{immediate:!0,handler(e){document.body.dataset.colorScheme=e}}}},p=h,g=n(1001),v=(0,g.Z)(p,m,f,!1,null,"78690df2",null),b=v.exports,w={name:"Footer",components:{ColorSchemeToggle:b}},y=w,S=(0,g.Z)(y,u,d,!1,null,"4e049dbd",null),C=S.exports,_=function(){var e=this,t=e._self._c;return e.loaded?e._e():t("div",{staticClass:"InitialLoadingPlaceholder",attrs:{id:"loading-placeholder"}})},E=[],L={name:"InitialLoadingPlaceholder",data(){return{loaded:!1}},created(){const e=()=>{this.loaded=!0};this.$router.onReady(e,e)}},P=L,A=(0,g.Z)(P,_,E,!1,null,"35c356b6",null),k=A.exports,T=n(1716),j=n(9089);function I(e,t){return e&&"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,t)&&"string"===typeof e[t]}function x(e,t,n,r){if(!t||"object"!==typeof t||r&&(I(t,"light")||I(t,"dark"))){let o=t;if(I(t,r)&&(o=t[r]),"object"===typeof o)return;n[e]=o}else Object.entries(t).forEach((([t,o])=>{const i=[e,t].join("-");x(i,o,n,r)}))}function N(e,t="light"){const n={},r=e||{};return x("-",r,n,t),n}var $=n(2717),O=function(){var e=this,t=e._self._c;return e.displaySuggestLang?t("div",{staticClass:"suggest-lang"},[t("div",{staticClass:"suggest-lang__wrapper"},[t("router-link",{staticClass:"suggest-lang__link",attrs:{to:e.getLocaleParam(e.preferredLocale),lang:e.getCodeForSlug(e.preferredLocale)},nativeOn:{click:function(t){return e.setPreferredLocale(e.preferredLocale)}}},[e._v(e._s(e.$i18n.messages[e.preferredLocale]["view-in"])),t("InlineChevronRightIcon",{staticClass:"icon-inline"})],1),t("div",{staticClass:"suggest-lang__close-icon-wrapper"},[t("button",{staticClass:"suggest-lang__close-icon-button",attrs:{"aria-label":e.$t("continue-viewing")},on:{click:function(t){return e.setPreferredLocale(e.$i18n.locale)}}},[t("CloseIcon",{staticClass:"icon-inline"})],1)])],1)]):e._e()},D=[],Z=n(8785),R=n(1970),q=n(2412),U=n(9030),V={name:"SuggestLang",components:{InlineChevronRightIcon:Z.Z,CloseIcon:R.Z},computed:{preferredLocale:()=>{const e=c["default"].state.preferredLocale;if(e)return e;const t=q.find((e=>{const t=e.code.split("-")[0],n=window.navigator.language.split("-")[0];return n===t}));return t?t.slug:null},displaySuggestLang:({preferredLocale:e,$i18n:t})=>e&&t.locale!==e},methods:{setPreferredLocale:e=>{c["default"].setPreferredLocale(e)},getCodeForSlug:U.dZ,getLocaleParam:U.KP}},B=V,M=(0,g.Z)(B,O,D,!1,null,"768a347b",null),H=M.exports,F=function(){var e=this,t=e._self._c;return t("div",{staticClass:"locale-selector"},[t("select",{attrs:{"aria-label":e.$t("select-language")},domProps:{value:e.$i18n.locale},on:{change:e.updateRouter}},e._l(e.locales,(function({slug:n,name:r,code:o}){return t("option",{key:n,attrs:{lang:o},domProps:{value:n}},[e._v(" "+e._s(r)+" ")])})),0),t("ChevronThickIcon",{staticClass:"icon-inline"})],1)},W=[],J=function(){var e=this,t=e._self._c;return t("SVGIcon",{staticClass:"chevron-thick-icon",attrs:{viewBox:"0 0 14 10.5",themeId:"chevron-thick"}},[t("path",{attrs:{d:"M12.43,0l1.57,1.22L7,10.5,0,1.23,1.58,0,7,7,12.43,0Z"}})])},G=[],K=n(3453),z={name:"ChevronThickIcon",components:{SVGIcon:K.Z}},X=z,Y=(0,g.Z)(X,J,G,!1,null,null,null),Q=Y.exports,ee={name:"LocaleSelector",components:{ChevronThickIcon:Q},methods:{updateRouter({target:{value:e}}){this.$router.push((0,U.KP)(e)),c["default"].setPreferredLocale(e),(0,U.jk)(e,this)}},computed:{availableLocales:()=>c["default"].state.availableLocales,locales:({availableLocales:e})=>q.filter((({code:t})=>e.includes(t)))}},te=ee,ne=(0,g.Z)(te,F,W,!1,null,"d21858a2",null),re=ne.exports,oe={name:"CoreApp",components:{Footer:C,InitialLoadingPlaceholder:k,SuggestLang:H,LocaleSelector:re},provide(){return{isTargetIDE:this.isTargetIDE,performanceMetricsEnabled:"true"==={NODE_ENV:"production",VUE_APP_TITLE:"Documentation",BASE_URL:"{{BASE_PATH}}/"}.VUE_APP_PERFORMANCE_ENABLED}},data(){return{AppTopID:$.$,appState:c["default"].state,fromKeyboard:!1,isTargetIDE:"ide"==={NODE_ENV:"production",VUE_APP_TITLE:"Documentation",BASE_URL:"{{BASE_PATH}}/"}.VUE_APP_TARGET,themeSettings:j.S3,baseNavStickyAnchorId:T.EA}},computed:{currentColorScheme:({appState:e})=>e.systemColorScheme,preferredColorScheme:({appState:e})=>e.preferredColorScheme,availableLocales:({appState:e})=>e.availableLocales,CSSCustomProperties:({currentColorScheme:e,preferredColorScheme:t,themeSettings:n})=>N(n.theme,t===l.Z.auto?e:t),hasCustomHeader:()=>!!window.customElements.get("custom-header"),hasCustomFooter:()=>!!window.customElements.get("custom-footer"),enablei18n:({availableLocales:e})=>(0,j.$8)(["features","docs","i18n","enable"],!1)&&e.length>1},props:{enableThemeSettings:{type:Boolean,default:!0}},watch:{CSSCustomProperties:{immediate:!0,handler(e){this.detachStylesFromRoot(e),this.attachStylesToRoot(e)}}},async created(){window.addEventListener("keydown",this.onKeyDown),this.$bridge.on("navigation",this.handleNavigationRequest),this.enableThemeSettings&&Object.assign(this.themeSettings,await(0,j.Kx)()),window.addEventListener("pageshow",this.syncPreferredColorScheme),this.$once("hook:beforeDestroy",(()=>{window.removeEventListener("pageshow",this.syncPreferredColorScheme)}))},mounted(){(document.querySelector(".footer-current-year")||{}).innerText=(new Date).getFullYear(),this.attachColorSchemeListeners()},beforeDestroy(){this.fromKeyboard?window.removeEventListener("mousedown",this.onMouseDown):window.removeEventListener("keydown",this.onKeyDown),this.$bridge.off("navigation",this.handleNavigationRequest),this.detachStylesFromRoot(this.CSSCustomProperties)},methods:{onKeyDown(){this.fromKeyboard=!0,window.addEventListener("mousedown",this.onMouseDown),window.removeEventListener("keydown",this.onKeyDown)},onMouseDown(){this.fromKeyboard=!1,window.addEventListener("keydown",this.onKeyDown),window.removeEventListener("mousedown",this.onMouseDown)},handleNavigationRequest(e){this.$router.push(e)},attachColorSchemeListeners(){if(!window.matchMedia)return;const e=window.matchMedia("(prefers-color-scheme: dark)");e.addListener(this.onColorSchemePreferenceChange),this.$once("hook:beforeDestroy",(()=>{e.removeListener(this.onColorSchemePreferenceChange)})),this.onColorSchemePreferenceChange(e)},onColorSchemePreferenceChange({matches:e}){const t=e?l.Z.dark:l.Z.light;c["default"].setSystemColorScheme(t)},attachStylesToRoot(e){const t=document.body;Object.entries(e).filter((([,e])=>Boolean(e))).forEach((([e,n])=>{t.style.setProperty(e,n)}))},detachStylesFromRoot(e){const t=document.body;Object.entries(e).forEach((([e])=>{t.style.removeProperty(e)}))},syncPreferredColorScheme(){c["default"].syncPreferredColorScheme()}}},ie=oe,ae=(0,g.Z)(ie,a,s,!1,null,"3742c1d7",null),se=ae.exports;class ce{constructor(){this.$send=()=>{}}send(e){this.$send(e)}}class le{constructor(){const{webkit:{messageHandlers:{bridge:e={}}={}}={}}=window;this.bridge=e;const{postMessage:t=(()=>{})}=e;this.$send=t.bind(e)}send(e){this.$send(e)}}class ue{constructor(e=new ce){this.backend=e,this.listeners={}}send(e){this.backend.send(e)}receive(e){this.emit(e.type,e.data)}emit(e,t){this.listeners[e]&&this.listeners[e].forEach((e=>e(t)))}on(e,t){this.listeners[e]||(this.listeners[e]=new Set),this.listeners[e].add(t)}off(e,t){this.listeners[e]&&this.listeners[e].delete(t)}}var de={install(e,t){let n;n=t.performanceMetricsEnabled||"ide"===t.appTarget?new le:new ce,e.prototype.$bridge=new ue(n)}};function me(e){return`custom-${e}`}function fe(e){return class extends HTMLElement{constructor(){super();const t=this.attachShadow({mode:"open"}),n=e.content.cloneNode(!0);t.appendChild(n)}}}function he(e){const t=me(e),n=document.getElementById(t);n&&window.customElements.define(t,fe(n))}function pe(e,t={names:["header","footer"]}){const{names:n}=t;e.config.ignoredElements=/^custom-/,n.forEach(he)}function ge(e,t){const{value:n=!1}=t;e.style.display=n?"none":""}var ve={hide:ge};function be(e,{performanceMetrics:t=!1}={}){e.config.productionTip=!1,e.use(pe),e.directive("hide",ve.hide),e.use(de,{appTarget:{NODE_ENV:"production",VUE_APP_TITLE:"Documentation",BASE_URL:"{{BASE_PATH}}/"}.VUE_APP_TARGET,performanceMetricsEnabled:t}),window.bridge=e.prototype.$bridge,e.config.performance=t}var we=n(4589),ye=n(5381),Se=n(5657),Ce=n(3208),_e=n(2449);const Ee=10;function Le(e){const{name:t}=e,n=t.includes(we.J_);return n?Ee:0}function Pe(){const{location:e}=window;return e.pathname+e.search+e.hash}function Ae(){const e=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0);return ePromise.all([n.e(523),n.e(843)]).then(n.bind(n,4586))},{path:"/tutorials/:id/*",name:"topic",component:()=>Promise.all([n.e(523),n.e(903),n.e(162)]).then(n.bind(n,8032))},{path:"/documentation/*",name:we.J_,component:()=>Promise.all([n.e(523),n.e(37),n.e(903),n.e(982)]).then(n.bind(n,5840))},{path:"*",name:we.vL,component:Ge},{path:"*",name:we.Rp,component:Be}];const ze=[{pathPrefix:"/:locale?",nameSuffix:"-locale"}];function Xe(e,t=[],n=ze){return n.reduce(((n,r)=>n.concat(e.filter((e=>!t.includes(e.name))).map((e=>({...e,path:r.pathPrefix+e.path,name:e.name+r.nameSuffix}))))),[])}const Ye=[...Ke,...Xe(Ke,[we.vL,we.Rp])];function Qe(e={}){const t=new i.Z({mode:"history",base:j.FH,scrollBehavior:ke,...e,routes:e.routes||Ye});return t.onReady((()=>{"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"),Te()})),"ide"!=={NODE_ENV:"production",VUE_APP_TITLE:"Documentation",BASE_URL:"{{BASE_PATH}}/"}.VUE_APP_TARGET&&t.onError((e=>{const{route:n={path:"/"}}=e;t.replace({name:"server-error",params:[n.path]})})),window.addEventListener("unload",je),t}var et=n(5559);function tt(e=et){const{defaultLocale:t,messages:n,dateTimeFormats:r={}}=e,i=new o.Z({dateTimeFormats:r,locale:t,fallbackLocale:t,messages:n});return i}r["default"].use(be),r["default"].use(i.Z),r["default"].use(o.Z),new r["default"]({router:Qe(),render:e=>e(se),i18n:tt()}).$mount("#app")},2717:function(e,t,n){"use strict";n.d(t,{$:function(){return r}});const r="app-top"},9804:function(e,t){"use strict";t["Z"]={auto:"auto",dark:"dark",light:"light"}},1265:function(e,t){"use strict";t["Z"]={eager:"eager",lazy:"lazy"}},1716:function(e,t,n){"use strict";n.d(t,{EA:function(){return i},L$:function(){return o},MenuLinkModifierClasses:function(){return s},RS:function(){return r},Yj:function(){return a}});const r=52,o=48,i="nav-sticky-anchor",a="nav-open-navigator",s={noClose:"noclose"}},4589:function(e,t,n){"use strict";n.d(t,{J_:function(){return i},Rp:function(){return o},vL:function(){return r}});const r="not-found",o="server-error",i="documentation-topic"},5559:function(e,t,n){"use strict";n.r(t),n.d(t,{defaultLocale:function(){return a},messages:function(){return s}});var r=JSON.parse('{"view-in":"View in English","continue-viewing":"Continue viewing in English","language":"Language","video":{"replay":"Replay","play":"Play","pause":"Pause","watch":"Watch intro video"},"tutorials":{"title":"Tutorial | Tutorials","step":"Step {number}","submit":"Submit","next":"Next","preview":{"title":"No Preview | Preview | Previews","no-preview-available-step":"No preview available for this step."},"nav":{"chapters":"Chapters","current":"Current {thing}"},"assessment":{"check-your-understanding":"Check Your Understanding","success-message":"Great job, you\'ve answered all the questions for this tutorial.","answer-result":"Answer {answer} is {result}","correct":"correct","incorrect":"incorrect","next-question":"Next question","legend":"Possible answers"},"project-files":"Project files","estimated-time":"Estimated Time","sections":{"chapter":"Chapter {number}"},"question-of":"Question {index} of {total}","section-of":"{number} of {total}","overriding-title":"{newTitle} with {title}","time":{"format":"{number} {minutes}","minutes":{"full":"minute | minutes | {count} minutes","short":"min | mins"},"hours":{"full":"hour | hours"}}},"documentation":{"title":"Documentation","nav":{"breadcrumbs":"Breadcrumbs","menu":"Menu","open-menu":"Open Menu","close-menu":"Close Menu"},"current-page":"Current page is {title}","card":{"learn-more":"Learn More","read-article":"Read article","start-tutorial":"Start tutorial","view-api":"View API collection","view-symbol":"View symbol","view-sample-code":"View sample code"},"view-more":"View more"},"aside-kind":{"beta":"Beta","experiment":"Experiment","important":"Important","note":"Note","tip":"Tip","warning":"Warning","deprecated":"Deprecated"},"change-type":{"added":"Added","modified":"Modified","deprecated":"Deprecated"},"verbs":{"hide":"Hide","show":"Show","close":"Close"},"sections":{"title":"Section {number}","on-this-page":"On this page","topics":"Topics","default-implementations":"Default Implementations","relationships":"Relationships","see-also":"See Also","declaration":"Declaration","details":"Details","parameters":"Parameters","possible-values":"Possible Values","parts":"Parts","availability":"Availability","resources":"Resources"},"metadata":{"details":{"name":"Name","key":"Key","type":"Type"},"beta":{"legal":"This documentation refers to beta software and may be changed.","software":"Beta Software"},"default-implementation":"Default implementation provided. | Default implementations provided."},"availability":{"introduced-and-deprecated":"Introduced in {name} {introducedAt} and deprecated in {name} {deprecatedAt}","available-on":"Available on {name} {introducedAt} and later"},"more":"More","less":"Less","api-reference":"API Reference","filter":{"title":"Filter","search-symbols":"Search symbols in {technology}","suggested-tags":"Suggested tag | Suggested tags","selected-tags":"Selected tag | Selected tags","add-tag":"Add tag","tag-select-remove":"Tag. Select to remove from list.","navigate":"To navigate the symbols, press Up Arrow, Down Arrow, Left Arrow or Right Arrow","siblings-label":"{number-siblings} of {total-siblings} symbols inside {parent-siblings}","parent-label":"{number-siblings} of {total-siblings} symbols inside {parent-siblings} containing one symbol | {number-siblings} of {total-siblings} symbols inside {parent-siblings} containing {number-parent} symbols","reset-filter":"Reset Filter"},"navigator":{"title":"Documentation Navigator","open-navigator":"Open Documentation Navigator","close-navigator":"Close Documentation Navigator","no-results":"No results found.","no-children":"No data available.","error-fetching":"There was an error fetching the data.","items-found":"No items were found | 1 item was found | {number} items were found. Tab back to navigate through them.","navigator-is":"Navigator is {state}","state":{"loading":"loading","ready":"ready"},"tags":{"hide-deprecated":"Hide Deprecated"}},"tab":{"request":"Request","response":"Response"},"required":"Required","parameters":{"default":"Default","minimum":"Minimum","maximum":"Maximum","possible-types":"Type | Possible types","possible-values":"Value | Possible Values"},"content-type":"Content-Type: {value}","read-only":"Read-only","error":{"unknown":"An unknown error occurred.","image":"Image failed to load","not-found":"The page you\'re looking for can\'t be found."},"color-scheme":{"select":"Select a color scheme preference","auto":"Auto","dark":"Dark","light":"Light"},"accessibility":{"strike":{"start":"start of stricken text","end":"end of stricken text"},"code":{"start":"start of code block","end":"end of code block"},"skip-navigation":"Skip Navigation","in-page-link":"in page link"},"select-language":"Select the language for this page","icons":{"clear":"Clear","web-service-endpoint":"Web Service Endpoint","search":"Search"},"formats":{"parenthesis":"({content})","colon":"{content}: "},"quicknav":{"button":{"label":"Open Quick Navigation","title":"Click or type / for quick navigation"},"preview-unavailable":"Preview unavailable"}}'),o=JSON.parse('{"view-in":"以中文查看","continue-viewing":"继续以中文查看","language":"语言","video":{"replay":"重新播放","play":"播放","pause":"暂停","watch":"观看介绍视频"},"tutorials":{"title":"教程","step":"第 {number} 步","submit":"提交","next":"下一步","preview":{"title":"无预览 | 预览","no-preview-available-step":"这一步没有预览。"},"nav":{"chapters":"章节","current":"当前{thing}"},"assessment":{"check-your-understanding":"检查你的理解程度","success-message":"很棒,你回答了此教程的所有问题。","answer-number-is":"第 {index} 个答案","correct":"正确","incorrect":"错误","next-question":"下一个问题"},"project-files":"项目文件","estimated-time":"预计时间","sections":{"chapter":"第 {number} 章"},"question-of":"第 {index} 个问题(共 {total} 个)","section-of":"{number}/{total}","overriding-title":"{newTitle}{title}","time":{"format":"{number} {minutes}","minutes":{"full":"分钟 | {count} 分钟","short":"分钟"},"hours":{"full":"小时"}}},"documentation":{"title":"文档","nav":{"breadcrumbs":"面包屑导航","menu":"菜单","open-menu":"打开菜单","close-menu":"关闭菜单"},"current-page":"当前页面为:{title}","card":{"learn-more":"进一步了解","read-article":"阅读文章","start-tutorial":"开始教程","view-api":"查看 API 集合","view-symbol":"查看符号","view-sample-code":"查看示例代码"}},"aside-kind":{"beta":"Beta 版","experiment":"试验","important":"重要事项","note":"注","tip":"提示","warning":"警告","deprecated":"已弃用"},"change-type":{"added":"已添加","modified":"已修改","deprecated":"已弃用"},"verbs":{"hide":"隐藏","show":"显示","close":"关闭"},"sections":{"title":"第 {number} 部分","on-this-page":"在此页面上","topics":"主题","default-implementations":"默认实现","relationships":"关系","see-also":"另请参阅","declaration":"声明","details":"详细信息","parameters":"参数","possible-values":"可能值","parts":"部件","availability":"可用性","resources":"资源"},"metadata":{"details":{"name":"名称","key":"密钥","type":"类型"},"beta":{"legal":"此文档涉及 Beta 版软件且可能会改动。","software":"Beta 版软件"},"default-implementation":"提供默认实现。| 提供默认实现方法。"},"availability":{"introduced-and-deprecated":"{name} {introducedAt} 中引入,{name} {deprecatedAt} 中弃用","available-on":"{name} {introducedAt} 及更高版本中可用"},"more":"更多","less":"更少","api-reference":"API 参考","filter":{"title":"过滤","search-symbols":"在 {technology} 搜索符号","suggested-tags":"建议标签","selected-tags":"所选标签","add-tag":"添加标签","tag-select-remove":"标签。选择以从列表中移除。","navigate":"若要导航符号,请按下上箭头、下箭头、左箭头或右箭头。","siblings-label":"{parent-siblings} 内含 {number-siblings} 个符号(共 {total-siblings} 个)","parent-label":"{parent-siblings} 内含 {number-siblings} 个符号(共 {total-siblings} 个)包含一个符号 | {parent-siblings} 内含 {number-siblings} 个符号(共 {total-siblings} 个)包含 {number-parent} 个符号","reset-filter":"还原过滤条件"},"navigator":{"title":"文档导航器","open-navigator":"打开文档导航器","close-navigator":"关闭文档导航器","no-results":"未找到结果。","no-children":"无可用数据。","error-fetching":"获取数据时出错。","items-found":"未找到任何项目 | 找到 1 个项目 | 找到 {number} 个项目。按下 Tab 键导航。","navigator-is":"导航器{state}","state":{"loading":"正在载入","ready":"准备就绪"},"tags":{"hide-deprecated":"隐藏已弃用"}},"tab":{"request":"请求","response":"回复"},"required":"必需","parameters":{"default":"默认","minimum":"最小值","maximum":"最大值","possible-types":"类型 | 可能类型","possible-values":"值 | 可能值"},"content-type":"内容类型:{value}","read-only":"只读","error":{"unknown":"出现未知错误。","image":"图像无法载入"},"color-scheme":{"select":"选择首选颜色方案","auto":"自动","dark":"深色","light":"浅色"},"accessibility":{"strike":{"start":"删除线文本开始","end":"删除线文本结束"},"code":{"start":"代码块开头","end":"代码块结尾"},"skip-navigation":"跳过导航"},"select-language":"选择此页面的语言","icons":{"clear":"清除","web-service-endpoint":"网络服务端点","search":"搜索"},"formats":{"parenthesis":"({content})","colon":"{content}: "},"quicknav":{"button":{"label":"打开快速导航","title":"点按或键入 / 进行快速导航"}}}'),i=JSON.parse('{"view-in":"日本語で表示","continue-viewing":"日本語で表示を続ける","language":"言語","video":{"replay":"リプレイ","play":"再生","pause":"一時停止","watch":"概要のビデオを観る"},"tutorials":{"title":"チュートリアル | チュートリアル","step":"手順{number}","submit":"送信","next":"次へ","preview":{"title":"プレビューなし | プレビュー | プレビュー","no-preview-available-step":"この手順では利用可能なプレビューがありません。"},"nav":{"chapters":"章","current":"現在の{thing}"},"assessment":{"check-your-understanding":"理解度を確認する","success-message":"よくできました。このチュートリアルの問題にすべて回答しました。","answer-number-is":"問題番号{index}は","correct":"正解です","incorrect":"不正解です","next-question":"次の問題"},"project-files":"プロジェクトファイル","estimated-time":"予測時間","sections":{"chapter":"{number}章"},"question-of":"{total}問中の{index}問","section-of":"{total}件中の{number}件","overriding-title":"{title}の{newTitle}","time":{"format":"{number} {minutes}","minutes":{"full":"分 | 分 | {count}分","short":"分 | 分"},"hours":{"full":"時間 | 時間"}}},"documentation":{"title":"ドキュメント","nav":{"breadcrumbs":"パンくずリスト","menu":"メニュー","open-menu":"メニューを開く","close-menu":"メニューを閉じる"},"current-page":"現在のページは{title}です","card":{"learn-more":"詳しい情報","read-article":"記事を読む","start-tutorial":"チュートリアルを開始","view-api":"APIのコレクションを表示","view-symbol":"記号を表示","view-sample-code":"サンプルコードを表示"}},"aside-kind":{"beta":"ベータ版","experiment":"試験運用版","important":"重要","note":"注意","tip":"ヒント","warning":"警告","deprecated":"非推奨"},"change-type":{"added":"追加","modified":"変更","deprecated":"非推奨"},"verbs":{"hide":"非表示","show":"表示","close":"閉じる"},"sections":{"title":"セクション{number}","on-this-page":"このページの内容","topics":"トピック","default-implementations":"デフォルト実装","relationships":"関連項目","see-also":"参照","declaration":"宣言","details":"詳細","parameters":"パラメータ","possible-values":"使用できる値","parts":"パーツ","availability":"利用可能","resources":"リソース"},"metadata":{"details":{"name":"名前","key":"キー","type":"タイプ"},"beta":{"legal":"このドキュメントはベータ版のソフトウェアのもので、変更される可能性があります。","software":"ベータ版ソフトウェア"},"default-implementation":"デフォルト実装あり。| デフォルト実装あり。"},"availability":{"introduced-and-deprecated":"{name} {introducedAt}で導入され、{name} {deprecatedAt}で非推奨になりました","available-on":"{name} {introducedAt}以降で使用できます"},"more":"さらに表示","less":"表示を減らす","api-reference":"APIリファレンス","filter":{"title":"フィルタ","search-symbols":"{technology}でシンボルを検索","suggested-tags":"提案されたタグ | 提案されたタグ","selected-tags":"選択したタグ | 選択したタグ","add-tag":"タグを追加","tag-select-remove":"タグ。選択してリストから削除します。","navigate":"シンボルを移動するには、上下左右の矢印キーを押します。","siblings-label":"{total-siblings}個中{number-siblings}個のシンボルが{parent-siblings}の中にあります","parent-label":"{total-siblings}個中{number-siblings}個のシンボルが1個のシンボルを含む{parent-siblings}の中にあります | {total-siblings}個中{number-siblings}個のシンボルが{number-parent}個のシンボルを含む{parent-siblings}の中にあります","reset-filter":"フィルタをリセット"},"navigator":{"title":"ドキュメントナビゲータ","open-navigator":"ドキュメントナビゲータを開く","close-navigator":"ドキュメントナビゲータを閉じる","no-results":"結果が見つかりません。","no-children":"使用できるデータがありません。","error-fetching":"データを取得する際にエラーが起きました。","items-found":"項目が見つかりません | 1個の項目が見つかりました | {number}個の項目が見つかりましたTabキーを押すと項目をナビゲートできます。","navigator-is":"ナビゲータは{state}です","state":{"loading":"読み込み中","ready":"準備完了"},"tags":{"hide-deprecated":"非推奨の項目を非表示"}},"tab":{"request":"リクエスト","response":"レスポンス"},"required":"必須","parameters":{"default":"デフォルト","minimum":"最小","maximum":"最大","possible-types":"タイプ | 使用できるタイプ","possible-values":"値 | 使用できる値"},"content-type":"Content-Type: {value}","read-only":"読み出し専用","error":{"unknown":"原因不明のエラーが起きました。","image":"イメージを読み込めませんでした"},"color-scheme":{"select":"カラースキーム環境設定を選択","auto":"自動","dark":"ダーク","light":"ライト"},"accessibility":{"strike":{"start":"取り消し線テキストの開始","end":"取り消し線テキストの終了"},"code":{"start":"コードブロックの開始","end":"コードブロックの終了"},"skip-navigation":"ナビゲーションをスキップ"},"select-language":"このページの言語を選択","icons":{"clear":"消去","web-service-endpoint":"Webサービスのエンドポイント","search":"検索"},"formats":{"parenthesis":"({content})","colon":"{content}: "},"quicknav":{"button":{"label":"クイックナビゲーションを開く","title":"クリックするか「/」を入力すると素早く移動します"}}}');const a="en-US",s={"en-US":r,"zh-CN":o,"ja-JP":i}},4030:function(e,t,n){"use strict";var r=n(9804),o=n(1265),i=n(5394),a=n(2412);const s="undefined"!==typeof window.matchMedia&&[r.Z.light,r.Z.dark,"no-preference"].some((e=>window.matchMedia(`(prefers-color-scheme: ${e})`).matches)),c=s?r.Z.auto:r.Z.light;t["default"]={state:{imageLoadingStrategy:"ide"==={NODE_ENV:"production",VUE_APP_TITLE:"Documentation",BASE_URL:"{{BASE_PATH}}/"}.VUE_APP_TARGET?o.Z.eager:o.Z.lazy,preferredColorScheme:i.Z.preferredColorScheme||c,preferredLocale:i.Z.preferredLocale,supportsAutoColorScheme:s,systemColorScheme:r.Z.light,availableLocales:[]},reset(){this.state.imageLoadingStrategy="ide"==={NODE_ENV:"production",VUE_APP_TITLE:"Documentation",BASE_URL:"{{BASE_PATH}}/"}.VUE_APP_TARGET?o.Z.eager:o.Z.lazy,this.state.preferredColorScheme=i.Z.preferredColorScheme||c,this.state.supportsAutoColorScheme=s,this.state.systemColorScheme=r.Z.light},setImageLoadingStrategy(e){this.state.imageLoadingStrategy=e},setPreferredColorScheme(e){this.state.preferredColorScheme=e,i.Z.preferredColorScheme=e},setAllLocalesAreAvailable(){const e=a.map((e=>e.code));this.state.availableLocales=e},setAvailableLocales(e=[]){this.state.availableLocales=e},setPreferredLocale(e){this.state.preferredLocale=e,i.Z.preferredLocale=this.state.preferredLocale},setSystemColorScheme(e){this.state.systemColorScheme=e},syncPreferredColorScheme(){i.Z.preferredColorScheme&&i.Z.preferredColorScheme!==this.state.preferredColorScheme&&(this.state.preferredColorScheme=i.Z.preferredColorScheme)}}},5947:function(e,t,n){"use strict";function r(e){return e.reduce(((e,t)=>(t.traits.includes("dark")?e.dark.push(t):e.light.push(t),e)),{light:[],dark:[]})}function o(e){const t=["1x","2x","3x"];return t.reduce(((t,n)=>{const r=e.find((e=>e.traits.includes(n)));return r?t.concat({density:n,src:r.url,size:r.size}):t}),[])}function i(e){const t="/",n=new RegExp(`${t}+`,"g");return e.join(t).replace(n,t)}function a(e){const{baseUrl:t}=window,n=Array.isArray(e)?i(e):e;return n&&"string"===typeof n&&!n.startsWith(t)&&n.startsWith("/")?i([t,n]):n}function s(e){return e?e.startsWith("/")?e:`/${e}`:e}function c(e){return e?`url('${a(e)}')`:void 0}function l(e){return new Promise(((t,n)=>{const r=new Image;r.src=e,r.onerror=n,r.onload=()=>t({width:r.width,height:r.height})}))}n.d(t,{AH:function(){return a},Jf:function(){return s},RY:function(){return l},T8:function(){return d},XV:function(){return r},eZ:function(){return c},u:function(){return o}});const u={landscape:"landscape",portrait:"portrait",square:"square"};function d(e,t){return e&&t?et?u.landscape:u.square:null}},5381:function(e,t,n){"use strict";n.d(t,{L3:function(){return r},fr:function(){return s},kB:function(){return i},lU:function(){return o}});const r={large:"large",medium:"medium",small:"small"},o={default:"default",nav:"nav"},i={[o.default]:{[r.large]:{minWidth:1069,contentWidth:980},[r.medium]:{minWidth:736,maxWidth:1068,contentWidth:692},[r.small]:{minWidth:320,maxWidth:735,contentWidth:280}},[o.nav]:{[r.large]:{minWidth:1024},[r.medium]:{minWidth:768,maxWidth:1023},[r.small]:{minWidth:320,maxWidth:767}}},a={[r.small]:0,[r.medium]:1,[r.large]:2};function s(e,t){return a[e]>a[t]}},9030:function(e,t,n){"use strict";n.d(t,{KP:function(){return l},dZ:function(){return s},jk:function(){return u}});var r=n(2412),o=n(5559),i=n(3465);const a=r.reduce(((e,t)=>({...e,[t.slug]:t.code})),{});function s(e){return a[e]}function c(e){return!!a[e]}function l(e){return{params:{locale:e===o.defaultLocale?void 0:e}}}function u(e=o.defaultLocale,t={}){if(!c(e))return;t.$i18n.locale=e;const n=s(e);(0,i.e)(n)}},5657:function(e,t,n){"use strict";function r(e){let t=null,n=e-1;const r=new Promise((e=>{t=e}));return requestAnimationFrame((function e(){n-=1,n<=0?t():requestAnimationFrame(e)})),r}function o(e){return new Promise((t=>{setTimeout(t,e)}))}n.d(t,{J:function(){return r},X:function(){return o}})},3465:function(e,t,n){"use strict";n.d(t,{X:function(){return u},e:function(){return d}});var r=n(9089),o=n(2449);const i=(0,r.$8)(["meta","title"],"Documentation"),a=({title:e,description:t,url:n,currentLocale:r})=>[{name:"description",content:t},{property:"og:locale",content:r},{property:"og:site_name",content:i},{property:"og:type",content:"website"},{property:"og:title",content:e},{property:"og:description",content:t},{property:"og:url",content:n},{property:"og:image",content:(0,o.HH)("/developer-og.jpg")},{name:"twitter:image",content:(0,o.HH)("/developer-og-twitter.jpg")},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:description",content:t},{name:"twitter:title",content:e},{name:"twitter:url",content:n}],s=e=>[e,i].filter(Boolean).join(" | "),c=e=>{const{content:t}=e,n=e.property?"property":"name",r=e[n],o=document.querySelector(`meta[${n}="${r}"]`);if(o&&t)o.setAttribute("content",t);else if(o&&!t)o.remove();else if(t){const t=document.createElement("meta");t.setAttribute(n,e[n]),t.setAttribute("content",e.content),document.getElementsByTagName("head")[0].appendChild(t)}},l=e=>{document.title=e};function u({title:e,description:t,url:n,currentLocale:r}){const o=s(e);l(o),a({title:o,description:t,url:n,currentLocale:r}).forEach((e=>c(e)))}function d(e){document.querySelector("html").setAttribute("lang",e)}},5394:function(e,t,n){"use strict";var r=n(7247);const o={preferredColorScheme:"developer.setting.preferredColorScheme",preferredLocale:"developer.setting.preferredLocale",preferredLanguage:"docs.setting.preferredLanguage"},i={preferredColorScheme:"docs.setting.preferredColorScheme"};t["Z"]=Object.defineProperties({},Object.keys(o).reduce(((e,t)=>({...e,[t]:{get:()=>{const e=i[t],n=r.mr.getItem(o[t]);return e?n||r.mr.getItem(e):n},set:e=>r.mr.setItem(o[t],e)}})),{}))},7247:function(e,t,n){"use strict";n.d(t,{mr:function(){return a},tO:function(){return c},y7:function(){return l}});const r="developer.setting.";function o(e=localStorage){return{getItem:t=>{try{return e.getItem(t)}catch(n){return null}},setItem:(t,n)=>{try{e.setItem(t,n)}catch(r){}},removeItem:t=>{try{e.removeItem(t)}catch(n){}}}}function i(e){return{get:(t,n)=>{const o=JSON.parse(e.getItem(r+t));return null!==o?o:n},set:(t,n)=>e.setItem(r+t,JSON.stringify(n)),remove:t=>e.removeItem(r+t)}}const a=o(window.localStorage),s=o(window.sessionStorage),c=i(a),l=i(s)},3208:function(e,t,n){"use strict";n.d(t,{HA:function(){return a},RL:function(){return u},Xv:function(){return s},ZQ:function(){return d},hr:function(){return l},id:function(){return m},sj:function(){return c}});n(8269);const r=/(?:\s+|[`"<>])/g,o=/^-+/,i=/["'&<>]/g;function a(e){return e.trim().replace(r,"-").replace(o,"").toLowerCase()}function s(e){const t=e=>({'"':""","'":"'","&":"&","<":"<",">":">"}[e]||e);return e.replace(i,t)}function c(e){return e.replace(/#(.*)/,((e,t)=>`#${CSS.escape(t)}`))}function l(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function u(e){let t,n;const r="\\s*",o=" ",i=e.trim(),a=i.length;if(!a)return o;const s=[];for(t=0;te.json())).catch((()=>({})))}const c=(e,t)=>r(i,e,t)},2449:function(e,t,n){"use strict";n.d(t,{Lp:function(){return s},Q2:function(){return a},WN:function(){return c},Ex:function(){return i},HH:function(){return l}});var r=n(5947),o={input:"input",tags:"tags"};function i(e={}){return Object.entries(e).reduce(((e,[t,n])=>n?e.concat(`${encodeURIComponent(t)}=${encodeURIComponent(n)}`):e),[]).join("&")}function a(e,{changes:t,language:n,context:r}={}){const[o,a]=e.split("#"),s=o.match(/\?.*/),c=i({changes:t,language:n,context:r}),l=s?"&":"?",u=a?o:e,d=c?`${l}${c}`:"",m=a?`#${a}`:"";return`${u}${d}${m}`}function s(e,t){const{query:{changes:n,[o.input]:r,[o.tags]:i,...a}={}}=e,{query:{changes:s,[o.input]:c,[o.tags]:l,...u}={}}=t;return e.name===t.name&&JSON.stringify({path:e.path,query:a})===JSON.stringify({path:t.path,query:u})}function c(e,t=window.location.href){return new URL((0,r.AH)(e),t)}function l(e,t){return c(e,t).href}},647:function(e,t,n){n.p=window.baseUrl},2412:function(e){"use strict";e.exports=JSON.parse('[{"code":"en-US","name":"English","slug":"en-US"},{"code":"zh-CN","name":"简体中文","slug":"zh-CN"},{"code":"ja-JP","name":"日本語","slug":"ja-JP"}]')}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.m=e,function(){var e=[];n.O=function(t,r,o,i){if(!r){var a=1/0;for(u=0;u=i)&&Object.keys(n.O).every((function(e){return n.O[e](r[c])}))?r.splice(c--,1):(s=!1,i0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[r,o,i]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){a[e]=function(){return r[e]}}));return a["default"]=function(){return r},n.d(i,a),i}}(),function(){n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))}}(),function(){n.u=function(e){return"js/"+({82:"highlight-js-json-js",113:"highlight-js-markdown-js",133:"highlight-js-llvm-js",162:"topic",176:"highlight-js-shell-js",213:"highlight-js-diff-js",217:"highlight-js-custom-swift",392:"highlight-js-scss-js",393:"highlight-js-bash-js",435:"highlight-js-python-js",490:"highlight-js-xml-js",527:"highlight-js-swift-js",546:"highlight-js-c-js",596:"highlight-js-php-js",621:"highlight-js-cpp-js",623:"highlight-js-ruby-js",637:"highlight-js-objectivec-js",642:"highlight-js-custom-markdown",645:"highlight-js-perl-js",788:"highlight-js-java-js",814:"highlight-js-javascript-js",843:"tutorials-overview",864:"highlight-js-css-js",878:"highlight-js-http-js",982:"documentation-topic"}[e]||e)+"."+{37:"3cabdf6d",82:"2a1856ba",113:"a2f456af",133:"26121771",162:"2687cdff",176:"0ad5b20f",213:"4db9a783",217:"738731d1",337:"274a8ccc",392:"adcd11a2",393:"702f0c5c",435:"60354774",490:"0d78f903",523:"3af1b2ef",527:"bdd5bff5",546:"063069d3",596:"c458ffa4",621:"458a9ae4",623:"7272231f",637:"74dea052",642:"78c9f6ed",645:"da6eda82",675:"1d13263d",788:"4fe21e94",814:"dfc9d16d",843:"2eff1231",864:"bfc4251f",878:"f78e83c2",903:"5a8b9c15",982:"f9ef3692"}[e]+".js"}}(),function(){n.miniCssF=function(e){return"css/"+({162:"topic",843:"tutorials-overview",982:"documentation-topic"}[e]||e)+"."+{162:"672a9049",523:"e9a069b0",675:"40c3bcb2",843:"6eb589ed",982:"b186e79f"}[e]+".css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="swift-docc-render:";n.l=function(r,o,i,a){if(e[r])e[r].push(o);else{var s,c;if(void 0!==i)for(var l=document.getElementsByTagName("script"),u=0;ue||(0,i.$8)(["theme","icons",t],void 0)}},s=a,c=n(1001),l=(0,c.Z)(s,r,o,!1,null,"979a134a",null),u=l.exports},5670:function(e,t,n){"use strict";n(647);var r=n(144),o=n(7152),i=n(8345),a=function(){var e=this,t=e._self._c;return t("div",{class:{fromkeyboard:e.fromKeyboard,hascustomheader:e.hasCustomHeader},attrs:{id:"app"}},[t("div",{attrs:{id:e.AppTopID}}),e.isTargetIDE?e._e():t("a",{attrs:{href:"#main",id:"skip-nav"}},[e._v(e._s(e.$t("accessibility.skip-navigation")))]),t("InitialLoadingPlaceholder"),e._t("header",(function(){return[e.enablei18n?t("SuggestLang"):e._e(),e.hasCustomHeader?t("custom-header",{attrs:{"data-color-scheme":e.preferredColorScheme}}):e._e()]}),{isTargetIDE:e.isTargetIDE}),t("div",{attrs:{id:e.baseNavStickyAnchorId}}),e._t("default",(function(){return[t("router-view",{staticClass:"router-content"}),e.hasCustomFooter?t("custom-footer",{attrs:{"data-color-scheme":e.preferredColorScheme}}):e.isTargetIDE?e._e():t("Footer",{scopedSlots:e._u([{key:"default",fn:function({className:n}){return[e.enablei18n?t("div",{class:n},[t("LocaleSelector")],1):e._e()]}}])})]}),{isTargetIDE:e.isTargetIDE}),e._t("footer",null,{isTargetIDE:e.isTargetIDE})],2)},s=[],c=n(4030),l=n(9804),u=function(){var e=this,t=e._self._c;return t("footer",{staticClass:"footer"},[t("div",{staticClass:"row"},[t("ColorSchemeToggle")],1),e._t("default",null,{className:"row"})],2)},d=[],m=function(){var e=this,t=e._self._c;return t("fieldset",{staticClass:"color-scheme-toggle",attrs:{role:"radiogroup"}},[t("legend",{staticClass:"visuallyhidden"},[e._v(e._s(e.$t("color-scheme.select")))]),e._l(e.options,(function(n){return t("label",{key:n},[t("input",{attrs:{type:"radio"},domProps:{checked:n==e.preferredColorScheme,value:n},on:{input:e.setPreferredColorScheme}}),t("div",{staticClass:"text"},[e._v(e._s(e.$t(`color-scheme.${n}`)))])])}))],2)},f=[],h={name:"ColorSchemeToggle",data:()=>({appState:c["default"].state}),computed:{options:({supportsAutoColorScheme:e})=>[l.Z.light,l.Z.dark,...e?[l.Z.auto]:[]],preferredColorScheme:({appState:e})=>e.preferredColorScheme,supportsAutoColorScheme:({appState:e})=>e.supportsAutoColorScheme},methods:{setPreferredColorScheme:e=>{c["default"].setPreferredColorScheme(e.target.value)}},watch:{preferredColorScheme:{immediate:!0,handler(e){document.body.dataset.colorScheme=e}}}},p=h,g=n(1001),v=(0,g.Z)(p,m,f,!1,null,"78690df2",null),b=v.exports,w={name:"Footer",components:{ColorSchemeToggle:b}},y=w,S=(0,g.Z)(y,u,d,!1,null,"4e049dbd",null),C=S.exports,_=function(){var e=this,t=e._self._c;return e.loaded?e._e():t("div",{staticClass:"InitialLoadingPlaceholder",attrs:{id:"loading-placeholder"}})},E=[],L={name:"InitialLoadingPlaceholder",data(){return{loaded:!1}},created(){const e=()=>{this.loaded=!0};this.$router.onReady(e,e)}},P=L,A=(0,g.Z)(P,_,E,!1,null,"35c356b6",null),k=A.exports,T=n(1716),j=n(9089);function I(e,t){return e&&"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,t)&&"string"===typeof e[t]}function x(e,t,n,r){if(!t||"object"!==typeof t||r&&(I(t,"light")||I(t,"dark"))){let o=t;if(I(t,r)&&(o=t[r]),"object"===typeof o)return;n[e]=o}else Object.entries(t).forEach((([t,o])=>{const i=[e,t].join("-");x(i,o,n,r)}))}function N(e,t="light"){const n={},r=e||{};return x("-",r,n,t),n}var $=n(2717),O=function(){var e=this,t=e._self._c;return e.displaySuggestLang?t("div",{staticClass:"suggest-lang"},[t("div",{staticClass:"suggest-lang__wrapper"},[t("router-link",{staticClass:"suggest-lang__link",attrs:{to:e.getLocaleParam(e.preferredLocale),lang:e.getCodeForSlug(e.preferredLocale)},nativeOn:{click:function(t){return e.setPreferredLocale(e.preferredLocale)}}},[e._v(e._s(e.$i18n.messages[e.preferredLocale]["view-in"])),t("InlineChevronRightIcon",{staticClass:"icon-inline"})],1),t("div",{staticClass:"suggest-lang__close-icon-wrapper"},[t("button",{staticClass:"suggest-lang__close-icon-button",attrs:{"aria-label":e.$t("continue-viewing")},on:{click:function(t){return e.setPreferredLocale(e.$i18n.locale)}}},[t("CloseIcon",{staticClass:"icon-inline"})],1)])],1)]):e._e()},D=[],Z=n(8785),R=n(1970),q=n(2412),U=n(9030),V={name:"SuggestLang",components:{InlineChevronRightIcon:Z.Z,CloseIcon:R.Z},computed:{preferredLocale:()=>{const e=c["default"].state.preferredLocale;if(e)return e;const t=q.find((e=>{const t=e.code.split("-")[0],n=window.navigator.language.split("-")[0];return n===t}));return t?t.slug:null},displaySuggestLang:({preferredLocale:e,$i18n:t})=>e&&t.locale!==e},methods:{setPreferredLocale:e=>{c["default"].setPreferredLocale(e)},getCodeForSlug:U.dZ,getLocaleParam:U.KP}},B=V,M=(0,g.Z)(B,O,D,!1,null,"768a347b",null),H=M.exports,F=function(){var e=this,t=e._self._c;return t("div",{staticClass:"locale-selector"},[t("select",{attrs:{"aria-label":e.$t("select-language")},domProps:{value:e.$i18n.locale},on:{change:e.updateRouter}},e._l(e.locales,(function({slug:n,name:r,code:o}){return t("option",{key:n,attrs:{lang:o},domProps:{value:n}},[e._v(" "+e._s(r)+" ")])})),0),t("ChevronThickIcon",{staticClass:"icon-inline"})],1)},W=[],J=function(){var e=this,t=e._self._c;return t("SVGIcon",{staticClass:"chevron-thick-icon",attrs:{viewBox:"0 0 14 10.5",themeId:"chevron-thick"}},[t("path",{attrs:{d:"M12.43,0l1.57,1.22L7,10.5,0,1.23,1.58,0,7,7,12.43,0Z"}})])},G=[],K=n(3453),z={name:"ChevronThickIcon",components:{SVGIcon:K.Z}},X=z,Y=(0,g.Z)(X,J,G,!1,null,null,null),Q=Y.exports,ee={name:"LocaleSelector",components:{ChevronThickIcon:Q},methods:{updateRouter({target:{value:e}}){this.$router.push((0,U.KP)(e)),c["default"].setPreferredLocale(e),(0,U.jk)(e,this)}},computed:{availableLocales:()=>c["default"].state.availableLocales,locales:({availableLocales:e})=>q.filter((({code:t})=>e.includes(t)))}},te=ee,ne=(0,g.Z)(te,F,W,!1,null,"d21858a2",null),re=ne.exports,oe={name:"CoreApp",components:{Footer:C,InitialLoadingPlaceholder:k,SuggestLang:H,LocaleSelector:re},provide(){return{isTargetIDE:this.isTargetIDE,performanceMetricsEnabled:"true"==={NODE_ENV:"production",VUE_APP_TITLE:"Documentation",BASE_URL:"{{BASE_PATH}}/"}.VUE_APP_PERFORMANCE_ENABLED}},data(){return{AppTopID:$.$,appState:c["default"].state,fromKeyboard:!1,isTargetIDE:"ide"==={NODE_ENV:"production",VUE_APP_TITLE:"Documentation",BASE_URL:"{{BASE_PATH}}/"}.VUE_APP_TARGET,themeSettings:j.S3,baseNavStickyAnchorId:T.EA}},computed:{currentColorScheme:({appState:e})=>e.systemColorScheme,preferredColorScheme:({appState:e})=>e.preferredColorScheme,availableLocales:({appState:e})=>e.availableLocales,CSSCustomProperties:({currentColorScheme:e,preferredColorScheme:t,themeSettings:n})=>N(n.theme,t===l.Z.auto?e:t),hasCustomHeader:()=>!!window.customElements.get("custom-header"),hasCustomFooter:()=>!!window.customElements.get("custom-footer"),enablei18n:({availableLocales:e})=>(0,j.$8)(["features","docs","i18n","enable"],!1)&&e.length>1},props:{enableThemeSettings:{type:Boolean,default:!0}},watch:{CSSCustomProperties:{immediate:!0,handler(e){this.detachStylesFromRoot(e),this.attachStylesToRoot(e)}}},async created(){window.addEventListener("keydown",this.onKeyDown),this.$bridge.on("navigation",this.handleNavigationRequest),this.enableThemeSettings&&Object.assign(this.themeSettings,await(0,j.Kx)()),window.addEventListener("pageshow",this.syncPreferredColorScheme),this.$once("hook:beforeDestroy",(()=>{window.removeEventListener("pageshow",this.syncPreferredColorScheme)}))},mounted(){(document.querySelector(".footer-current-year")||{}).innerText=(new Date).getFullYear(),this.attachColorSchemeListeners()},beforeDestroy(){this.fromKeyboard?window.removeEventListener("mousedown",this.onMouseDown):window.removeEventListener("keydown",this.onKeyDown),this.$bridge.off("navigation",this.handleNavigationRequest),this.detachStylesFromRoot(this.CSSCustomProperties)},methods:{onKeyDown(){this.fromKeyboard=!0,window.addEventListener("mousedown",this.onMouseDown),window.removeEventListener("keydown",this.onKeyDown)},onMouseDown(){this.fromKeyboard=!1,window.addEventListener("keydown",this.onKeyDown),window.removeEventListener("mousedown",this.onMouseDown)},handleNavigationRequest(e){this.$router.push(e)},attachColorSchemeListeners(){if(!window.matchMedia)return;const e=window.matchMedia("(prefers-color-scheme: dark)");e.addListener(this.onColorSchemePreferenceChange),this.$once("hook:beforeDestroy",(()=>{e.removeListener(this.onColorSchemePreferenceChange)})),this.onColorSchemePreferenceChange(e)},onColorSchemePreferenceChange({matches:e}){const t=e?l.Z.dark:l.Z.light;c["default"].setSystemColorScheme(t)},attachStylesToRoot(e){const t=document.body;Object.entries(e).filter((([,e])=>Boolean(e))).forEach((([e,n])=>{t.style.setProperty(e,n)}))},detachStylesFromRoot(e){const t=document.body;Object.entries(e).forEach((([e])=>{t.style.removeProperty(e)}))},syncPreferredColorScheme(){c["default"].syncPreferredColorScheme()}}},ie=oe,ae=(0,g.Z)(ie,a,s,!1,null,"3742c1d7",null),se=ae.exports;class ce{constructor(){this.$send=()=>{}}send(e){this.$send(e)}}class le{constructor(){const{webkit:{messageHandlers:{bridge:e={}}={}}={}}=window;this.bridge=e;const{postMessage:t=(()=>{})}=e;this.$send=t.bind(e)}send(e){this.$send(e)}}class ue{constructor(e=new ce){this.backend=e,this.listeners={}}send(e){this.backend.send(e)}receive(e){this.emit(e.type,e.data)}emit(e,t){this.listeners[e]&&this.listeners[e].forEach((e=>e(t)))}on(e,t){this.listeners[e]||(this.listeners[e]=new Set),this.listeners[e].add(t)}off(e,t){this.listeners[e]&&this.listeners[e].delete(t)}}var de={install(e,t){let n;n=t.performanceMetricsEnabled||"ide"===t.appTarget?new le:new ce,e.prototype.$bridge=new ue(n)}};function me(e){return`custom-${e}`}function fe(e){return class extends HTMLElement{constructor(){super();const t=this.attachShadow({mode:"open"}),n=e.content.cloneNode(!0);t.appendChild(n)}}}function he(e){const t=me(e),n=document.getElementById(t);n&&window.customElements.define(t,fe(n))}function pe(e,t={names:["header","footer"]}){const{names:n}=t;e.config.ignoredElements=/^custom-/,n.forEach(he)}function ge(e,t){const{value:n=!1}=t;e.style.display=n?"none":""}var ve={hide:ge};function be(e,{performanceMetrics:t=!1}={}){e.config.productionTip=!1,e.use(pe),e.directive("hide",ve.hide),e.use(de,{appTarget:{NODE_ENV:"production",VUE_APP_TITLE:"Documentation",BASE_URL:"{{BASE_PATH}}/"}.VUE_APP_TARGET,performanceMetricsEnabled:t}),window.bridge=e.prototype.$bridge,e.config.performance=t}var we=n(4589),ye=n(5381),Se=n(5657),Ce=n(3208),_e=n(2449);const Ee=10;function Le(e){const{name:t}=e,n=t.includes(we.J_);return n?Ee:0}function Pe(){const{location:e}=window;return e.pathname+e.search+e.hash}function Ae(){const e=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0);return ePromise.all([n.e(523),n.e(843)]).then(n.bind(n,4586))},{path:"/tutorials/:id/*",name:"topic",component:()=>Promise.all([n.e(523),n.e(903),n.e(162)]).then(n.bind(n,8032))},{path:"/documentation/*",name:we.J_,component:()=>Promise.all([n.e(523),n.e(37),n.e(903),n.e(982)]).then(n.bind(n,5840))},{path:"*",name:we.vL,component:Ge},{path:"*",name:we.Rp,component:Be}];const ze=[{pathPrefix:"/:locale?",nameSuffix:"-locale"}];function Xe(e,t=[],n=ze){return n.reduce(((n,r)=>n.concat(e.filter((e=>!t.includes(e.name))).map((e=>({...e,path:r.pathPrefix+e.path,name:e.name+r.nameSuffix}))))),[])}const Ye=[...Ke,...Xe(Ke,[we.vL,we.Rp])];function Qe(e={}){const t=new i.Z({mode:"history",base:j.FH,scrollBehavior:ke,...e,routes:e.routes||Ye});return t.onReady((()=>{"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"),Te()})),"ide"!=={NODE_ENV:"production",VUE_APP_TITLE:"Documentation",BASE_URL:"{{BASE_PATH}}/"}.VUE_APP_TARGET&&t.onError((e=>{const{route:n={path:"/"}}=e;t.replace({name:"server-error",params:[n.path]})})),window.addEventListener("unload",je),t}var et=n(5559);function tt(e=et){const{defaultLocale:t,messages:n,dateTimeFormats:r={}}=e,i=new o.Z({dateTimeFormats:r,locale:t,fallbackLocale:t,messages:n});return i}r["default"].use(be),r["default"].use(i.Z),r["default"].use(o.Z),new r["default"]({router:Qe(),render:e=>e(se),i18n:tt()}).$mount("#app")},2717:function(e,t,n){"use strict";n.d(t,{$:function(){return r}});const r="app-top"},9804:function(e,t){"use strict";t["Z"]={auto:"auto",dark:"dark",light:"light"}},1265:function(e,t){"use strict";t["Z"]={eager:"eager",lazy:"lazy"}},1716:function(e,t,n){"use strict";n.d(t,{EA:function(){return i},L$:function(){return o},MenuLinkModifierClasses:function(){return s},RS:function(){return r},Yj:function(){return a}});const r=52,o=48,i="nav-sticky-anchor",a="nav-open-navigator",s={noClose:"noclose"}},4589:function(e,t,n){"use strict";n.d(t,{J_:function(){return i},Rp:function(){return o},vL:function(){return r}});const r="not-found",o="server-error",i="documentation-topic"},5559:function(e,t,n){"use strict";n.r(t),n.d(t,{defaultLocale:function(){return a},messages:function(){return s}});var r=JSON.parse('{"view-in":"View in English","continue-viewing":"Continue viewing in English","language":"Language","video":{"replay":"Replay","play":"Play","pause":"Pause","watch":"Watch intro video"},"tutorials":{"title":"Tutorial | Tutorials","step":"Step {number}","submit":"Submit","next":"Next","preview":{"title":"No Preview | Preview | Previews","no-preview-available-step":"No preview available for this step."},"nav":{"chapters":"Chapters","current":"Current {thing}"},"assessment":{"check-your-understanding":"Check Your Understanding","success-message":"Great job, you\'ve answered all the questions for this tutorial.","answer-result":"Answer {answer} is {result}","correct":"correct","incorrect":"incorrect","next-question":"Next question","legend":"Possible answers"},"project-files":"Project files","estimated-time":"Estimated Time","sections":{"chapter":"Chapter {number}"},"question-of":"Question {index} of {total}","section-of":"{number} of {total}","overriding-title":"{newTitle} with {title}","time":{"format":"{number} {minutes}","minutes":{"full":"minute | minutes | {count} minutes","short":"min | mins"},"hours":{"full":"hour | hours"}}},"documentation":{"title":"Documentation","nav":{"breadcrumbs":"Breadcrumbs","menu":"Menu","open-menu":"Open Menu","close-menu":"Close Menu"},"current-page":"Current page is {title}","card":{"learn-more":"Learn More","read-article":"Read article","start-tutorial":"Start tutorial","view-api":"View API collection","view-symbol":"View symbol","view-sample-code":"View sample code"},"view-more":"View more"},"aside-kind":{"beta":"Beta","experiment":"Experiment","important":"Important","note":"Note","tip":"Tip","warning":"Warning","deprecated":"Deprecated"},"change-type":{"added":"Added","modified":"Modified","deprecated":"Deprecated"},"verbs":{"hide":"Hide","show":"Show","close":"Close"},"sections":{"title":"Section {number}","on-this-page":"On this page","topics":"Topics","default-implementations":"Default Implementations","relationships":"Relationships","see-also":"See Also","declaration":"Declaration","details":"Details","parameters":"Parameters","possible-values":"Possible Values","parts":"Parts","availability":"Availability","resources":"Resources"},"metadata":{"details":{"name":"Name","key":"Key","type":"Type"},"beta":{"legal":"This documentation refers to beta software and may be changed.","software":"Beta Software"},"default-implementation":"Default implementation provided. | Default implementations provided."},"availability":{"introduced-and-deprecated":"Introduced in {name} {introducedAt} and deprecated in {name} {deprecatedAt}","available-on":"Available on {name} {introducedAt} and later"},"more":"More","less":"Less","api-reference":"API Reference","filter":{"title":"Filter","search-symbols":"Search symbols in {technology}","suggested-tags":"Suggested tag | Suggested tags","selected-tags":"Selected tag | Selected tags","add-tag":"Add tag","tag-select-remove":"Tag. Select to remove from list.","navigate":"To navigate the symbols, press Up Arrow, Down Arrow, Left Arrow or Right Arrow","siblings-label":"{number-siblings} of {total-siblings} symbols inside {parent-siblings}","parent-label":"{number-siblings} of {total-siblings} symbols inside {parent-siblings} containing one symbol | {number-siblings} of {total-siblings} symbols inside {parent-siblings} containing {number-parent} symbols","reset-filter":"Reset Filter"},"navigator":{"title":"Documentation Navigator","open-navigator":"Open Documentation Navigator","close-navigator":"Close Documentation Navigator","no-results":"No results found.","no-children":"No data available.","error-fetching":"There was an error fetching the data.","items-found":"No items were found | 1 item was found | {number} items were found. Tab back to navigate through them.","navigator-is":"Navigator is {state}","state":{"loading":"loading","ready":"ready"},"tags":{"hide-deprecated":"Hide Deprecated"}},"tab":{"request":"Request","response":"Response"},"required":"Required","parameters":{"default":"Default","minimum":"Minimum","maximum":"Maximum","possible-types":"Type | Possible types","possible-values":"Value | Possible Values"},"content-type":"Content-Type: {value}","read-only":"Read-only","error":{"unknown":"An unknown error occurred.","image":"Image failed to load","not-found":"The page you\'re looking for can\'t be found."},"color-scheme":{"select":"Select a color scheme preference","auto":"Auto","dark":"Dark","light":"Light"},"accessibility":{"strike":{"start":"start of stricken text","end":"end of stricken text"},"code":{"start":"start of code block","end":"end of code block"},"skip-navigation":"Skip Navigation","in-page-link":"in page link"},"select-language":"Select the language for this page","icons":{"clear":"Clear","web-service-endpoint":"Web Service Endpoint","search":"Search"},"formats":{"parenthesis":"({content})","colon":"{content}: "},"quicknav":{"button":{"label":"Open Quick Navigation","title":"Click or type / for quick navigation"},"preview-unavailable":"Preview unavailable"}}'),o=JSON.parse('{"view-in":"以中文查看","continue-viewing":"继续以中文查看","language":"语言","video":{"replay":"重新播放","play":"播放","pause":"暂停","watch":"观看介绍视频"},"tutorials":{"title":"教程","step":"第 {number} 步","submit":"提交","next":"下一步","preview":{"title":"无预览 | 预览","no-preview-available-step":"这一步没有预览。"},"nav":{"chapters":"章节","current":"当前{thing}"},"assessment":{"check-your-understanding":"检查你的理解程度","success-message":"很棒,你回答了此教程的所有问题。","answer-number-is":"第 {index} 个答案","correct":"正确","incorrect":"错误","next-question":"下一个问题"},"project-files":"项目文件","estimated-time":"预计时间","sections":{"chapter":"第 {number} 章"},"question-of":"第 {index} 个问题(共 {total} 个)","section-of":"{number}/{total}","overriding-title":"{newTitle}{title}","time":{"format":"{number} {minutes}","minutes":{"full":"分钟 | {count} 分钟","short":"分钟"},"hours":{"full":"小时"}}},"documentation":{"title":"文档","nav":{"breadcrumbs":"面包屑导航","menu":"菜单","open-menu":"打开菜单","close-menu":"关闭菜单"},"current-page":"当前页面为:{title}","card":{"learn-more":"进一步了解","read-article":"阅读文章","start-tutorial":"开始教程","view-api":"查看 API 集合","view-symbol":"查看符号","view-sample-code":"查看示例代码"}},"aside-kind":{"beta":"Beta 版","experiment":"试验","important":"重要事项","note":"注","tip":"提示","warning":"警告","deprecated":"已弃用"},"change-type":{"added":"已添加","modified":"已修改","deprecated":"已弃用"},"verbs":{"hide":"隐藏","show":"显示","close":"关闭"},"sections":{"title":"第 {number} 部分","on-this-page":"在此页面上","topics":"主题","default-implementations":"默认实现","relationships":"关系","see-also":"另请参阅","declaration":"声明","details":"详细信息","parameters":"参数","possible-values":"可能值","parts":"部件","availability":"可用性","resources":"资源"},"metadata":{"details":{"name":"名称","key":"密钥","type":"类型"},"beta":{"legal":"此文档涉及 Beta 版软件且可能会改动。","software":"Beta 版软件"},"default-implementation":"提供默认实现。| 提供默认实现方法。"},"availability":{"introduced-and-deprecated":"{name} {introducedAt} 中引入,{name} {deprecatedAt} 中弃用","available-on":"{name} {introducedAt} 及更高版本中可用"},"more":"更多","less":"更少","api-reference":"API 参考","filter":{"title":"过滤","search-symbols":"在 {technology} 搜索符号","suggested-tags":"建议标签","selected-tags":"所选标签","add-tag":"添加标签","tag-select-remove":"标签。选择以从列表中移除。","navigate":"若要导航符号,请按下上箭头、下箭头、左箭头或右箭头。","siblings-label":"{parent-siblings} 内含 {number-siblings} 个符号(共 {total-siblings} 个)","parent-label":"{parent-siblings} 内含 {number-siblings} 个符号(共 {total-siblings} 个)包含一个符号 | {parent-siblings} 内含 {number-siblings} 个符号(共 {total-siblings} 个)包含 {number-parent} 个符号","reset-filter":"还原过滤条件"},"navigator":{"title":"文档导航器","open-navigator":"打开文档导航器","close-navigator":"关闭文档导航器","no-results":"未找到结果。","no-children":"无可用数据。","error-fetching":"获取数据时出错。","items-found":"未找到任何项目 | 找到 1 个项目 | 找到 {number} 个项目。按下 Tab 键导航。","navigator-is":"导航器{state}","state":{"loading":"正在载入","ready":"准备就绪"},"tags":{"hide-deprecated":"隐藏已弃用"}},"tab":{"request":"请求","response":"回复"},"required":"必需","parameters":{"default":"默认","minimum":"最小值","maximum":"最大值","possible-types":"类型 | 可能类型","possible-values":"值 | 可能值"},"content-type":"内容类型:{value}","read-only":"只读","error":{"unknown":"出现未知错误。","image":"图像无法载入"},"color-scheme":{"select":"选择首选颜色方案","auto":"自动","dark":"深色","light":"浅色"},"accessibility":{"strike":{"start":"删除线文本开始","end":"删除线文本结束"},"code":{"start":"代码块开头","end":"代码块结尾"},"skip-navigation":"跳过导航"},"select-language":"选择此页面的语言","icons":{"clear":"清除","web-service-endpoint":"网络服务端点","search":"搜索"},"formats":{"parenthesis":"({content})","colon":"{content}: "},"quicknav":{"button":{"label":"打开快速导航","title":"点按或键入 / 进行快速导航"}}}'),i=JSON.parse('{"view-in":"日本語で表示","continue-viewing":"日本語で表示を続ける","language":"言語","video":{"replay":"リプレイ","play":"再生","pause":"一時停止","watch":"概要のビデオを観る"},"tutorials":{"title":"チュートリアル | チュートリアル","step":"手順{number}","submit":"送信","next":"次へ","preview":{"title":"プレビューなし | プレビュー | プレビュー","no-preview-available-step":"この手順では利用可能なプレビューがありません。"},"nav":{"chapters":"章","current":"現在の{thing}"},"assessment":{"check-your-understanding":"理解度を確認する","success-message":"よくできました。このチュートリアルの問題にすべて回答しました。","answer-number-is":"問題番号{index}は","correct":"正解です","incorrect":"不正解です","next-question":"次の問題"},"project-files":"プロジェクトファイル","estimated-time":"予測時間","sections":{"chapter":"{number}章"},"question-of":"{total}問中の{index}問","section-of":"{total}件中の{number}件","overriding-title":"{title}の{newTitle}","time":{"format":"{number} {minutes}","minutes":{"full":"分 | 分 | {count}分","short":"分 | 分"},"hours":{"full":"時間 | 時間"}}},"documentation":{"title":"ドキュメント","nav":{"breadcrumbs":"パンくずリスト","menu":"メニュー","open-menu":"メニューを開く","close-menu":"メニューを閉じる"},"current-page":"現在のページは{title}です","card":{"learn-more":"詳しい情報","read-article":"記事を読む","start-tutorial":"チュートリアルを開始","view-api":"APIのコレクションを表示","view-symbol":"記号を表示","view-sample-code":"サンプルコードを表示"}},"aside-kind":{"beta":"ベータ版","experiment":"試験運用版","important":"重要","note":"注意","tip":"ヒント","warning":"警告","deprecated":"非推奨"},"change-type":{"added":"追加","modified":"変更","deprecated":"非推奨"},"verbs":{"hide":"非表示","show":"表示","close":"閉じる"},"sections":{"title":"セクション{number}","on-this-page":"このページの内容","topics":"トピック","default-implementations":"デフォルト実装","relationships":"関連項目","see-also":"参照","declaration":"宣言","details":"詳細","parameters":"パラメータ","possible-values":"使用できる値","parts":"パーツ","availability":"利用可能","resources":"リソース"},"metadata":{"details":{"name":"名前","key":"キー","type":"タイプ"},"beta":{"legal":"このドキュメントはベータ版のソフトウェアのもので、変更される可能性があります。","software":"ベータ版ソフトウェア"},"default-implementation":"デフォルト実装あり。| デフォルト実装あり。"},"availability":{"introduced-and-deprecated":"{name} {introducedAt}で導入され、{name} {deprecatedAt}で非推奨になりました","available-on":"{name} {introducedAt}以降で使用できます"},"more":"さらに表示","less":"表示を減らす","api-reference":"APIリファレンス","filter":{"title":"フィルタ","search-symbols":"{technology}でシンボルを検索","suggested-tags":"提案されたタグ | 提案されたタグ","selected-tags":"選択したタグ | 選択したタグ","add-tag":"タグを追加","tag-select-remove":"タグ。選択してリストから削除します。","navigate":"シンボルを移動するには、上下左右の矢印キーを押します。","siblings-label":"{total-siblings}個中{number-siblings}個のシンボルが{parent-siblings}の中にあります","parent-label":"{total-siblings}個中{number-siblings}個のシンボルが1個のシンボルを含む{parent-siblings}の中にあります | {total-siblings}個中{number-siblings}個のシンボルが{number-parent}個のシンボルを含む{parent-siblings}の中にあります","reset-filter":"フィルタをリセット"},"navigator":{"title":"ドキュメントナビゲータ","open-navigator":"ドキュメントナビゲータを開く","close-navigator":"ドキュメントナビゲータを閉じる","no-results":"結果が見つかりません。","no-children":"使用できるデータがありません。","error-fetching":"データを取得する際にエラーが起きました。","items-found":"項目が見つかりません | 1個の項目が見つかりました | {number}個の項目が見つかりましたTabキーを押すと項目をナビゲートできます。","navigator-is":"ナビゲータは{state}です","state":{"loading":"読み込み中","ready":"準備完了"},"tags":{"hide-deprecated":"非推奨の項目を非表示"}},"tab":{"request":"リクエスト","response":"レスポンス"},"required":"必須","parameters":{"default":"デフォルト","minimum":"最小","maximum":"最大","possible-types":"タイプ | 使用できるタイプ","possible-values":"値 | 使用できる値"},"content-type":"Content-Type: {value}","read-only":"読み出し専用","error":{"unknown":"原因不明のエラーが起きました。","image":"イメージを読み込めませんでした"},"color-scheme":{"select":"カラースキーム環境設定を選択","auto":"自動","dark":"ダーク","light":"ライト"},"accessibility":{"strike":{"start":"取り消し線テキストの開始","end":"取り消し線テキストの終了"},"code":{"start":"コードブロックの開始","end":"コードブロックの終了"},"skip-navigation":"ナビゲーションをスキップ"},"select-language":"このページの言語を選択","icons":{"clear":"消去","web-service-endpoint":"Webサービスのエンドポイント","search":"検索"},"formats":{"parenthesis":"({content})","colon":"{content}: "},"quicknav":{"button":{"label":"クイックナビゲーションを開く","title":"クリックするか「/」を入力すると素早く移動します"}}}');const a="en-US",s={"en-US":r,"zh-CN":o,"ja-JP":i}},4030:function(e,t,n){"use strict";var r=n(9804),o=n(1265),i=n(5394),a=n(2412);const s="undefined"!==typeof window.matchMedia&&[r.Z.light,r.Z.dark,"no-preference"].some((e=>window.matchMedia(`(prefers-color-scheme: ${e})`).matches)),c=s?r.Z.auto:r.Z.light;t["default"]={state:{imageLoadingStrategy:"ide"==={NODE_ENV:"production",VUE_APP_TITLE:"Documentation",BASE_URL:"{{BASE_PATH}}/"}.VUE_APP_TARGET?o.Z.eager:o.Z.lazy,preferredColorScheme:i.Z.preferredColorScheme||c,preferredLocale:i.Z.preferredLocale,supportsAutoColorScheme:s,systemColorScheme:r.Z.light,availableLocales:[]},reset(){this.state.imageLoadingStrategy="ide"==={NODE_ENV:"production",VUE_APP_TITLE:"Documentation",BASE_URL:"{{BASE_PATH}}/"}.VUE_APP_TARGET?o.Z.eager:o.Z.lazy,this.state.preferredColorScheme=i.Z.preferredColorScheme||c,this.state.supportsAutoColorScheme=s,this.state.systemColorScheme=r.Z.light},setImageLoadingStrategy(e){this.state.imageLoadingStrategy=e},setPreferredColorScheme(e){this.state.preferredColorScheme=e,i.Z.preferredColorScheme=e},setAllLocalesAreAvailable(){const e=a.map((e=>e.code));this.state.availableLocales=e},setAvailableLocales(e=[]){this.state.availableLocales=e},setPreferredLocale(e){this.state.preferredLocale=e,i.Z.preferredLocale=this.state.preferredLocale},setSystemColorScheme(e){this.state.systemColorScheme=e},syncPreferredColorScheme(){i.Z.preferredColorScheme&&i.Z.preferredColorScheme!==this.state.preferredColorScheme&&(this.state.preferredColorScheme=i.Z.preferredColorScheme)}}},5947:function(e,t,n){"use strict";function r(e){return e.reduce(((e,t)=>(t.traits.includes("dark")?e.dark.push(t):e.light.push(t),e)),{light:[],dark:[]})}function o(e){const t=["1x","2x","3x"];return t.reduce(((t,n)=>{const r=e.find((e=>e.traits.includes(n)));return r?t.concat({density:n,src:r.url,size:r.size}):t}),[])}function i(e){const t="/",n=new RegExp(`${t}+`,"g");return e.join(t).replace(n,t)}function a(e){const{baseUrl:t}=window,n=Array.isArray(e)?i(e):e;return n&&"string"===typeof n&&!n.startsWith(t)&&n.startsWith("/")?i([t,n]):n}function s(e){return e?e.startsWith("/")?e:`/${e}`:e}function c(e){return e?`url('${a(e)}')`:void 0}function l(e){return new Promise(((t,n)=>{const r=new Image;r.src=e,r.onerror=n,r.onload=()=>t({width:r.width,height:r.height})}))}n.d(t,{AH:function(){return a},Jf:function(){return s},RY:function(){return l},T8:function(){return d},XV:function(){return r},eZ:function(){return c},u:function(){return o}});const u={landscape:"landscape",portrait:"portrait",square:"square"};function d(e,t){return e&&t?et?u.landscape:u.square:null}},5381:function(e,t,n){"use strict";n.d(t,{L3:function(){return r},fr:function(){return s},kB:function(){return i},lU:function(){return o}});const r={large:"large",medium:"medium",small:"small"},o={default:"default",nav:"nav"},i={[o.default]:{[r.large]:{minWidth:1069,contentWidth:980},[r.medium]:{minWidth:736,maxWidth:1068,contentWidth:692},[r.small]:{minWidth:320,maxWidth:735,contentWidth:280}},[o.nav]:{[r.large]:{minWidth:1024},[r.medium]:{minWidth:768,maxWidth:1023},[r.small]:{minWidth:320,maxWidth:767}}},a={[r.small]:0,[r.medium]:1,[r.large]:2};function s(e,t){return a[e]>a[t]}},9030:function(e,t,n){"use strict";n.d(t,{KP:function(){return l},dZ:function(){return s},jk:function(){return u}});var r=n(2412),o=n(5559),i=n(3465);const a=r.reduce(((e,t)=>({...e,[t.slug]:t.code})),{});function s(e){return a[e]}function c(e){return!!a[e]}function l(e){return{params:{locale:e===o.defaultLocale?void 0:e}}}function u(e=o.defaultLocale,t={}){if(!c(e))return;t.$i18n.locale=e;const n=s(e);(0,i.e)(n)}},5657:function(e,t,n){"use strict";function r(e){let t=null,n=e-1;const r=new Promise((e=>{t=e}));return requestAnimationFrame((function e(){n-=1,n<=0?t():requestAnimationFrame(e)})),r}function o(e){return new Promise((t=>{setTimeout(t,e)}))}n.d(t,{J:function(){return r},X:function(){return o}})},3465:function(e,t,n){"use strict";n.d(t,{X:function(){return u},e:function(){return d}});var r=n(9089),o=n(2449);const i=(0,r.$8)(["meta","title"],"Documentation"),a=({title:e,description:t,url:n,currentLocale:r})=>[{name:"description",content:t},{property:"og:locale",content:r},{property:"og:site_name",content:i},{property:"og:type",content:"website"},{property:"og:title",content:e},{property:"og:description",content:t},{property:"og:url",content:n},{property:"og:image",content:(0,o.HH)("/developer-og.jpg")},{name:"twitter:image",content:(0,o.HH)("/developer-og-twitter.jpg")},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:description",content:t},{name:"twitter:title",content:e},{name:"twitter:url",content:n}],s=e=>[e,i].filter(Boolean).join(" | "),c=e=>{const{content:t}=e,n=e.property?"property":"name",r=e[n],o=document.querySelector(`meta[${n}="${r}"]`);if(o&&t)o.setAttribute("content",t);else if(o&&!t)o.remove();else if(t){const t=document.createElement("meta");t.setAttribute(n,e[n]),t.setAttribute("content",e.content),document.getElementsByTagName("head")[0].appendChild(t)}},l=e=>{document.title=e};function u({title:e,description:t,url:n,currentLocale:r}){const o=s(e);l(o),a({title:o,description:t,url:n,currentLocale:r}).forEach((e=>c(e)))}function d(e){document.querySelector("html").setAttribute("lang",e)}},5394:function(e,t,n){"use strict";var r=n(7247);const o={preferredColorScheme:"developer.setting.preferredColorScheme",preferredLocale:"developer.setting.preferredLocale",preferredLanguage:"docs.setting.preferredLanguage"},i={preferredColorScheme:"docs.setting.preferredColorScheme"};t["Z"]=Object.defineProperties({},Object.keys(o).reduce(((e,t)=>({...e,[t]:{get:()=>{const e=i[t],n=r.mr.getItem(o[t]);return e?n||r.mr.getItem(e):n},set:e=>r.mr.setItem(o[t],e)}})),{}))},7247:function(e,t,n){"use strict";n.d(t,{mr:function(){return a},tO:function(){return c},y7:function(){return l}});const r="developer.setting.";function o(e=localStorage){return{getItem:t=>{try{return e.getItem(t)}catch(n){return null}},setItem:(t,n)=>{try{e.setItem(t,n)}catch(r){}},removeItem:t=>{try{e.removeItem(t)}catch(n){}}}}function i(e){return{get:(t,n)=>{const o=JSON.parse(e.getItem(r+t));return null!==o?o:n},set:(t,n)=>e.setItem(r+t,JSON.stringify(n)),remove:t=>e.removeItem(r+t)}}const a=o(window.localStorage),s=o(window.sessionStorage),c=i(a),l=i(s)},3208:function(e,t,n){"use strict";n.d(t,{HA:function(){return a},RL:function(){return u},Xv:function(){return s},ZQ:function(){return d},hr:function(){return l},id:function(){return m},sj:function(){return c}});n(8269);const r=/(?:\s+|[`"<>])/g,o=/^-+/,i=/["'&<>]/g;function a(e){return e.trim().replace(r,"-").replace(o,"").toLowerCase()}function s(e){const t=e=>({'"':""","'":"'","&":"&","<":"<",">":">"}[e]||e);return e.replace(i,t)}function c(e){return e.replace(/#(.*)/,((e,t)=>`#${CSS.escape(t)}`))}function l(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function u(e){let t,n;const r="\\s*",o=" ",i=e.trim(),a=i.length;if(!a)return o;const s=[];for(t=0;te.json())).catch((()=>({})))}const c=(e,t)=>r(i,e,t)},2449:function(e,t,n){"use strict";n.d(t,{Lp:function(){return s},Q2:function(){return a},WN:function(){return c},Ex:function(){return i},HH:function(){return l}});var r=n(5947),o={input:"input",tags:"tags"};function i(e={}){return Object.entries(e).reduce(((e,[t,n])=>n?e.concat(`${encodeURIComponent(t)}=${encodeURIComponent(n)}`):e),[]).join("&")}function a(e,{changes:t,language:n,context:r}={}){const[o,a]=e.split("#"),s=o.match(/\?.*/),c=i({changes:t,language:n,context:r}),l=s?"&":"?",u=a?o:e,d=c?`${l}${c}`:"",m=a?`#${a}`:"";return`${u}${d}${m}`}function s(e,t){const{query:{changes:n,[o.input]:r,[o.tags]:i,...a}={}}=e,{query:{changes:s,[o.input]:c,[o.tags]:l,...u}={}}=t;return e.name===t.name&&JSON.stringify({path:e.path,query:a})===JSON.stringify({path:t.path,query:u})}function c(e,t=window.location.href){return new URL((0,r.AH)(e),t)}function l(e,t){return c(e,t).href}},647:function(e,t,n){n.p=window.baseUrl},2412:function(e){"use strict";e.exports=JSON.parse('[{"code":"en-US","name":"English","slug":"en-US"},{"code":"zh-CN","name":"简体中文","slug":"zh-CN"},{"code":"ja-JP","name":"日本語","slug":"ja-JP"}]')}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.m=e,function(){var e=[];n.O=function(t,r,o,i){if(!r){var a=1/0;for(u=0;u=i)&&Object.keys(n.O).every((function(e){return n.O[e](r[c])}))?r.splice(c--,1):(s=!1,i0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[r,o,i]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){a[e]=function(){return r[e]}}));return a["default"]=function(){return r},n.d(i,a),i}}(),function(){n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))}}(),function(){n.u=function(e){return"js/"+({82:"highlight-js-json-js",113:"highlight-js-markdown-js",133:"highlight-js-llvm-js",162:"topic",176:"highlight-js-shell-js",213:"highlight-js-diff-js",217:"highlight-js-custom-swift",392:"highlight-js-scss-js",393:"highlight-js-bash-js",435:"highlight-js-python-js",490:"highlight-js-xml-js",527:"highlight-js-swift-js",546:"highlight-js-c-js",596:"highlight-js-php-js",621:"highlight-js-cpp-js",623:"highlight-js-ruby-js",637:"highlight-js-objectivec-js",642:"highlight-js-custom-markdown",645:"highlight-js-perl-js",788:"highlight-js-java-js",814:"highlight-js-javascript-js",843:"tutorials-overview",864:"highlight-js-css-js",878:"highlight-js-http-js",982:"documentation-topic"}[e]||e)+"."+{37:"3cabdf6d",82:"2a1856ba",113:"a2f456af",133:"26121771",162:"2687cdff",176:"0ad5b20f",213:"4db9a783",217:"738731d1",337:"274a8ccc",392:"adcd11a2",393:"702f0c5c",435:"60354774",490:"0d78f903",523:"3af1b2ef",527:"bdd5bff5",546:"063069d3",596:"c458ffa4",621:"458a9ae4",623:"7272231f",637:"74dea052",642:"78c9f6ed",645:"da6eda82",675:"1d13263d",788:"4fe21e94",814:"dfc9d16d",843:"2eff1231",864:"bfc4251f",878:"f78e83c2",903:"b3710a74",982:"f9ef3692"}[e]+".js"}}(),function(){n.miniCssF=function(e){return"css/"+({162:"topic",843:"tutorials-overview",982:"documentation-topic"}[e]||e)+"."+{162:"672a9049",523:"e9a069b0",675:"40c3bcb2",843:"6eb589ed",982:"b186e79f"}[e]+".css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="swift-docc-render:";n.l=function(r,o,i,a){if(e[r])e[r].push(o);else{var s,c;if(void 0!==i)for(var l=document.getElementsByTagName("script"),u=0;u ","kind":"text"},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}],"modules":[{"name":"SwiftHPKE","relatedModules":["Swift"]}],"extendedModule":"Swift","externalID":"s:SQsE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftHPKE4AEADO","symbolKind":"op","roleHeading":"Operator"},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/!=(_:_:)","interfaceLanguage":"swift"},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"lhs","kind":"internalParam"},{"text":": ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"rhs","kind":"internalParam"},{"kind":"text","text":": "},{"text":"Self","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}],"languages":["swift"]}],"kind":"declarations"}],"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/Equatable-Implementations"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/aead\/!=(_:_:)"]}],"kind":"symbol","schemaVersion":{"major":0,"minor":3,"patch":0},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/!=(_:_:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/!=(_:_:)","role":"symbol","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"Self"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:Sb","kind":"typeIdentifier","text":"Bool"}],"kind":"symbol","url":"\/documentation\/swifthpke\/aead\/!=(_:_:)","title":"!=(_:_:)","type":"topic","abstract":[]},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"navigatorTitle":[{"text":"AEAD","kind":"identifier"}],"type":"topic","title":"AEAD","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","url":"\/documentation\/swifthpke\/aead","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"AEAD"}],"abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"role":"symbol","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/Equatable-Implementations":{"role":"collectionGroup","url":"\/documentation\/swifthpke\/aead\/equatable-implementations","type":"topic","abstract":[],"title":"Equatable Implementations","kind":"article","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/Equatable-Implementations"}}} \ No newline at end of file +{"sections":[],"primaryContentSections":[{"declarations":[{"tokens":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"kind":"text","text":" "},{"text":"(","kind":"text"},{"text":"lhs","kind":"internalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":", "},{"kind":"internalParam","text":"rhs"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":") -> "},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/!=(_:_:)"},"kind":"symbol","metadata":{"roleHeading":"Operator","modules":[{"name":"SwiftHPKE","relatedModules":["Swift"]}],"symbolKind":"op","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"!="},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":", "},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}],"role":"symbol","title":"!=(_:_:)","extendedModule":"Swift","externalID":"s:SQsE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftHPKE4AEADO"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/aead\/!=(_:_:)"]}],"schemaVersion":{"patch":0,"major":0,"minor":3},"abstract":[{"text":"Inherited from ","type":"text"},{"type":"codeVoice","code":"Equatable.!=(_:_:)"},{"type":"text","text":"."}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/Equatable-Implementations"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"type":"topic","navigatorTitle":[{"kind":"identifier","text":"AEAD"}],"role":"symbol","title":"AEAD","kind":"symbol","url":"\/documentation\/swifthpke\/aead","abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"AEAD","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/Equatable-Implementations":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/Equatable-Implementations","url":"\/documentation\/swifthpke\/aead\/equatable-implementations","kind":"article","title":"Equatable Implementations","abstract":[],"role":"collectionGroup","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/!=(_:_:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/!=(_:_:)","url":"\/documentation\/swifthpke\/aead\/!=(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"kind":"text","text":"("},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"Self"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}],"role":"symbol","type":"topic","abstract":[],"title":"!=(_:_:)","kind":"symbol"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/aead/aesgcm128.json b/docs/data/documentation/swifthpke/aead/aesgcm128.json index e69da65..556f577 100644 --- a/docs/data/documentation/swifthpke/aead/aesgcm128.json +++ b/docs/data/documentation/swifthpke/aead/aesgcm128.json @@ -1 +1 @@ -{"sections":[],"primaryContentSections":[{"declarations":[{"languages":["swift"],"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"AESGCM128","kind":"identifier"}],"platforms":["macOS"]}],"kind":"declarations"}],"metadata":{"fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"AESGCM128","kind":"identifier"}],"modules":[{"name":"SwiftHPKE"}],"roleHeading":"Case","symbolKind":"case","role":"symbol","externalID":"s:9SwiftHPKE4AEADO9AESGCM128yA2CmF","title":"AEAD.AESGCM128"},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/AESGCM128"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD"]]},"schemaVersion":{"patch":0,"major":0,"minor":3},"kind":"symbol","variants":[{"paths":["\/documentation\/swifthpke\/aead\/aesgcm128"],"traits":[{"interfaceLanguage":"swift"}]}],"abstract":[{"type":"text","text":"AES-128-GCM"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/AESGCM128":{"url":"\/documentation\/swifthpke\/aead\/aesgcm128","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"AESGCM128"}],"abstract":[{"type":"text","text":"AES-128-GCM"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/AESGCM128","role":"symbol","type":"topic","title":"AEAD.AESGCM128","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"navigatorTitle":[{"text":"AEAD","kind":"identifier"}],"type":"topic","title":"AEAD","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","url":"\/documentation\/swifthpke\/aead","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"AEAD"}],"abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"role":"symbol","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"}}} \ No newline at end of file +{"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/AESGCM128","interfaceLanguage":"swift"},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"AESGCM128"}],"languages":["swift"],"platforms":["macOS"]}]}],"abstract":[{"text":"AES-128-GCM","type":"text"}],"variants":[{"paths":["\/documentation\/swifthpke\/aead\/aesgcm128"],"traits":[{"interfaceLanguage":"swift"}]}],"schemaVersion":{"minor":3,"major":0,"patch":0},"sections":[],"kind":"symbol","metadata":{"role":"symbol","title":"AEAD.AESGCM128","symbolKind":"case","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Case","externalID":"s:9SwiftHPKE4AEADO9AESGCM128yA2CmF","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"AESGCM128","kind":"identifier"}]},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/AESGCM128":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/AESGCM128","url":"\/documentation\/swifthpke\/aead\/aesgcm128","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"AESGCM128","kind":"identifier"}],"kind":"symbol","title":"AEAD.AESGCM128","abstract":[{"type":"text","text":"AES-128-GCM"}],"role":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"type":"topic","navigatorTitle":[{"kind":"identifier","text":"AEAD"}],"role":"symbol","title":"AEAD","kind":"symbol","url":"\/documentation\/swifthpke\/aead","abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"AEAD","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/aead/aesgcm256.json b/docs/data/documentation/swifthpke/aead/aesgcm256.json index 25e87d6..f8a61d6 100644 --- a/docs/data/documentation/swifthpke/aead/aesgcm256.json +++ b/docs/data/documentation/swifthpke/aead/aesgcm256.json @@ -1 +1 @@ -{"abstract":[{"type":"text","text":"AES-256-GCM"}],"variants":[{"paths":["\/documentation\/swifthpke\/aead\/aesgcm256"],"traits":[{"interfaceLanguage":"swift"}]}],"sections":[],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/AESGCM256"},"schemaVersion":{"major":0,"minor":3,"patch":0},"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD"]]},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"AESGCM256"}],"languages":["swift"]}]}],"metadata":{"modules":[{"name":"SwiftHPKE"}],"title":"AEAD.AESGCM256","roleHeading":"Case","externalID":"s:9SwiftHPKE4AEADO9AESGCM256yA2CmF","symbolKind":"case","role":"symbol","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"AESGCM256"}]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"type":"topic","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"AEAD"}],"role":"symbol","kind":"symbol","title":"AEAD","abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"url":"\/documentation\/swifthpke\/aead","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","navigatorTitle":[{"kind":"identifier","text":"AEAD"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/AESGCM256":{"abstract":[{"text":"AES-256-GCM","type":"text"}],"role":"symbol","type":"topic","title":"AEAD.AESGCM256","url":"\/documentation\/swifthpke\/aead\/aesgcm256","kind":"symbol","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"AESGCM256","kind":"identifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/AESGCM256"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"}}} \ No newline at end of file +{"variants":[{"paths":["\/documentation\/swifthpke\/aead\/aesgcm256"],"traits":[{"interfaceLanguage":"swift"}]}],"sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/AESGCM256","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD"]]},"metadata":{"symbolKind":"case","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"AESGCM256"}],"title":"AEAD.AESGCM256","modules":[{"name":"SwiftHPKE"}],"role":"symbol","externalID":"s:9SwiftHPKE4AEADO9AESGCM256yA2CmF","roleHeading":"Case"},"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"AESGCM256"}]}],"kind":"declarations"}],"schemaVersion":{"patch":0,"major":0,"minor":3},"abstract":[{"text":"AES-256-GCM","type":"text"}],"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection","title":"SwiftHPKE","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","navigatorTitle":[{"kind":"identifier","text":"AEAD"}],"type":"topic","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"kind":"identifier","text":"AEAD"}],"kind":"symbol","role":"symbol","title":"AEAD","url":"\/documentation\/swifthpke\/aead","abstract":[{"text":"The AEAD encryption algorithms","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/AESGCM256":{"url":"\/documentation\/swifthpke\/aead\/aesgcm256","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/AESGCM256","abstract":[{"text":"AES-256-GCM","type":"text"}],"type":"topic","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"AESGCM256"}],"kind":"symbol","title":"AEAD.AESGCM256","role":"symbol"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/aead/chachapoly.json b/docs/data/documentation/swifthpke/aead/chachapoly.json index 9843607..24f5eb8 100644 --- a/docs/data/documentation/swifthpke/aead/chachapoly.json +++ b/docs/data/documentation/swifthpke/aead/chachapoly.json @@ -1 +1 @@ -{"abstract":[{"type":"text","text":"ChaCha20-Poly1305"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD"]]},"sections":[],"metadata":{"symbolKind":"case","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"CHACHAPOLY","kind":"identifier"}],"externalID":"s:9SwiftHPKE4AEADO10CHACHAPOLYyA2CmF","role":"symbol","roleHeading":"Case","modules":[{"name":"SwiftHPKE"}],"title":"AEAD.CHACHAPOLY"},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/CHACHAPOLY","interfaceLanguage":"swift"},"schemaVersion":{"patch":0,"major":0,"minor":3},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/aead\/chachapoly"]}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CHACHAPOLY","kind":"identifier"}],"languages":["swift"]}],"kind":"declarations"}],"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/CHACHAPOLY":{"fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"CHACHAPOLY","kind":"identifier"}],"kind":"symbol","url":"\/documentation\/swifthpke\/aead\/chachapoly","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/CHACHAPOLY","type":"topic","abstract":[{"text":"ChaCha20-Poly1305","type":"text"}],"title":"AEAD.CHACHAPOLY"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"navigatorTitle":[{"text":"AEAD","kind":"identifier"}],"type":"topic","title":"AEAD","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","url":"\/documentation\/swifthpke\/aead","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"AEAD"}],"abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"role":"symbol","kind":"symbol"}}} \ No newline at end of file +{"schemaVersion":{"minor":3,"patch":0,"major":0},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/CHACHAPOLY"},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CHACHAPOLY"}],"languages":["swift"]}],"kind":"declarations"}],"abstract":[{"text":"ChaCha20-Poly1305","type":"text"}],"kind":"symbol","variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/aead\/chachapoly"]}],"sections":[],"metadata":{"modules":[{"name":"SwiftHPKE"}],"role":"symbol","symbolKind":"case","externalID":"s:9SwiftHPKE4AEADO10CHACHAPOLYyA2CmF","title":"AEAD.CHACHAPOLY","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"CHACHAPOLY","kind":"identifier"}],"roleHeading":"Case"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"type":"topic","navigatorTitle":[{"kind":"identifier","text":"AEAD"}],"role":"symbol","title":"AEAD","kind":"symbol","url":"\/documentation\/swifthpke\/aead","abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"AEAD","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/CHACHAPOLY":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/CHACHAPOLY","url":"\/documentation\/swifthpke\/aead\/chachapoly","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"CHACHAPOLY","kind":"identifier"}],"kind":"symbol","title":"AEAD.CHACHAPOLY","abstract":[{"text":"ChaCha20-Poly1305","type":"text"}],"role":"symbol","type":"topic"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/aead/description.json b/docs/data/documentation/swifthpke/aead/description.json index ce4e053..da83891 100644 --- a/docs/data/documentation/swifthpke/aead/description.json +++ b/docs/data/documentation/swifthpke/aead/description.json @@ -1 +1 @@ -{"schemaVersion":{"patch":0,"major":0,"minor":3},"sections":[],"abstract":[{"type":"text","text":"Textual description of "},{"type":"codeVoice","code":"self"}],"variants":[{"paths":["\/documentation\/swifthpke\/aead\/description"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD"]]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/description","interfaceLanguage":"swift"},"primaryContentSections":[{"declarations":[{"tokens":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"},{"text":" { ","kind":"text"},{"text":"get","kind":"keyword"},{"text":" }","kind":"text"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"}],"metadata":{"title":"description","symbolKind":"property","role":"symbol","externalID":"s:9SwiftHPKE4AEADO11descriptionSSvp","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Instance Property","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/description":{"title":"description","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"abstract":[{"text":"Textual description of ","type":"text"},{"type":"codeVoice","code":"self"}],"url":"\/documentation\/swifthpke\/aead\/description","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/description","type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"navigatorTitle":[{"text":"AEAD","kind":"identifier"}],"type":"topic","title":"AEAD","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","url":"\/documentation\/swifthpke\/aead","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"AEAD"}],"abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"role":"symbol","kind":"symbol"}}} \ No newline at end of file +{"schemaVersion":{"major":0,"patch":0,"minor":3},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"},{"text":" { ","kind":"text"},{"text":"get","kind":"keyword"},{"text":" }","kind":"text"}],"languages":["swift"],"platforms":["macOS"]}]}],"kind":"symbol","abstract":[{"text":"Textual description of ","type":"text"},{"type":"codeVoice","code":"self"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/aead\/description"]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/description"},"sections":[],"metadata":{"symbolKind":"property","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"kind":"text","text":": "},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"}],"modules":[{"name":"SwiftHPKE"}],"roleHeading":"Instance Property","title":"description","role":"symbol","externalID":"s:9SwiftHPKE4AEADO11descriptionSSvp"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"type":"topic","navigatorTitle":[{"kind":"identifier","text":"AEAD"}],"role":"symbol","title":"AEAD","kind":"symbol","url":"\/documentation\/swifthpke\/aead","abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"AEAD","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/description":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/description","url":"\/documentation\/swifthpke\/aead\/description","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"title":"description","kind":"symbol","abstract":[{"text":"Textual description of ","type":"text"},{"code":"self","type":"codeVoice"}],"role":"symbol","type":"topic"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/aead/equatable-implementations.json b/docs/data/documentation/swifthpke/aead/equatable-implementations.json index c65837d..595829c 100644 --- a/docs/data/documentation/swifthpke/aead/equatable-implementations.json +++ b/docs/data/documentation/swifthpke/aead/equatable-implementations.json @@ -1 +1 @@ -{"schemaVersion":{"minor":3,"patch":0,"major":0},"kind":"article","identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/Equatable-Implementations"},"variants":[{"paths":["\/documentation\/swifthpke\/aead\/equatable-implementations"],"traits":[{"interfaceLanguage":"swift"}]}],"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD"]]},"metadata":{"modules":[{"name":"SwiftHPKE"}],"roleHeading":"API Collection","role":"collectionGroup","title":"Equatable Implementations"},"topicSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/!=(_:_:)"],"title":"Operators"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/!=(_:_:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/!=(_:_:)","role":"symbol","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"Self"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:Sb","kind":"typeIdentifier","text":"Bool"}],"kind":"symbol","url":"\/documentation\/swifthpke\/aead\/!=(_:_:)","title":"!=(_:_:)","type":"topic","abstract":[]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"navigatorTitle":[{"text":"AEAD","kind":"identifier"}],"type":"topic","title":"AEAD","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","url":"\/documentation\/swifthpke\/aead","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"AEAD"}],"abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"role":"symbol","kind":"symbol"}}} \ No newline at end of file +{"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/Equatable-Implementations"},"topicSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/!=(_:_:)"],"generated":true,"title":"Operators"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD"]]},"sections":[],"schemaVersion":{"major":0,"patch":0,"minor":3},"variants":[{"paths":["\/documentation\/swifthpke\/aead\/equatable-implementations"],"traits":[{"interfaceLanguage":"swift"}]}],"metadata":{"roleHeading":"API Collection","title":"Equatable Implementations","role":"collectionGroup","modules":[{"name":"SwiftHPKE"}]},"kind":"article","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"type":"topic","navigatorTitle":[{"kind":"identifier","text":"AEAD"}],"role":"symbol","title":"AEAD","kind":"symbol","url":"\/documentation\/swifthpke\/aead","abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"AEAD","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/!=(_:_:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/!=(_:_:)","url":"\/documentation\/swifthpke\/aead\/!=(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"kind":"text","text":"("},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"Self"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}],"role":"symbol","type":"topic","abstract":[],"title":"!=(_:_:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/aead/exportonly.json b/docs/data/documentation/swifthpke/aead/exportonly.json index 1f4ee53..6f2a68e 100644 --- a/docs/data/documentation/swifthpke/aead/exportonly.json +++ b/docs/data/documentation/swifthpke/aead/exportonly.json @@ -1 +1 @@ -{"abstract":[{"type":"text","text":"Export Only"}],"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"EXPORTONLY"}]}],"kind":"declarations"}],"metadata":{"fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"EXPORTONLY"}],"title":"AEAD.EXPORTONLY","externalID":"s:9SwiftHPKE4AEADO10EXPORTONLYyA2CmF","roleHeading":"Case","modules":[{"name":"SwiftHPKE"}],"role":"symbol","symbolKind":"case"},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/EXPORTONLY","interfaceLanguage":"swift"},"schemaVersion":{"minor":3,"major":0,"patch":0},"variants":[{"paths":["\/documentation\/swifthpke\/aead\/exportonly"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/EXPORTONLY":{"title":"AEAD.EXPORTONLY","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/EXPORTONLY","type":"topic","url":"\/documentation\/swifthpke\/aead\/exportonly","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"EXPORTONLY"}],"abstract":[{"text":"Export Only","type":"text"}],"role":"symbol","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"navigatorTitle":[{"text":"AEAD","kind":"identifier"}],"type":"topic","title":"AEAD","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","url":"\/documentation\/swifthpke\/aead","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"AEAD"}],"abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"role":"symbol","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"}}} \ No newline at end of file +{"sections":[],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/EXPORTONLY"},"variants":[{"paths":["\/documentation\/swifthpke\/aead\/exportonly"],"traits":[{"interfaceLanguage":"swift"}]}],"abstract":[{"type":"text","text":"Export Only"}],"schemaVersion":{"major":0,"minor":3,"patch":0},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"EXPORTONLY","kind":"identifier"}]}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD"]]},"kind":"symbol","metadata":{"symbolKind":"case","externalID":"s:9SwiftHPKE4AEADO10EXPORTONLYyA2CmF","title":"AEAD.EXPORTONLY","roleHeading":"Case","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"EXPORTONLY","kind":"identifier"}],"role":"symbol","modules":[{"name":"SwiftHPKE"}]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"type":"topic","navigatorTitle":[{"kind":"identifier","text":"AEAD"}],"role":"symbol","title":"AEAD","kind":"symbol","url":"\/documentation\/swifthpke\/aead","abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"AEAD","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD/EXPORTONLY":{"type":"topic","abstract":[{"type":"text","text":"Export Only"}],"url":"\/documentation\/swifthpke\/aead\/exportonly","title":"AEAD.EXPORTONLY","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD\/EXPORTONLY","role":"symbol","kind":"symbol","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"EXPORTONLY"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/base64.json b/docs/data/documentation/swifthpke/base64.json index a0c3c05..ab7631f 100644 --- a/docs/data/documentation/swifthpke/base64.json +++ b/docs/data/documentation/swifthpke/base64.json @@ -1 +1 @@ -{"seeAlsoSections":[{"generated":true,"title":"Structures","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]}],"primaryContentSections":[{"declarations":[{"tokens":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"Base64"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"},{"kind":"content","content":[{"anchor":"Overview","type":"heading","level":2,"text":"Overview"},{"type":"paragraph","inlineContent":[{"type":"text","text":"Base64 exists to provide a namespace. It contains static methods for Base64 encoding and decoding. There is no Base64 instances."}]}]}],"topicSections":[{"title":"Methods","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)"]}],"kind":"symbol","schemaVersion":{"major":0,"patch":0,"minor":3},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/base64"]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"metadata":{"navigatorTitle":[{"text":"Base64","kind":"identifier"}],"title":"Base64","fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"text":"Base64","kind":"identifier"}],"symbolKind":"struct","roleHeading":"Structure","externalID":"s:9SwiftHPKE6Base64V","modules":[{"name":"SwiftHPKE"}],"role":"symbol"},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"},"abstract":[{"type":"text","text":"The Base64 structure"}],"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"url":"\/documentation\/swifthpke\/base64","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Base64"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","navigatorTitle":[{"text":"Base64","kind":"identifier"}],"title":"Base64","role":"symbol","kind":"symbol","abstract":[{"text":"The Base64 structure","type":"text"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/decode(_:)":{"title":"decode(_:)","url":"\/documentation\/swifthpke\/base64\/decode(_:)","type":"topic","abstract":[{"text":"Base64 decodes a string","type":"text"}],"role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"decode"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemEncode(_:_:)":{"title":"pemEncode(_:_:)","url":"\/documentation\/swifthpke\/base64\/pemencode(_:_:)","abstract":[{"type":"text","text":"PEM encodes a byte array"}],"type":"topic","role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"pemEncode"},{"kind":"text","text":"("},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"text":") -> ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemDecode(_:_:)":{"title":"pemDecode(_:_:)","url":"\/documentation\/swifthpke\/base64\/pemdecode(_:_:)","type":"topic","abstract":[{"text":"PEM decodes a string","type":"text"}],"role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"pemDecode"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":", ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/encode(_:_:)":{"title":"encode(_:_:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","type":"topic","url":"\/documentation\/swifthpke\/base64\/encode(_:_:)","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"encode","kind":"identifier"},{"kind":"text","text":"("},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"text":") -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"abstract":[{"text":"Base64 encodes a byte array","type":"text"}],"role":"symbol","kind":"symbol"}}} \ No newline at end of file +{"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","interfaceLanguage":"swift"},"topicSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)"],"title":"Methods"}],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"],"generated":true,"title":"Structures"}],"primaryContentSections":[{"declarations":[{"tokens":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"text":"Base64","kind":"identifier"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"},{"kind":"content","content":[{"anchor":"Overview","level":2,"text":"Overview","type":"heading"},{"type":"paragraph","inlineContent":[{"text":"Base64 exists to provide a namespace. It contains static methods for Base64 encoding and decoding. There is no Base64 instances.","type":"text"}]}]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/base64"]}],"sections":[],"abstract":[{"text":"The Base64 structure","type":"text"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"schemaVersion":{"minor":3,"patch":0,"major":0},"metadata":{"navigatorTitle":[{"text":"Base64","kind":"identifier"}],"title":"Base64","roleHeading":"Structure","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Base64"}],"externalID":"s:9SwiftHPKE6Base64V","symbolKind":"struct","modules":[{"name":"SwiftHPKE"}]},"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/decode(_:)":{"type":"topic","abstract":[{"text":"Base64 decodes a string","type":"text"}],"title":"decode(_:)","kind":"symbol","role":"symbol","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"decode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)","url":"\/documentation\/swifthpke\/base64\/decode(_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/encode(_:_:)":{"type":"topic","abstract":[{"type":"text","text":"Base64 encodes a byte array"}],"title":"encode(_:_:)","kind":"symbol","role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"encode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","url":"\/documentation\/swifthpke\/base64\/encode(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"type":"topic","navigatorTitle":[{"text":"Base64","kind":"identifier"}],"abstract":[{"text":"The Base64 structure","type":"text"}],"title":"Base64","kind":"symbol","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"Base64","kind":"identifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","url":"\/documentation\/swifthpke\/base64"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemEncode(_:_:)":{"type":"topic","abstract":[{"type":"text","text":"PEM encodes a byte array"}],"title":"pemEncode(_:_:)","kind":"symbol","role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pemEncode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":") -> ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","url":"\/documentation\/swifthpke\/base64\/pemencode(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemDecode(_:_:)":{"type":"topic","abstract":[{"type":"text","text":"PEM decodes a string"}],"title":"pemDecode(_:_:)","kind":"symbol","role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"pemDecode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","url":"\/documentation\/swifthpke\/base64\/pemdecode(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/base64/decode(_:).json b/docs/data/documentation/swifthpke/base64/decode(_:).json index 8dd4768..676ff67 100644 --- a/docs/data/documentation/swifthpke/base64/decode(_:).json +++ b/docs/data/documentation/swifthpke/base64/decode(_:).json @@ -1 +1 @@ -{"metadata":{"role":"symbol","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"decode"},{"kind":"text","text":"("},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"symbolKind":"method","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE6Base64V6decodeySays5UInt8VGSSKFZ","title":"decode(_:)","roleHeading":"Type Method"},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"]]},"kind":"symbol","schemaVersion":{"minor":3,"major":0,"patch":0},"abstract":[{"text":"Base64 decodes a string","type":"text"}],"seeAlsoSections":[{"title":"Methods","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)"],"generated":true}],"sections":[],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"decode"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"_"},{"text":" ","kind":"text"},{"text":"input","kind":"internalParam"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier"}]}]},{"parameters":[{"name":"input","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"String to decode"}]}]}],"kind":"parameters"},{"kind":"content","content":[{"text":"Return Value","type":"heading","level":2,"anchor":"return-value"},{"type":"paragraph","inlineContent":[{"type":"text","text":"The Base64 decoding of "},{"type":"codeVoice","code":"input"}]}]},{"content":[{"level":2,"text":"Discussion","type":"heading","anchor":"discussion"},{"style":"note","name":"Throws","type":"aside","content":[{"inlineContent":[{"text":"A ","type":"text"},{"code":"base64","type":"codeVoice"},{"type":"text","text":" exception if the input is malformed"}],"type":"paragraph"}]}],"kind":"content"}],"variants":[{"paths":["\/documentation\/swifthpke\/base64\/decode(_:)"],"traits":[{"interfaceLanguage":"swift"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemDecode(_:_:)":{"title":"pemDecode(_:_:)","url":"\/documentation\/swifthpke\/base64\/pemdecode(_:_:)","type":"topic","abstract":[{"text":"PEM decodes a string","type":"text"}],"role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"pemDecode"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":", ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemEncode(_:_:)":{"title":"pemEncode(_:_:)","url":"\/documentation\/swifthpke\/base64\/pemencode(_:_:)","abstract":[{"type":"text","text":"PEM encodes a byte array"}],"type":"topic","role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"pemEncode"},{"kind":"text","text":"("},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"text":") -> ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"url":"\/documentation\/swifthpke\/base64","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Base64"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","navigatorTitle":[{"text":"Base64","kind":"identifier"}],"title":"Base64","role":"symbol","kind":"symbol","abstract":[{"text":"The Base64 structure","type":"text"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/decode(_:)":{"title":"decode(_:)","url":"\/documentation\/swifthpke\/base64\/decode(_:)","type":"topic","abstract":[{"text":"Base64 decodes a string","type":"text"}],"role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"decode"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/encode(_:_:)":{"title":"encode(_:_:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","type":"topic","url":"\/documentation\/swifthpke\/base64\/encode(_:_:)","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"encode","kind":"identifier"},{"kind":"text","text":"("},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"text":") -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"abstract":[{"text":"Base64 encodes a byte array","type":"text"}],"role":"symbol","kind":"symbol"}}} \ No newline at end of file +{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"]]},"abstract":[{"text":"Base64 decodes a string","type":"text"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/base64\/decode(_:)"]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)","interfaceLanguage":"swift"},"primaryContentSections":[{"declarations":[{"tokens":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"decode","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"_"},{"kind":"text","text":" "},{"kind":"internalParam","text":"input"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"String to decode"}]}],"name":"input"}]},{"content":[{"anchor":"return-value","type":"heading","text":"Return Value","level":2},{"inlineContent":[{"type":"text","text":"The Base64 decoding of "},{"code":"input","type":"codeVoice"}],"type":"paragraph"}],"kind":"content"},{"kind":"content","content":[{"type":"heading","level":2,"anchor":"discussion","text":"Discussion"},{"style":"note","name":"Throws","content":[{"inlineContent":[{"type":"text","text":"A "},{"type":"codeVoice","code":"base64"},{"type":"text","text":" exception if the input is malformed"}],"type":"paragraph"}],"type":"aside"}]}],"seeAlsoSections":[{"generated":true,"title":"Methods","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)"]}],"kind":"symbol","metadata":{"externalID":"s:9SwiftHPKE6Base64V6decodeySays5UInt8VGSSKFZ","roleHeading":"Type Method","modules":[{"name":"SwiftHPKE"}],"symbolKind":"method","title":"decode(_:)","role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"decode","kind":"identifier"},{"kind":"text","text":"("},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}]},"schemaVersion":{"major":0,"patch":0,"minor":3},"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/encode(_:_:)":{"type":"topic","abstract":[{"type":"text","text":"Base64 encodes a byte array"}],"title":"encode(_:_:)","kind":"symbol","role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"encode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","url":"\/documentation\/swifthpke\/base64\/encode(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/decode(_:)":{"type":"topic","abstract":[{"text":"Base64 decodes a string","type":"text"}],"title":"decode(_:)","kind":"symbol","role":"symbol","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"decode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)","url":"\/documentation\/swifthpke\/base64\/decode(_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemEncode(_:_:)":{"type":"topic","abstract":[{"type":"text","text":"PEM encodes a byte array"}],"title":"pemEncode(_:_:)","kind":"symbol","role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pemEncode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":") -> ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","url":"\/documentation\/swifthpke\/base64\/pemencode(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemDecode(_:_:)":{"type":"topic","abstract":[{"type":"text","text":"PEM decodes a string"}],"title":"pemDecode(_:_:)","kind":"symbol","role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"pemDecode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","url":"\/documentation\/swifthpke\/base64\/pemdecode(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"type":"topic","navigatorTitle":[{"text":"Base64","kind":"identifier"}],"abstract":[{"text":"The Base64 structure","type":"text"}],"title":"Base64","kind":"symbol","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"Base64","kind":"identifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","url":"\/documentation\/swifthpke\/base64"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/base64/encode(_:_:).json b/docs/data/documentation/swifthpke/base64/encode(_:_:).json index cdffb16..d64ac01 100644 --- a/docs/data/documentation/swifthpke/base64/encode(_:_:).json +++ b/docs/data/documentation/swifthpke/base64/encode(_:_:).json @@ -1 +1 @@ -{"sections":[],"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)"],"title":"Methods"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/base64\/encode(_:_:)"]}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"encode"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"_"},{"kind":"text","text":" "},{"text":"input","kind":"internalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"_"},{"text":" ","kind":"text"},{"kind":"internalParam","text":"linesize"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"text":" = 76) -> ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}]}]},{"parameters":[{"content":[{"type":"paragraph","inlineContent":[{"text":"Bytes to encode","type":"text"}]}],"name":"input"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Number of characters per line - 76 is default"}]}],"name":"linesize"}],"kind":"parameters"},{"kind":"content","content":[{"level":2,"type":"heading","text":"Return Value","anchor":"return-value"},{"type":"paragraph","inlineContent":[{"text":"The Base64 encoding of ","type":"text"},{"code":"input","type":"codeVoice"}]}]}],"schemaVersion":{"patch":0,"minor":3,"major":0},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"]]},"kind":"symbol","metadata":{"role":"symbol","roleHeading":"Type Method","title":"encode(_:_:)","externalID":"s:9SwiftHPKE6Base64V6encodeySSSays5UInt8VG_SitFZ","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"encode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":") -> "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"symbolKind":"method","modules":[{"name":"SwiftHPKE"}]},"abstract":[{"text":"Base64 encodes a byte array","type":"text"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/decode(_:)":{"title":"decode(_:)","url":"\/documentation\/swifthpke\/base64\/decode(_:)","type":"topic","abstract":[{"text":"Base64 decodes a string","type":"text"}],"role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"decode"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemEncode(_:_:)":{"title":"pemEncode(_:_:)","url":"\/documentation\/swifthpke\/base64\/pemencode(_:_:)","abstract":[{"type":"text","text":"PEM encodes a byte array"}],"type":"topic","role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"pemEncode"},{"kind":"text","text":"("},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"text":") -> ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"url":"\/documentation\/swifthpke\/base64","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Base64"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","navigatorTitle":[{"text":"Base64","kind":"identifier"}],"title":"Base64","role":"symbol","kind":"symbol","abstract":[{"text":"The Base64 structure","type":"text"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/encode(_:_:)":{"title":"encode(_:_:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","type":"topic","url":"\/documentation\/swifthpke\/base64\/encode(_:_:)","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"encode","kind":"identifier"},{"kind":"text","text":"("},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"text":") -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"abstract":[{"text":"Base64 encodes a byte array","type":"text"}],"role":"symbol","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemDecode(_:_:)":{"title":"pemDecode(_:_:)","url":"\/documentation\/swifthpke\/base64\/pemdecode(_:_:)","type":"topic","abstract":[{"text":"PEM decodes a string","type":"text"}],"role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"pemDecode"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":", ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","kind":"symbol"}}} \ No newline at end of file +{"variants":[{"paths":["\/documentation\/swifthpke\/base64\/encode(_:_:)"],"traits":[{"interfaceLanguage":"swift"}]}],"schemaVersion":{"patch":0,"minor":3,"major":0},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"]]},"abstract":[{"text":"Base64 encodes a byte array","type":"text"}],"kind":"symbol","seeAlsoSections":[{"generated":true,"title":"Methods","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)"]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)"},"metadata":{"externalID":"s:9SwiftHPKE6Base64V6encodeySSSays5UInt8VG_SitFZ","roleHeading":"Type Method","symbolKind":"method","title":"encode(_:_:)","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"encode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":") -> "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"role":"symbol","modules":[{"name":"SwiftHPKE"}]},"sections":[],"primaryContentSections":[{"declarations":[{"tokens":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"encode","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"_"},{"text":" ","kind":"text"},{"kind":"internalParam","text":"input"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"_","kind":"externalParam"},{"text":" ","kind":"text"},{"text":"linesize","kind":"internalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":" = 76) -> "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"},{"parameters":[{"content":[{"type":"paragraph","inlineContent":[{"text":"Bytes to encode","type":"text"}]}],"name":"input"},{"name":"linesize","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Number of characters per line - 76 is default"}]}]}],"kind":"parameters"},{"kind":"content","content":[{"level":2,"text":"Return Value","anchor":"return-value","type":"heading"},{"type":"paragraph","inlineContent":[{"type":"text","text":"The Base64 encoding of "},{"code":"input","type":"codeVoice"}]}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"type":"topic","navigatorTitle":[{"text":"Base64","kind":"identifier"}],"abstract":[{"text":"The Base64 structure","type":"text"}],"title":"Base64","kind":"symbol","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"Base64","kind":"identifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","url":"\/documentation\/swifthpke\/base64"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/encode(_:_:)":{"type":"topic","abstract":[{"type":"text","text":"Base64 encodes a byte array"}],"title":"encode(_:_:)","kind":"symbol","role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"encode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","url":"\/documentation\/swifthpke\/base64\/encode(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemEncode(_:_:)":{"type":"topic","abstract":[{"type":"text","text":"PEM encodes a byte array"}],"title":"pemEncode(_:_:)","kind":"symbol","role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pemEncode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":") -> ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","url":"\/documentation\/swifthpke\/base64\/pemencode(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/decode(_:)":{"type":"topic","abstract":[{"text":"Base64 decodes a string","type":"text"}],"title":"decode(_:)","kind":"symbol","role":"symbol","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"decode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)","url":"\/documentation\/swifthpke\/base64\/decode(_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemDecode(_:_:)":{"type":"topic","abstract":[{"type":"text","text":"PEM decodes a string"}],"title":"pemDecode(_:_:)","kind":"symbol","role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"pemDecode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","url":"\/documentation\/swifthpke\/base64\/pemdecode(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/base64/pemdecode(_:_:).json b/docs/data/documentation/swifthpke/base64/pemdecode(_:_:).json index ebe94c2..3968958 100644 --- a/docs/data/documentation/swifthpke/base64/pemdecode(_:_:).json +++ b/docs/data/documentation/swifthpke/base64/pemdecode(_:_:).json @@ -1 +1 @@ -{"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"pemDecode","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"_"},{"text":" ","kind":"text"},{"text":"input","kind":"internalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"_","kind":"externalParam"},{"kind":"text","text":" "},{"kind":"internalParam","text":"pem"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}]}]},{"kind":"parameters","parameters":[{"content":[{"inlineContent":[{"text":"String to decode","type":"text"}],"type":"paragraph"}],"name":"input"},{"content":[{"inlineContent":[{"type":"text","text":"The expected PEM header- and footer string"}],"type":"paragraph"}],"name":"pem"}]},{"kind":"content","content":[{"anchor":"return-value","type":"heading","level":2,"text":"Return Value"},{"inlineContent":[{"text":"The Base64 PEM decoding of ","type":"text"},{"type":"codeVoice","code":"input"}],"type":"paragraph"}]},{"kind":"content","content":[{"type":"heading","anchor":"discussion","text":"Discussion","level":2},{"type":"aside","name":"Throws","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"A "},{"type":"codeVoice","code":"base64"},{"type":"text","text":" exception or a "},{"code":"pemStructure","type":"codeVoice"},{"text":" exception if the input is malformed","type":"text"}]}],"style":"note"}]}],"metadata":{"symbolKind":"method","title":"pemDecode(_:_:)","role":"symbol","modules":[{"name":"SwiftHPKE"}],"fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"pemDecode"},{"kind":"text","text":"("},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":", "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"roleHeading":"Type Method","externalID":"s:9SwiftHPKE6Base64V9pemDecodeySays5UInt8VGSS_SStKFZ"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"]]},"sections":[],"schemaVersion":{"patch":0,"minor":3,"major":0},"kind":"symbol","variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/base64\/pemdecode(_:_:)"]}],"seeAlsoSections":[{"title":"Methods","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)"],"generated":true}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)"},"abstract":[{"type":"text","text":"PEM decodes a string"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"url":"\/documentation\/swifthpke\/base64","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Base64"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","navigatorTitle":[{"text":"Base64","kind":"identifier"}],"title":"Base64","role":"symbol","kind":"symbol","abstract":[{"text":"The Base64 structure","type":"text"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemDecode(_:_:)":{"title":"pemDecode(_:_:)","url":"\/documentation\/swifthpke\/base64\/pemdecode(_:_:)","type":"topic","abstract":[{"text":"PEM decodes a string","type":"text"}],"role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"pemDecode"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":", ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemEncode(_:_:)":{"title":"pemEncode(_:_:)","url":"\/documentation\/swifthpke\/base64\/pemencode(_:_:)","abstract":[{"type":"text","text":"PEM encodes a byte array"}],"type":"topic","role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"pemEncode"},{"kind":"text","text":"("},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"text":") -> ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/encode(_:_:)":{"title":"encode(_:_:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","type":"topic","url":"\/documentation\/swifthpke\/base64\/encode(_:_:)","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"encode","kind":"identifier"},{"kind":"text","text":"("},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"text":") -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"abstract":[{"text":"Base64 encodes a byte array","type":"text"}],"role":"symbol","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/decode(_:)":{"title":"decode(_:)","url":"\/documentation\/swifthpke\/base64\/decode(_:)","type":"topic","abstract":[{"text":"Base64 decodes a string","type":"text"}],"role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"decode"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"}}} \ No newline at end of file +{"sections":[],"schemaVersion":{"patch":0,"minor":3,"major":0},"metadata":{"role":"symbol","modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pemDecode","kind":"identifier"},{"kind":"text","text":"("},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"text":", ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"symbolKind":"method","title":"pemDecode(_:_:)","roleHeading":"Type Method","externalID":"s:9SwiftHPKE6Base64V9pemDecodeySays5UInt8VGSS_SStKFZ"},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"pemDecode","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"_"},{"text":" ","kind":"text"},{"text":"input","kind":"internalParam"},{"kind":"text","text":": "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":", "},{"text":"_","kind":"externalParam"},{"kind":"text","text":" "},{"kind":"internalParam","text":"pem"},{"text":": ","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"}]}]},{"parameters":[{"content":[{"inlineContent":[{"type":"text","text":"String to decode"}],"type":"paragraph"}],"name":"input"},{"content":[{"inlineContent":[{"text":"The expected PEM header- and footer string","type":"text"}],"type":"paragraph"}],"name":"pem"}],"kind":"parameters"},{"content":[{"level":2,"type":"heading","text":"Return Value","anchor":"return-value"},{"type":"paragraph","inlineContent":[{"text":"The Base64 PEM decoding of ","type":"text"},{"type":"codeVoice","code":"input"}]}],"kind":"content"},{"kind":"content","content":[{"type":"heading","anchor":"discussion","text":"Discussion","level":2},{"style":"note","type":"aside","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"A "},{"type":"codeVoice","code":"base64"},{"type":"text","text":" exception or a "},{"type":"codeVoice","code":"pemStructure"},{"text":" exception if the input is malformed","type":"text"}]}],"name":"Throws"}]}],"variants":[{"paths":["\/documentation\/swifthpke\/base64\/pemdecode(_:_:)"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)"},"abstract":[{"type":"text","text":"PEM decodes a string"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"]]},"kind":"symbol","seeAlsoSections":[{"title":"Methods","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)"],"generated":true}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/encode(_:_:)":{"type":"topic","abstract":[{"type":"text","text":"Base64 encodes a byte array"}],"title":"encode(_:_:)","kind":"symbol","role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"encode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","url":"\/documentation\/swifthpke\/base64\/encode(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemEncode(_:_:)":{"type":"topic","abstract":[{"type":"text","text":"PEM encodes a byte array"}],"title":"pemEncode(_:_:)","kind":"symbol","role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pemEncode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":") -> ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","url":"\/documentation\/swifthpke\/base64\/pemencode(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemDecode(_:_:)":{"type":"topic","abstract":[{"type":"text","text":"PEM decodes a string"}],"title":"pemDecode(_:_:)","kind":"symbol","role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"pemDecode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","url":"\/documentation\/swifthpke\/base64\/pemdecode(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/decode(_:)":{"type":"topic","abstract":[{"text":"Base64 decodes a string","type":"text"}],"title":"decode(_:)","kind":"symbol","role":"symbol","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"decode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)","url":"\/documentation\/swifthpke\/base64\/decode(_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"type":"topic","navigatorTitle":[{"text":"Base64","kind":"identifier"}],"abstract":[{"text":"The Base64 structure","type":"text"}],"title":"Base64","kind":"symbol","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"Base64","kind":"identifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","url":"\/documentation\/swifthpke\/base64"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/base64/pemencode(_:_:).json b/docs/data/documentation/swifthpke/base64/pemencode(_:_:).json index 5c2d8e0..4235d70 100644 --- a/docs/data/documentation/swifthpke/base64/pemencode(_:_:).json +++ b/docs/data/documentation/swifthpke/base64/pemencode(_:_:).json @@ -1 +1 @@ -{"schemaVersion":{"major":0,"minor":3,"patch":0},"abstract":[{"text":"PEM encodes a byte array","type":"text"}],"kind":"symbol","identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","interfaceLanguage":"swift"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/base64\/pemencode(_:_:)"]}],"metadata":{"modules":[{"name":"SwiftHPKE"}],"roleHeading":"Type Method","symbolKind":"method","role":"symbol","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"pemEncode"},{"text":"(","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"kind":"text","text":") -> "},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"}],"title":"pemEncode(_:_:)","externalID":"s:9SwiftHPKE6Base64V9pemEncodeySSSays5UInt8VG_SStFZ"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"]]},"sections":[],"seeAlsoSections":[{"title":"Methods","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)"],"generated":true}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pemEncode","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"_"},{"text":" ","kind":"text"},{"text":"input","kind":"internalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"_"},{"text":" ","kind":"text"},{"text":"pem","kind":"internalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"}]}]},{"kind":"parameters","parameters":[{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Bytes to encode"}]}],"name":"input"},{"name":"pem","content":[{"type":"paragraph","inlineContent":[{"text":"The PEM header- and footer string","type":"text"}]}]}]},{"content":[{"text":"Return Value","level":2,"anchor":"return-value","type":"heading"},{"inlineContent":[{"text":"The Base64 PEM encoding of ","type":"text"},{"type":"codeVoice","code":"input"}],"type":"paragraph"}],"kind":"content"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/decode(_:)":{"title":"decode(_:)","url":"\/documentation\/swifthpke\/base64\/decode(_:)","type":"topic","abstract":[{"text":"Base64 decodes a string","type":"text"}],"role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"decode"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemEncode(_:_:)":{"title":"pemEncode(_:_:)","url":"\/documentation\/swifthpke\/base64\/pemencode(_:_:)","abstract":[{"type":"text","text":"PEM encodes a byte array"}],"type":"topic","role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"pemEncode"},{"kind":"text","text":"("},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"text":") -> ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"url":"\/documentation\/swifthpke\/base64","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Base64"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","navigatorTitle":[{"text":"Base64","kind":"identifier"}],"title":"Base64","role":"symbol","kind":"symbol","abstract":[{"text":"The Base64 structure","type":"text"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemDecode(_:_:)":{"title":"pemDecode(_:_:)","url":"\/documentation\/swifthpke\/base64\/pemdecode(_:_:)","type":"topic","abstract":[{"text":"PEM decodes a string","type":"text"}],"role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"pemDecode"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":", ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/encode(_:_:)":{"title":"encode(_:_:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","type":"topic","url":"\/documentation\/swifthpke\/base64\/encode(_:_:)","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"encode","kind":"identifier"},{"kind":"text","text":"("},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"text":") -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"abstract":[{"text":"Base64 encodes a byte array","type":"text"}],"role":"symbol","kind":"symbol"}}} \ No newline at end of file +{"schemaVersion":{"minor":3,"patch":0,"major":0},"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)"],"title":"Methods"}],"metadata":{"fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"pemEncode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":") -> "},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"}],"role":"symbol","title":"pemEncode(_:_:)","roleHeading":"Type Method","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE6Base64V9pemEncodeySSSays5UInt8VG_SStFZ","symbolKind":"method"},"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"pemEncode"},{"text":"(","kind":"text"},{"text":"_","kind":"externalParam"},{"text":" ","kind":"text"},{"kind":"internalParam","text":"input"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"text":"_","kind":"externalParam"},{"text":" ","kind":"text"},{"kind":"internalParam","text":"pem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"text":") -> ","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"}]}],"kind":"declarations"},{"parameters":[{"name":"input","content":[{"type":"paragraph","inlineContent":[{"text":"Bytes to encode","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The PEM header- and footer string"}]}],"name":"pem"}],"kind":"parameters"},{"kind":"content","content":[{"type":"heading","level":2,"text":"Return Value","anchor":"return-value"},{"type":"paragraph","inlineContent":[{"text":"The Base64 PEM encoding of ","type":"text"},{"type":"codeVoice","code":"input"}]}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"]]},"kind":"symbol","identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","interfaceLanguage":"swift"},"abstract":[{"type":"text","text":"PEM encodes a byte array"}],"variants":[{"paths":["\/documentation\/swifthpke\/base64\/pemencode(_:_:)"],"traits":[{"interfaceLanguage":"swift"}]}],"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemEncode(_:_:)":{"type":"topic","abstract":[{"type":"text","text":"PEM encodes a byte array"}],"title":"pemEncode(_:_:)","kind":"symbol","role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pemEncode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":") -> ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemEncode(_:_:)","url":"\/documentation\/swifthpke\/base64\/pemencode(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/encode(_:_:)":{"type":"topic","abstract":[{"type":"text","text":"Base64 encodes a byte array"}],"title":"encode(_:_:)","kind":"symbol","role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"encode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/encode(_:_:)","url":"\/documentation\/swifthpke\/base64\/encode(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"type":"topic","navigatorTitle":[{"text":"Base64","kind":"identifier"}],"abstract":[{"text":"The Base64 structure","type":"text"}],"title":"Base64","kind":"symbol","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"Base64","kind":"identifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","url":"\/documentation\/swifthpke\/base64"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/pemDecode(_:_:)":{"type":"topic","abstract":[{"type":"text","text":"PEM decodes a string"}],"title":"pemDecode(_:_:)","kind":"symbol","role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"pemDecode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/pemDecode(_:_:)","url":"\/documentation\/swifthpke\/base64\/pemdecode(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64/decode(_:)":{"type":"topic","abstract":[{"text":"Base64 decodes a string","type":"text"}],"title":"decode(_:)","kind":"symbol","role":"symbol","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"decode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64\/decode(_:)","url":"\/documentation\/swifthpke\/base64\/decode(_:)"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/byte.json b/docs/data/documentation/swifthpke/byte.json index be63bb0..b7b601e 100644 --- a/docs/data/documentation/swifthpke/byte.json +++ b/docs/data/documentation/swifthpke/byte.json @@ -1 +1 @@ -{"variants":[{"paths":["\/documentation\/swifthpke\/byte"],"traits":[{"interfaceLanguage":"swift"}]}],"metadata":{"role":"symbol","symbolKind":"typealias","roleHeading":"Type Alias","externalID":"s:9SwiftHPKE4Bytea","modules":[{"name":"SwiftHPKE"}],"navigatorTitle":[{"kind":"identifier","text":"Byte"}],"title":"Byte","fragments":[{"text":"typealias","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Byte"}]},"sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Byte","interfaceLanguage":"swift"},"abstract":[{"type":"text","text":"Unsigned 8 bit value"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Byte"},{"text":" = ","kind":"text"},{"preciseIdentifier":"s:s5UInt8V","text":"UInt8","kind":"typeIdentifier"}],"languages":["swift"]}],"kind":"declarations"}],"schemaVersion":{"patch":0,"major":0,"minor":3},"kind":"symbol","seeAlsoSections":[{"generated":true,"title":"Type Aliases","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/Byte":{"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/byte","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Byte","kind":"symbol","abstract":[{"type":"text","text":"Unsigned 8 bit value"}],"navigatorTitle":[{"text":"Byte","kind":"identifier"}],"title":"Byte","fragments":[{"text":"typealias","kind":"keyword"},{"text":" ","kind":"text"},{"text":"Byte","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"}}} \ No newline at end of file +{"sections":[],"seeAlsoSections":[{"title":"Type Aliases","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"schemaVersion":{"minor":3,"major":0,"patch":0},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/byte"]}],"kind":"symbol","identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Byte","interfaceLanguage":"swift"},"metadata":{"navigatorTitle":[{"text":"Byte","kind":"identifier"}],"externalID":"s:9SwiftHPKE4Bytea","role":"symbol","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Type Alias","symbolKind":"typealias","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Byte","kind":"identifier"}],"title":"Byte"},"abstract":[{"type":"text","text":"Unsigned 8 bit value"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"typealias","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Byte"},{"kind":"text","text":" = "},{"kind":"typeIdentifier","text":"UInt8","preciseIdentifier":"s:s5UInt8V"}],"platforms":["macOS"],"languages":["swift"]}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/Byte":{"kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"Byte"}],"title":"Byte","url":"\/documentation\/swifthpke\/byte","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Byte","type":"topic","role":"symbol","abstract":[{"type":"text","text":"Unsigned 8 bit value"}],"fragments":[{"text":"typealias","kind":"keyword"},{"kind":"text","text":" "},{"text":"Byte","kind":"identifier"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/bytes.json b/docs/data/documentation/swifthpke/bytes.json index 7d10c4b..8bdbd87 100644 --- a/docs/data/documentation/swifthpke/bytes.json +++ b/docs/data/documentation/swifthpke/bytes.json @@ -1 +1 @@ -{"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Byte"],"title":"Type Aliases"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/bytes"]}],"kind":"symbol","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"metadata":{"roleHeading":"Type Alias","fragments":[{"text":"typealias","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"navigatorTitle":[{"kind":"identifier","text":"Bytes"}],"role":"symbol","title":"Bytes","modules":[{"name":"SwiftHPKE"}],"symbolKind":"typealias","externalID":"s:9SwiftHPKE5Bytesa"},"schemaVersion":{"minor":3,"patch":0,"major":0},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","interfaceLanguage":"swift"},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"typealias","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"},{"text":" = [","kind":"text"},{"preciseIdentifier":"s:s5UInt8V","text":"UInt8","kind":"typeIdentifier"},{"kind":"text","text":"]"}],"languages":["swift"]}],"kind":"declarations"}],"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Byte":{"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/byte","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Byte","kind":"symbol","abstract":[{"type":"text","text":"Unsigned 8 bit value"}],"navigatorTitle":[{"text":"Byte","kind":"identifier"}],"title":"Byte","fragments":[{"text":"typealias","kind":"keyword"},{"text":" ","kind":"text"},{"text":"Byte","kind":"identifier"}]}}} \ No newline at end of file +{"kind":"symbol","schemaVersion":{"minor":3,"patch":0,"major":0},"seeAlsoSections":[{"generated":true,"title":"Type Aliases","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Byte"]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","interfaceLanguage":"swift"},"variants":[{"paths":["\/documentation\/swifthpke\/bytes"],"traits":[{"interfaceLanguage":"swift"}]}],"abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"sections":[],"metadata":{"symbolKind":"typealias","roleHeading":"Type Alias","modules":[{"name":"SwiftHPKE"}],"role":"symbol","navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"externalID":"s:9SwiftHPKE5Bytesa","title":"Bytes","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}]},"primaryContentSections":[{"declarations":[{"tokens":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"},{"kind":"text","text":" = ["},{"preciseIdentifier":"s:s5UInt8V","kind":"typeIdentifier","text":"UInt8"},{"kind":"text","text":"]"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/Byte":{"kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"Byte"}],"title":"Byte","url":"\/documentation\/swifthpke\/byte","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Byte","type":"topic","role":"symbol","abstract":[{"type":"text","text":"Unsigned 8 bit value"}],"fragments":[{"text":"typealias","kind":"keyword"},{"kind":"text","text":" "},{"text":"Byte","kind":"identifier"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/ciphersuite.json b/docs/data/documentation/swifthpke/ciphersuite.json index 9074ba3..1954a4e 100644 --- a/docs/data/documentation/swifthpke/ciphersuite.json +++ b/docs/data/documentation/swifthpke/ciphersuite.json @@ -1 +1 @@ -{"topicSections":[{"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description"]},{"title":"Conctructor","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/init(kem:kdf:aead:)"]},{"title":"Generate Keys","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/deriveKeyPair(ikm:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/makeKeyPair()"]},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)"],"title":"Base mode"},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)"],"title":"Preshared key mode"},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)"],"title":"Authenticated mode"},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)"],"title":"Authenticated, preshared key mode"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"schemaVersion":{"minor":3,"major":0,"patch":0},"metadata":{"modules":[{"name":"SwiftHPKE"}],"symbolKind":"struct","title":"CipherSuite","externalID":"s:9SwiftHPKE11CipherSuiteV","role":"symbol","navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"roleHeading":"Structure","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}]},"kind":"symbol","sections":[],"abstract":[{"type":"text","text":"The cipher suite"}],"relationshipsSections":[{"title":"Conforms To","identifiers":["doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP"],"type":"conformsTo","kind":"relationships"}],"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","interfaceLanguage":"swift"},"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"],"title":"Structures"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}]}]},{"content":[{"type":"heading","level":2,"text":"Overview","anchor":"Overview"},{"type":"paragraph","inlineContent":[{"text":"A CipherSuite instance combines a ","type":"text"},{"type":"emphasis","inlineContent":[{"text":"Key Encapsulation Mechanism","type":"text"}]},{"type":"text","text":" ("},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","isActive":true,"type":"reference"},{"text":"), a ","type":"text"},{"inlineContent":[{"text":"Key Derivation Function","type":"text"}],"type":"emphasis"},{"text":" (","type":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","type":"reference","isActive":true},{"type":"text","text":")"},{"text":" ","type":"text"},{"text":"and a ","type":"text"},{"type":"emphasis","inlineContent":[{"type":"text","text":"AEAD Encryption Algorithm"}]},{"type":"text","text":" ("},{"isActive":true,"type":"reference","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD"},{"type":"text","text":")."},{"type":"text","text":" "},{"type":"text","text":"It can encrypt or decrypt a single message in one of four modes:"}]},{"items":[{"content":[{"inlineContent":[{"type":"text","text":"Base mode"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"Preshared key mode","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Authenticated mode"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"Authenticated, preshared key mode","type":"text"}]}]}],"type":"unorderedList"}],"kind":"content"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"navigatorTitle":[{"text":"KDF","kind":"identifier"}],"abstract":[{"text":"The key derivation functions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","title":"KDF","url":"\/documentation\/swifthpke\/kdf","type":"topic","kind":"symbol","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"KDF","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/makeKeyPair()":{"kind":"symbol","abstract":[{"type":"text","text":"Generates a public- and private HPKE key pair for "},{"type":"codeVoice","code":"self"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/makeKeyPair()","role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"makeKeyPair"},{"text":"() ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":")","kind":"text"}],"title":"makeKeyPair()","url":"\/documentation\/swifthpke\/ciphersuite\/makekeypair()"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:encap:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:encap:)","kind":"symbol","role":"symbol","type":"topic","abstract":[{"type":"text","text":"Retrieve an export secret in authenticated mode"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)","title":"receiveExport(privateKey:info:context:L:authentication:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/deriveKeyPair(ikm:)":{"kind":"symbol","abstract":[{"type":"text","text":"Derives a public- and private HPKE key pair for "},{"code":"self","type":"codeVoice"},{"text":" based on keying material","type":"text"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/deriveKeyPair(ikm:)","role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"deriveKeyPair","kind":"identifier"},{"kind":"text","text":"("},{"text":"ikm","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> (","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":")"}],"title":"deriveKeyPair(ikm:)","url":"\/documentation\/swifthpke\/ciphersuite\/derivekeypair(ikm:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:psk:pskId:encap:)":{"title":"receiveExport(privateKey:info:context:L:psk:pskId:encap:)","abstract":[{"type":"text","text":"Retrieve an export secret in preshared key mode"}],"role":"symbol","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"receiveExport"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:psk:pskid:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"receiveExport"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)","title":"receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","type":"topic","abstract":[{"text":"Retrieve an export secret in authenticated, preshared key mode","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:encap:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:encap:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"receiveExport"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"type":"topic","kind":"symbol","title":"receiveExport(privateKey:info:context:L:encap:)","abstract":[{"text":"Retrieve an export secret in base mode","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:pt:aad:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:pt:aad:)","kind":"symbol","abstract":[{"text":"Single-shot encryption in authenticated mode","type":"text"}],"title":"seal(publicKey:info:authentication:pt:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","type":"topic","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", ct"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:psk:pskId:pt:aad:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:psk:pskid:pt:aad:)","kind":"symbol","role":"symbol","abstract":[{"text":"Single-shot encryption in authenticated, preshared key mode","type":"text"}],"type":"topic","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pt"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", ct"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","title":"seal(publicKey:info:authentication:psk:pskId:pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"url":"\/documentation\/swifthpke\/base64","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Base64"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","navigatorTitle":[{"text":"Base64","kind":"identifier"}],"title":"Base64","role":"symbol","kind":"symbol","abstract":[{"text":"The Base64 structure","type":"text"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:)","kind":"symbol","role":"symbol","abstract":[{"text":"Generate an export secret in authenticated mode","type":"text"}],"type":"topic","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"sendExport"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","title":"sendExport(publicKey:info:context:L:authentication:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:psk:pskId:pt:aad:)":{"title":"seal(publicKey:info:psk:pskId:pt:aad:)","abstract":[{"type":"text","text":"Single-shot encryption in preshared key mode"}],"role":"symbol","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ct","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:psk:pskid:pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/aead":{"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/aead","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","kind":"symbol","abstract":[{"type":"text","text":"The AEAD encryption algorithm"}],"title":"aead","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"kind":"identifier","text":"aead"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"AEAD","preciseIdentifier":"s:9SwiftHPKE4AEADO"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:psk:pskId:)":{"title":"sendExport(publicKey:info:context:L:psk:pskId:)","abstract":[{"text":"Generate an export secret in preshared key mode","type":"text"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","type":"topic","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", secret"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":")"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:psk:pskid:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encapsulatedKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":")"}],"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"Generate an export secret in base mode"}],"title":"sendExport(publicKey:info:context:L:)","role":"symbol"},"doc://SwiftHPKE/s23CustomStringConvertibleP":{"type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","title":"Swift.CustomStringConvertible"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:ct:aad:encap:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:ct:aad:encap:)","kind":"symbol","role":"symbol","type":"topic","abstract":[{"type":"text","text":"Single-shot decryption in authenticated mode"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","title":"open(privateKey:info:authentication:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:ct:aad:encap:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","abstract":[{"text":"Single-shot decryption in base mode","type":"text"}],"type":"topic","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"open"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"kind":"symbol","title":"open(privateKey:info:ct:aad:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:ct:aad:encap:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","abstract":[{"text":"The key encapsulation mechanisms","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","role":"symbol","title":"KEM","type":"topic","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"KEM","kind":"identifier"}],"navigatorTitle":[{"text":"KEM","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)":{"kind":"symbol","title":"open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)","role":"symbol","type":"topic","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","abstract":[{"type":"text","text":"Single-shot decryption in authenticated, preshared key mode"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kdf":{"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/kdf","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","kind":"symbol","abstract":[{"type":"text","text":"The key derivation function"}],"title":"kdf","fragments":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"text":"kdf","kind":"identifier"},{"kind":"text","text":": "},{"text":"KDF","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KDFO"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:psk:pskId:ct:aad:encap:)":{"title":"open(privateKey:info:psk:pskId:ct:aad:encap:)","abstract":[{"text":"Single-shot decryption in preshared key mode","type":"text"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","type":"topic","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:psk:pskid:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:psk:pskId:)":{"role":"symbol","abstract":[{"type":"text","text":"Generate an export secret in authenticated, preshared key mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:psk:pskid:)","kind":"symbol","title":"sendExport(publicKey:info:context:L:authentication:psk:pskId:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/description":{"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description","kind":"symbol","abstract":[{"type":"text","text":"A textual representation of "},{"code":"self","type":"codeVoice"}],"title":"description","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/init(kem:kdf:aead:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/init(kem:kdf:aead:)","kind":"symbol","title":"init(kem:kdf:aead:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/init(kem:kdf:aead:)","abstract":[{"type":"text","text":"Creates a CipherSuite instance"}],"role":"symbol","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"kem"},{"text":": ","kind":"text"},{"text":"KEM","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"kdf"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE3KDFO","kind":"typeIdentifier","text":"KDF"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aead"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE4AEADO","text":"AEAD"},{"kind":"text","text":")"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kem":{"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/kem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","kind":"symbol","abstract":[{"type":"text","text":"The key encapsulation mechanism"}],"title":"kem","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"kem","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:pt:aad:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","abstract":[{"text":"Single-shot encryption in base mode","type":"text"}],"type":"topic","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pt"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:pt:aad:)","title":"seal(publicKey:info:pt:aad:)","kind":"symbol","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"navigatorTitle":[{"text":"AEAD","kind":"identifier"}],"type":"topic","title":"AEAD","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","url":"\/documentation\/swifthpke\/aead","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"AEAD"}],"abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"role":"symbol","kind":"symbol"}}} \ No newline at end of file +{"kind":"symbol","metadata":{"externalID":"s:9SwiftHPKE11CipherSuiteV","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}],"modules":[{"name":"SwiftHPKE"}],"title":"CipherSuite","roleHeading":"Structure","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"CipherSuite"}],"symbolKind":"struct","role":"symbol"},"schemaVersion":{"minor":3,"patch":0,"major":0},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"},"topicSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description"],"title":"Properties"},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/init(kem:kdf:aead:)"],"title":"Conctructor"},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/deriveKeyPair(ikm:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/makeKeyPair()"],"title":"Generate Keys"},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)"],"title":"Base mode"},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)"],"title":"Preshared key mode"},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)"],"title":"Authenticated mode"},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)"],"title":"Authenticated, preshared key mode"}],"relationshipsSections":[{"title":"Conforms To","kind":"relationships","identifiers":["doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP"],"type":"conformsTo"}],"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"],"title":"Structures"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite"]}],"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"abstract":[{"type":"text","text":"The cipher suite"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"platforms":["macOS"]}]},{"content":[{"text":"Overview","anchor":"Overview","type":"heading","level":2},{"inlineContent":[{"text":"A CipherSuite instance combines a ","type":"text"},{"inlineContent":[{"type":"text","text":"Key Encapsulation Mechanism"}],"type":"emphasis"},{"type":"text","text":" ("},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","isActive":true,"type":"reference"},{"type":"text","text":"), a "},{"inlineContent":[{"type":"text","text":"Key Derivation Function"}],"type":"emphasis"},{"type":"text","text":" ("},{"type":"reference","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","isActive":true},{"text":")","type":"text"},{"type":"text","text":" "},{"type":"text","text":"and a "},{"inlineContent":[{"text":"AEAD Encryption Algorithm","type":"text"}],"type":"emphasis"},{"text":" (","type":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","isActive":true,"type":"reference"},{"type":"text","text":")."},{"type":"text","text":" "},{"text":"It can encrypt or decrypt a single message in one of four modes:","type":"text"}],"type":"paragraph"},{"items":[{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Base mode"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Preshared key mode"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Authenticated mode"}]}]},{"content":[{"inlineContent":[{"type":"text","text":"Authenticated, preshared key mode"}],"type":"paragraph"}]}],"type":"unorderedList"}],"kind":"content"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:pt:aad:)":{"title":"seal(publicKey:info:authentication:pt:aad:)","abstract":[{"type":"text","text":"Single-shot encryption in authenticated mode"}],"role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:pt:aad:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", ct"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:psk:pskId:pt:aad:)":{"abstract":[{"text":"Single-shot encryption in preshared key mode","type":"text"}],"role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:psk:pskid:pt:aad:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","kind":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":")"}],"title":"seal(publicKey:info:psk:pskId:pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/description":{"type":"topic","kind":"symbol","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/description","abstract":[{"text":"A textual representation of ","type":"text"},{"type":"codeVoice","code":"self"}],"title":"description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"type":"topic","navigatorTitle":[{"kind":"identifier","text":"AEAD"}],"role":"symbol","title":"AEAD","kind":"symbol","url":"\/documentation\/swifthpke\/aead","abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"AEAD","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/aead":{"type":"topic","kind":"symbol","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/aead","abstract":[{"text":"The AEAD encryption algorithm","type":"text"}],"title":"aead","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"aead","kind":"identifier"},{"text":": ","kind":"text"},{"text":"AEAD","preciseIdentifier":"s:9SwiftHPKE4AEADO","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kem":{"type":"topic","kind":"symbol","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/kem","abstract":[{"text":"The key encapsulation mechanism","type":"text"}],"title":"kem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"kem"},{"text":": ","kind":"text"},{"text":"KEM","preciseIdentifier":"s:9SwiftHPKE3KEMO","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:encap:)":{"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"Retrieve an export secret in base mode"}],"title":"receiveExport(privateKey:info:context:L:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:psk:pskId:)":{"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":")"}],"type":"topic","abstract":[{"text":"Generate an export secret in authenticated, preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:psk:pskid:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","kind":"symbol","title":"sendExport(publicKey:info:context:L:authentication:psk:pskId:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"url":"\/documentation\/swifthpke\/kdf","navigatorTitle":[{"text":"KDF","kind":"identifier"}],"role":"symbol","abstract":[{"type":"text","text":"The key derivation functions"}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"title":"KDF","type":"topic","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/deriveKeyPair(ikm:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/deriveKeyPair(ikm:)","abstract":[{"type":"text","text":"Derives a public- and private HPKE key pair for "},{"code":"self","type":"codeVoice"},{"type":"text","text":" based on keying material"}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"deriveKeyPair","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"ikm"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> ("},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"kind":"text","text":")"}],"type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/derivekeypair(ikm:)","title":"deriveKeyPair(ikm:)","role":"symbol","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kdf":{"fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"kdf","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE3KDFO","kind":"typeIdentifier","text":"KDF"}],"title":"kdf","url":"\/documentation\/swifthpke\/ciphersuite\/kdf","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","abstract":[{"type":"text","text":"The key derivation function"}],"role":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:psk:pskId:pt:aad:)":{"title":"seal(publicKey:info:authentication:psk:pskId:pt:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:psk:pskid:pt:aad:)","kind":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ct","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":")"}],"abstract":[{"type":"text","text":"Single-shot encryption in authenticated, preshared key mode"}],"type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/init(kem:kdf:aead:)":{"title":"init(kem:kdf:aead:)","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"kem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM"},{"kind":"text","text":", "},{"text":"kdf","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"KDF","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KDFO"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aead"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"AEAD","preciseIdentifier":"s:9SwiftHPKE4AEADO"},{"kind":"text","text":")"}],"url":"\/documentation\/swifthpke\/ciphersuite\/init(kem:kdf:aead:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/init(kem:kdf:aead:)","abstract":[{"type":"text","text":"Creates a CipherSuite instance"}],"kind":"symbol","role":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/s23CustomStringConvertibleP":{"title":"Swift.CustomStringConvertible","type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"type":"topic","navigatorTitle":[{"text":"Base64","kind":"identifier"}],"abstract":[{"text":"The Base64 structure","type":"text"}],"title":"Base64","kind":"symbol","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"Base64","kind":"identifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","url":"\/documentation\/swifthpke\/base64"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:psk:pskId:ct:aad:encap:)":{"title":"open(privateKey:info:psk:pskId:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"ct"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:psk:pskid:ct:aad:encap:)","kind":"symbol","abstract":[{"type":"text","text":"Single-shot decryption in preshared key mode"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:pt:aad:)":{"type":"topic","role":"symbol","abstract":[{"text":"Single-shot encryption in base mode","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","title":"seal(publicKey:info:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pt"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":")","kind":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:pt:aad:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)":{"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"type":"topic","abstract":[{"text":"Single-shot decryption in authenticated, preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","kind":"symbol","title":"open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:psk:pskId:encap:)":{"title":"receiveExport(privateKey:info:context:L:psk:pskId:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)","role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"receiveExport"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:psk:pskid:encap:)","kind":"symbol","abstract":[{"type":"text","text":"Retrieve an export secret in preshared key mode"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:encap:)":{"title":"receiveExport(privateKey:info:context:L:authentication:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)","role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:encap:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"receiveExport"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"abstract":[{"text":"Retrieve an export secret in authenticated mode","type":"text"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)":{"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"type":"topic","abstract":[{"text":"Retrieve an export secret in authenticated, preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","kind":"symbol","title":"receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","url":"\/documentation\/swifthpke\/kem","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"kind":"identifier","text":"KEM"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"kind":"symbol","title":"KEM","abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"role":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:ct:aad:encap:)":{"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"Single-shot decryption in base mode"}],"title":"open(privateKey:info:ct:aad:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:psk:pskId:)":{"title":"sendExport(publicKey:info:context:L:psk:pskId:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:psk:pskid:)","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","abstract":[{"type":"text","text":"Generate an export secret in preshared key mode"}],"role":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:)":{"type":"topic","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","abstract":[{"text":"Generate an export secret in base mode","type":"text"}],"title":"sendExport(publicKey:info:context:L:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encapsulatedKey"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", secret"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","kind":"symbol","role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"sendExport"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encapsulatedKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", secret"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"abstract":[{"text":"Generate an export secret in authenticated mode","type":"text"}],"title":"sendExport(publicKey:info:context:L:authentication:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:ct:aad:encap:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","kind":"symbol","role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:ct:aad:encap:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"ct"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"abstract":[{"text":"Single-shot decryption in authenticated mode","type":"text"}],"title":"open(privateKey:info:authentication:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/makeKeyPair()":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/makeKeyPair()","abstract":[{"text":"Generates a public- and private HPKE key pair for ","type":"text"},{"type":"codeVoice","code":"self"}],"fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"makeKeyPair"},{"text":"() ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":")","kind":"text"}],"type":"topic","title":"makeKeyPair()","url":"\/documentation\/swifthpke\/ciphersuite\/makekeypair()","role":"symbol","kind":"symbol"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/ciphersuite/aead.json b/docs/data/documentation/swifthpke/ciphersuite/aead.json index ca0e264..5795d2e 100644 --- a/docs/data/documentation/swifthpke/ciphersuite/aead.json +++ b/docs/data/documentation/swifthpke/ciphersuite/aead.json @@ -1 +1 @@ -{"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/aead"]}],"schemaVersion":{"patch":0,"major":0,"minor":3},"seeAlsoSections":[{"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description"],"generated":true}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","interfaceLanguage":"swift"},"abstract":[{"text":"The AEAD encryption algorithm","type":"text"}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"text":"aead","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"AEAD","preciseIdentifier":"s:9SwiftHPKE4AEADO","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD"}]}],"kind":"declarations"}],"kind":"symbol","sections":[],"metadata":{"role":"symbol","symbolKind":"property","roleHeading":"Instance Property","externalID":"s:9SwiftHPKE11CipherSuiteV4aeadAA4AEADOvp","modules":[{"name":"SwiftHPKE"}],"title":"aead","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"kind":"identifier","text":"aead"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"AEAD","preciseIdentifier":"s:9SwiftHPKE4AEADO"}]},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kem":{"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/kem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","kind":"symbol","abstract":[{"type":"text","text":"The key encapsulation mechanism"}],"title":"kem","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"kem","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/aead":{"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/aead","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","kind":"symbol","abstract":[{"type":"text","text":"The AEAD encryption algorithm"}],"title":"aead","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"kind":"identifier","text":"aead"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"AEAD","preciseIdentifier":"s:9SwiftHPKE4AEADO"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/description":{"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description","kind":"symbol","abstract":[{"type":"text","text":"A textual representation of "},{"code":"self","type":"codeVoice"}],"title":"description","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kdf":{"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/kdf","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","kind":"symbol","abstract":[{"type":"text","text":"The key derivation function"}],"title":"kdf","fragments":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"text":"kdf","kind":"identifier"},{"kind":"text","text":": "},{"text":"KDF","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KDFO"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"navigatorTitle":[{"text":"AEAD","kind":"identifier"}],"type":"topic","title":"AEAD","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","url":"\/documentation\/swifthpke\/aead","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"AEAD"}],"abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"role":"symbol","kind":"symbol"}}} \ No newline at end of file +{"schemaVersion":{"minor":3,"patch":0,"major":0},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead"},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"aead","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE4AEADO","text":"AEAD","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD"}],"platforms":["macOS"],"languages":["swift"]}]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/aead"]}],"metadata":{"symbolKind":"property","roleHeading":"Instance Property","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"aead","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE4AEADO","kind":"typeIdentifier","text":"AEAD"}],"externalID":"s:9SwiftHPKE11CipherSuiteV4aeadAA4AEADOvp","role":"symbol","modules":[{"name":"SwiftHPKE"}],"title":"aead"},"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"kind":"symbol","seeAlsoSections":[{"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description"],"generated":true}],"abstract":[{"text":"The AEAD encryption algorithm","type":"text"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/aead":{"type":"topic","kind":"symbol","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/aead","abstract":[{"text":"The AEAD encryption algorithm","type":"text"}],"title":"aead","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"aead","kind":"identifier"},{"text":": ","kind":"text"},{"text":"AEAD","preciseIdentifier":"s:9SwiftHPKE4AEADO","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kdf":{"fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"kdf","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE3KDFO","kind":"typeIdentifier","text":"KDF"}],"title":"kdf","url":"\/documentation\/swifthpke\/ciphersuite\/kdf","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","abstract":[{"type":"text","text":"The key derivation function"}],"role":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kem":{"type":"topic","kind":"symbol","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/kem","abstract":[{"text":"The key encapsulation mechanism","type":"text"}],"title":"kem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"kem"},{"text":": ","kind":"text"},{"text":"KEM","preciseIdentifier":"s:9SwiftHPKE3KEMO","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"type":"topic","navigatorTitle":[{"kind":"identifier","text":"AEAD"}],"role":"symbol","title":"AEAD","kind":"symbol","url":"\/documentation\/swifthpke\/aead","abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"AEAD","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/description":{"type":"topic","kind":"symbol","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/description","abstract":[{"text":"A textual representation of ","type":"text"},{"type":"codeVoice","code":"self"}],"title":"description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/ciphersuite/derivekeypair(ikm:).json b/docs/data/documentation/swifthpke/ciphersuite/derivekeypair(ikm:).json index b7e1f51..8d8812c 100644 --- a/docs/data/documentation/swifthpke/ciphersuite/derivekeypair(ikm:).json +++ b/docs/data/documentation/swifthpke/ciphersuite/derivekeypair(ikm:).json @@ -1 +1 @@ -{"seeAlsoSections":[{"title":"Generate Keys","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/makeKeyPair()"],"generated":true}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/deriveKeyPair(ikm:)"},"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/derivekeypair(ikm:)"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","metadata":{"externalID":"s:9SwiftHPKE11CipherSuiteV13deriveKeyPair3ikmAA06PublicF0V_AA07PrivateF0VtSays5UInt8VG_tKF","title":"deriveKeyPair(ikm:)","role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"deriveKeyPair","kind":"identifier"},{"text":"(","kind":"text"},{"text":"ikm","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":")","kind":"text"}],"modules":[{"name":"SwiftHPKE"}],"roleHeading":"Instance Method","symbolKind":"method"},"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"schemaVersion":{"minor":3,"patch":0,"major":0},"abstract":[{"type":"text","text":"Derives a public- and private HPKE key pair for "},{"type":"codeVoice","code":"self"},{"text":" based on keying material","type":"text"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"deriveKeyPair","kind":"identifier"},{"text":"(","kind":"text"},{"text":"ikm","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> ("},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":")"}],"languages":["swift"]}]},{"parameters":[{"content":[{"inlineContent":[{"type":"text","text":"The keying material"}],"type":"paragraph"}],"name":"ikm"}],"kind":"parameters"},{"content":[{"level":2,"text":"Return Value","type":"heading","anchor":"return-value"},{"type":"paragraph","inlineContent":[{"type":"text","text":"The public key and private key pair"}]}],"kind":"content"},{"content":[{"text":"Discussion","type":"heading","anchor":"discussion","level":2},{"content":[{"inlineContent":[{"text":"A ","type":"text"},{"type":"codeVoice","code":"derivedKeyError"},{"type":"text","text":" exception in extremely rare cases"}],"type":"paragraph"}],"name":"Throws","type":"aside","style":"note"}],"kind":"content"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/deriveKeyPair(ikm:)":{"kind":"symbol","abstract":[{"type":"text","text":"Derives a public- and private HPKE key pair for "},{"code":"self","type":"codeVoice"},{"text":" based on keying material","type":"text"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/deriveKeyPair(ikm:)","role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"deriveKeyPair","kind":"identifier"},{"kind":"text","text":"("},{"text":"ikm","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> (","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":")"}],"title":"deriveKeyPair(ikm:)","url":"\/documentation\/swifthpke\/ciphersuite\/derivekeypair(ikm:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/makeKeyPair()":{"kind":"symbol","abstract":[{"type":"text","text":"Generates a public- and private HPKE key pair for "},{"type":"codeVoice","code":"self"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/makeKeyPair()","role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"makeKeyPair"},{"text":"() ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":")","kind":"text"}],"title":"makeKeyPair()","url":"\/documentation\/swifthpke\/ciphersuite\/makekeypair()"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"}}} \ No newline at end of file +{"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"deriveKeyPair","kind":"identifier"},{"kind":"text","text":"("},{"text":"ikm","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> ("},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"},{"kind":"text","text":", "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":")","kind":"text"}]}]},{"kind":"parameters","parameters":[{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The keying material"}]}],"name":"ikm"}]},{"kind":"content","content":[{"anchor":"return-value","level":2,"type":"heading","text":"Return Value"},{"inlineContent":[{"type":"text","text":"The public key and private key pair"}],"type":"paragraph"}]},{"content":[{"level":2,"type":"heading","text":"Discussion","anchor":"discussion"},{"style":"note","type":"aside","name":"Throws","content":[{"type":"paragraph","inlineContent":[{"text":"A ","type":"text"},{"code":"derivedKeyError","type":"codeVoice"},{"text":" exception in extremely rare cases","type":"text"}]}]}],"kind":"content"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/deriveKeyPair(ikm:)"},"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/makeKeyPair()"],"generated":true,"title":"Generate Keys"}],"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/derivekeypair(ikm:)"],"traits":[{"interfaceLanguage":"swift"}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"metadata":{"roleHeading":"Instance Method","modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"deriveKeyPair"},{"kind":"text","text":"("},{"text":"ikm","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":")"}],"symbolKind":"method","externalID":"s:9SwiftHPKE11CipherSuiteV13deriveKeyPair3ikmAA06PublicF0V_AA07PrivateF0VtSays5UInt8VG_tKF","title":"deriveKeyPair(ikm:)","role":"symbol"},"kind":"symbol","schemaVersion":{"minor":3,"major":0,"patch":0},"abstract":[{"type":"text","text":"Derives a public- and private HPKE key pair for "},{"code":"self","type":"codeVoice"},{"type":"text","text":" based on keying material"}],"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/deriveKeyPair(ikm:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/deriveKeyPair(ikm:)","abstract":[{"type":"text","text":"Derives a public- and private HPKE key pair for "},{"code":"self","type":"codeVoice"},{"type":"text","text":" based on keying material"}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"deriveKeyPair","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"ikm"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> ("},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"kind":"text","text":")"}],"type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/derivekeypair(ikm:)","title":"deriveKeyPair(ikm:)","role":"symbol","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/makeKeyPair()":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/makeKeyPair()","abstract":[{"text":"Generates a public- and private HPKE key pair for ","type":"text"},{"type":"codeVoice","code":"self"}],"fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"makeKeyPair"},{"text":"() ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":")","kind":"text"}],"type":"topic","title":"makeKeyPair()","url":"\/documentation\/swifthpke\/ciphersuite\/makekeypair()","role":"symbol","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/ciphersuite/description.json b/docs/data/documentation/swifthpke/ciphersuite/description.json index 6e03813..094533c 100644 --- a/docs/data/documentation/swifthpke/ciphersuite/description.json +++ b/docs/data/documentation/swifthpke/ciphersuite/description.json @@ -1 +1 @@ -{"kind":"symbol","variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/description"]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"sections":[],"metadata":{"roleHeading":"Instance Property","role":"symbol","externalID":"s:9SwiftHPKE11CipherSuiteV11descriptionSSvp","title":"description","modules":[{"name":"SwiftHPKE"}],"symbolKind":"property","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description","interfaceLanguage":"swift"},"seeAlsoSections":[{"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead"],"generated":true}],"abstract":[{"text":"A textual representation of ","type":"text"},{"code":"self","type":"codeVoice"}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":" { "},{"text":"get","kind":"keyword"},{"kind":"text","text":" }"}],"languages":["swift"]}],"kind":"declarations"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kem":{"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/kem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","kind":"symbol","abstract":[{"type":"text","text":"The key encapsulation mechanism"}],"title":"kem","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"kem","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kdf":{"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/kdf","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","kind":"symbol","abstract":[{"type":"text","text":"The key derivation function"}],"title":"kdf","fragments":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"text":"kdf","kind":"identifier"},{"kind":"text","text":": "},{"text":"KDF","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KDFO"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/aead":{"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/aead","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","kind":"symbol","abstract":[{"type":"text","text":"The AEAD encryption algorithm"}],"title":"aead","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"kind":"identifier","text":"aead"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"AEAD","preciseIdentifier":"s:9SwiftHPKE4AEADO"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/description":{"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description","kind":"symbol","abstract":[{"type":"text","text":"A textual representation of "},{"code":"self","type":"codeVoice"}],"title":"description","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}]}}} \ No newline at end of file +{"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead"],"title":"Properties","generated":true}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description"},"schemaVersion":{"minor":3,"patch":0,"major":0},"sections":[],"metadata":{"title":"description","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"}],"roleHeading":"Instance Property","role":"symbol","externalID":"s:9SwiftHPKE11CipherSuiteV11descriptionSSvp","modules":[{"name":"SwiftHPKE"}],"symbolKind":"property"},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"},{"kind":"text","text":" { "},{"text":"get","kind":"keyword"},{"kind":"text","text":" }"}],"platforms":["macOS"],"languages":["swift"]}]}],"abstract":[{"type":"text","text":"A textual representation of "},{"type":"codeVoice","code":"self"}],"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/description"],"traits":[{"interfaceLanguage":"swift"}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kdf":{"fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"kdf","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE3KDFO","kind":"typeIdentifier","text":"KDF"}],"title":"kdf","url":"\/documentation\/swifthpke\/ciphersuite\/kdf","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","abstract":[{"type":"text","text":"The key derivation function"}],"role":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/aead":{"type":"topic","kind":"symbol","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/aead","abstract":[{"text":"The AEAD encryption algorithm","type":"text"}],"title":"aead","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"aead","kind":"identifier"},{"text":": ","kind":"text"},{"text":"AEAD","preciseIdentifier":"s:9SwiftHPKE4AEADO","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kem":{"type":"topic","kind":"symbol","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/kem","abstract":[{"text":"The key encapsulation mechanism","type":"text"}],"title":"kem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"kem"},{"text":": ","kind":"text"},{"text":"KEM","preciseIdentifier":"s:9SwiftHPKE3KEMO","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/description":{"type":"topic","kind":"symbol","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/description","abstract":[{"text":"A textual representation of ","type":"text"},{"type":"codeVoice","code":"self"}],"title":"description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/ciphersuite/init(kem:kdf:aead:).json b/docs/data/documentation/swifthpke/ciphersuite/init(kem:kdf:aead:).json index 32505f3..3bbc958 100644 --- a/docs/data/documentation/swifthpke/ciphersuite/init(kem:kdf:aead:).json +++ b/docs/data/documentation/swifthpke/ciphersuite/init(kem:kdf:aead:).json @@ -1 +1 @@ -{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/init(kem:kdf:aead:)"]}],"kind":"symbol","abstract":[{"text":"Creates a CipherSuite instance","type":"text"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/init(kem:kdf:aead:)","interfaceLanguage":"swift"},"sections":[],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"kem"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","kind":"typeIdentifier","text":"KEM","preciseIdentifier":"s:9SwiftHPKE3KEMO"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"kdf"},{"text":": ","kind":"text"},{"text":"KDF","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","preciseIdentifier":"s:9SwiftHPKE3KDFO"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aead"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","kind":"typeIdentifier","text":"AEAD","preciseIdentifier":"s:9SwiftHPKE4AEADO"},{"text":")","kind":"text"}],"languages":["swift"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"content":[{"type":"paragraph","inlineContent":[{"text":"The key encapsulation mechanism","type":"text"}]}],"name":"kem"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The key derivation function"}]}],"name":"kdf"},{"name":"aead","content":[{"inlineContent":[{"text":"The AEAD encryption algorithm","type":"text"}],"type":"paragraph"}]}]}],"metadata":{"roleHeading":"Initializer","symbolKind":"init","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"kem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"KEM","preciseIdentifier":"s:9SwiftHPKE3KEMO"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"kdf"},{"text":": ","kind":"text"},{"text":"KDF","preciseIdentifier":"s:9SwiftHPKE3KDFO","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aead","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"AEAD","preciseIdentifier":"s:9SwiftHPKE4AEADO"},{"text":")","kind":"text"}],"modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE11CipherSuiteV3kem3kdf4aeadAcA3KEMO_AA3KDFOAA4AEADOtcfc","title":"init(kem:kdf:aead:)","role":"symbol"},"schemaVersion":{"minor":3,"patch":0,"major":0},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"navigatorTitle":[{"text":"KDF","kind":"identifier"}],"abstract":[{"text":"The key derivation functions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","title":"KDF","url":"\/documentation\/swifthpke\/kdf","type":"topic","kind":"symbol","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"KDF","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","abstract":[{"text":"The key encapsulation mechanisms","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","role":"symbol","title":"KEM","type":"topic","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"KEM","kind":"identifier"}],"navigatorTitle":[{"text":"KEM","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"navigatorTitle":[{"text":"AEAD","kind":"identifier"}],"type":"topic","title":"AEAD","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","url":"\/documentation\/swifthpke\/aead","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"AEAD"}],"abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"role":"symbol","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/init(kem:kdf:aead:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/init(kem:kdf:aead:)","kind":"symbol","title":"init(kem:kdf:aead:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/init(kem:kdf:aead:)","abstract":[{"type":"text","text":"Creates a CipherSuite instance"}],"role":"symbol","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"kem"},{"text":": ","kind":"text"},{"text":"KEM","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"kdf"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE3KDFO","kind":"typeIdentifier","text":"KDF"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aead"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE4AEADO","text":"AEAD"},{"kind":"text","text":")"}]}}} \ No newline at end of file +{"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/init(kem:kdf:aead:)"]}],"kind":"symbol","schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/init(kem:kdf:aead:)"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"abstract":[{"type":"text","text":"Creates a CipherSuite instance"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"init","kind":"keyword"},{"kind":"text","text":"("},{"text":"kem","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","text":"KEM","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO"},{"kind":"text","text":", "},{"kind":"externalParam","text":"kdf"},{"kind":"text","text":": "},{"text":"KDF","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","preciseIdentifier":"s:9SwiftHPKE3KDFO","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aead"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE4AEADO","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","text":"AEAD","kind":"typeIdentifier"},{"kind":"text","text":")"}],"languages":["swift"],"platforms":["macOS"]}]},{"parameters":[{"name":"kem","content":[{"inlineContent":[{"text":"The key encapsulation mechanism","type":"text"}],"type":"paragraph"}]},{"name":"kdf","content":[{"type":"paragraph","inlineContent":[{"text":"The key derivation function","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"The AEAD encryption algorithm","type":"text"}]}],"name":"aead"}],"kind":"parameters"}],"metadata":{"modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE11CipherSuiteV3kem3kdf4aeadAcA3KEMO_AA3KDFOAA4AEADOtcfc","symbolKind":"init","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"kem"},{"kind":"text","text":": "},{"text":"KEM","preciseIdentifier":"s:9SwiftHPKE3KEMO","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"kdf","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"KDF","preciseIdentifier":"s:9SwiftHPKE3KDFO"},{"text":", ","kind":"text"},{"text":"aead","kind":"externalParam"},{"kind":"text","text":": "},{"text":"AEAD","preciseIdentifier":"s:9SwiftHPKE4AEADO","kind":"typeIdentifier"},{"text":")","kind":"text"}],"role":"symbol","roleHeading":"Initializer","title":"init(kem:kdf:aead:)"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","url":"\/documentation\/swifthpke\/kem","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"kind":"identifier","text":"KEM"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"kind":"symbol","title":"KEM","abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"role":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"url":"\/documentation\/swifthpke\/kdf","navigatorTitle":[{"text":"KDF","kind":"identifier"}],"role":"symbol","abstract":[{"type":"text","text":"The key derivation functions"}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"title":"KDF","type":"topic","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"type":"topic","navigatorTitle":[{"kind":"identifier","text":"AEAD"}],"role":"symbol","title":"AEAD","kind":"symbol","url":"\/documentation\/swifthpke\/aead","abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"AEAD","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/init(kem:kdf:aead:)":{"title":"init(kem:kdf:aead:)","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"kem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM"},{"kind":"text","text":", "},{"text":"kdf","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"KDF","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KDFO"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aead"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"AEAD","preciseIdentifier":"s:9SwiftHPKE4AEADO"},{"kind":"text","text":")"}],"url":"\/documentation\/swifthpke\/ciphersuite\/init(kem:kdf:aead:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/init(kem:kdf:aead:)","abstract":[{"type":"text","text":"Creates a CipherSuite instance"}],"kind":"symbol","role":"symbol","type":"topic"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/ciphersuite/kdf.json b/docs/data/documentation/swifthpke/ciphersuite/kdf.json index 6321ecf..49de559 100644 --- a/docs/data/documentation/swifthpke/ciphersuite/kdf.json +++ b/docs/data/documentation/swifthpke/ciphersuite/kdf.json @@ -1 +1 @@ -{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"kind":"symbol","metadata":{"role":"symbol","symbolKind":"property","externalID":"s:9SwiftHPKE11CipherSuiteV3kdfAA3KDFOvp","modules":[{"name":"SwiftHPKE"}],"fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"text":"kdf","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE3KDFO","kind":"typeIdentifier","text":"KDF"}],"roleHeading":"Instance Property","title":"kdf"},"schemaVersion":{"minor":3,"patch":0,"major":0},"sections":[],"abstract":[{"text":"The key derivation function","type":"text"}],"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/kdf"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","interfaceLanguage":"swift"},"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description"],"title":"Properties"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"text":"kdf","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KDFO","text":"KDF","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"}],"languages":["swift"]}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/description":{"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description","kind":"symbol","abstract":[{"type":"text","text":"A textual representation of "},{"code":"self","type":"codeVoice"}],"title":"description","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kem":{"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/kem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","kind":"symbol","abstract":[{"type":"text","text":"The key encapsulation mechanism"}],"title":"kem","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"kem","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"navigatorTitle":[{"text":"KDF","kind":"identifier"}],"abstract":[{"text":"The key derivation functions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","title":"KDF","url":"\/documentation\/swifthpke\/kdf","type":"topic","kind":"symbol","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"KDF","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kdf":{"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/kdf","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","kind":"symbol","abstract":[{"type":"text","text":"The key derivation function"}],"title":"kdf","fragments":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"text":"kdf","kind":"identifier"},{"kind":"text","text":": "},{"text":"KDF","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KDFO"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/aead":{"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/aead","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","kind":"symbol","abstract":[{"type":"text","text":"The AEAD encryption algorithm"}],"title":"aead","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"kind":"identifier","text":"aead"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"AEAD","preciseIdentifier":"s:9SwiftHPKE4AEADO"}]}}} \ No newline at end of file +{"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"kdf","kind":"identifier"},{"kind":"text","text":": "},{"text":"KDF","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KDFO"}]}]}],"seeAlsoSections":[{"generated":true,"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description"]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf"},"abstract":[{"type":"text","text":"The key derivation function"}],"metadata":{"roleHeading":"Instance Property","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"kdf"},{"kind":"text","text":": "},{"text":"KDF","preciseIdentifier":"s:9SwiftHPKE3KDFO","kind":"typeIdentifier"}],"symbolKind":"property","role":"symbol","title":"kdf","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE11CipherSuiteV3kdfAA3KDFOvp"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/kdf"],"traits":[{"interfaceLanguage":"swift"}]}],"sections":[],"kind":"symbol","schemaVersion":{"patch":0,"minor":3,"major":0},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"url":"\/documentation\/swifthpke\/kdf","navigatorTitle":[{"text":"KDF","kind":"identifier"}],"role":"symbol","abstract":[{"type":"text","text":"The key derivation functions"}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"title":"KDF","type":"topic","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kem":{"type":"topic","kind":"symbol","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/kem","abstract":[{"text":"The key encapsulation mechanism","type":"text"}],"title":"kem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"kem"},{"text":": ","kind":"text"},{"text":"KEM","preciseIdentifier":"s:9SwiftHPKE3KEMO","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/aead":{"type":"topic","kind":"symbol","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/aead","abstract":[{"text":"The AEAD encryption algorithm","type":"text"}],"title":"aead","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"aead","kind":"identifier"},{"text":": ","kind":"text"},{"text":"AEAD","preciseIdentifier":"s:9SwiftHPKE4AEADO","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/description":{"type":"topic","kind":"symbol","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/description","abstract":[{"text":"A textual representation of ","type":"text"},{"type":"codeVoice","code":"self"}],"title":"description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kdf":{"fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"kdf","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE3KDFO","kind":"typeIdentifier","text":"KDF"}],"title":"kdf","url":"\/documentation\/swifthpke\/ciphersuite\/kdf","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","abstract":[{"type":"text","text":"The key derivation function"}],"role":"symbol","type":"topic"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/ciphersuite/kem.json b/docs/data/documentation/swifthpke/ciphersuite/kem.json index 5852d0d..d9ed3e4 100644 --- a/docs/data/documentation/swifthpke/ciphersuite/kem.json +++ b/docs/data/documentation/swifthpke/ciphersuite/kem.json @@ -1 +1 @@ -{"primaryContentSections":[{"declarations":[{"tokens":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"text":"kem","kind":"identifier"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM","kind":"typeIdentifier"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"}],"sections":[],"metadata":{"role":"symbol","externalID":"s:9SwiftHPKE11CipherSuiteV3kemAA3KEMOvp","title":"kem","modules":[{"name":"SwiftHPKE"}],"fragments":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"text":"kem","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE3KEMO","kind":"typeIdentifier","text":"KEM"}],"symbolKind":"property","roleHeading":"Instance Property"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"schemaVersion":{"major":0,"minor":3,"patch":0},"kind":"symbol","variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/kem"],"traits":[{"interfaceLanguage":"swift"}]}],"seeAlsoSections":[{"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description"],"generated":true}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem"},"abstract":[{"text":"The key encapsulation mechanism","type":"text"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/description":{"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description","kind":"symbol","abstract":[{"type":"text","text":"A textual representation of "},{"code":"self","type":"codeVoice"}],"title":"description","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kdf":{"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/kdf","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","kind":"symbol","abstract":[{"type":"text","text":"The key derivation function"}],"title":"kdf","fragments":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"text":"kdf","kind":"identifier"},{"kind":"text","text":": "},{"text":"KDF","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KDFO"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/aead":{"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/aead","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","kind":"symbol","abstract":[{"type":"text","text":"The AEAD encryption algorithm"}],"title":"aead","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"kind":"identifier","text":"aead"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"AEAD","preciseIdentifier":"s:9SwiftHPKE4AEADO"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","abstract":[{"text":"The key encapsulation mechanisms","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","role":"symbol","title":"KEM","type":"topic","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"KEM","kind":"identifier"}],"navigatorTitle":[{"text":"KEM","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kem":{"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/kem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","kind":"symbol","abstract":[{"type":"text","text":"The key encapsulation mechanism"}],"title":"kem","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"kem","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM"}]}}} \ No newline at end of file +{"sections":[],"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/kem"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"kind":"symbol","schemaVersion":{"major":0,"minor":3,"patch":0},"metadata":{"roleHeading":"Instance Property","title":"kem","modules":[{"name":"SwiftHPKE"}],"fragments":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"kind":"identifier","text":"kem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM"}],"role":"symbol","externalID":"s:9SwiftHPKE11CipherSuiteV3kemAA3KEMOvp","symbolKind":"property"},"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description"],"generated":true,"title":"Properties"}],"abstract":[{"text":"The key encapsulation mechanism","type":"text"}],"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"kem"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","text":"KEM"}]}],"kind":"declarations"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kdf":{"fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"kdf","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE3KDFO","kind":"typeIdentifier","text":"KDF"}],"title":"kdf","url":"\/documentation\/swifthpke\/ciphersuite\/kdf","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kdf","abstract":[{"type":"text","text":"The key derivation function"}],"role":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/kem":{"type":"topic","kind":"symbol","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/kem","abstract":[{"text":"The key encapsulation mechanism","type":"text"}],"title":"kem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/kem","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"kem"},{"text":": ","kind":"text"},{"text":"KEM","preciseIdentifier":"s:9SwiftHPKE3KEMO","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/aead":{"type":"topic","kind":"symbol","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/aead","abstract":[{"text":"The AEAD encryption algorithm","type":"text"}],"title":"aead","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/aead","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"aead","kind":"identifier"},{"text":": ","kind":"text"},{"text":"AEAD","preciseIdentifier":"s:9SwiftHPKE4AEADO","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/description":{"type":"topic","kind":"symbol","role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/description","abstract":[{"text":"A textual representation of ","type":"text"},{"type":"codeVoice","code":"self"}],"title":"description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/description","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","url":"\/documentation\/swifthpke\/kem","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"kind":"identifier","text":"KEM"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"kind":"symbol","title":"KEM","abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"role":"symbol","type":"topic"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/ciphersuite/makekeypair().json b/docs/data/documentation/swifthpke/ciphersuite/makekeypair().json index 901fe96..832f305 100644 --- a/docs/data/documentation/swifthpke/ciphersuite/makekeypair().json +++ b/docs/data/documentation/swifthpke/ciphersuite/makekeypair().json @@ -1 +1 @@ -{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"schemaVersion":{"major":0,"minor":3,"patch":0},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/makekeypair()"]}],"sections":[],"abstract":[{"text":"Generates a public- and private HPKE key pair for ","type":"text"},{"code":"self","type":"codeVoice"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/makeKeyPair()","interfaceLanguage":"swift"},"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/deriveKeyPair(ikm:)"],"title":"Generate Keys"}],"metadata":{"title":"makeKeyPair()","modules":[{"name":"SwiftHPKE"}],"symbolKind":"method","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"makeKeyPair","kind":"identifier"},{"text":"() ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> ("},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":")","kind":"text"}],"roleHeading":"Instance Method","externalID":"s:9SwiftHPKE11CipherSuiteV11makeKeyPairAA06PublicF0V_AA07PrivateF0VtyKF","role":"symbol"},"kind":"symbol","primaryContentSections":[{"declarations":[{"tokens":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"makeKeyPair"},{"kind":"text","text":"() "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> ("},{"text":"PublicKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","kind":"typeIdentifier","text":"PrivateKey"},{"text":")","kind":"text"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"},{"kind":"content","content":[{"anchor":"return-value","type":"heading","text":"Return Value","level":2},{"type":"paragraph","inlineContent":[{"text":"The public key and private key pair","type":"text"}]}]},{"kind":"content","content":[{"text":"Discussion","type":"heading","level":2,"anchor":"discussion"},{"type":"aside","content":[{"inlineContent":[{"type":"text","text":"A "},{"type":"codeVoice","code":"derivedKeyError"},{"type":"text","text":" exception in extremely rare cases"}],"type":"paragraph"}],"name":"Throws","style":"note"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/makeKeyPair()":{"kind":"symbol","abstract":[{"type":"text","text":"Generates a public- and private HPKE key pair for "},{"type":"codeVoice","code":"self"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/makeKeyPair()","role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"makeKeyPair"},{"text":"() ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":")","kind":"text"}],"title":"makeKeyPair()","url":"\/documentation\/swifthpke\/ciphersuite\/makekeypair()"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/deriveKeyPair(ikm:)":{"kind":"symbol","abstract":[{"type":"text","text":"Derives a public- and private HPKE key pair for "},{"code":"self","type":"codeVoice"},{"text":" based on keying material","type":"text"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/deriveKeyPair(ikm:)","role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"deriveKeyPair","kind":"identifier"},{"kind":"text","text":"("},{"text":"ikm","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> (","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":")"}],"title":"deriveKeyPair(ikm:)","url":"\/documentation\/swifthpke\/ciphersuite\/derivekeypair(ikm:)"}}} \ No newline at end of file +{"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"makeKeyPair","kind":"identifier"},{"text":"() ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":")"}]}],"kind":"declarations"},{"kind":"content","content":[{"type":"heading","text":"Return Value","level":2,"anchor":"return-value"},{"type":"paragraph","inlineContent":[{"type":"text","text":"The public key and private key pair"}]}]},{"content":[{"text":"Discussion","anchor":"discussion","type":"heading","level":2},{"style":"note","type":"aside","content":[{"type":"paragraph","inlineContent":[{"text":"A ","type":"text"},{"code":"derivedKeyError","type":"codeVoice"},{"text":" exception in extremely rare cases","type":"text"}]}],"name":"Throws"}],"kind":"content"}],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"sections":[],"metadata":{"symbolKind":"method","title":"makeKeyPair()","roleHeading":"Instance Method","externalID":"s:9SwiftHPKE11CipherSuiteV11makeKeyPairAA06PublicF0V_AA07PrivateF0VtyKF","modules":[{"name":"SwiftHPKE"}],"fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"makeKeyPair","kind":"identifier"},{"text":"() ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> ("},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":")","kind":"text"}],"role":"symbol"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/makekeypair()"]}],"seeAlsoSections":[{"title":"Generate Keys","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/deriveKeyPair(ikm:)"],"generated":true}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/makeKeyPair()","interfaceLanguage":"swift"},"schemaVersion":{"patch":0,"minor":3,"major":0},"abstract":[{"text":"Generates a public- and private HPKE key pair for ","type":"text"},{"type":"codeVoice","code":"self"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/makeKeyPair()":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/makeKeyPair()","abstract":[{"text":"Generates a public- and private HPKE key pair for ","type":"text"},{"type":"codeVoice","code":"self"}],"fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"makeKeyPair"},{"text":"() ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":")","kind":"text"}],"type":"topic","title":"makeKeyPair()","url":"\/documentation\/swifthpke\/ciphersuite\/makekeypair()","role":"symbol","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/deriveKeyPair(ikm:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/deriveKeyPair(ikm:)","abstract":[{"type":"text","text":"Derives a public- and private HPKE key pair for "},{"code":"self","type":"codeVoice"},{"type":"text","text":" based on keying material"}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"deriveKeyPair","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"ikm"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> ("},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"kind":"text","text":")"}],"type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/derivekeypair(ikm:)","title":"deriveKeyPair(ikm:)","role":"symbol","kind":"symbol"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:ct:aad:encap:).json b/docs/data/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:ct:aad:encap:).json index 17ba343..b925e09 100644 --- a/docs/data/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:ct:aad:encap:).json +++ b/docs/data/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:ct:aad:encap:).json @@ -1 +1 @@ -{"seeAlsoSections":[{"generated":true,"title":"Authenticated mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)"]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:ct:aad:encap:)"]}],"schemaVersion":{"major":0,"patch":0,"minor":3},"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"metadata":{"title":"open(privateKey:info:authentication:ct:aad:encap:)","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Instance Method","symbolKind":"method","externalID":"s:9SwiftHPKE11CipherSuiteV4open10privateKey4info14authentication2ct3aad5encapSays5UInt8VGAA07PrivateG0V_AmA06PublicG0VA3MtKF","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"ct","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"role":"symbol"},"sections":[],"abstract":[{"type":"text","text":"Single-shot decryption in authenticated mode"}],"primaryContentSections":[{"declarations":[{"languages":["swift"],"tokens":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"ct"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"platforms":["macOS"]}],"kind":"declarations"},{"parameters":[{"name":"privateKey","content":[{"inlineContent":[{"type":"text","text":"The recipient private key"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"The additional information","type":"text"}]}],"name":"info"},{"name":"authentication","content":[{"inlineContent":[{"type":"text","text":"The sender public key"}],"type":"paragraph"}]},{"name":"ct","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The cipher text to decrypt"}]}]},{"name":"aad","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The associated data"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"The encapsulated key","type":"text"}]}],"name":"encap"}],"kind":"parameters"},{"content":[{"level":2,"type":"heading","anchor":"return-value","text":"Return Value"},{"inlineContent":[{"text":"The plain text","type":"text"}],"type":"paragraph"}],"kind":"content"},{"kind":"content","content":[{"type":"heading","level":2,"text":"Discussion","anchor":"discussion"},{"style":"note","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"self"},{"text":" or the decryption fails or ","type":"text"},{"type":"codeVoice","code":"self.aead"},{"type":"text","text":" is EXPORTONLY"}]}],"type":"aside","name":"Throws"}]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:pt:aad:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:pt:aad:)","kind":"symbol","abstract":[{"text":"Single-shot encryption in authenticated mode","type":"text"}],"title":"seal(publicKey:info:authentication:pt:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","type":"topic","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", ct"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:ct:aad:encap:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:ct:aad:encap:)","kind":"symbol","role":"symbol","type":"topic","abstract":[{"type":"text","text":"Single-shot decryption in authenticated mode"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","title":"open(privateKey:info:authentication:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:)","kind":"symbol","role":"symbol","abstract":[{"text":"Generate an export secret in authenticated mode","type":"text"}],"type":"topic","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"sendExport"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","title":"sendExport(publicKey:info:context:L:authentication:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:encap:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:encap:)","kind":"symbol","role":"symbol","type":"topic","abstract":[{"type":"text","text":"Retrieve an export secret in authenticated mode"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)","title":"receiveExport(privateKey:info:context:L:authentication:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"}}} \ No newline at end of file +{"kind":"symbol","identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)"},"primaryContentSections":[{"declarations":[{"tokens":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"},{"kind":"text","text":", "},{"text":"ct","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"privateKey","content":[{"inlineContent":[{"type":"text","text":"The recipient private key"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"The additional information","type":"text"}]}],"name":"info"},{"content":[{"inlineContent":[{"type":"text","text":"The sender public key"}],"type":"paragraph"}],"name":"authentication"},{"content":[{"type":"paragraph","inlineContent":[{"text":"The cipher text to decrypt","type":"text"}]}],"name":"ct"},{"name":"aad","content":[{"type":"paragraph","inlineContent":[{"text":"The associated data","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The encapsulated key"}]}],"name":"encap"}]},{"kind":"content","content":[{"level":2,"text":"Return Value","anchor":"return-value","type":"heading"},{"inlineContent":[{"type":"text","text":"The plain text"}],"type":"paragraph"}]},{"content":[{"anchor":"discussion","text":"Discussion","level":2,"type":"heading"},{"content":[{"type":"paragraph","inlineContent":[{"text":"An exception if one of the keys does not match ","type":"text"},{"type":"codeVoice","code":"self"},{"text":" or the decryption fails or ","type":"text"},{"code":"self.aead","type":"codeVoice"},{"type":"text","text":" is EXPORTONLY"}]}],"style":"note","name":"Throws","type":"aside"}],"kind":"content"}],"schemaVersion":{"patch":0,"major":0,"minor":3},"metadata":{"role":"symbol","title":"open(privateKey:info:authentication:ct:aad:encap:)","symbolKind":"method","externalID":"s:9SwiftHPKE11CipherSuiteV4open10privateKey4info14authentication2ct3aad5encapSays5UInt8VGAA07PrivateG0V_AmA06PublicG0VA3MtKF","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"open"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"roleHeading":"Instance Method","modules":[{"name":"SwiftHPKE"}]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:ct:aad:encap:)"]}],"abstract":[{"type":"text","text":"Single-shot decryption in authenticated mode"}],"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"seeAlsoSections":[{"generated":true,"title":"Authenticated mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:pt:aad:)":{"title":"seal(publicKey:info:authentication:pt:aad:)","abstract":[{"type":"text","text":"Single-shot encryption in authenticated mode"}],"role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:pt:aad:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", ct"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","kind":"symbol","role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"sendExport"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encapsulatedKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", secret"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"abstract":[{"text":"Generate an export secret in authenticated mode","type":"text"}],"title":"sendExport(publicKey:info:context:L:authentication:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:ct:aad:encap:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","kind":"symbol","role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:ct:aad:encap:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"ct"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"abstract":[{"text":"Single-shot decryption in authenticated mode","type":"text"}],"title":"open(privateKey:info:authentication:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:encap:)":{"title":"receiveExport(privateKey:info:context:L:authentication:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)","role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:encap:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"receiveExport"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"abstract":[{"text":"Retrieve an export secret in authenticated mode","type":"text"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:).json b/docs/data/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:).json index 650bba1..4cc352b 100644 --- a/docs/data/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:).json +++ b/docs/data/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:).json @@ -1 +1 @@ -{"schemaVersion":{"patch":0,"major":0,"minor":3},"sections":[],"seeAlsoSections":[{"title":"Authenticated, preshared key mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)"],"generated":true}],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"}]}],"kind":"declarations"},{"parameters":[{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient private key"}]}],"name":"privateKey"},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"text":"The additional information","type":"text"}]}]},{"name":"authentication","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The sender public key"}]}]},{"content":[{"inlineContent":[{"type":"text","text":"The preshared key"}],"type":"paragraph"}],"name":"psk"},{"content":[{"type":"paragraph","inlineContent":[{"text":"The preshared key id","type":"text"}]}],"name":"pskId"},{"name":"ct","content":[{"type":"paragraph","inlineContent":[{"text":"The cipher text to decrypt","type":"text"}]}]},{"name":"aad","content":[{"inlineContent":[{"text":"The associated data","type":"text"}],"type":"paragraph"}]},{"name":"encap","content":[{"type":"paragraph","inlineContent":[{"text":"The encapsulated key","type":"text"}]}]}],"kind":"parameters"},{"kind":"content","content":[{"type":"heading","level":2,"text":"Return Value","anchor":"return-value"},{"inlineContent":[{"type":"text","text":"The plain text"}],"type":"paragraph"}]},{"content":[{"anchor":"discussion","level":2,"type":"heading","text":"Discussion"},{"style":"note","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"self"},{"type":"text","text":" or the decryption fails or the "},{"code":"psk","type":"codeVoice"},{"type":"text","text":" parameters are inconsistent or "},{"code":"self.aead","type":"codeVoice"},{"type":"text","text":" is EXPORTONLY"}]}],"name":"Throws","type":"aside"}],"kind":"content"}],"abstract":[{"type":"text","text":"Single-shot decryption in authenticated, preshared key mode"}],"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)"],"traits":[{"interfaceLanguage":"swift"}]}],"metadata":{"title":"open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","symbolKind":"method","externalID":"s:9SwiftHPKE11CipherSuiteV4open10privateKey4info14authentication3psk0J2Id2ct3aad5encapSays5UInt8VGAA07PrivateG0V_AoA06PublicG0VA5OtKF","roleHeading":"Instance Method","role":"symbol","modules":[{"name":"SwiftHPKE"}],"fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","interfaceLanguage":"swift"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:psk:pskId:)":{"role":"symbol","abstract":[{"type":"text","text":"Generate an export secret in authenticated, preshared key mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:psk:pskid:)","kind":"symbol","title":"sendExport(publicKey:info:context:L:authentication:psk:pskId:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"receiveExport"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)","title":"receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","type":"topic","abstract":[{"text":"Retrieve an export secret in authenticated, preshared key mode","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)":{"kind":"symbol","title":"open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)","role":"symbol","type":"topic","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","abstract":[{"type":"text","text":"Single-shot decryption in authenticated, preshared key mode"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:psk:pskId:pt:aad:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:psk:pskid:pt:aad:)","kind":"symbol","role":"symbol","abstract":[{"text":"Single-shot encryption in authenticated, preshared key mode","type":"text"}],"type":"topic","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pt"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", ct"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","title":"seal(publicKey:info:authentication:psk:pskId:pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]}}} \ No newline at end of file +{"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)"],"title":"Authenticated, preshared key mode"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)"]}],"abstract":[{"type":"text","text":"Single-shot decryption in authenticated, preshared key mode"}],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)"},"metadata":{"modules":[{"name":"SwiftHPKE"}],"roleHeading":"Instance Method","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"ct"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"role":"symbol","externalID":"s:9SwiftHPKE11CipherSuiteV4open10privateKey4info14authentication3psk0J2Id2ct3aad5encapSays5UInt8VGAA07PrivateG0V_AoA06PublicG0VA5OtKF","title":"open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","symbolKind":"method"},"sections":[],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", "},{"text":"ct","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"languages":["swift"]}]},{"kind":"parameters","parameters":[{"name":"privateKey","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient private key"}]}]},{"content":[{"inlineContent":[{"text":"The additional information","type":"text"}],"type":"paragraph"}],"name":"info"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The sender public key"}]}],"name":"authentication"},{"name":"psk","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key"}]}]},{"name":"pskId","content":[{"inlineContent":[{"text":"The preshared key id","type":"text"}],"type":"paragraph"}]},{"name":"ct","content":[{"inlineContent":[{"type":"text","text":"The cipher text to decrypt"}],"type":"paragraph"}]},{"name":"aad","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The associated data"}]}]},{"name":"encap","content":[{"inlineContent":[{"type":"text","text":"The encapsulated key"}],"type":"paragraph"}]}]},{"content":[{"level":2,"anchor":"return-value","type":"heading","text":"Return Value"},{"type":"paragraph","inlineContent":[{"text":"The plain text","type":"text"}]}],"kind":"content"},{"kind":"content","content":[{"type":"heading","anchor":"discussion","level":2,"text":"Discussion"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"self"},{"text":" or the decryption fails or the ","type":"text"},{"code":"psk","type":"codeVoice"},{"text":" parameters are inconsistent or ","type":"text"},{"type":"codeVoice","code":"self.aead"},{"type":"text","text":" is EXPORTONLY"}]}],"name":"Throws","type":"aside","style":"note"}]}],"schemaVersion":{"major":0,"patch":0,"minor":3},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)":{"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"type":"topic","abstract":[{"text":"Single-shot decryption in authenticated, preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","kind":"symbol","title":"open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)":{"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"type":"topic","abstract":[{"text":"Retrieve an export secret in authenticated, preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","kind":"symbol","title":"receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:psk:pskId:)":{"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":")"}],"type":"topic","abstract":[{"text":"Generate an export secret in authenticated, preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:psk:pskid:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","kind":"symbol","title":"sendExport(publicKey:info:context:L:authentication:psk:pskId:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:psk:pskId:pt:aad:)":{"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", ct"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":")"}],"type":"topic","abstract":[{"text":"Single-shot encryption in authenticated, preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:psk:pskid:pt:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","kind":"symbol","title":"seal(publicKey:info:authentication:psk:pskId:pt:aad:)"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/ciphersuite/open(privatekey:info:ct:aad:encap:).json b/docs/data/documentation/swifthpke/ciphersuite/open(privatekey:info:ct:aad:encap:).json index 43364e6..49e416d 100644 --- a/docs/data/documentation/swifthpke/ciphersuite/open(privatekey:info:ct:aad:encap:).json +++ b/docs/data/documentation/swifthpke/ciphersuite/open(privatekey:info:ct:aad:encap:).json @@ -1 +1 @@ -{"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:ct:aad:encap:)"],"traits":[{"interfaceLanguage":"swift"}]}],"seeAlsoSections":[{"title":"Base mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)"],"generated":true}],"sections":[],"schemaVersion":{"major":0,"minor":3,"patch":0},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"metadata":{"title":"open(privateKey:info:ct:aad:encap:)","symbolKind":"method","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"ct","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"roleHeading":"Instance Method","externalID":"s:9SwiftHPKE11CipherSuiteV4open10privateKey4info2ct3aad5encapSays5UInt8VGAA07PrivateG0V_A4LtKF","role":"symbol","modules":[{"name":"SwiftHPKE"}]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","interfaceLanguage":"swift"},"abstract":[{"type":"text","text":"Single-shot decryption in base mode"}],"kind":"symbol","primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","kind":"typeIdentifier","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"}],"languages":["swift"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"content":[{"inlineContent":[{"text":"The recipient private key","type":"text"}],"type":"paragraph"}],"name":"privateKey"},{"content":[{"inlineContent":[{"type":"text","text":"The additional information"}],"type":"paragraph"}],"name":"info"},{"content":[{"inlineContent":[{"type":"text","text":"The cipher text to decrypt"}],"type":"paragraph"}],"name":"ct"},{"name":"aad","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The associated data"}]}]},{"name":"encap","content":[{"inlineContent":[{"text":"The encapsulated key","type":"text"}],"type":"paragraph"}]}]},{"kind":"content","content":[{"level":2,"type":"heading","anchor":"return-value","text":"Return Value"},{"inlineContent":[{"text":"The plain text","type":"text"}],"type":"paragraph"}]},{"kind":"content","content":[{"type":"heading","text":"Discussion","anchor":"discussion","level":2},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"self"},{"text":" or the decryption fails or ","type":"text"},{"type":"codeVoice","code":"self.aead"},{"type":"text","text":" is EXPORTONLY"}]}],"name":"Throws","type":"aside","style":"note"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:ct:aad:encap:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","abstract":[{"text":"Single-shot decryption in base mode","type":"text"}],"type":"topic","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"open"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"kind":"symbol","title":"open(privateKey:info:ct:aad:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:ct:aad:encap:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:pt:aad:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","abstract":[{"text":"Single-shot encryption in base mode","type":"text"}],"type":"topic","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pt"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:pt:aad:)","title":"seal(publicKey:info:pt:aad:)","kind":"symbol","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encapsulatedKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":")"}],"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"Generate an export secret in base mode"}],"title":"sendExport(publicKey:info:context:L:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:encap:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:encap:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"receiveExport"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"type":"topic","kind":"symbol","title":"receiveExport(privateKey:info:context:L:encap:)","abstract":[{"text":"Retrieve an export secret in base mode","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"}}} \ No newline at end of file +{"abstract":[{"text":"Single-shot decryption in base mode","type":"text"}],"sections":[],"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:ct:aad:encap:)"],"traits":[{"interfaceLanguage":"swift"}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)"},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", "},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"languages":["swift"]}]},{"kind":"parameters","parameters":[{"content":[{"inlineContent":[{"text":"The recipient private key","type":"text"}],"type":"paragraph"}],"name":"privateKey"},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"text":"The additional information","type":"text"}]}]},{"name":"ct","content":[{"inlineContent":[{"text":"The cipher text to decrypt","type":"text"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The associated data"}]}],"name":"aad"},{"name":"encap","content":[{"type":"paragraph","inlineContent":[{"text":"The encapsulated key","type":"text"}]}]}]},{"kind":"content","content":[{"text":"Return Value","type":"heading","level":2,"anchor":"return-value"},{"inlineContent":[{"text":"The plain text","type":"text"}],"type":"paragraph"}]},{"content":[{"text":"Discussion","level":2,"type":"heading","anchor":"discussion"},{"type":"aside","style":"note","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"code":"self","type":"codeVoice"},{"text":" or the decryption fails or ","type":"text"},{"code":"self.aead","type":"codeVoice"},{"text":" is EXPORTONLY","type":"text"}]}],"name":"Throws"}],"kind":"content"}],"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)"],"title":"Base mode"}],"kind":"symbol","metadata":{"roleHeading":"Instance Method","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"ct"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"symbolKind":"method","role":"symbol","title":"open(privateKey:info:ct:aad:encap:)","externalID":"s:9SwiftHPKE11CipherSuiteV4open10privateKey4info2ct3aad5encapSays5UInt8VGAA07PrivateG0V_A4LtKF","modules":[{"name":"SwiftHPKE"}]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:encap:)":{"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"Retrieve an export secret in base mode"}],"title":"receiveExport(privateKey:info:context:L:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:ct:aad:encap:)":{"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"Single-shot decryption in base mode"}],"title":"open(privateKey:info:ct:aad:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:)":{"type":"topic","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","abstract":[{"text":"Generate an export secret in base mode","type":"text"}],"title":"sendExport(publicKey:info:context:L:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encapsulatedKey"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", secret"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:pt:aad:)":{"type":"topic","role":"symbol","abstract":[{"text":"Single-shot encryption in base mode","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","title":"seal(publicKey:info:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pt"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":")","kind":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:pt:aad:)","kind":"symbol"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/ciphersuite/open(privatekey:info:psk:pskid:ct:aad:encap:).json b/docs/data/documentation/swifthpke/ciphersuite/open(privatekey:info:psk:pskid:ct:aad:encap:).json index 7139496..98cba68 100644 --- a/docs/data/documentation/swifthpke/ciphersuite/open(privatekey:info:psk:pskid:ct:aad:encap:).json +++ b/docs/data/documentation/swifthpke/ciphersuite/open(privatekey:info:psk:pskid:ct:aad:encap:).json @@ -1 +1 @@ -{"kind":"symbol","metadata":{"roleHeading":"Instance Method","role":"symbol","externalID":"s:9SwiftHPKE11CipherSuiteV4open10privateKey4info3psk0I2Id2ct3aad5encapSays5UInt8VGAA07PrivateG0V_A6NtKF","title":"open(privateKey:info:psk:pskId:ct:aad:encap:)","modules":[{"name":"SwiftHPKE"}],"symbolKind":"method","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}]},"schemaVersion":{"patch":0,"major":0,"minor":3},"abstract":[{"type":"text","text":"Single-shot decryption in preshared key mode"}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"languages":["swift"]}],"kind":"declarations"},{"parameters":[{"name":"privateKey","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient private key"}]}]},{"content":[{"inlineContent":[{"text":"The additional information","type":"text"}],"type":"paragraph"}],"name":"info"},{"name":"psk","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key id"}]}],"name":"pskId"},{"name":"ct","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The cipher text to decrypt"}]}]},{"content":[{"inlineContent":[{"text":"The associated data","type":"text"}],"type":"paragraph"}],"name":"aad"},{"name":"encap","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The encapsulated key"}]}]}],"kind":"parameters"},{"content":[{"type":"heading","text":"Return Value","level":2,"anchor":"return-value"},{"inlineContent":[{"text":"The plain text","type":"text"}],"type":"paragraph"}],"kind":"content"},{"kind":"content","content":[{"text":"Discussion","type":"heading","anchor":"discussion","level":2},{"type":"aside","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"self"},{"type":"text","text":" or the decryption fails or the "},{"type":"codeVoice","code":"psk"},{"text":" parameters are inconsistent or ","type":"text"},{"code":"self.aead","type":"codeVoice"},{"type":"text","text":" is EXPORTONLY"}]}],"style":"note","name":"Throws"}]}],"sections":[],"seeAlsoSections":[{"title":"Preshared key mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)"],"generated":true}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:psk:pskid:ct:aad:encap:)"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:psk:pskId:pt:aad:)":{"title":"seal(publicKey:info:psk:pskId:pt:aad:)","abstract":[{"type":"text","text":"Single-shot encryption in preshared key mode"}],"role":"symbol","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ct","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:psk:pskid:pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:psk:pskId:)":{"title":"sendExport(publicKey:info:context:L:psk:pskId:)","abstract":[{"text":"Generate an export secret in preshared key mode","type":"text"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","type":"topic","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", secret"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":")"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:psk:pskid:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:psk:pskId:ct:aad:encap:)":{"title":"open(privateKey:info:psk:pskId:ct:aad:encap:)","abstract":[{"text":"Single-shot decryption in preshared key mode","type":"text"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","type":"topic","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:psk:pskid:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:psk:pskId:encap:)":{"title":"receiveExport(privateKey:info:context:L:psk:pskId:encap:)","abstract":[{"type":"text","text":"Retrieve an export secret in preshared key mode"}],"role":"symbol","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"receiveExport"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:psk:pskid:encap:)"}}} \ No newline at end of file +{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"kind":"symbol","identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)"},"sections":[],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}]}]},{"kind":"parameters","parameters":[{"name":"privateKey","content":[{"type":"paragraph","inlineContent":[{"text":"The recipient private key","type":"text"}]}]},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}]},{"name":"psk","content":[{"type":"paragraph","inlineContent":[{"text":"The preshared key","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key id"}]}],"name":"pskId"},{"content":[{"inlineContent":[{"text":"The cipher text to decrypt","type":"text"}],"type":"paragraph"}],"name":"ct"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The associated data"}]}],"name":"aad"},{"content":[{"inlineContent":[{"type":"text","text":"The encapsulated key"}],"type":"paragraph"}],"name":"encap"}]},{"kind":"content","content":[{"anchor":"return-value","level":2,"text":"Return Value","type":"heading"},{"type":"paragraph","inlineContent":[{"text":"The plain text","type":"text"}]}]},{"content":[{"anchor":"discussion","type":"heading","level":2,"text":"Discussion"},{"name":"Throws","type":"aside","style":"note","content":[{"inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"self"},{"type":"text","text":" or the decryption fails or the "},{"type":"codeVoice","code":"psk"},{"type":"text","text":" parameters are inconsistent or "},{"type":"codeVoice","code":"self.aead"},{"text":" is EXPORTONLY","type":"text"}],"type":"paragraph"}]}],"kind":"content"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:psk:pskid:ct:aad:encap:)"]}],"metadata":{"role":"symbol","symbolKind":"method","title":"open(privateKey:info:psk:pskId:ct:aad:encap:)","externalID":"s:9SwiftHPKE11CipherSuiteV4open10privateKey4info3psk0I2Id2ct3aad5encapSays5UInt8VGAA07PrivateG0V_A6NtKF","roleHeading":"Instance Method","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"modules":[{"name":"SwiftHPKE"}]},"abstract":[{"text":"Single-shot decryption in preshared key mode","type":"text"}],"seeAlsoSections":[{"generated":true,"title":"Preshared key mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)"]}],"schemaVersion":{"patch":0,"minor":3,"major":0},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:psk:pskId:encap:)":{"title":"receiveExport(privateKey:info:context:L:psk:pskId:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)","role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"receiveExport"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:psk:pskid:encap:)","kind":"symbol","abstract":[{"type":"text","text":"Retrieve an export secret in preshared key mode"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:psk:pskId:ct:aad:encap:)":{"title":"open(privateKey:info:psk:pskId:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"ct"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:psk:pskid:ct:aad:encap:)","kind":"symbol","abstract":[{"type":"text","text":"Single-shot decryption in preshared key mode"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:psk:pskId:pt:aad:)":{"abstract":[{"text":"Single-shot encryption in preshared key mode","type":"text"}],"role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:psk:pskid:pt:aad:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","kind":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":")"}],"title":"seal(publicKey:info:psk:pskId:pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:psk:pskId:)":{"title":"sendExport(publicKey:info:context:L:psk:pskId:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:psk:pskid:)","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","abstract":[{"type":"text","text":"Generate an export secret in preshared key mode"}],"role":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:encap:).json b/docs/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:encap:).json index 46ddab0..24301de 100644 --- a/docs/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:encap:).json +++ b/docs/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:encap:).json @@ -1 +1 @@ -{"abstract":[{"type":"text","text":"Retrieve an export secret in authenticated mode"}],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)"],"generated":true,"title":"Authenticated mode"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"platforms":["macOS"]}]},{"kind":"parameters","parameters":[{"name":"privateKey","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient private key"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"The additional information","type":"text"}]}],"name":"info"},{"name":"context","content":[{"inlineContent":[{"type":"text","text":"The export context"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"type":"text","text":"The length of the export secret"}],"type":"paragraph"}],"name":"L"},{"content":[{"type":"paragraph","inlineContent":[{"text":"The sender public key","type":"text"}]}],"name":"authentication"},{"content":[{"inlineContent":[{"text":"The preshared key","type":"text"}],"type":"paragraph"}],"name":"psk"},{"name":"pskId","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key id"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"The encapsulated key","type":"text"}]}],"name":"encap"}]},{"content":[{"anchor":"return-value","type":"heading","level":2,"text":"Return Value"},{"type":"paragraph","inlineContent":[{"text":"The export secret","type":"text"}]}],"kind":"content"},{"content":[{"anchor":"discussion","level":2,"type":"heading","text":"Discussion"},{"type":"aside","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"code":"self","type":"codeVoice"},{"type":"text","text":" or L is negative or too large"}]}],"name":"Throws","style":"note"}],"kind":"content"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"sections":[],"metadata":{"roleHeading":"Instance Method","role":"symbol","title":"receiveExport(privateKey:info:context:L:authentication:encap:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"receiveExport"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"modules":[{"name":"SwiftHPKE"}],"symbolKind":"method","externalID":"s:9SwiftHPKE11CipherSuiteV13receiveExport10privateKey4info7context1L14authentication5encapSays5UInt8VGAA07PrivateH0V_A2MSiAA06PublicH0VAMtKF"},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)"},"kind":"symbol","schemaVersion":{"patch":0,"major":0,"minor":3},"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:encap:)"],"traits":[{"interfaceLanguage":"swift"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:)","kind":"symbol","role":"symbol","abstract":[{"text":"Generate an export secret in authenticated mode","type":"text"}],"type":"topic","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"sendExport"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","title":"sendExport(publicKey:info:context:L:authentication:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:pt:aad:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:pt:aad:)","kind":"symbol","abstract":[{"text":"Single-shot encryption in authenticated mode","type":"text"}],"title":"seal(publicKey:info:authentication:pt:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","type":"topic","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", ct"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:encap:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:encap:)","kind":"symbol","role":"symbol","type":"topic","abstract":[{"type":"text","text":"Retrieve an export secret in authenticated mode"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)","title":"receiveExport(privateKey:info:context:L:authentication:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:ct:aad:encap:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:ct:aad:encap:)","kind":"symbol","role":"symbol","type":"topic","abstract":[{"type":"text","text":"Single-shot decryption in authenticated mode"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","title":"open(privateKey:info:authentication:ct:aad:encap:)"}}} \ No newline at end of file +{"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)"],"title":"Authenticated mode","generated":true}],"schemaVersion":{"major":0,"minor":3,"patch":0},"metadata":{"externalID":"s:9SwiftHPKE11CipherSuiteV13receiveExport10privateKey4info7context1L14authentication5encapSays5UInt8VGAA07PrivateH0V_A2MSiAA06PublicH0VAMtKF","roleHeading":"Instance Method","title":"receiveExport(privateKey:info:context:L:authentication:encap:)","role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"receiveExport"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"modules":[{"name":"SwiftHPKE"}],"symbolKind":"method"},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)","interfaceLanguage":"swift"},"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"kind":"symbol","primaryContentSections":[{"declarations":[{"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"},{"parameters":[{"name":"privateKey","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient private key"}]}]},{"content":[{"inlineContent":[{"type":"text","text":"The additional information"}],"type":"paragraph"}],"name":"info"},{"name":"context","content":[{"inlineContent":[{"type":"text","text":"The export context"}],"type":"paragraph"}]},{"name":"L","content":[{"inlineContent":[{"text":"The length of the export secret","type":"text"}],"type":"paragraph"}]},{"name":"authentication","content":[{"type":"paragraph","inlineContent":[{"text":"The sender public key","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key"}]}],"name":"psk"},{"name":"pskId","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key id"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The encapsulated key"}]}],"name":"encap"}],"kind":"parameters"},{"content":[{"text":"Return Value","anchor":"return-value","type":"heading","level":2},{"type":"paragraph","inlineContent":[{"text":"The export secret","type":"text"}]}],"kind":"content"},{"content":[{"type":"heading","text":"Discussion","anchor":"discussion","level":2},{"content":[{"inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"self"},{"type":"text","text":" or L is negative or too large"}],"type":"paragraph"}],"name":"Throws","style":"note","type":"aside"}],"kind":"content"}],"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:encap:)"],"traits":[{"interfaceLanguage":"swift"}]}],"abstract":[{"type":"text","text":"Retrieve an export secret in authenticated mode"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:pt:aad:)":{"title":"seal(publicKey:info:authentication:pt:aad:)","abstract":[{"type":"text","text":"Single-shot encryption in authenticated mode"}],"role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:pt:aad:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", ct"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:encap:)":{"title":"receiveExport(privateKey:info:context:L:authentication:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)","role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:encap:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"receiveExport"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"abstract":[{"text":"Retrieve an export secret in authenticated mode","type":"text"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:ct:aad:encap:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","kind":"symbol","role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:ct:aad:encap:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"ct"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"abstract":[{"text":"Single-shot decryption in authenticated mode","type":"text"}],"title":"open(privateKey:info:authentication:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","kind":"symbol","role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"sendExport"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encapsulatedKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", secret"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"abstract":[{"text":"Generate an export secret in authenticated mode","type":"text"}],"title":"sendExport(publicKey:info:context:L:authentication:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:).json b/docs/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:).json index 6bbe354..d6666b9 100644 --- a/docs/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:).json +++ b/docs/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:).json @@ -1 +1 @@ -{"schemaVersion":{"patch":0,"minor":3,"major":0},"kind":"symbol","variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)"],"traits":[{"interfaceLanguage":"swift"}]}],"primaryContentSections":[{"declarations":[{"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"privateKey","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient private key"}]}]},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}]},{"content":[{"inlineContent":[{"text":"The export context","type":"text"}],"type":"paragraph"}],"name":"context"},{"name":"L","content":[{"inlineContent":[{"type":"text","text":"The length of the export secret"}],"type":"paragraph"}]},{"name":"authentication","content":[{"inlineContent":[{"text":"The sender public key","type":"text"}],"type":"paragraph"}]},{"name":"psk","content":[{"inlineContent":[{"text":"The preshared key","type":"text"}],"type":"paragraph"}]},{"name":"pskId","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key id"}]}]},{"name":"encap","content":[{"type":"paragraph","inlineContent":[{"text":"The encapsulated key","type":"text"}]}]}]},{"content":[{"type":"heading","level":2,"text":"Return Value","anchor":"return-value"},{"type":"paragraph","inlineContent":[{"text":"The export secret","type":"text"}]}],"kind":"content"},{"kind":"content","content":[{"level":2,"text":"Discussion","anchor":"discussion","type":"heading"},{"style":"note","type":"aside","content":[{"inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"self"},{"text":" or the ","type":"text"},{"type":"codeVoice","code":"psk"},{"text":" parameters are inconsistent or L is negative or too large","type":"text"}],"type":"paragraph"}],"name":"Throws"}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"seeAlsoSections":[{"title":"Authenticated, preshared key mode","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)"]}],"sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","interfaceLanguage":"swift"},"metadata":{"role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"title":"receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","symbolKind":"method","roleHeading":"Instance Method","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE11CipherSuiteV13receiveExport10privateKey4info7context1L14authentication3psk0L2Id5encapSays5UInt8VGAA07PrivateH0V_A2OSiAA06PublicH0VA3OtKF"},"abstract":[{"text":"Retrieve an export secret in authenticated, preshared key mode","type":"text"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:psk:pskId:pt:aad:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:psk:pskid:pt:aad:)","kind":"symbol","role":"symbol","abstract":[{"text":"Single-shot encryption in authenticated, preshared key mode","type":"text"}],"type":"topic","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pt"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", ct"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","title":"seal(publicKey:info:authentication:psk:pskId:pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"receiveExport"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)","title":"receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","type":"topic","abstract":[{"text":"Retrieve an export secret in authenticated, preshared key mode","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:psk:pskId:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", secret"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}],"kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:psk:pskid:)","title":"sendExport(publicKey:info:context:L:authentication:psk:pskId:)","type":"topic","abstract":[{"text":"Generate an export secret in authenticated, preshared key mode","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)":{"kind":"symbol","title":"open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)","role":"symbol","type":"topic","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","abstract":[{"type":"text","text":"Single-shot decryption in authenticated, preshared key mode"}]}}} \ No newline at end of file +{"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","interfaceLanguage":"swift"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)"]}],"sections":[],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","kind":"typeIdentifier","text":"PrivateKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","text":"PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"languages":["swift"]}]},{"kind":"parameters","parameters":[{"name":"privateKey","content":[{"type":"paragraph","inlineContent":[{"text":"The recipient private key","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"The additional information","type":"text"}]}],"name":"info"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The export context"}]}],"name":"context"},{"content":[{"inlineContent":[{"text":"The length of the export secret","type":"text"}],"type":"paragraph"}],"name":"L"},{"name":"authentication","content":[{"inlineContent":[{"text":"The sender public key","type":"text"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"text":"The preshared key","type":"text"}],"type":"paragraph"}],"name":"psk"},{"name":"pskId","content":[{"inlineContent":[{"type":"text","text":"The preshared key id"}],"type":"paragraph"}]},{"name":"encap","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The encapsulated key"}]}]}]},{"kind":"content","content":[{"type":"heading","text":"Return Value","level":2,"anchor":"return-value"},{"inlineContent":[{"text":"The export secret","type":"text"}],"type":"paragraph"}]},{"kind":"content","content":[{"text":"Discussion","type":"heading","level":2,"anchor":"discussion"},{"name":"Throws","type":"aside","style":"note","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if one of the keys does not match ","type":"text"},{"code":"self","type":"codeVoice"},{"text":" or the ","type":"text"},{"type":"codeVoice","code":"psk"},{"type":"text","text":" parameters are inconsistent or L is negative or too large"}]}]}]}],"metadata":{"symbolKind":"method","externalID":"s:9SwiftHPKE11CipherSuiteV13receiveExport10privateKey4info7context1L14authentication3psk0L2Id5encapSays5UInt8VGAA07PrivateH0V_A2OSiAA06PublicH0VA3OtKF","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"receiveExport"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"title":"receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","modules":[{"name":"SwiftHPKE"}],"role":"symbol","roleHeading":"Instance Method"},"schemaVersion":{"patch":0,"major":0,"minor":3},"seeAlsoSections":[{"generated":true,"title":"Authenticated, preshared key mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)"]}],"abstract":[{"type":"text","text":"Retrieve an export secret in authenticated, preshared key mode"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:psk:pskId:pt:aad:)":{"title":"seal(publicKey:info:authentication:psk:pskId:pt:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:psk:pskid:pt:aad:)","kind":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ct","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":")"}],"abstract":[{"type":"text","text":"Single-shot encryption in authenticated, preshared key mode"}],"type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)":{"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"type":"topic","abstract":[{"text":"Single-shot decryption in authenticated, preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","kind":"symbol","title":"open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)":{"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"type":"topic","abstract":[{"text":"Retrieve an export secret in authenticated, preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","kind":"symbol","title":"receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:psk:pskId:)":{"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":")"}],"type":"topic","abstract":[{"text":"Generate an export secret in authenticated, preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:psk:pskid:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","kind":"symbol","title":"sendExport(publicKey:info:context:L:authentication:psk:pskId:)"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:encap:).json b/docs/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:encap:).json index a97a1cb..fa492b0 100644 --- a/docs/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:encap:).json +++ b/docs/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:encap:).json @@ -1 +1 @@ -{"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"abstract":[{"type":"text","text":"Retrieve an export secret in base mode"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier"}]}]},{"parameters":[{"content":[{"inlineContent":[{"text":"The recipient private key","type":"text"}],"type":"paragraph"}],"name":"privateKey"},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"text":"The additional information","type":"text"}]}]},{"content":[{"inlineContent":[{"type":"text","text":"The export context"}],"type":"paragraph"}],"name":"context"},{"name":"L","content":[{"type":"paragraph","inlineContent":[{"text":"The length of the export secret","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"The encapsulated key","type":"text"}]}],"name":"encap"}],"kind":"parameters"},{"content":[{"text":"Return Value","anchor":"return-value","type":"heading","level":2},{"inlineContent":[{"type":"text","text":"The export secret"}],"type":"paragraph"}],"kind":"content"},{"kind":"content","content":[{"text":"Discussion","type":"heading","anchor":"discussion","level":2},{"name":"Throws","type":"aside","content":[{"inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"self"},{"text":" or L is negative or too large","type":"text"}],"type":"paragraph"}],"style":"note"}]}],"sections":[],"schemaVersion":{"major":0,"patch":0,"minor":3},"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)"],"generated":true,"title":"Base mode"}],"metadata":{"roleHeading":"Instance Method","symbolKind":"method","modules":[{"name":"SwiftHPKE"}],"role":"symbol","externalID":"s:9SwiftHPKE11CipherSuiteV13receiveExport10privateKey4info7context1L5encapSays5UInt8VGAA07PrivateH0V_A2LSiALtKF","title":"receiveExport(privateKey:info:context:L:encap:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:encap:)"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:ct:aad:encap:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","abstract":[{"text":"Single-shot decryption in base mode","type":"text"}],"type":"topic","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"open"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"kind":"symbol","title":"open(privateKey:info:ct:aad:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:ct:aad:encap:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encapsulatedKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":")"}],"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"Generate an export secret in base mode"}],"title":"sendExport(publicKey:info:context:L:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:encap:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:encap:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"receiveExport"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"type":"topic","kind":"symbol","title":"receiveExport(privateKey:info:context:L:encap:)","abstract":[{"text":"Retrieve an export secret in base mode","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:pt:aad:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","abstract":[{"text":"Single-shot encryption in base mode","type":"text"}],"type":"topic","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pt"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:pt:aad:)","title":"seal(publicKey:info:pt:aad:)","kind":"symbol","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"}}} \ No newline at end of file +{"abstract":[{"type":"text","text":"Retrieve an export secret in base mode"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:encap:)"]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)","interfaceLanguage":"swift"},"kind":"symbol","metadata":{"roleHeading":"Instance Method","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"modules":[{"name":"SwiftHPKE"}],"role":"symbol","title":"receiveExport(privateKey:info:context:L:encap:)","symbolKind":"method","externalID":"s:9SwiftHPKE11CipherSuiteV13receiveExport10privateKey4info7context1L5encapSays5UInt8VGAA07PrivateH0V_A2LSiALtKF"},"sections":[],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)"],"generated":true,"title":"Base mode"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"receiveExport"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"platforms":["macOS"],"languages":["swift"]}]},{"parameters":[{"name":"privateKey","content":[{"type":"paragraph","inlineContent":[{"text":"The recipient private key","type":"text"}]}]},{"content":[{"inlineContent":[{"text":"The additional information","type":"text"}],"type":"paragraph"}],"name":"info"},{"name":"context","content":[{"type":"paragraph","inlineContent":[{"text":"The export context","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"The length of the export secret","type":"text"}]}],"name":"L"},{"content":[{"inlineContent":[{"text":"The encapsulated key","type":"text"}],"type":"paragraph"}],"name":"encap"}],"kind":"parameters"},{"content":[{"anchor":"return-value","type":"heading","text":"Return Value","level":2},{"type":"paragraph","inlineContent":[{"text":"The export secret","type":"text"}]}],"kind":"content"},{"content":[{"type":"heading","level":2,"anchor":"discussion","text":"Discussion"},{"type":"aside","name":"Throws","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if one of the keys does not match ","type":"text"},{"type":"codeVoice","code":"self"},{"text":" or L is negative or too large","type":"text"}]}],"style":"note"}],"kind":"content"}],"schemaVersion":{"major":0,"patch":0,"minor":3},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:encap:)":{"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"Retrieve an export secret in base mode"}],"title":"receiveExport(privateKey:info:context:L:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:ct:aad:encap:)":{"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"Single-shot decryption in base mode"}],"title":"open(privateKey:info:ct:aad:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:)":{"type":"topic","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","abstract":[{"text":"Generate an export secret in base mode","type":"text"}],"title":"sendExport(publicKey:info:context:L:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encapsulatedKey"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", secret"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:pt:aad:)":{"type":"topic","role":"symbol","abstract":[{"text":"Single-shot encryption in base mode","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","title":"seal(publicKey:info:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pt"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":")","kind":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:pt:aad:)","kind":"symbol"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:psk:pskid:encap:).json b/docs/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:psk:pskid:encap:).json index a5aa0d9..4edc632 100644 --- a/docs/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:psk:pskid:encap:).json +++ b/docs/data/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:psk:pskid:encap:).json @@ -1 +1 @@ -{"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"receiveExport"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"}],"languages":["swift"]}],"kind":"declarations"},{"parameters":[{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient private key"}]}],"name":"privateKey"},{"name":"info","content":[{"inlineContent":[{"type":"text","text":"The additional information"}],"type":"paragraph"}]},{"name":"context","content":[{"type":"paragraph","inlineContent":[{"text":"The export context","type":"text"}]}]},{"name":"L","content":[{"inlineContent":[{"text":"The length of the export secret","type":"text"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"type":"text","text":"The preshared key"}],"type":"paragraph"}],"name":"psk"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key id"}]}],"name":"pskId"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The encapsulated key"}]}],"name":"encap"}],"kind":"parameters"},{"content":[{"text":"Return Value","level":2,"anchor":"return-value","type":"heading"},{"inlineContent":[{"type":"text","text":"The export secret"}],"type":"paragraph"}],"kind":"content"},{"kind":"content","content":[{"text":"Discussion","anchor":"discussion","type":"heading","level":2},{"style":"note","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if one of the keys does not match ","type":"text"},{"type":"codeVoice","code":"self"},{"text":" or the ","type":"text"},{"type":"codeVoice","code":"psk"},{"type":"text","text":" parameters are inconsistent or L is negative or too large"}]}],"type":"aside","name":"Throws"}]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:psk:pskid:encap:)"]}],"seeAlsoSections":[{"generated":true,"title":"Preshared key mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)"]}],"schemaVersion":{"patch":0,"major":0,"minor":3},"metadata":{"role":"symbol","modules":[{"name":"SwiftHPKE"}],"title":"receiveExport(privateKey:info:context:L:psk:pskId:encap:)","externalID":"s:9SwiftHPKE11CipherSuiteV13receiveExport10privateKey4info7context1L3psk0K2Id5encapSays5UInt8VGAA07PrivateH0V_A2NSiA3NtKF","symbolKind":"method","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"roleHeading":"Instance Method"},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"abstract":[{"text":"Retrieve an export secret in preshared key mode","type":"text"}],"sections":[],"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:psk:pskId:encap:)":{"title":"receiveExport(privateKey:info:context:L:psk:pskId:encap:)","abstract":[{"type":"text","text":"Retrieve an export secret in preshared key mode"}],"role":"symbol","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"receiveExport"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:psk:pskid:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:psk:pskId:ct:aad:encap:)":{"title":"open(privateKey:info:psk:pskId:ct:aad:encap:)","abstract":[{"text":"Single-shot decryption in preshared key mode","type":"text"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","type":"topic","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:psk:pskid:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:psk:pskId:pt:aad:)":{"title":"seal(publicKey:info:psk:pskId:pt:aad:)","abstract":[{"type":"text","text":"Single-shot encryption in preshared key mode"}],"role":"symbol","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ct","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:psk:pskid:pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:psk:pskId:)":{"title":"sendExport(publicKey:info:context:L:psk:pskId:)","abstract":[{"text":"Generate an export secret in preshared key mode","type":"text"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","type":"topic","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", secret"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":")"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:psk:pskid:)"}}} \ No newline at end of file +{"schemaVersion":{"patch":0,"minor":3,"major":0},"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"seeAlsoSections":[{"title":"Preshared key mode","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)"]}],"abstract":[{"text":"Retrieve an export secret in preshared key mode","type":"text"}],"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}]}],"kind":"declarations"},{"parameters":[{"name":"privateKey","content":[{"inlineContent":[{"text":"The recipient private key","type":"text"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"The additional information","type":"text"}]}],"name":"info"},{"name":"context","content":[{"type":"paragraph","inlineContent":[{"text":"The export context","type":"text"}]}]},{"name":"L","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The length of the export secret"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"The preshared key","type":"text"}]}],"name":"psk"},{"content":[{"inlineContent":[{"type":"text","text":"The preshared key id"}],"type":"paragraph"}],"name":"pskId"},{"content":[{"type":"paragraph","inlineContent":[{"text":"The encapsulated key","type":"text"}]}],"name":"encap"}],"kind":"parameters"},{"kind":"content","content":[{"anchor":"return-value","level":2,"text":"Return Value","type":"heading"},{"inlineContent":[{"type":"text","text":"The export secret"}],"type":"paragraph"}]},{"kind":"content","content":[{"text":"Discussion","level":2,"type":"heading","anchor":"discussion"},{"name":"Throws","type":"aside","style":"note","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"self"},{"type":"text","text":" or the "},{"code":"psk","type":"codeVoice"},{"type":"text","text":" parameters are inconsistent or L is negative or too large"}]}]}]}],"kind":"symbol","metadata":{"symbolKind":"method","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"receiveExport"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"title":"receiveExport(privateKey:info:context:L:psk:pskId:encap:)","roleHeading":"Instance Method","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE11CipherSuiteV13receiveExport10privateKey4info7context1L3psk0K2Id5encapSays5UInt8VGAA07PrivateH0V_A2NSiA3NtKF"},"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:psk:pskid:encap:)"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:psk:pskId:encap:)":{"title":"receiveExport(privateKey:info:context:L:psk:pskId:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)","role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"receiveExport"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:psk:pskid:encap:)","kind":"symbol","abstract":[{"type":"text","text":"Retrieve an export secret in preshared key mode"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:psk:pskId:pt:aad:)":{"abstract":[{"text":"Single-shot encryption in preshared key mode","type":"text"}],"role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:psk:pskid:pt:aad:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","kind":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":")"}],"title":"seal(publicKey:info:psk:pskId:pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:psk:pskId:)":{"title":"sendExport(publicKey:info:context:L:psk:pskId:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:psk:pskid:)","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","abstract":[{"type":"text","text":"Generate an export secret in preshared key mode"}],"role":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:psk:pskId:ct:aad:encap:)":{"title":"open(privateKey:info:psk:pskId:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"ct"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:psk:pskid:ct:aad:encap:)","kind":"symbol","abstract":[{"type":"text","text":"Single-shot decryption in preshared key mode"}],"type":"topic"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:psk:pskid:pt:aad:).json b/docs/data/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:psk:pskid:pt:aad:).json index 7b784d1..5ca8d0c 100644 --- a/docs/data/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:psk:pskid:pt:aad:).json +++ b/docs/data/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:psk:pskid:pt:aad:).json @@ -1 +1 @@ -{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"kind":"symbol","metadata":{"role":"symbol","symbolKind":"method","externalID":"s:9SwiftHPKE11CipherSuiteV4seal9publicKey4info14authentication3psk0J2Id2pt3aadSays5UInt8VG5encap_AN2cttAA06PublicG0V_AnA07PrivateG0VA4NtKF","modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":")","kind":"text"}],"roleHeading":"Instance Method","title":"seal(publicKey:info:authentication:psk:pskId:pt:aad:)"},"schemaVersion":{"minor":3,"major":0,"patch":0},"sections":[],"abstract":[{"text":"Single-shot encryption in authenticated, preshared key mode","type":"text"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:psk:pskid:pt:aad:)"]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)"},"seeAlsoSections":[{"title":"Authenticated, preshared key mode","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)"]}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ct","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}]}]},{"kind":"parameters","parameters":[{"content":[{"inlineContent":[{"type":"text","text":"The recipient public key"}],"type":"paragraph"}],"name":"publicKey"},{"content":[{"type":"paragraph","inlineContent":[{"text":"The additional information","type":"text"}]}],"name":"info"},{"name":"authentication","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The sender private key"}]}]},{"name":"psk","content":[{"inlineContent":[{"text":"The preshared key","type":"text"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"text":"The preshared key id","type":"text"}],"type":"paragraph"}],"name":"pskId"},{"name":"pt","content":[{"type":"paragraph","inlineContent":[{"text":"The plain text to encrypt","type":"text"}]}]},{"name":"aad","content":[{"type":"paragraph","inlineContent":[{"text":"The associated data","type":"text"}]}]}]},{"content":[{"text":"Return Value","type":"heading","anchor":"return-value","level":2},{"inlineContent":[{"text":"The encapsulted key and cipher text","type":"text"}],"type":"paragraph"}],"kind":"content"},{"content":[{"text":"Discussion","level":2,"type":"heading","anchor":"discussion"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"self"},{"text":" or the encryption fails or the ","type":"text"},{"type":"codeVoice","code":"psk"},{"text":" parameters are inconsistent or ","type":"text"},{"code":"self.aead","type":"codeVoice"},{"type":"text","text":" is EXPORTONLY"}]}],"style":"note","name":"Throws","type":"aside"}],"kind":"content"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:psk:pskId:pt:aad:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:psk:pskid:pt:aad:)","kind":"symbol","role":"symbol","abstract":[{"text":"Single-shot encryption in authenticated, preshared key mode","type":"text"}],"type":"topic","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pt"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", ct"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","title":"seal(publicKey:info:authentication:psk:pskId:pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)":{"kind":"symbol","title":"open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)","role":"symbol","type":"topic","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","abstract":[{"type":"text","text":"Single-shot decryption in authenticated, preshared key mode"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:psk:pskId:)":{"role":"symbol","abstract":[{"type":"text","text":"Generate an export secret in authenticated, preshared key mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:psk:pskid:)","kind":"symbol","title":"sendExport(publicKey:info:context:L:authentication:psk:pskId:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"receiveExport"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)","title":"receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","type":"topic","abstract":[{"text":"Retrieve an export secret in authenticated, preshared key mode","type":"text"}]}}} \ No newline at end of file +{"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pt"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ct","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"languages":["swift"]}]},{"parameters":[{"name":"publicKey","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient public key"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"The additional information","type":"text"}]}],"name":"info"},{"name":"authentication","content":[{"type":"paragraph","inlineContent":[{"text":"The sender private key","type":"text"}]}]},{"name":"psk","content":[{"inlineContent":[{"text":"The preshared key","type":"text"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"type":"text","text":"The preshared key id"}],"type":"paragraph"}],"name":"pskId"},{"name":"pt","content":[{"inlineContent":[{"type":"text","text":"The plain text to encrypt"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"text":"The associated data","type":"text"}],"type":"paragraph"}],"name":"aad"}],"kind":"parameters"},{"kind":"content","content":[{"level":2,"text":"Return Value","anchor":"return-value","type":"heading"},{"inlineContent":[{"text":"The encapsulted key and cipher text","type":"text"}],"type":"paragraph"}]},{"content":[{"level":2,"anchor":"discussion","type":"heading","text":"Discussion"},{"name":"Throws","content":[{"inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"self"},{"text":" or the encryption fails or the ","type":"text"},{"type":"codeVoice","code":"psk"},{"text":" parameters are inconsistent or ","type":"text"},{"code":"self.aead","type":"codeVoice"},{"text":" is EXPORTONLY","type":"text"}],"type":"paragraph"}],"style":"note","type":"aside"}],"kind":"content"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)"},"sections":[],"seeAlsoSections":[{"title":"Authenticated, preshared key mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)"],"generated":true}],"abstract":[{"text":"Single-shot encryption in authenticated, preshared key mode","type":"text"}],"schemaVersion":{"minor":3,"patch":0,"major":0},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:psk:pskid:pt:aad:)"]}],"kind":"symbol","metadata":{"externalID":"s:9SwiftHPKE11CipherSuiteV4seal9publicKey4info14authentication3psk0J2Id2pt3aadSays5UInt8VG5encap_AN2cttAA06PublicG0V_AnA07PrivateG0VA4NtKF","role":"symbol","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Instance Method","symbolKind":"method","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ct","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":")"}],"title":"seal(publicKey:info:authentication:psk:pskId:pt:aad:)"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:psk:pskId:pt:aad:)":{"title":"seal(publicKey:info:authentication:psk:pskId:pt:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:psk:pskid:pt:aad:)","kind":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ct","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":")"}],"abstract":[{"type":"text","text":"Single-shot encryption in authenticated, preshared key mode"}],"type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)":{"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"type":"topic","abstract":[{"text":"Retrieve an export secret in authenticated, preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","kind":"symbol","title":"receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)":{"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"type":"topic","abstract":[{"text":"Single-shot decryption in authenticated, preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","kind":"symbol","title":"open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:psk:pskId:)":{"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":")"}],"type":"topic","abstract":[{"text":"Generate an export secret in authenticated, preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:psk:pskid:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","kind":"symbol","title":"sendExport(publicKey:info:context:L:authentication:psk:pskId:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:pt:aad:).json b/docs/data/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:pt:aad:).json index 986e37d..9384877 100644 --- a/docs/data/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:pt:aad:).json +++ b/docs/data/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:pt:aad:).json @@ -1 +1 @@ -{"primaryContentSections":[{"declarations":[{"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"kind":"text","text":", ct"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"kind":"text","text":")"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"publicKey","content":[{"type":"paragraph","inlineContent":[{"text":"The recipient public key","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}],"name":"info"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The sender private key"}]}],"name":"authentication"},{"name":"pt","content":[{"inlineContent":[{"type":"text","text":"The plain text to encrypt"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"The associated data","type":"text"}]}],"name":"aad"}]},{"kind":"content","content":[{"type":"heading","level":2,"text":"Return Value","anchor":"return-value"},{"type":"paragraph","inlineContent":[{"type":"text","text":"The encapsulted key and cipher text"}]}]},{"kind":"content","content":[{"anchor":"discussion","type":"heading","level":2,"text":"Discussion"},{"type":"aside","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"self"},{"type":"text","text":" or the encryption fails or "},{"code":"self.aead","type":"codeVoice"},{"text":" is EXPORTONLY","type":"text"}]}],"style":"note","name":"Throws"}]}],"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:pt:aad:)"],"traits":[{"interfaceLanguage":"swift"}]}],"abstract":[{"type":"text","text":"Single-shot encryption in authenticated mode"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)"},"metadata":{"title":"seal(publicKey:info:authentication:pt:aad:)","role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ct","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":")","kind":"text"}],"externalID":"s:9SwiftHPKE11CipherSuiteV4seal9publicKey4info14authentication2pt3aadSays5UInt8VG5encap_AL2cttAA06PublicG0V_AlA07PrivateG0VA2LtKF","symbolKind":"method","roleHeading":"Instance Method","modules":[{"name":"SwiftHPKE"}]},"sections":[],"kind":"symbol","schemaVersion":{"patch":0,"major":0,"minor":3},"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)"],"generated":true,"title":"Authenticated mode"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:pt:aad:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:pt:aad:)","kind":"symbol","abstract":[{"text":"Single-shot encryption in authenticated mode","type":"text"}],"title":"seal(publicKey:info:authentication:pt:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","type":"topic","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", ct"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:ct:aad:encap:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:ct:aad:encap:)","kind":"symbol","role":"symbol","type":"topic","abstract":[{"type":"text","text":"Single-shot decryption in authenticated mode"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","title":"open(privateKey:info:authentication:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:encap:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:encap:)","kind":"symbol","role":"symbol","type":"topic","abstract":[{"type":"text","text":"Retrieve an export secret in authenticated mode"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)","title":"receiveExport(privateKey:info:context:L:authentication:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:)","kind":"symbol","role":"symbol","abstract":[{"text":"Generate an export secret in authenticated mode","type":"text"}],"type":"topic","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"sendExport"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","title":"sendExport(publicKey:info:context:L:authentication:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"}}} \ No newline at end of file +{"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:pt:aad:)"],"traits":[{"interfaceLanguage":"swift"}]}],"sections":[],"abstract":[{"text":"Single-shot encryption in authenticated mode","type":"text"}],"schemaVersion":{"minor":3,"patch":0,"major":0},"metadata":{"roleHeading":"Instance Method","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"kind":"text","text":", "},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":")"}],"symbolKind":"method","role":"symbol","title":"seal(publicKey:info:authentication:pt:aad:)","externalID":"s:9SwiftHPKE11CipherSuiteV4seal9publicKey4info14authentication2pt3aadSays5UInt8VG5encap_AL2cttAA06PublicG0V_AlA07PrivateG0VA2LtKF","modules":[{"name":"SwiftHPKE"}]},"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)"],"generated":true,"title":"Authenticated mode"}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pt"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ct","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"kind":"text","text":")"}],"languages":["swift"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"publicKey","content":[{"inlineContent":[{"type":"text","text":"The recipient public key"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"The additional information","type":"text"}]}],"name":"info"},{"content":[{"inlineContent":[{"text":"The sender private key","type":"text"}],"type":"paragraph"}],"name":"authentication"},{"name":"pt","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The plain text to encrypt"}]}]},{"content":[{"inlineContent":[{"type":"text","text":"The associated data"}],"type":"paragraph"}],"name":"aad"}]},{"content":[{"level":2,"anchor":"return-value","type":"heading","text":"Return Value"},{"type":"paragraph","inlineContent":[{"type":"text","text":"The encapsulted key and cipher text"}]}],"kind":"content"},{"content":[{"anchor":"discussion","level":2,"text":"Discussion","type":"heading"},{"content":[{"inlineContent":[{"text":"An exception if one of the keys does not match ","type":"text"},{"type":"codeVoice","code":"self"},{"type":"text","text":" or the encryption fails or "},{"type":"codeVoice","code":"self.aead"},{"text":" is EXPORTONLY","type":"text"}],"type":"paragraph"}],"name":"Throws","type":"aside","style":"note"}],"kind":"content"}],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","interfaceLanguage":"swift"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:ct:aad:encap:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","kind":"symbol","role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:ct:aad:encap:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"ct"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"abstract":[{"text":"Single-shot decryption in authenticated mode","type":"text"}],"title":"open(privateKey:info:authentication:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","kind":"symbol","role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"sendExport"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encapsulatedKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", secret"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"abstract":[{"text":"Generate an export secret in authenticated mode","type":"text"}],"title":"sendExport(publicKey:info:context:L:authentication:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:pt:aad:)":{"title":"seal(publicKey:info:authentication:pt:aad:)","abstract":[{"type":"text","text":"Single-shot encryption in authenticated mode"}],"role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:pt:aad:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", ct"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:encap:)":{"title":"receiveExport(privateKey:info:context:L:authentication:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)","role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:encap:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"receiveExport"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"abstract":[{"text":"Retrieve an export secret in authenticated mode","type":"text"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/ciphersuite/seal(publickey:info:psk:pskid:pt:aad:).json b/docs/data/documentation/swifthpke/ciphersuite/seal(publickey:info:psk:pskid:pt:aad:).json index 68e3ede..7b8c0ae 100644 --- a/docs/data/documentation/swifthpke/ciphersuite/seal(publickey:info:psk:pskid:pt:aad:).json +++ b/docs/data/documentation/swifthpke/ciphersuite/seal(publickey:info:psk:pskid:pt:aad:).json @@ -1 +1 @@ -{"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pt"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", ct"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":")"}]}]},{"kind":"parameters","parameters":[{"content":[{"type":"paragraph","inlineContent":[{"text":"The recipient public key","type":"text"}]}],"name":"publicKey"},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}]},{"content":[{"inlineContent":[{"type":"text","text":"The preshared key"}],"type":"paragraph"}],"name":"psk"},{"name":"pskId","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key id"}]}]},{"name":"pt","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The plain text to encrypt"}]}]},{"name":"aad","content":[{"type":"paragraph","inlineContent":[{"text":"The associated data","type":"text"}]}]}]},{"kind":"content","content":[{"text":"Return Value","type":"heading","anchor":"return-value","level":2},{"type":"paragraph","inlineContent":[{"type":"text","text":"The encapsulted key and cipher text"}]}]},{"kind":"content","content":[{"level":2,"type":"heading","text":"Discussion","anchor":"discussion"},{"style":"note","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if ","type":"text"},{"type":"codeVoice","code":"publicKey"},{"type":"text","text":" does not match "},{"code":"self","type":"codeVoice"},{"type":"text","text":" or the encryption fails or the "},{"type":"codeVoice","code":"psk"},{"text":" parameters are inconsistent or ","type":"text"},{"type":"codeVoice","code":"self.aead"},{"text":" is EXPORTONLY","type":"text"}]}],"type":"aside","name":"Throws"}]}],"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:psk:pskid:pt:aad:)"],"traits":[{"interfaceLanguage":"swift"}]}],"schemaVersion":{"major":0,"patch":0,"minor":3},"seeAlsoSections":[{"title":"Preshared key mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)"],"generated":true}],"metadata":{"symbolKind":"method","roleHeading":"Instance Method","role":"symbol","externalID":"s:9SwiftHPKE11CipherSuiteV4seal9publicKey4info3psk0I2Id2pt3aadSays5UInt8VG5encap_AM2cttAA06PublicG0V_A5MtKF","modules":[{"name":"SwiftHPKE"}],"fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ct","kind":"text"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":")"}],"title":"seal(publicKey:info:psk:pskId:pt:aad:)"},"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)"},"abstract":[{"text":"Single-shot encryption in preshared key mode","type":"text"}],"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:psk:pskId:)":{"title":"sendExport(publicKey:info:context:L:psk:pskId:)","abstract":[{"text":"Generate an export secret in preshared key mode","type":"text"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","type":"topic","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", secret"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":")"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:psk:pskid:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:psk:pskId:encap:)":{"title":"receiveExport(privateKey:info:context:L:psk:pskId:encap:)","abstract":[{"type":"text","text":"Retrieve an export secret in preshared key mode"}],"role":"symbol","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"receiveExport"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:psk:pskid:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:psk:pskId:pt:aad:)":{"title":"seal(publicKey:info:psk:pskId:pt:aad:)","abstract":[{"type":"text","text":"Single-shot encryption in preshared key mode"}],"role":"symbol","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ct","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:psk:pskid:pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:psk:pskId:ct:aad:encap:)":{"title":"open(privateKey:info:psk:pskId:ct:aad:encap:)","abstract":[{"text":"Single-shot decryption in preshared key mode","type":"text"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","type":"topic","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:psk:pskid:ct:aad:encap:)"}}} \ No newline at end of file +{"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:psk:pskid:pt:aad:)"]}],"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)"},"kind":"symbol","schemaVersion":{"minor":3,"patch":0,"major":0},"primaryContentSections":[{"declarations":[{"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", "},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", ct"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":")"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"publicKey","content":[{"inlineContent":[{"type":"text","text":"The recipient public key"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}],"name":"info"},{"name":"psk","content":[{"inlineContent":[{"text":"The preshared key","type":"text"}],"type":"paragraph"}]},{"name":"pskId","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key id"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The plain text to encrypt"}]}],"name":"pt"},{"name":"aad","content":[{"inlineContent":[{"type":"text","text":"The associated data"}],"type":"paragraph"}]}]},{"content":[{"text":"Return Value","type":"heading","level":2,"anchor":"return-value"},{"inlineContent":[{"text":"The encapsulted key and cipher text","type":"text"}],"type":"paragraph"}],"kind":"content"},{"kind":"content","content":[{"level":2,"text":"Discussion","anchor":"discussion","type":"heading"},{"content":[{"inlineContent":[{"type":"text","text":"An exception if "},{"type":"codeVoice","code":"publicKey"},{"type":"text","text":" does not match "},{"type":"codeVoice","code":"self"},{"text":" or the encryption fails or the ","type":"text"},{"type":"codeVoice","code":"psk"},{"type":"text","text":" parameters are inconsistent or "},{"type":"codeVoice","code":"self.aead"},{"type":"text","text":" is EXPORTONLY"}],"type":"paragraph"}],"style":"note","name":"Throws","type":"aside"}]}],"abstract":[{"text":"Single-shot encryption in preshared key mode","type":"text"}],"seeAlsoSections":[{"generated":true,"title":"Preshared key mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)"]}],"metadata":{"externalID":"s:9SwiftHPKE11CipherSuiteV4seal9publicKey4info3psk0I2Id2pt3aadSays5UInt8VG5encap_AM2cttAA06PublicG0V_A5MtKF","role":"symbol","title":"seal(publicKey:info:psk:pskId:pt:aad:)","modules":[{"name":"SwiftHPKE"}],"symbolKind":"method","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", ct"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"roleHeading":"Instance Method"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:psk:pskId:pt:aad:)":{"abstract":[{"text":"Single-shot encryption in preshared key mode","type":"text"}],"role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:psk:pskid:pt:aad:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","kind":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":")"}],"title":"seal(publicKey:info:psk:pskId:pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:psk:pskId:encap:)":{"title":"receiveExport(privateKey:info:context:L:psk:pskId:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)","role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"receiveExport"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:psk:pskid:encap:)","kind":"symbol","abstract":[{"type":"text","text":"Retrieve an export secret in preshared key mode"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:psk:pskId:ct:aad:encap:)":{"title":"open(privateKey:info:psk:pskId:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"ct"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:psk:pskid:ct:aad:encap:)","kind":"symbol","abstract":[{"type":"text","text":"Single-shot decryption in preshared key mode"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:psk:pskId:)":{"title":"sendExport(publicKey:info:context:L:psk:pskId:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:psk:pskid:)","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","abstract":[{"type":"text","text":"Generate an export secret in preshared key mode"}],"role":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/ciphersuite/seal(publickey:info:pt:aad:).json b/docs/data/documentation/swifthpke/ciphersuite/seal(publickey:info:pt:aad:).json index a1f8146..11ae094 100644 --- a/docs/data/documentation/swifthpke/ciphersuite/seal(publickey:info:pt:aad:).json +++ b/docs/data/documentation/swifthpke/ciphersuite/seal(publickey:info:pt:aad:).json @@ -1 +1 @@ -{"metadata":{"title":"seal(publicKey:info:pt:aad:)","roleHeading":"Instance Method","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encap"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", ct"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":")"}],"externalID":"s:9SwiftHPKE11CipherSuiteV4seal9publicKey4info2pt3aadSays5UInt8VG5encap_AK2cttAA06PublicG0V_A3KtKF","modules":[{"name":"SwiftHPKE"}],"role":"symbol","symbolKind":"method"},"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)"],"title":"Base mode","generated":true}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pt"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}]}]},{"kind":"parameters","parameters":[{"name":"publicKey","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient public key"}]}]},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}]},{"name":"pt","content":[{"inlineContent":[{"type":"text","text":"The plain text to encrypt"}],"type":"paragraph"}]},{"name":"aad","content":[{"inlineContent":[{"text":"The associated data","type":"text"}],"type":"paragraph"}]}]},{"content":[{"level":2,"text":"Return Value","type":"heading","anchor":"return-value"},{"inlineContent":[{"text":"The encapsulated key and cipher text","type":"text"}],"type":"paragraph"}],"kind":"content"},{"kind":"content","content":[{"level":2,"text":"Discussion","type":"heading","anchor":"discussion"},{"type":"aside","style":"note","name":"Throws","content":[{"inlineContent":[{"text":"An exception if ","type":"text"},{"type":"codeVoice","code":"publicKey"},{"type":"text","text":" does not match "},{"type":"codeVoice","code":"self"},{"text":" or the encryption fails or ","type":"text"},{"type":"codeVoice","code":"self.aead"},{"text":" is EXPORTONLY","type":"text"}],"type":"paragraph"}]}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:pt:aad:)"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","interfaceLanguage":"swift"},"abstract":[{"text":"Single-shot encryption in base mode","type":"text"}],"sections":[],"schemaVersion":{"major":0,"patch":0,"minor":3},"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:ct:aad:encap:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","abstract":[{"text":"Single-shot decryption in base mode","type":"text"}],"type":"topic","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"open"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"kind":"symbol","title":"open(privateKey:info:ct:aad:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:ct:aad:encap:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:pt:aad:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","abstract":[{"text":"Single-shot encryption in base mode","type":"text"}],"type":"topic","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pt"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:pt:aad:)","title":"seal(publicKey:info:pt:aad:)","kind":"symbol","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:encap:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:encap:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"receiveExport"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"type":"topic","kind":"symbol","title":"receiveExport(privateKey:info:context:L:encap:)","abstract":[{"text":"Retrieve an export secret in base mode","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encapsulatedKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":")"}],"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"Generate an export secret in base mode"}],"title":"sendExport(publicKey:info:context:L:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]}}} \ No newline at end of file +{"abstract":[{"type":"text","text":"Single-shot encryption in base mode"}],"primaryContentSections":[{"declarations":[{"languages":["swift"],"tokens":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pt"},{"text":": ","kind":"text"},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ct","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":")"}],"platforms":["macOS"]}],"kind":"declarations"},{"parameters":[{"name":"publicKey","content":[{"type":"paragraph","inlineContent":[{"text":"The recipient public key","type":"text"}]}]},{"name":"info","content":[{"inlineContent":[{"type":"text","text":"The additional information"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"text":"The plain text to encrypt","type":"text"}],"type":"paragraph"}],"name":"pt"},{"content":[{"inlineContent":[{"type":"text","text":"The associated data"}],"type":"paragraph"}],"name":"aad"}],"kind":"parameters"},{"content":[{"type":"heading","anchor":"return-value","text":"Return Value","level":2},{"type":"paragraph","inlineContent":[{"type":"text","text":"The encapsulated key and cipher text"}]}],"kind":"content"},{"kind":"content","content":[{"anchor":"discussion","type":"heading","text":"Discussion","level":2},{"type":"aside","name":"Throws","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if "},{"code":"publicKey","type":"codeVoice"},{"text":" does not match ","type":"text"},{"type":"codeVoice","code":"self"},{"text":" or the encryption fails or ","type":"text"},{"code":"self.aead","type":"codeVoice"},{"type":"text","text":" is EXPORTONLY"}]}],"style":"note"}]}],"metadata":{"title":"seal(publicKey:info:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", ct"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":")"}],"roleHeading":"Instance Method","modules":[{"name":"SwiftHPKE"}],"symbolKind":"method","role":"symbol","externalID":"s:9SwiftHPKE11CipherSuiteV4seal9publicKey4info2pt3aadSays5UInt8VG5encap_AK2cttAA06PublicG0V_A3KtKF"},"kind":"symbol","seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)"],"generated":true,"title":"Base mode"}],"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","interfaceLanguage":"swift"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:pt:aad:)"]}],"schemaVersion":{"patch":0,"minor":3,"major":0},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:pt:aad:)":{"type":"topic","role":"symbol","abstract":[{"text":"Single-shot encryption in base mode","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","title":"seal(publicKey:info:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pt"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":")","kind":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:pt:aad:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:ct:aad:encap:)":{"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"Single-shot decryption in base mode"}],"title":"open(privateKey:info:ct:aad:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:encap:)":{"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"Retrieve an export secret in base mode"}],"title":"receiveExport(privateKey:info:context:L:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:)":{"type":"topic","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","abstract":[{"text":"Generate an export secret in base mode","type":"text"}],"title":"sendExport(publicKey:info:context:L:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encapsulatedKey"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", secret"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:)","kind":"symbol"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:).json b/docs/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:).json index dfc3a02..e458352 100644 --- a/docs/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:).json +++ b/docs/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:).json @@ -1 +1 @@ -{"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","interfaceLanguage":"swift"},"kind":"symbol","abstract":[{"type":"text","text":"Generate an export secret in base mode"}],"metadata":{"title":"sendExport(publicKey:info:context:L:)","externalID":"s:9SwiftHPKE11CipherSuiteV10sendExport9publicKey4info7context1LSays5UInt8VG012encapsulatedH0_AK6secrettAA06PublicH0V_A2KSitKF","role":"symbol","symbolKind":"method","modules":[{"name":"SwiftHPKE"}],"fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":")","kind":"text"}],"roleHeading":"Instance Method"},"schemaVersion":{"minor":3,"major":0,"patch":0},"sections":[],"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)"],"title":"Base mode"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:)"]}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encapsulatedKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", secret"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":")"}]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"publicKey","content":[{"inlineContent":[{"type":"text","text":"The recipient public key"}],"type":"paragraph"}]},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"text":"The additional information","type":"text"}]}]},{"name":"context","content":[{"inlineContent":[{"text":"The export context","type":"text"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"text":"The length of the export secret","type":"text"}],"type":"paragraph"}],"name":"L"}]},{"kind":"content","content":[{"level":2,"type":"heading","text":"Return Value","anchor":"return-value"},{"inlineContent":[{"type":"text","text":"The encapsulated key and export secret"}],"type":"paragraph"}]},{"content":[{"level":2,"type":"heading","anchor":"discussion","text":"Discussion"},{"type":"aside","style":"note","content":[{"inlineContent":[{"text":"An exception if ","type":"text"},{"type":"codeVoice","code":"publicKey"},{"type":"text","text":" does not match "},{"type":"codeVoice","code":"self"},{"text":" or L is negative or too large","type":"text"}],"type":"paragraph"}],"name":"Throws"}],"kind":"content"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encapsulatedKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":")"}],"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"Generate an export secret in base mode"}],"title":"sendExport(publicKey:info:context:L:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:encap:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:encap:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"receiveExport"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"type":"topic","kind":"symbol","title":"receiveExport(privateKey:info:context:L:encap:)","abstract":[{"text":"Retrieve an export secret in base mode","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"title":"Bytes","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","fragments":[{"text":"typealias","kind":"keyword"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"url":"\/documentation\/swifthpke\/bytes","role":"symbol","navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:pt:aad:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","abstract":[{"text":"Single-shot encryption in base mode","type":"text"}],"type":"topic","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pt"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:pt:aad:)","title":"seal(publicKey:info:pt:aad:)","kind":"symbol","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:ct:aad:encap:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","abstract":[{"text":"Single-shot decryption in base mode","type":"text"}],"type":"topic","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"open"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"kind":"symbol","title":"open(privateKey:info:ct:aad:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:ct:aad:encap:)","role":"symbol"}}} \ No newline at end of file +{"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:)"],"traits":[{"interfaceLanguage":"swift"}]}],"metadata":{"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":")"}],"title":"sendExport(publicKey:info:context:L:)","externalID":"s:9SwiftHPKE11CipherSuiteV10sendExport9publicKey4info7context1LSays5UInt8VG012encapsulatedH0_AK6secrettAA06PublicH0V_A2KSitKF","role":"symbol","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Instance Method","symbolKind":"method"},"kind":"symbol","identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","interfaceLanguage":"swift"},"sections":[],"seeAlsoSections":[{"title":"Base mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)"],"generated":true}],"schemaVersion":{"major":0,"minor":3,"patch":0},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"sendExport"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"publicKey","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient public key"}]}]},{"content":[{"inlineContent":[{"type":"text","text":"The additional information"}],"type":"paragraph"}],"name":"info"},{"name":"context","content":[{"inlineContent":[{"type":"text","text":"The export context"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"type":"text","text":"The length of the export secret"}],"type":"paragraph"}],"name":"L"}]},{"content":[{"text":"Return Value","type":"heading","level":2,"anchor":"return-value"},{"inlineContent":[{"type":"text","text":"The encapsulated key and export secret"}],"type":"paragraph"}],"kind":"content"},{"kind":"content","content":[{"anchor":"discussion","text":"Discussion","level":2,"type":"heading"},{"content":[{"type":"paragraph","inlineContent":[{"text":"An exception if ","type":"text"},{"type":"codeVoice","code":"publicKey"},{"text":" does not match ","type":"text"},{"code":"self","type":"codeVoice"},{"type":"text","text":" or L is negative or too large"}]}],"style":"note","name":"Throws","type":"aside"}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"abstract":[{"type":"text","text":"Generate an export secret in base mode"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:ct:aad:encap:)":{"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"Single-shot decryption in base mode"}],"title":"open(privateKey:info:ct:aad:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:ct:aad:encap:)","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:)":{"type":"topic","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:)","abstract":[{"text":"Generate an export secret in base mode","type":"text"}],"title":"sendExport(publicKey:info:context:L:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encapsulatedKey"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", secret"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:encap:)":{"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"Retrieve an export secret in base mode"}],"title":"receiveExport(privateKey:info:context:L:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:encap:)","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:pt:aad:)":{"type":"topic","role":"symbol","abstract":[{"text":"Single-shot encryption in base mode","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:pt:aad:)","title":"seal(publicKey:info:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pt"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":")","kind":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:pt:aad:)","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:).json b/docs/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:).json index 4b26c95..ee82178 100644 --- a/docs/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:).json +++ b/docs/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:).json @@ -1 +1 @@ -{"metadata":{"role":"symbol","symbolKind":"method","externalID":"s:9SwiftHPKE11CipherSuiteV10sendExport9publicKey4info7context1L14authenticationSays5UInt8VG012encapsulatedH0_AL6secrettAA06PublicH0V_A2LSiAA07PrivateH0VtKF","modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", secret"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":")","kind":"text"}],"roleHeading":"Instance Method","title":"sendExport(publicKey:info:context:L:authentication:)"},"abstract":[{"type":"text","text":"Generate an export secret in authenticated mode"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)"],"title":"Authenticated mode"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:)"]}],"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PrivateKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":")"}]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"publicKey","content":[{"inlineContent":[{"type":"text","text":"The recipient public key"}],"type":"paragraph"}]},{"name":"info","content":[{"inlineContent":[{"text":"The additional information","type":"text"}],"type":"paragraph"}]},{"name":"context","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The export context"}]}]},{"name":"L","content":[{"inlineContent":[{"text":"The length of the export secret","type":"text"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The sender private key"}]}],"name":"authentication"}]},{"kind":"content","content":[{"anchor":"return-value","text":"Return Value","level":2,"type":"heading"},{"type":"paragraph","inlineContent":[{"text":"The encapsulated key and export secret","type":"text"}]}]},{"content":[{"text":"Discussion","level":2,"type":"heading","anchor":"discussion"},{"name":"Throws","content":[{"inlineContent":[{"text":"An exception if one of the keys does not match ","type":"text"},{"code":"self","type":"codeVoice"},{"text":" or L is negative or too large","type":"text"}],"type":"paragraph"}],"style":"note","type":"aside"}],"kind":"content"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","interfaceLanguage":"swift"},"schemaVersion":{"minor":3,"patch":0,"major":0},"sections":[],"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:)","kind":"symbol","role":"symbol","abstract":[{"text":"Generate an export secret in authenticated mode","type":"text"}],"type":"topic","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"sendExport"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","title":"sendExport(publicKey:info:context:L:authentication:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:encap:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:encap:)","kind":"symbol","role":"symbol","type":"topic","abstract":[{"type":"text","text":"Retrieve an export secret in authenticated mode"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)","title":"receiveExport(privateKey:info:context:L:authentication:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:pt:aad:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:pt:aad:)","kind":"symbol","abstract":[{"text":"Single-shot encryption in authenticated mode","type":"text"}],"title":"seal(publicKey:info:authentication:pt:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","type":"topic","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", ct"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:ct:aad:encap:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:ct:aad:encap:)","kind":"symbol","role":"symbol","type":"topic","abstract":[{"type":"text","text":"Single-shot decryption in authenticated mode"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","title":"open(privateKey:info:authentication:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"}}} \ No newline at end of file +{"schemaVersion":{"minor":3,"major":0,"patch":0},"kind":"symbol","abstract":[{"text":"Generate an export secret in authenticated mode","type":"text"}],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)"],"generated":true,"title":"Authenticated mode"}],"metadata":{"modules":[{"name":"SwiftHPKE"}],"symbolKind":"method","role":"symbol","externalID":"s:9SwiftHPKE11CipherSuiteV10sendExport9publicKey4info7context1L14authenticationSays5UInt8VG012encapsulatedH0_AL6secrettAA06PublicH0V_A2LSiAA07PrivateH0VtKF","title":"sendExport(publicKey:info:context:L:authentication:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":")"}],"roleHeading":"Instance Method"},"primaryContentSections":[{"declarations":[{"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","text":"PrivateKey"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":")","kind":"text"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"publicKey","content":[{"type":"paragraph","inlineContent":[{"text":"The recipient public key","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}],"name":"info"},{"name":"context","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The export context"}]}]},{"name":"L","content":[{"type":"paragraph","inlineContent":[{"text":"The length of the export secret","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"The sender private key","type":"text"}]}],"name":"authentication"}]},{"content":[{"anchor":"return-value","text":"Return Value","type":"heading","level":2},{"inlineContent":[{"type":"text","text":"The encapsulated key and export secret"}],"type":"paragraph"}],"kind":"content"},{"kind":"content","content":[{"text":"Discussion","type":"heading","level":2,"anchor":"discussion"},{"style":"note","name":"Throws","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if one of the keys does not match ","type":"text"},{"code":"self","type":"codeVoice"},{"text":" or L is negative or too large","type":"text"}]}],"type":"aside"}]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:)"],"traits":[{"interfaceLanguage":"swift"}]}],"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","abstract":[{"type":"text","text":"The private key"}],"role":"symbol","url":"\/documentation\/swifthpke\/privatekey","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:pt:aad:)":{"title":"seal(publicKey:info:authentication:pt:aad:)","abstract":[{"type":"text","text":"Single-shot encryption in authenticated mode"}],"role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:pt:aad:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", ct"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:pt:aad:)","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:ct:aad:encap:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:ct:aad:encap:)","kind":"symbol","role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:ct:aad:encap:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"ct"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"abstract":[{"text":"Single-shot decryption in authenticated mode","type":"text"}],"title":"open(privateKey:info:authentication:ct:aad:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:encap:)":{"title":"receiveExport(privateKey:info:context:L:authentication:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:encap:)","role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:encap:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"receiveExport"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"abstract":[{"text":"Retrieve an export secret in authenticated mode","type":"text"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:)","kind":"symbol","role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"sendExport"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encapsulatedKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", secret"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"abstract":[{"text":"Generate an export secret in authenticated mode","type":"text"}],"title":"sendExport(publicKey:info:context:L:authentication:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:psk:pskid:).json b/docs/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:psk:pskid:).json index 42bc8fa..a0bdd93 100644 --- a/docs/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:psk:pskid:).json +++ b/docs/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:psk:pskid:).json @@ -1 +1 @@ -{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"kind":"symbol","metadata":{"roleHeading":"Instance Method","modules":[{"name":"SwiftHPKE"}],"symbolKind":"method","role":"symbol","title":"sendExport(publicKey:info:context:L:authentication:psk:pskId:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"kind":"text","text":": "},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", secret"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":")"}],"externalID":"s:9SwiftHPKE11CipherSuiteV10sendExport9publicKey4info7context1L14authentication3psk0L2IdSays5UInt8VG012encapsulatedH0_AN6secrettAA06PublicH0V_A2NSiAA07PrivateH0VA2NtKF"},"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)"],"title":"Authenticated, preshared key mode"}],"sections":[],"schemaVersion":{"major":0,"minor":3,"patch":0},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","text":"PrivateKey"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encapsulatedKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}]}]},{"parameters":[{"name":"publicKey","content":[{"inlineContent":[{"text":"The recipient public key","type":"text"}],"type":"paragraph"}]},{"name":"info","content":[{"inlineContent":[{"text":"The additional information","type":"text"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"The export context","type":"text"}]}],"name":"context"},{"name":"L","content":[{"inlineContent":[{"text":"The length of the export secret","type":"text"}],"type":"paragraph"}]},{"name":"authentication","content":[{"type":"paragraph","inlineContent":[{"text":"The sender private key","type":"text"}]}]},{"name":"psk","content":[{"type":"paragraph","inlineContent":[{"text":"The preshared key","type":"text"}]}]},{"name":"pskId","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key id"}]}]}],"kind":"parameters"},{"content":[{"type":"heading","anchor":"return-value","level":2,"text":"Return Value"},{"type":"paragraph","inlineContent":[{"text":"The encapsulated key and export secret","type":"text"}]}],"kind":"content"},{"kind":"content","content":[{"text":"Discussion","anchor":"discussion","level":2,"type":"heading"},{"name":"Throws","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"self"},{"text":" or the ","type":"text"},{"type":"codeVoice","code":"psk"},{"type":"text","text":" parameters are inconsistent or L is negative or too large"}]}],"style":"note","type":"aside"}]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:psk:pskid:)"]}],"abstract":[{"text":"Generate an export secret in authenticated, preshared key mode","type":"text"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","interfaceLanguage":"swift"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)":{"kind":"symbol","title":"open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)","role":"symbol","type":"topic","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","abstract":[{"type":"text","text":"Single-shot decryption in authenticated, preshared key mode"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:psk:pskId:)":{"role":"symbol","abstract":[{"type":"text","text":"Generate an export secret in authenticated, preshared key mode"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:psk:pskid:)","kind":"symbol","title":"sendExport(publicKey:info:context:L:authentication:psk:pskId:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:psk:pskId:pt:aad:)":{"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:psk:pskid:pt:aad:)","kind":"symbol","role":"symbol","abstract":[{"text":"Single-shot encryption in authenticated, preshared key mode","type":"text"}],"type":"topic","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pt"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", ct"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":")","kind":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","title":"seal(publicKey:info:authentication:psk:pskId:pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"receiveExport"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)","title":"receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","type":"topic","abstract":[{"text":"Retrieve an export secret in authenticated, preshared key mode","type":"text"}]}}} \ No newline at end of file +{"abstract":[{"type":"text","text":"Generate an export secret in authenticated, preshared key mode"}],"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)"],"title":"Authenticated, preshared key mode"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)"},"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:psk:pskid:)"],"traits":[{"interfaceLanguage":"swift"}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"primaryContentSections":[{"declarations":[{"tokens":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PrivateKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":")"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"publicKey","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient public key"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"The additional information","type":"text"}]}],"name":"info"},{"content":[{"type":"paragraph","inlineContent":[{"text":"The export context","type":"text"}]}],"name":"context"},{"name":"L","content":[{"inlineContent":[{"type":"text","text":"The length of the export secret"}],"type":"paragraph"}]},{"name":"authentication","content":[{"type":"paragraph","inlineContent":[{"text":"The sender private key","type":"text"}]}]},{"name":"psk","content":[{"inlineContent":[{"type":"text","text":"The preshared key"}],"type":"paragraph"}]},{"name":"pskId","content":[{"type":"paragraph","inlineContent":[{"text":"The preshared key id","type":"text"}]}]}]},{"kind":"content","content":[{"type":"heading","text":"Return Value","level":2,"anchor":"return-value"},{"inlineContent":[{"type":"text","text":"The encapsulated key and export secret"}],"type":"paragraph"}]},{"kind":"content","content":[{"anchor":"discussion","type":"heading","text":"Discussion","level":2},{"type":"aside","name":"Throws","style":"note","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"self"},{"text":" or the ","type":"text"},{"code":"psk","type":"codeVoice"},{"text":" parameters are inconsistent or L is negative or too large","type":"text"}]}]}]}],"kind":"symbol","metadata":{"roleHeading":"Instance Method","modules":[{"name":"SwiftHPKE"}],"symbolKind":"method","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", secret"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"role":"symbol","title":"sendExport(publicKey:info:context:L:authentication:psk:pskId:)","externalID":"s:9SwiftHPKE11CipherSuiteV10sendExport9publicKey4info7context1L14authentication3psk0L2IdSays5UInt8VG012encapsulatedH0_AN6secrettAA06PublicH0V_A2NSiAA07PrivateH0VA2NtKF"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)":{"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"type":"topic","abstract":[{"text":"Retrieve an export secret in authenticated, preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)","kind":"symbol","title":"receiveExport(privateKey:info:context:L:authentication:psk:pskId:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:authentication:psk:pskId:pt:aad:)":{"title":"seal(publicKey:info:authentication:psk:pskId:pt:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:authentication:psk:pskId:pt:aad:)","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:authentication:psk:pskid:pt:aad:)","kind":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ct","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":")"}],"abstract":[{"type":"text","text":"Single-shot encryption in authenticated, preshared key mode"}],"type":"topic","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:authentication:psk:pskId:)":{"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":")"}],"type":"topic","abstract":[{"text":"Generate an export secret in authenticated, preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:authentication:psk:pskid:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:authentication:psk:pskId:)","kind":"symbol","title":"sendExport(publicKey:info:context:L:authentication:psk:pskId:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)":{"role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"ct","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"type":"topic","abstract":[{"text":"Single-shot decryption in authenticated, preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)","kind":"symbol","title":"open(privateKey:info:authentication:psk:pskId:ct:aad:encap:)"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:psk:pskid:).json b/docs/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:psk:pskid:).json index 2834740..78c77d9 100644 --- a/docs/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:psk:pskid:).json +++ b/docs/data/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:psk:pskid:).json @@ -1 +1 @@ -{"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:psk:pskid:)"]}],"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"seeAlsoSections":[{"generated":true,"title":"Preshared key mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)"]}],"metadata":{"title":"sendExport(publicKey:info:context:L:psk:pskId:)","symbolKind":"method","modules":[{"name":"SwiftHPKE"}],"role":"symbol","externalID":"s:9SwiftHPKE11CipherSuiteV10sendExport9publicKey4info7context1L3psk0K2IdSays5UInt8VG012encapsulatedH0_AM6secrettAA06PublicH0V_A2MSiA2MtKF","roleHeading":"Instance Method","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> (encapsulatedKey"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":")","kind":"text"}]},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encapsulatedKey"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"kind":"text","text":")"}]}]},{"kind":"parameters","parameters":[{"content":[{"type":"paragraph","inlineContent":[{"text":"The recipient public key","type":"text"}]}],"name":"publicKey"},{"content":[{"type":"paragraph","inlineContent":[{"text":"The additional information","type":"text"}]}],"name":"info"},{"name":"context","content":[{"inlineContent":[{"text":"The export context","type":"text"}],"type":"paragraph"}]},{"name":"L","content":[{"inlineContent":[{"text":"The length of the export secret","type":"text"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key"}]}],"name":"psk"},{"name":"pskId","content":[{"inlineContent":[{"text":"The preshared key id","type":"text"}],"type":"paragraph"}]}]},{"kind":"content","content":[{"level":2,"anchor":"return-value","text":"Return Value","type":"heading"},{"inlineContent":[{"type":"text","text":"The encapsulated key and export secret"}],"type":"paragraph"}]},{"content":[{"level":2,"type":"heading","anchor":"discussion","text":"Discussion"},{"type":"aside","style":"note","name":"Throws","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if "},{"code":"publicKey","type":"codeVoice"},{"text":" does not match ","type":"text"},{"code":"self","type":"codeVoice"},{"type":"text","text":" or the "},{"code":"psk","type":"codeVoice"},{"text":" parameters are inconsistent or L is negative or too large","type":"text"}]}]}],"kind":"content"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","interfaceLanguage":"swift"},"schemaVersion":{"patch":0,"major":0,"minor":3},"kind":"symbol","abstract":[{"type":"text","text":"Generate an export secret in preshared key mode"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:psk:pskId:pt:aad:)":{"title":"seal(publicKey:info:psk:pskId:pt:aad:)","abstract":[{"type":"text","text":"Single-shot encryption in preshared key mode"}],"role":"symbol","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> (encap","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ct","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:psk:pskid:pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:psk:pskId:encap:)":{"title":"receiveExport(privateKey:info:context:L:psk:pskId:encap:)","abstract":[{"type":"text","text":"Retrieve an export secret in preshared key mode"}],"role":"symbol","kind":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"receiveExport"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:psk:pskid:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:psk:pskId:)":{"title":"sendExport(publicKey:info:context:L:psk:pskId:)","abstract":[{"text":"Generate an export secret in preshared key mode","type":"text"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","type":"topic","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", secret"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":")"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:psk:pskid:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:psk:pskId:ct:aad:encap:)":{"title":"open(privateKey:info:psk:pskId:ct:aad:encap:)","abstract":[{"text":"Single-shot decryption in preshared key mode","type":"text"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","type":"topic","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:psk:pskid:ct:aad:encap:)"}}} \ No newline at end of file +{"metadata":{"roleHeading":"Instance Method","modules":[{"name":"SwiftHPKE"}],"symbolKind":"method","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", secret"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":")","kind":"text"}],"role":"symbol","title":"sendExport(publicKey:info:context:L:psk:pskId:)","externalID":"s:9SwiftHPKE11CipherSuiteV10sendExport9publicKey4info7context1L3psk0K2IdSays5UInt8VG012encapsulatedH0_AM6secrettAA06PublicH0V_A2MSiA2MtKF"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"]]},"seeAlsoSections":[{"title":"Preshared key mode","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)"],"generated":true}],"variants":[{"paths":["\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:psk:pskid:)"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","interfaceLanguage":"swift"},"kind":"symbol","primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> (encapsulatedKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", secret"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":")","kind":"text"}],"languages":["swift"]}]},{"parameters":[{"content":[{"type":"paragraph","inlineContent":[{"text":"The recipient public key","type":"text"}]}],"name":"publicKey"},{"content":[{"inlineContent":[{"type":"text","text":"The additional information"}],"type":"paragraph"}],"name":"info"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The export context"}]}],"name":"context"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The length of the export secret"}]}],"name":"L"},{"name":"psk","content":[{"type":"paragraph","inlineContent":[{"text":"The preshared key","type":"text"}]}]},{"content":[{"inlineContent":[{"type":"text","text":"The preshared key id"}],"type":"paragraph"}],"name":"pskId"}],"kind":"parameters"},{"content":[{"anchor":"return-value","type":"heading","level":2,"text":"Return Value"},{"inlineContent":[{"type":"text","text":"The encapsulated key and export secret"}],"type":"paragraph"}],"kind":"content"},{"kind":"content","content":[{"level":2,"anchor":"discussion","text":"Discussion","type":"heading"},{"style":"note","type":"aside","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if ","type":"text"},{"type":"codeVoice","code":"publicKey"},{"text":" does not match ","type":"text"},{"type":"codeVoice","code":"self"},{"type":"text","text":" or the "},{"type":"codeVoice","code":"psk"},{"text":" parameters are inconsistent or L is negative or too large","type":"text"}]}],"name":"Throws"}]}],"sections":[],"abstract":[{"text":"Generate an export secret in preshared key mode","type":"text"}],"schemaVersion":{"major":0,"minor":3,"patch":0},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/seal(publicKey:info:psk:pskId:pt:aad:)":{"abstract":[{"text":"Single-shot encryption in preshared key mode","type":"text"}],"role":"symbol","url":"\/documentation\/swifthpke\/ciphersuite\/seal(publickey:info:psk:pskid:pt:aad:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/seal(publicKey:info:psk:pskId:pt:aad:)","kind":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> (encap","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ct","kind":"text"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":")"}],"title":"seal(publicKey:info:psk:pskId:pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/receiveExport(privateKey:info:context:L:psk:pskId:encap:)":{"title":"receiveExport(privateKey:info:context:L:psk:pskId:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/receiveExport(privateKey:info:context:L:psk:pskId:encap:)","role":"symbol","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"receiveExport"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"url":"\/documentation\/swifthpke\/ciphersuite\/receiveexport(privatekey:info:context:l:psk:pskid:encap:)","kind":"symbol","abstract":[{"type":"text","text":"Retrieve an export secret in preshared key mode"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/open(privateKey:info:psk:pskId:ct:aad:encap:)":{"title":"open(privateKey:info:psk:pskId:ct:aad:encap:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/open(privateKey:info:psk:pskId:ct:aad:encap:)","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"open"},{"text":"(","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"ct"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/ciphersuite\/open(privatekey:info:psk:pskid:ct:aad:encap:)","kind":"symbol","abstract":[{"type":"text","text":"Single-shot decryption in preshared key mode"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite/sendExport(publicKey:info:context:L:psk:pskId:)":{"title":"sendExport(publicKey:info:context:L:psk:pskId:)","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"text":"(","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"text":" -> (encapsulatedKey","kind":"text"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", secret","kind":"text"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":")","kind":"text"}],"url":"\/documentation\/swifthpke\/ciphersuite\/sendexport(publickey:info:context:l:psk:pskid:)","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite\/sendExport(publicKey:info:context:L:psk:pskId:)","abstract":[{"type":"text","text":"Generate an export secret in preshared key mode"}],"role":"symbol","type":"topic"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/cryptokit.json b/docs/data/documentation/swifthpke/cryptokit.json index aa9cc0d..104974b 100644 --- a/docs/data/documentation/swifthpke/cryptokit.json +++ b/docs/data/documentation/swifthpke/cryptokit.json @@ -1 +1 @@ -{"abstract":[{"type":"text","text":"SwiftHPKE is compatible with Apple’s CryptoKit framework"}],"sections":[],"primaryContentSections":[{"content":[{"anchor":"","level":2,"text":"","type":"heading"},{"type":"paragraph","inlineContent":[{"text":"The SwiftHPKE keys of type ","type":"text"},{"type":"codeVoice","code":".P256"},{"type":"text","text":", "},{"code":".P384","type":"codeVoice"},{"text":", ","type":"text"},{"type":"codeVoice","code":".P521"},{"text":" and ","type":"text"},{"type":"codeVoice","code":".X25519"},{"type":"text","text":" correspond to CryptoKit keys of type "},{"code":"P256","type":"codeVoice"},{"type":"text","text":", "},{"type":"codeVoice","code":"P384"},{"type":"text","text":", "},{"type":"codeVoice","code":"P521"},{"text":" and ","type":"text"},{"code":"Curve25519","type":"codeVoice"},{"text":". Keys of type ","type":"text"},{"type":"codeVoice","code":".X448"},{"text":" is not supported in CryptoKit.","type":"text"}]},{"inlineContent":[{"text":"To convert CryptoKit ","type":"text"},{"type":"codeVoice","code":"P256"},{"text":" keys (similarly for ","type":"text"},{"type":"codeVoice","code":"P384"},{"text":" and ","type":"text"},{"type":"codeVoice","code":"P521"},{"type":"text","text":") - say "},{"code":"ckPriv","type":"codeVoice"},{"text":" and ","type":"text"},{"type":"codeVoice","code":"ckPub"},{"type":"text","text":" to SwiftHPKE keys:"}],"type":"paragraph"},{"code":["let hpkePriv = try PrivateKey(der: Bytes(ckPriv.derRepresentation))","let hpkePub = try PublicKey(der: Bytes(ckPub.derRepresentation))"],"syntax":"swift","type":"codeListing"},{"type":"paragraph","inlineContent":[{"text":"To convert CryptoKit ","type":"text"},{"type":"codeVoice","code":"Curve25519"},{"type":"text","text":" keys - say "},{"type":"codeVoice","code":"ckPriv"},{"text":" and ","type":"text"},{"code":"ckPub","type":"codeVoice"},{"text":" to SwiftHPKE keys:","type":"text"}]},{"code":["let hpkePriv = try PrivateKey(kem: .X25519, bytes: Bytes(ckPriv.rawRepresentation))","let hpkePub = try PublicKey(kem: .X25519, bytes: Bytes(ckPub.rawRepresentation))"],"type":"codeListing","syntax":"swift"},{"type":"paragraph","inlineContent":[{"type":"text","text":"To convert SwiftHPKE "},{"type":"codeVoice","code":".P256"},{"type":"text","text":" keys (similarly for "},{"code":".P384","type":"codeVoice"},{"text":" and ","type":"text"},{"code":".P521","type":"codeVoice"},{"type":"text","text":") - say "},{"type":"codeVoice","code":"hpkePriv"},{"type":"text","text":" and "},{"type":"codeVoice","code":"hpkePub"},{"text":" to CryptoKit keys:","type":"text"}]},{"syntax":"swift","code":["let ckPriv = try CryptoKit.P256.KeyAgreement.PrivateKey(derRepresentation: hpkePriv.der)","let ckPub = try CryptoKit.P256.KeyAgreement.PublicKey(derRepresentation: hpkePub.der)"],"type":"codeListing"},{"type":"paragraph","inlineContent":[{"text":"To convert SwiftHPKE ","type":"text"},{"type":"codeVoice","code":".X25519"},{"text":" keys - say ","type":"text"},{"code":"hpkePriv","type":"codeVoice"},{"text":" and ","type":"text"},{"type":"codeVoice","code":"hpkePub"},{"type":"text","text":" to CryptoKit keys:"}]},{"code":["let ckPriv = try CryptoKit.Curve25519.KeyAgreement.PrivateKey(rawRepresentation: hpkePriv.bytes)","let ckPub = try CryptoKit.Curve25519.KeyAgreement.PublicKey(rawRepresentation: hpkePub.bytes)"],"type":"codeListing","syntax":"swift"}],"kind":"content"}],"schemaVersion":{"major":0,"minor":3,"patch":0},"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References"],"title":"Additional Information"}],"metadata":{"role":"article","roleHeading":"Article","title":"CryptoKit Compatibility","modules":[{"name":"SwiftHPKE"}]},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","interfaceLanguage":"swift"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/cryptokit"]}],"kind":"article","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Performance":{"kind":"article","url":"\/documentation\/swifthpke\/performance","role":"article","abstract":[{"text":"Encryption and decryption speed","type":"text"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","title":"Performance"},"doc://SwiftHPKE/documentation/SwiftHPKE/SecretExport":{"title":"Secret Export","url":"\/documentation\/swifthpke\/secretexport","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","abstract":[{"text":"Creating secret messages","type":"text"}],"type":"topic","role":"article","kind":"article"},"doc://SwiftHPKE/documentation/SwiftHPKE/KeyManagement":{"kind":"article","url":"\/documentation\/swifthpke\/keymanagement","role":"article","abstract":[{"text":"Creating new keys and loading exsisting keys","type":"text"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","title":"Key Management"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/References":{"abstract":[{"type":"text","text":"Algorithms from the following books and papers have been used in the implementation"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References","role":"article","kind":"article","title":"References","type":"topic","url":"\/documentation\/swifthpke\/references"}}} \ No newline at end of file +{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"abstract":[{"text":"SwiftHPKE is compatible with Apple’s CryptoKit framework","type":"text"}],"primaryContentSections":[{"kind":"content","content":[{"level":2,"text":"","anchor":"","type":"heading"},{"inlineContent":[{"text":"The SwiftHPKE keys of type ","type":"text"},{"code":".P256","type":"codeVoice"},{"type":"text","text":", "},{"type":"codeVoice","code":".P384"},{"text":", ","type":"text"},{"code":".P521","type":"codeVoice"},{"type":"text","text":" and "},{"code":".X25519","type":"codeVoice"},{"type":"text","text":" correspond to CryptoKit keys of type "},{"type":"codeVoice","code":"P256"},{"type":"text","text":", "},{"type":"codeVoice","code":"P384"},{"type":"text","text":", "},{"type":"codeVoice","code":"P521"},{"text":" and ","type":"text"},{"code":"Curve25519","type":"codeVoice"},{"text":". Keys of type ","type":"text"},{"code":".X448","type":"codeVoice"},{"type":"text","text":" is not supported in CryptoKit."}],"type":"paragraph"},{"inlineContent":[{"text":"To convert CryptoKit ","type":"text"},{"type":"codeVoice","code":"P256"},{"type":"text","text":" keys (similarly for "},{"type":"codeVoice","code":"P384"},{"text":" and ","type":"text"},{"type":"codeVoice","code":"P521"},{"text":") - say ","type":"text"},{"code":"ckPriv","type":"codeVoice"},{"type":"text","text":" and "},{"type":"codeVoice","code":"ckPub"},{"text":" to SwiftHPKE keys:","type":"text"}],"type":"paragraph"},{"syntax":"swift","code":["let hpkePriv = try PrivateKey(der: Bytes(ckPriv.derRepresentation))","let hpkePub = try PublicKey(der: Bytes(ckPub.derRepresentation))"],"type":"codeListing"},{"inlineContent":[{"type":"text","text":"To convert CryptoKit "},{"code":"Curve25519","type":"codeVoice"},{"type":"text","text":" keys - say "},{"type":"codeVoice","code":"ckPriv"},{"type":"text","text":" and "},{"type":"codeVoice","code":"ckPub"},{"type":"text","text":" to SwiftHPKE keys:"}],"type":"paragraph"},{"type":"codeListing","code":["let hpkePriv = try PrivateKey(kem: .X25519, bytes: Bytes(ckPriv.rawRepresentation))","let hpkePub = try PublicKey(kem: .X25519, bytes: Bytes(ckPub.rawRepresentation))"],"syntax":"swift"},{"inlineContent":[{"type":"text","text":"To convert SwiftHPKE "},{"type":"codeVoice","code":".P256"},{"type":"text","text":" keys (similarly for "},{"code":".P384","type":"codeVoice"},{"type":"text","text":" and "},{"code":".P521","type":"codeVoice"},{"type":"text","text":") - say "},{"type":"codeVoice","code":"hpkePriv"},{"text":" and ","type":"text"},{"type":"codeVoice","code":"hpkePub"},{"text":" to CryptoKit keys:","type":"text"}],"type":"paragraph"},{"type":"codeListing","syntax":"swift","code":["let ckPriv = try CryptoKit.P256.KeyAgreement.PrivateKey(derRepresentation: hpkePriv.der)","let ckPub = try CryptoKit.P256.KeyAgreement.PublicKey(derRepresentation: hpkePub.der)"]},{"type":"paragraph","inlineContent":[{"type":"text","text":"To convert SwiftHPKE "},{"type":"codeVoice","code":".X25519"},{"text":" keys - say ","type":"text"},{"code":"hpkePriv","type":"codeVoice"},{"text":" and ","type":"text"},{"code":"hpkePub","type":"codeVoice"},{"type":"text","text":" to CryptoKit keys:"}]},{"type":"codeListing","syntax":"swift","code":["let ckPriv = try CryptoKit.Curve25519.KeyAgreement.PrivateKey(rawRepresentation: hpkePriv.bytes)","let ckPub = try CryptoKit.Curve25519.KeyAgreement.PublicKey(rawRepresentation: hpkePub.bytes)"]},{"type":"paragraph","inlineContent":[{"type":"text","text":"Messages sealed by CryptoKit in Base mode, Preshared Key mode, Authenticated mode or Authenticated, Preshared Key mode"},{"text":" ","type":"text"},{"text":"can be opened by SwiftHPKE in the same mode using the SwiftHPKE version of the keys.","type":"text"}]},{"type":"paragraph","inlineContent":[{"text":"Likewise, messages sealed by SwiftHPKE in Base mode, Preshared Key mode, Authenticated mode or Authenticated, Preshared Key mode","type":"text"},{"text":" ","type":"text"},{"type":"text","text":"can be opened by CryptoKit in the same mode using the CryptoKit version of the keys."}]}]}],"kind":"article","metadata":{"role":"article","title":"CryptoKit Compatibility","roleHeading":"Article","modules":[{"name":"SwiftHPKE"}]},"seeAlsoSections":[{"generated":true,"title":"Additional Information","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References"]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/cryptokit"]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/SecretExport":{"url":"\/documentation\/swifthpke\/secretexport","title":"Secret Export","kind":"article","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","abstract":[{"type":"text","text":"Creating secret messages"}],"role":"article"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/Performance":{"title":"Performance","abstract":[{"type":"text","text":"Encryption and decryption speed"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","role":"article","kind":"article","url":"\/documentation\/swifthpke\/performance"},"doc://SwiftHPKE/documentation/SwiftHPKE/KeyManagement":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","url":"\/documentation\/swifthpke\/keymanagement","kind":"article","abstract":[{"type":"text","text":"Creating new keys and loading exsisting keys"}],"type":"topic","role":"article","title":"Key Management"},"doc://SwiftHPKE/documentation/SwiftHPKE/References":{"url":"\/documentation\/swifthpke\/references","title":"References","kind":"article","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References","abstract":[{"type":"text","text":"Algorithms from the following books and papers have been used in the implementation"}],"role":"article"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/hpkeexception.json b/docs/data/documentation/swifthpke/hpkeexception.json index 79f7c8e..84222fa 100644 --- a/docs/data/documentation/swifthpke/hpkeexception.json +++ b/docs/data/documentation/swifthpke/hpkeexception.json @@ -1 +1 @@ -{"schemaVersion":{"minor":3,"major":0,"patch":0},"abstract":[{"type":"text","text":"The HPKE exceptions"}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"HPKEException","kind":"identifier"}],"languages":["swift"]}],"kind":"declarations"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception"]}],"seeAlsoSections":[{"title":"Enumerations","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"},"metadata":{"modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE13HPKEExceptionO","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"role":"symbol","roleHeading":"Enumeration","title":"HPKEException","symbolKind":"enum"},"kind":"symbol","relationshipsSections":[{"identifiers":["doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","doc:\/\/SwiftHPKE\/SQ","doc:\/\/SwiftHPKE\/s5ErrorP","doc:\/\/SwiftHPKE\/SH","doc:\/\/SwiftHPKE\/s8SendableP"],"type":"conformsTo","kind":"relationships","title":"Conforms To"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"sections":[],"topicSections":[{"title":"Enumeration Cases","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/asn1Structure","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/base64","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/decodePoint","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/derivedKeyError","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportOnlyError","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportSize","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/keyMismatch","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pemStructure","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/privateKeyParameter","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pskError","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/publicKeyParameter","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/smallOrder"]},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/description"],"title":"Instance Properties"},{"generated":true,"title":"Default Implementations","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Equatable-Implementations","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Error-Implementations"]}],"references":{"doc://SwiftHPKE/SH":{"type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/SH","title":"Swift.Hashable"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/pemStructure":{"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/hpkeexception\/pemstructure","kind":"symbol","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"pemStructure"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pemStructure","title":"HPKEException.pemStructure","abstract":[{"text":"PEM structure is wrong","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","abstract":[{"text":"The key encapsulation mechanisms","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","role":"symbol","title":"KEM","type":"topic","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"KEM","kind":"identifier"}],"navigatorTitle":[{"text":"KEM","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/exportSize":{"abstract":[{"type":"text","text":"Export size is negative or too large"}],"role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"exportSize","kind":"identifier"}],"title":"HPKEException.exportSize","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportSize","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/hpkeexception\/exportsize"},"doc://SwiftHPKE/s8SendableP":{"title":"Swift.Sendable","type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/s8SendableP"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/smallOrder":{"title":"HPKEException.smallOrder","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/smallOrder","kind":"symbol","url":"\/documentation\/swifthpke\/hpkeexception\/smallorder","abstract":[{"text":"X25519, X448 small order error","type":"text"}],"role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"smallOrder","kind":"identifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/keyMismatch":{"abstract":[{"text":"CipherSuite key mismatch","type":"text"}],"role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"keyMismatch","kind":"identifier"}],"title":"HPKEException.keyMismatch","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/keyMismatch","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/hpkeexception\/keymismatch"},"doc://SwiftHPKE/SQ":{"type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/SQ","title":"Swift.Equatable"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/privateKeyParameter":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/privateKeyParameter","abstract":[{"type":"text","text":"Invalid parameter to PrivateKey constructor"}],"kind":"symbol","type":"topic","role":"symbol","title":"HPKEException.privateKeyParameter","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"privateKeyParameter","kind":"identifier"}],"url":"\/documentation\/swifthpke\/hpkeexception\/privatekeyparameter"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"navigatorTitle":[{"text":"AEAD","kind":"identifier"}],"type":"topic","title":"AEAD","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","url":"\/documentation\/swifthpke\/aead","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"AEAD"}],"abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"role":"symbol","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/decodePoint":{"role":"symbol","title":"HPKEException.decodePoint","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"decodePoint","kind":"identifier"}],"abstract":[{"text":"Decode point error","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/decodePoint","kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/hpkeexception\/decodepoint"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/asn1Structure":{"abstract":[{"type":"text","text":"ASN1 structure is wrong"}],"role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"asn1Structure","kind":"identifier"}],"title":"HPKEException.asn1Structure","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/asn1Structure","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/hpkeexception\/asn1structure"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/base64":{"abstract":[{"text":"Base64 decoding exception","type":"text"}],"role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"base64","kind":"identifier"}],"title":"HPKEException.base64","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/base64","kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/hpkeexception\/base64"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/description":{"abstract":[{"type":"text","text":"Textual description of "},{"type":"codeVoice","code":"self"}],"role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"}],"title":"description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/description","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/hpkeexception\/description"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/publicKeyParameter":{"abstract":[{"type":"text","text":"Invalid parameter to PublicKey constructor"}],"role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"publicKeyParameter","kind":"identifier"}],"title":"HPKEException.publicKeyParameter","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/publicKeyParameter","kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/hpkeexception\/publickeyparameter"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/exportOnlyError":{"abstract":[{"text":"Export only error","type":"text"}],"role":"symbol","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"exportOnlyError","kind":"identifier"}],"title":"HPKEException.exportOnlyError","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportOnlyError","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/hpkeexception\/exportonlyerror"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/Equatable-Implementations":{"url":"\/documentation\/swifthpke\/hpkeexception\/equatable-implementations","title":"Equatable Implementations","kind":"article","role":"collectionGroup","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Equatable-Implementations","abstract":[]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/pskError":{"abstract":[{"type":"text","text":"Inconsistent PSK parameters"}],"kind":"symbol","title":"HPKEException.pskError","role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"pskError","kind":"identifier"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pskError","url":"\/documentation\/swifthpke\/hpkeexception\/pskerror"},"doc://SwiftHPKE/s5ErrorP":{"title":"Swift.Error","type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/s5ErrorP"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/Error-Implementations":{"abstract":[],"kind":"article","title":"Error Implementations","role":"collectionGroup","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Error-Implementations","url":"\/documentation\/swifthpke\/hpkeexception\/error-implementations"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"navigatorTitle":[{"text":"KDF","kind":"identifier"}],"abstract":[{"text":"The key derivation functions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","title":"KDF","url":"\/documentation\/swifthpke\/kdf","type":"topic","kind":"symbol","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"KDF","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/derivedKeyError":{"abstract":[{"text":"Derived key error","type":"text"}],"kind":"symbol","title":"HPKEException.derivedKeyError","role":"symbol","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"derivedKeyError","kind":"identifier"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/derivedKeyError","url":"\/documentation\/swifthpke\/hpkeexception\/derivedkeyerror"},"doc://SwiftHPKE/s23CustomStringConvertibleP":{"identifier":"doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","type":"unresolvable","title":"Swift.CustomStringConvertible"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"role":"symbol","type":"topic","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"url":"\/documentation\/swifthpke\/hpkeexception","kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"HPKEException"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","title":"HPKEException","abstract":[{"text":"The HPKE exceptions","type":"text"}]}}} \ No newline at end of file +{"topicSections":[{"title":"Enumeration Cases","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/asn1Structure","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/base64","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/decodePoint","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/derivedKeyError","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportOnlyError","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportSize","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/keyMismatch","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pemStructure","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/privateKeyParameter","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pskError","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/publicKeyParameter","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/smallOrder"]},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/description"],"title":"Instance Properties"},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Equatable-Implementations","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Error-Implementations"],"title":"Default Implementations","generated":true}],"primaryContentSections":[{"declarations":[{"languages":["swift"],"tokens":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"text":"HPKEException","kind":"identifier"}],"platforms":["macOS"]}],"kind":"declarations"}],"abstract":[{"text":"The HPKE exceptions","type":"text"}],"kind":"symbol","identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"],"generated":true,"title":"Enumerations"}],"sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception"]}],"metadata":{"symbolKind":"enum","roleHeading":"Enumeration","modules":[{"name":"SwiftHPKE"}],"role":"symbol","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"externalID":"s:9SwiftHPKE13HPKEExceptionO","title":"HPKEException","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"HPKEException","kind":"identifier"}]},"schemaVersion":{"major":0,"minor":3,"patch":0},"relationshipsSections":[{"title":"Conforms To","identifiers":["doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","doc:\/\/SwiftHPKE\/SQ","doc:\/\/SwiftHPKE\/s5ErrorP","doc:\/\/SwiftHPKE\/SH","doc:\/\/SwiftHPKE\/s8SendableP"],"kind":"relationships","type":"conformsTo"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/derivedKeyError":{"type":"topic","abstract":[{"text":"Derived key error","type":"text"}],"title":"HPKEException.derivedKeyError","kind":"symbol","role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"derivedKeyError","kind":"identifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/derivedKeyError","url":"\/documentation\/swifthpke\/hpkeexception\/derivedkeyerror"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/publicKeyParameter":{"abstract":[{"type":"text","text":"Invalid parameter to PublicKey constructor"}],"url":"\/documentation\/swifthpke\/hpkeexception\/publickeyparameter","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"publicKeyParameter"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/publicKeyParameter","role":"symbol","title":"HPKEException.publicKeyParameter","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/pemStructure":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pemStructure","role":"symbol","type":"topic","abstract":[{"text":"PEM structure is wrong","type":"text"}],"url":"\/documentation\/swifthpke\/hpkeexception\/pemstructure","title":"HPKEException.pemStructure","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pemStructure","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/pskError":{"url":"\/documentation\/swifthpke\/hpkeexception\/pskerror","kind":"symbol","role":"symbol","type":"topic","abstract":[{"text":"Inconsistent PSK parameters","type":"text"}],"title":"HPKEException.pskError","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"pskError","kind":"identifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pskError"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/smallOrder":{"kind":"symbol","abstract":[{"text":"X25519, X448 small order error","type":"text"}],"title":"HPKEException.smallOrder","url":"\/documentation\/swifthpke\/hpkeexception\/smallorder","role":"symbol","type":"topic","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"smallOrder"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/smallOrder"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"url":"\/documentation\/swifthpke\/kdf","navigatorTitle":[{"text":"KDF","kind":"identifier"}],"role":"symbol","abstract":[{"type":"text","text":"The key derivation functions"}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"title":"KDF","type":"topic","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/asn1Structure":{"url":"\/documentation\/swifthpke\/hpkeexception\/asn1structure","title":"HPKEException.asn1Structure","type":"topic","abstract":[{"text":"ASN1 structure is wrong","type":"text"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/asn1Structure","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"asn1Structure","kind":"identifier"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/exportOnlyError":{"abstract":[{"text":"Export only error","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportOnlyError","role":"symbol","title":"HPKEException.exportOnlyError","url":"\/documentation\/swifthpke\/hpkeexception\/exportonlyerror","kind":"symbol","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"exportOnlyError","kind":"identifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/base64":{"abstract":[{"type":"text","text":"Base64 decoding exception"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/base64","role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/hpkeexception\/base64","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"base64","kind":"identifier"}],"title":"HPKEException.base64"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/description":{"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"kind":"text","text":": "},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/description","title":"description","kind":"symbol","abstract":[{"type":"text","text":"Textual description of "},{"type":"codeVoice","code":"self"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception\/description","role":"symbol"},"doc://SwiftHPKE/SQ":{"identifier":"doc:\/\/SwiftHPKE\/SQ","type":"unresolvable","title":"Swift.Equatable"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/Error-Implementations":{"title":"Error Implementations","abstract":[],"type":"topic","role":"collectionGroup","kind":"article","url":"\/documentation\/swifthpke\/hpkeexception\/error-implementations","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Error-Implementations"},"doc://SwiftHPKE/SH":{"identifier":"doc:\/\/SwiftHPKE\/SH","type":"unresolvable","title":"Swift.Hashable"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception","abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","role":"symbol","title":"HPKEException","navigatorTitle":[{"kind":"identifier","text":"HPKEException"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/decodePoint":{"fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"decodePoint"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/decodePoint","abstract":[{"type":"text","text":"Decode point error"}],"url":"\/documentation\/swifthpke\/hpkeexception\/decodepoint","type":"topic","title":"HPKEException.decodePoint","kind":"symbol","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/s8SendableP":{"identifier":"doc:\/\/SwiftHPKE\/s8SendableP","type":"unresolvable","title":"Swift.Sendable"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"type":"topic","navigatorTitle":[{"kind":"identifier","text":"AEAD"}],"role":"symbol","title":"AEAD","kind":"symbol","url":"\/documentation\/swifthpke\/aead","abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"AEAD","kind":"identifier"}]},"doc://SwiftHPKE/s5ErrorP":{"identifier":"doc:\/\/SwiftHPKE\/s5ErrorP","type":"unresolvable","title":"Swift.Error"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/privateKeyParameter":{"type":"topic","abstract":[{"text":"Invalid parameter to PrivateKey constructor","type":"text"}],"title":"HPKEException.privateKeyParameter","url":"\/documentation\/swifthpke\/hpkeexception\/privatekeyparameter","kind":"symbol","role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"privateKeyParameter","kind":"identifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/privateKeyParameter"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","url":"\/documentation\/swifthpke\/kem","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"kind":"identifier","text":"KEM"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"kind":"symbol","title":"KEM","abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"role":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/Equatable-Implementations":{"title":"Equatable Implementations","url":"\/documentation\/swifthpke\/hpkeexception\/equatable-implementations","type":"topic","kind":"article","role":"collectionGroup","abstract":[],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Equatable-Implementations"},"doc://SwiftHPKE/s23CustomStringConvertibleP":{"identifier":"doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","type":"unresolvable","title":"Swift.CustomStringConvertible"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/keyMismatch":{"abstract":[{"text":"CipherSuite key mismatch","type":"text"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/keyMismatch","url":"\/documentation\/swifthpke\/hpkeexception\/keymismatch","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"keyMismatch"}],"role":"symbol","title":"HPKEException.keyMismatch","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/exportSize":{"kind":"symbol","role":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportSize","title":"HPKEException.exportSize","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"exportSize"}],"url":"\/documentation\/swifthpke\/hpkeexception\/exportsize","abstract":[{"type":"text","text":"Export size is negative or too large"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/hpkeexception/!=(_:_:).json b/docs/data/documentation/swifthpke/hpkeexception/!=(_:_:).json index 2bbc610..cf6ece6 100644 --- a/docs/data/documentation/swifthpke/hpkeexception/!=(_:_:).json +++ b/docs/data/documentation/swifthpke/hpkeexception/!=(_:_:).json @@ -1 +1 @@ -{"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/!=(_:_:)","interfaceLanguage":"swift"},"sections":[],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"kind":"text","text":" "},{"kind":"text","text":"("},{"text":"lhs","kind":"internalParam"},{"text":": ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"rhs","kind":"internalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"text":") -> ","kind":"text"},{"text":"Bool","preciseIdentifier":"s:Sb","kind":"typeIdentifier"}],"platforms":["macOS"]}]}],"kind":"symbol","schemaVersion":{"minor":3,"major":0,"patch":0},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Equatable-Implementations"]]},"abstract":[{"type":"text","text":"Inherited from "},{"type":"codeVoice","code":"Equatable.!=(_:_:)"},{"text":".","type":"text"}],"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/!=(_:_:)"],"traits":[{"interfaceLanguage":"swift"}]}],"metadata":{"title":"!=(_:_:)","role":"symbol","roleHeading":"Operator","externalID":"s:SQsE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftHPKE13HPKEExceptionO","extendedModule":"Swift","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"!="},{"text":" ","kind":"text"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":", "},{"text":"Self","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}],"modules":[{"name":"SwiftHPKE","relatedModules":["Swift"]}],"symbolKind":"op"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"role":"symbol","type":"topic","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"url":"\/documentation\/swifthpke\/hpkeexception","kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"HPKEException"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","title":"HPKEException","abstract":[{"text":"The HPKE exceptions","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/!=(_:_:)":{"kind":"symbol","title":"!=(_:_:)","url":"\/documentation\/swifthpke\/hpkeexception\/!=(_:_:)","role":"symbol","type":"topic","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"kind":"text","text":" "},{"kind":"text","text":"("},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"Self"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/!=(_:_:)","abstract":[]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/Equatable-Implementations":{"url":"\/documentation\/swifthpke\/hpkeexception\/equatable-implementations","title":"Equatable Implementations","kind":"article","role":"collectionGroup","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Equatable-Implementations","abstract":[]}}} \ No newline at end of file +{"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/!=(_:_:)","interfaceLanguage":"swift"},"kind":"symbol","sections":[],"schemaVersion":{"patch":0,"major":0,"minor":3},"abstract":[{"text":"Inherited from ","type":"text"},{"type":"codeVoice","code":"Equatable.!=(_:_:)"},{"text":".","type":"text"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Equatable-Implementations"]]},"metadata":{"title":"!=(_:_:)","role":"symbol","roleHeading":"Operator","extendedModule":"Swift","externalID":"s:SQsE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftHPKE13HPKEExceptionO","symbolKind":"op","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"!="},{"kind":"text","text":" "},{"text":"(","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"text":") -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Sb","text":"Bool"}],"modules":[{"relatedModules":["Swift"],"name":"SwiftHPKE"}]},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"kind":"text","text":" "},{"text":"(","kind":"text"},{"text":"lhs","kind":"internalParam"},{"kind":"text","text":": "},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"rhs","kind":"internalParam"},{"text":": ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","text":"Bool","preciseIdentifier":"s:Sb"}]}],"kind":"declarations"}],"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/!=(_:_:)"],"traits":[{"interfaceLanguage":"swift"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/Equatable-Implementations":{"title":"Equatable Implementations","url":"\/documentation\/swifthpke\/hpkeexception\/equatable-implementations","type":"topic","kind":"article","role":"collectionGroup","abstract":[],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Equatable-Implementations"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception","abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","role":"symbol","title":"HPKEException","navigatorTitle":[{"kind":"identifier","text":"HPKEException"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/!=(_:_:)":{"kind":"symbol","role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"kind":"text","text":" "},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"Self","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Sb","text":"Bool"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/!=(_:_:)","url":"\/documentation\/swifthpke\/hpkeexception\/!=(_:_:)","title":"!=(_:_:)","type":"topic","abstract":[]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/hpkeexception/asn1structure.json b/docs/data/documentation/swifthpke/hpkeexception/asn1structure.json index d977cf6..f7cd8a1 100644 --- a/docs/data/documentation/swifthpke/hpkeexception/asn1structure.json +++ b/docs/data/documentation/swifthpke/hpkeexception/asn1structure.json @@ -1 +1 @@ -{"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"asn1Structure","kind":"identifier"}]}]}],"schemaVersion":{"minor":3,"patch":0,"major":0},"kind":"symbol","identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/asn1Structure"},"metadata":{"title":"HPKEException.asn1Structure","role":"symbol","symbolKind":"case","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"asn1Structure"}],"modules":[{"name":"SwiftHPKE"}],"roleHeading":"Case","externalID":"s:9SwiftHPKE13HPKEExceptionO13asn1StructureyA2CmF"},"sections":[],"abstract":[{"type":"text","text":"ASN1 structure is wrong"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/asn1structure"],"traits":[{"interfaceLanguage":"swift"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"role":"symbol","type":"topic","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"url":"\/documentation\/swifthpke\/hpkeexception","kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"HPKEException"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","title":"HPKEException","abstract":[{"text":"The HPKE exceptions","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/asn1Structure":{"abstract":[{"type":"text","text":"ASN1 structure is wrong"}],"role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"asn1Structure","kind":"identifier"}],"title":"HPKEException.asn1Structure","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/asn1Structure","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/hpkeexception\/asn1structure"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"}}} \ No newline at end of file +{"abstract":[{"type":"text","text":"ASN1 structure is wrong"}],"kind":"symbol","metadata":{"role":"symbol","externalID":"s:9SwiftHPKE13HPKEExceptionO13asn1StructureyA2CmF","modules":[{"name":"SwiftHPKE"}],"title":"HPKEException.asn1Structure","roleHeading":"Case","symbolKind":"case","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"asn1Structure","kind":"identifier"}]},"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/asn1structure"],"traits":[{"interfaceLanguage":"swift"}]}],"primaryContentSections":[{"declarations":[{"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"asn1Structure"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/asn1Structure"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"sections":[],"schemaVersion":{"minor":3,"patch":0,"major":0},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception","abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","role":"symbol","title":"HPKEException","navigatorTitle":[{"kind":"identifier","text":"HPKEException"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/asn1Structure":{"url":"\/documentation\/swifthpke\/hpkeexception\/asn1structure","title":"HPKEException.asn1Structure","type":"topic","abstract":[{"text":"ASN1 structure is wrong","type":"text"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/asn1Structure","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"asn1Structure","kind":"identifier"}],"role":"symbol"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/hpkeexception/base64.json b/docs/data/documentation/swifthpke/hpkeexception/base64.json index a911a23..a059b8b 100644 --- a/docs/data/documentation/swifthpke/hpkeexception/base64.json +++ b/docs/data/documentation/swifthpke/hpkeexception/base64.json @@ -1 +1 @@ -{"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/base64"},"sections":[],"kind":"symbol","metadata":{"roleHeading":"Case","modules":[{"name":"SwiftHPKE"}],"role":"symbol","title":"HPKEException.base64","externalID":"s:9SwiftHPKE13HPKEExceptionO6base64yA2CmF","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"base64","kind":"identifier"}],"symbolKind":"case"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"schemaVersion":{"major":0,"minor":3,"patch":0},"abstract":[{"type":"text","text":"Base64 decoding exception"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"base64","kind":"identifier"}],"languages":["swift"]}]}],"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/base64"],"traits":[{"interfaceLanguage":"swift"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"role":"symbol","type":"topic","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"url":"\/documentation\/swifthpke\/hpkeexception","kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"HPKEException"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","title":"HPKEException","abstract":[{"text":"The HPKE exceptions","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/base64":{"abstract":[{"text":"Base64 decoding exception","type":"text"}],"role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"base64","kind":"identifier"}],"title":"HPKEException.base64","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/base64","kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/hpkeexception\/base64"}}} \ No newline at end of file +{"abstract":[{"text":"Base64 decoding exception","type":"text"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"base64"}],"platforms":["macOS"],"languages":["swift"]}]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/base64"]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/base64","interfaceLanguage":"swift"},"schemaVersion":{"patch":0,"major":0,"minor":3},"kind":"symbol","sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"metadata":{"roleHeading":"Case","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"base64","kind":"identifier"}],"title":"HPKEException.base64","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE13HPKEExceptionO6base64yA2CmF","symbolKind":"case","role":"symbol"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/base64":{"abstract":[{"type":"text","text":"Base64 decoding exception"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/base64","role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/hpkeexception\/base64","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"base64","kind":"identifier"}],"title":"HPKEException.base64"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception","abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","role":"symbol","title":"HPKEException","navigatorTitle":[{"kind":"identifier","text":"HPKEException"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/hpkeexception/decodepoint.json b/docs/data/documentation/swifthpke/hpkeexception/decodepoint.json index c140460..dcefad4 100644 --- a/docs/data/documentation/swifthpke/hpkeexception/decodepoint.json +++ b/docs/data/documentation/swifthpke/hpkeexception/decodepoint.json @@ -1 +1 @@ -{"sections":[],"abstract":[{"text":"Decode point error","type":"text"}],"kind":"symbol","schemaVersion":{"major":0,"patch":0,"minor":3},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/decodepoint"]}],"metadata":{"role":"symbol","externalID":"s:9SwiftHPKE13HPKEExceptionO11decodePointyA2CmF","title":"HPKEException.decodePoint","symbolKind":"case","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"decodePoint","kind":"identifier"}],"roleHeading":"Case","modules":[{"name":"SwiftHPKE"}]},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/decodePoint"},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"decodePoint","kind":"identifier"}],"languages":["swift"]}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/decodePoint":{"role":"symbol","title":"HPKEException.decodePoint","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"decodePoint","kind":"identifier"}],"abstract":[{"text":"Decode point error","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/decodePoint","kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/hpkeexception\/decodepoint"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"role":"symbol","type":"topic","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"url":"\/documentation\/swifthpke\/hpkeexception","kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"HPKEException"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","title":"HPKEException","abstract":[{"text":"The HPKE exceptions","type":"text"}]}}} \ No newline at end of file +{"abstract":[{"text":"Decode point error","type":"text"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"decodePoint","kind":"identifier"}],"languages":["swift"],"platforms":["macOS"]}]}],"metadata":{"roleHeading":"Case","role":"symbol","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE13HPKEExceptionO11decodePointyA2CmF","title":"HPKEException.decodePoint","symbolKind":"case","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"decodePoint","kind":"identifier"}]},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/decodepoint"]}],"schemaVersion":{"minor":3,"patch":0,"major":0},"kind":"symbol","sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/decodePoint","interfaceLanguage":"swift"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","type":"topic","title":"SwiftHPKE","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/decodePoint":{"fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"decodePoint"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/decodePoint","abstract":[{"type":"text","text":"Decode point error"}],"url":"\/documentation\/swifthpke\/hpkeexception\/decodepoint","type":"topic","title":"HPKEException.decodePoint","kind":"symbol","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception","abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","role":"symbol","title":"HPKEException","navigatorTitle":[{"kind":"identifier","text":"HPKEException"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/hpkeexception/derivedkeyerror.json b/docs/data/documentation/swifthpke/hpkeexception/derivedkeyerror.json index fa09f4e..5d82623 100644 --- a/docs/data/documentation/swifthpke/hpkeexception/derivedkeyerror.json +++ b/docs/data/documentation/swifthpke/hpkeexception/derivedkeyerror.json @@ -1 +1 @@ -{"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/derivedKeyError","interfaceLanguage":"swift"},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"derivedKeyError","kind":"identifier"}],"platforms":["macOS"],"languages":["swift"]}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/derivedkeyerror"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","schemaVersion":{"major":0,"minor":3,"patch":0},"metadata":{"roleHeading":"Case","symbolKind":"case","modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"derivedKeyError"}],"role":"symbol","externalID":"s:9SwiftHPKE13HPKEExceptionO15derivedKeyErroryA2CmF","title":"HPKEException.derivedKeyError"},"abstract":[{"type":"text","text":"Derived key error"}],"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"role":"symbol","type":"topic","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"url":"\/documentation\/swifthpke\/hpkeexception","kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"HPKEException"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","title":"HPKEException","abstract":[{"text":"The HPKE exceptions","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/derivedKeyError":{"abstract":[{"text":"Derived key error","type":"text"}],"kind":"symbol","title":"HPKEException.derivedKeyError","role":"symbol","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"derivedKeyError","kind":"identifier"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/derivedKeyError","url":"\/documentation\/swifthpke\/hpkeexception\/derivedkeyerror"}}} \ No newline at end of file +{"metadata":{"title":"HPKEException.derivedKeyError","roleHeading":"Case","role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"derivedKeyError","kind":"identifier"}],"externalID":"s:9SwiftHPKE13HPKEExceptionO15derivedKeyErroryA2CmF","symbolKind":"case","modules":[{"name":"SwiftHPKE"}]},"abstract":[{"text":"Derived key error","type":"text"}],"schemaVersion":{"patch":0,"minor":3,"major":0},"kind":"symbol","identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/derivedKeyError","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/derivedkeyerror"],"traits":[{"interfaceLanguage":"swift"}]}],"sections":[],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"derivedKeyError"}],"languages":["swift"]}],"kind":"declarations"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/derivedKeyError":{"type":"topic","abstract":[{"text":"Derived key error","type":"text"}],"title":"HPKEException.derivedKeyError","kind":"symbol","role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"derivedKeyError","kind":"identifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/derivedKeyError","url":"\/documentation\/swifthpke\/hpkeexception\/derivedkeyerror"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception","abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","role":"symbol","title":"HPKEException","navigatorTitle":[{"kind":"identifier","text":"HPKEException"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/hpkeexception/description.json b/docs/data/documentation/swifthpke/hpkeexception/description.json index 84dec56..bfdb3d7 100644 --- a/docs/data/documentation/swifthpke/hpkeexception/description.json +++ b/docs/data/documentation/swifthpke/hpkeexception/description.json @@ -1 +1 @@ -{"schemaVersion":{"minor":3,"patch":0,"major":0},"abstract":[{"type":"text","text":"Textual description of "},{"type":"codeVoice","code":"self"}],"kind":"symbol","primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"},{"text":" { ","kind":"text"},{"text":"get","kind":"keyword"},{"kind":"text","text":" }"}],"languages":["swift"],"platforms":["macOS"]}]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/description","interfaceLanguage":"swift"},"metadata":{"title":"description","externalID":"s:9SwiftHPKE13HPKEExceptionO11descriptionSSvp","roleHeading":"Instance Property","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"role":"symbol","modules":[{"name":"SwiftHPKE"}],"symbolKind":"property"},"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/description"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"role":"symbol","type":"topic","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"url":"\/documentation\/swifthpke\/hpkeexception","kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"HPKEException"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","title":"HPKEException","abstract":[{"text":"The HPKE exceptions","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/description":{"abstract":[{"type":"text","text":"Textual description of "},{"type":"codeVoice","code":"self"}],"role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"}],"title":"description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/description","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/hpkeexception\/description"}}} \ No newline at end of file +{"abstract":[{"type":"text","text":"Textual description of "},{"type":"codeVoice","code":"self"}],"kind":"symbol","metadata":{"roleHeading":"Instance Property","role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"kind":"text","text":": "},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"}],"symbolKind":"property","title":"description","externalID":"s:9SwiftHPKE13HPKEExceptionO11descriptionSSvp","modules":[{"name":"SwiftHPKE"}]},"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/description"],"traits":[{"interfaceLanguage":"swift"}]}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"kind":"text","text":": "},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"},{"kind":"text","text":" { "},{"kind":"keyword","text":"get"},{"kind":"text","text":" }"}],"languages":["swift"]}],"kind":"declarations"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/description","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"sections":[],"schemaVersion":{"minor":3,"patch":0,"major":0},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception","abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","role":"symbol","title":"HPKEException","navigatorTitle":[{"kind":"identifier","text":"HPKEException"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/description":{"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"kind":"text","text":": "},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/description","title":"description","kind":"symbol","abstract":[{"type":"text","text":"Textual description of "},{"type":"codeVoice","code":"self"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception\/description","role":"symbol"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/hpkeexception/equatable-implementations.json b/docs/data/documentation/swifthpke/hpkeexception/equatable-implementations.json index 6f06152..e457491 100644 --- a/docs/data/documentation/swifthpke/hpkeexception/equatable-implementations.json +++ b/docs/data/documentation/swifthpke/hpkeexception/equatable-implementations.json @@ -1 +1 @@ -{"kind":"article","topicSections":[{"title":"Operators","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/!=(_:_:)"],"generated":true}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Equatable-Implementations"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/equatable-implementations"],"traits":[{"interfaceLanguage":"swift"}]}],"schemaVersion":{"minor":3,"patch":0,"major":0},"metadata":{"roleHeading":"API Collection","title":"Equatable Implementations","role":"collectionGroup","modules":[{"name":"SwiftHPKE"}]},"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"role":"symbol","type":"topic","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"url":"\/documentation\/swifthpke\/hpkeexception","kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"HPKEException"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","title":"HPKEException","abstract":[{"text":"The HPKE exceptions","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/!=(_:_:)":{"kind":"symbol","title":"!=(_:_:)","url":"\/documentation\/swifthpke\/hpkeexception\/!=(_:_:)","role":"symbol","type":"topic","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"kind":"text","text":" "},{"kind":"text","text":"("},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"Self"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/!=(_:_:)","abstract":[]}}} \ No newline at end of file +{"kind":"article","identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Equatable-Implementations"},"schemaVersion":{"minor":3,"patch":0,"major":0},"sections":[],"metadata":{"role":"collectionGroup","title":"Equatable Implementations","roleHeading":"API Collection","modules":[{"name":"SwiftHPKE"}]},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/equatable-implementations"],"traits":[{"interfaceLanguage":"swift"}]}],"topicSections":[{"title":"Operators","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/!=(_:_:)"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception","abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","role":"symbol","title":"HPKEException","navigatorTitle":[{"kind":"identifier","text":"HPKEException"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/!=(_:_:)":{"kind":"symbol","role":"symbol","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"kind":"text","text":" "},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"Self","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Sb","text":"Bool"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/!=(_:_:)","url":"\/documentation\/swifthpke\/hpkeexception\/!=(_:_:)","title":"!=(_:_:)","type":"topic","abstract":[]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/hpkeexception/error-implementations.json b/docs/data/documentation/swifthpke/hpkeexception/error-implementations.json index 95b24cd..04ad894 100644 --- a/docs/data/documentation/swifthpke/hpkeexception/error-implementations.json +++ b/docs/data/documentation/swifthpke/hpkeexception/error-implementations.json @@ -1 +1 @@ -{"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Error-Implementations","interfaceLanguage":"swift"},"schemaVersion":{"patch":0,"minor":3,"major":0},"topicSections":[{"title":"Instance Properties","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/localizedDescription"]}],"sections":[],"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/error-implementations"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"article","metadata":{"role":"collectionGroup","modules":[{"name":"SwiftHPKE"}],"roleHeading":"API Collection","title":"Error Implementations"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"role":"symbol","type":"topic","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"url":"\/documentation\/swifthpke\/hpkeexception","kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"HPKEException"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","title":"HPKEException","abstract":[{"text":"The HPKE exceptions","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/localizedDescription":{"abstract":[],"type":"topic","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"localizedDescription","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/localizedDescription","role":"symbol","title":"localizedDescription","url":"\/documentation\/swifthpke\/hpkeexception\/localizeddescription","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"}}} \ No newline at end of file +{"kind":"article","metadata":{"roleHeading":"API Collection","role":"collectionGroup","modules":[{"name":"SwiftHPKE"}],"title":"Error Implementations"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/error-implementations"]}],"schemaVersion":{"patch":0,"minor":3,"major":0},"topicSections":[{"generated":true,"title":"Instance Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/localizedDescription"]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Error-Implementations"},"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception","abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","role":"symbol","title":"HPKEException","navigatorTitle":[{"kind":"identifier","text":"HPKEException"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/localizedDescription":{"type":"topic","title":"localizedDescription","abstract":[],"url":"\/documentation\/swifthpke\/hpkeexception\/localizeddescription","kind":"symbol","role":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"localizedDescription","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/localizedDescription"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/hpkeexception/exportonlyerror.json b/docs/data/documentation/swifthpke/hpkeexception/exportonlyerror.json index 2658bf3..6ce65a9 100644 --- a/docs/data/documentation/swifthpke/hpkeexception/exportonlyerror.json +++ b/docs/data/documentation/swifthpke/hpkeexception/exportonlyerror.json @@ -1 +1 @@ -{"abstract":[{"text":"Export only error","type":"text"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/exportonlyerror"]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportOnlyError"},"kind":"symbol","metadata":{"role":"symbol","symbolKind":"case","externalID":"s:9SwiftHPKE13HPKEExceptionO15exportOnlyErroryA2CmF","modules":[{"name":"SwiftHPKE"}],"fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"exportOnlyError","kind":"identifier"}],"roleHeading":"Case","title":"HPKEException.exportOnlyError"},"primaryContentSections":[{"declarations":[{"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"exportOnlyError"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"sections":[],"schemaVersion":{"major":0,"patch":0,"minor":3},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/exportOnlyError":{"abstract":[{"text":"Export only error","type":"text"}],"role":"symbol","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"exportOnlyError","kind":"identifier"}],"title":"HPKEException.exportOnlyError","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportOnlyError","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/hpkeexception\/exportonlyerror"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"role":"symbol","type":"topic","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"url":"\/documentation\/swifthpke\/hpkeexception","kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"HPKEException"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","title":"HPKEException","abstract":[{"text":"The HPKE exceptions","type":"text"}]}}} \ No newline at end of file +{"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"exportOnlyError","kind":"identifier"}],"platforms":["macOS"]}]}],"abstract":[{"type":"text","text":"Export only error"}],"kind":"symbol","metadata":{"modules":[{"name":"SwiftHPKE"}],"symbolKind":"case","roleHeading":"Case","role":"symbol","externalID":"s:9SwiftHPKE13HPKEExceptionO15exportOnlyErroryA2CmF","title":"HPKEException.exportOnlyError","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"exportOnlyError"}]},"sections":[],"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/exportonlyerror"],"traits":[{"interfaceLanguage":"swift"}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"schemaVersion":{"major":0,"minor":3,"patch":0},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportOnlyError","interfaceLanguage":"swift"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/exportOnlyError":{"abstract":[{"text":"Export only error","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportOnlyError","role":"symbol","title":"HPKEException.exportOnlyError","url":"\/documentation\/swifthpke\/hpkeexception\/exportonlyerror","kind":"symbol","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"exportOnlyError","kind":"identifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception","abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","role":"symbol","title":"HPKEException","navigatorTitle":[{"kind":"identifier","text":"HPKEException"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/hpkeexception/exportsize.json b/docs/data/documentation/swifthpke/hpkeexception/exportsize.json index 72e86b2..b13cf2e 100644 --- a/docs/data/documentation/swifthpke/hpkeexception/exportsize.json +++ b/docs/data/documentation/swifthpke/hpkeexception/exportsize.json @@ -1 +1 @@ -{"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportSize","interfaceLanguage":"swift"},"sections":[],"primaryContentSections":[{"declarations":[{"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"exportSize"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/exportsize"]}],"schemaVersion":{"minor":3,"patch":0,"major":0},"metadata":{"roleHeading":"Case","symbolKind":"case","externalID":"s:9SwiftHPKE13HPKEExceptionO10exportSizeyA2CmF","title":"HPKEException.exportSize","modules":[{"name":"SwiftHPKE"}],"role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"exportSize","kind":"identifier"}]},"abstract":[{"type":"text","text":"Export size is negative or too large"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/exportSize":{"abstract":[{"type":"text","text":"Export size is negative or too large"}],"role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"exportSize","kind":"identifier"}],"title":"HPKEException.exportSize","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportSize","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/hpkeexception\/exportsize"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"role":"symbol","type":"topic","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"url":"\/documentation\/swifthpke\/hpkeexception","kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"HPKEException"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","title":"HPKEException","abstract":[{"text":"The HPKE exceptions","type":"text"}]}}} \ No newline at end of file +{"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportSize","interfaceLanguage":"swift"},"schemaVersion":{"major":0,"minor":3,"patch":0},"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"exportSize"}]}],"kind":"declarations"}],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"sections":[],"abstract":[{"text":"Export size is negative or too large","type":"text"}],"metadata":{"role":"symbol","modules":[{"name":"SwiftHPKE"}],"title":"HPKEException.exportSize","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"exportSize","kind":"identifier"}],"symbolKind":"case","roleHeading":"Case","externalID":"s:9SwiftHPKE13HPKEExceptionO10exportSizeyA2CmF"},"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/exportsize"],"traits":[{"interfaceLanguage":"swift"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception","abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","role":"symbol","title":"HPKEException","navigatorTitle":[{"kind":"identifier","text":"HPKEException"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/exportSize":{"kind":"symbol","role":"symbol","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/exportSize","title":"HPKEException.exportSize","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"exportSize"}],"url":"\/documentation\/swifthpke\/hpkeexception\/exportsize","abstract":[{"type":"text","text":"Export size is negative or too large"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/hpkeexception/keymismatch.json b/docs/data/documentation/swifthpke/hpkeexception/keymismatch.json index 72a3148..5434c2b 100644 --- a/docs/data/documentation/swifthpke/hpkeexception/keymismatch.json +++ b/docs/data/documentation/swifthpke/hpkeexception/keymismatch.json @@ -1 +1 @@ -{"abstract":[{"type":"text","text":"CipherSuite key mismatch"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"sections":[],"metadata":{"symbolKind":"case","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"keyMismatch","kind":"identifier"}],"externalID":"s:9SwiftHPKE13HPKEExceptionO11keyMismatchyA2CmF","role":"symbol","roleHeading":"Case","modules":[{"name":"SwiftHPKE"}],"title":"HPKEException.keyMismatch"},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/keyMismatch"},"schemaVersion":{"major":0,"patch":0,"minor":3},"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/keymismatch"],"traits":[{"interfaceLanguage":"swift"}]}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"keyMismatch"}],"languages":["swift"]}],"kind":"declarations"}],"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/keyMismatch":{"abstract":[{"text":"CipherSuite key mismatch","type":"text"}],"role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"keyMismatch","kind":"identifier"}],"title":"HPKEException.keyMismatch","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/keyMismatch","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/hpkeexception\/keymismatch"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"role":"symbol","type":"topic","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"url":"\/documentation\/swifthpke\/hpkeexception","kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"HPKEException"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","title":"HPKEException","abstract":[{"text":"The HPKE exceptions","type":"text"}]}}} \ No newline at end of file +{"kind":"symbol","primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"keyMismatch","kind":"identifier"}]}]}],"metadata":{"externalID":"s:9SwiftHPKE13HPKEExceptionO11keyMismatchyA2CmF","modules":[{"name":"SwiftHPKE"}],"symbolKind":"case","role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"keyMismatch","kind":"identifier"}],"roleHeading":"Case","title":"HPKEException.keyMismatch"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/keymismatch"],"traits":[{"interfaceLanguage":"swift"}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"abstract":[{"text":"CipherSuite key mismatch","type":"text"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/keyMismatch"},"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","role":"collection","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"abstract":[{"type":"text","text":"The HPKE exceptions"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","url":"\/documentation\/swifthpke\/hpkeexception","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"navigatorTitle":[{"kind":"identifier","text":"HPKEException"}],"role":"symbol","title":"HPKEException","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/keyMismatch":{"abstract":[{"text":"CipherSuite key mismatch","type":"text"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/keyMismatch","url":"\/documentation\/swifthpke\/hpkeexception\/keymismatch","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"keyMismatch"}],"role":"symbol","title":"HPKEException.keyMismatch","kind":"symbol"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/hpkeexception/localizeddescription.json b/docs/data/documentation/swifthpke/hpkeexception/localizeddescription.json index 203c383..f92baa7 100644 --- a/docs/data/documentation/swifthpke/hpkeexception/localizeddescription.json +++ b/docs/data/documentation/swifthpke/hpkeexception/localizeddescription.json @@ -1 +1 @@ -{"sections":[],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"text":"localizedDescription","kind":"identifier"},{"kind":"text","text":": "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":" { ","kind":"text"},{"kind":"keyword","text":"get"},{"kind":"text","text":" }"}]}]}],"abstract":[{"type":"text","text":"Inherited from "},{"type":"codeVoice","code":"Error.localizedDescription"},{"text":".","type":"text"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/localizeddescription"]}],"schemaVersion":{"patch":0,"major":0,"minor":3},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/localizedDescription","interfaceLanguage":"swift"},"kind":"symbol","metadata":{"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"localizedDescription"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"}],"symbolKind":"property","modules":[{"relatedModules":["Swift"],"name":"SwiftHPKE"}],"platforms":[{"beta":false,"unavailable":false,"introducedAt":"8.0","name":"iOS","deprecated":false},{"beta":false,"name":"macOS","deprecated":false,"unavailable":false,"introducedAt":"10.10"},{"name":"tvOS","introducedAt":"9.0","unavailable":false,"deprecated":false,"beta":false},{"name":"watchOS","unavailable":false,"introducedAt":"2.0","beta":false,"deprecated":false}],"title":"localizedDescription","role":"symbol","extendedModule":"Swift","externalID":"s:s5ErrorP10FoundationE20localizedDescriptionSSvp::SYNTHESIZED::s:9SwiftHPKE13HPKEExceptionO","roleHeading":"Instance Property"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Error-Implementations"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/Error-Implementations":{"abstract":[],"kind":"article","title":"Error Implementations","role":"collectionGroup","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Error-Implementations","url":"\/documentation\/swifthpke\/hpkeexception\/error-implementations"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"role":"symbol","type":"topic","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"url":"\/documentation\/swifthpke\/hpkeexception","kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"HPKEException"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","title":"HPKEException","abstract":[{"text":"The HPKE exceptions","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/localizedDescription":{"abstract":[],"type":"topic","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"localizedDescription","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/localizedDescription","role":"symbol","title":"localizedDescription","url":"\/documentation\/swifthpke\/hpkeexception\/localizeddescription","kind":"symbol"}}} \ No newline at end of file +{"kind":"symbol","primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"localizedDescription","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":" { ","kind":"text"},{"text":"get","kind":"keyword"},{"text":" }","kind":"text"}],"platforms":["macOS"]}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Error-Implementations"]]},"abstract":[{"text":"Inherited from ","type":"text"},{"code":"Error.localizedDescription","type":"codeVoice"},{"type":"text","text":"."}],"schemaVersion":{"minor":3,"major":0,"patch":0},"sections":[],"metadata":{"extendedModule":"Swift","externalID":"s:s5ErrorP10FoundationE20localizedDescriptionSSvp::SYNTHESIZED::s:9SwiftHPKE13HPKEExceptionO","roleHeading":"Instance Property","role":"symbol","title":"localizedDescription","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"localizedDescription","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"platforms":[{"unavailable":false,"deprecated":false,"name":"iOS","beta":false,"introducedAt":"8.0"},{"name":"macOS","beta":false,"introducedAt":"10.10","unavailable":false,"deprecated":false},{"unavailable":false,"name":"tvOS","introducedAt":"9.0","beta":false,"deprecated":false},{"deprecated":false,"introducedAt":"2.0","beta":false,"name":"watchOS","unavailable":false}],"symbolKind":"property","modules":[{"name":"SwiftHPKE","relatedModules":["Swift"]}]},"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/localizeddescription"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/localizedDescription"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/localizedDescription":{"type":"topic","title":"localizedDescription","abstract":[],"url":"\/documentation\/swifthpke\/hpkeexception\/localizeddescription","kind":"symbol","role":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"localizedDescription","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/localizedDescription"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/Error-Implementations":{"title":"Error Implementations","abstract":[],"type":"topic","role":"collectionGroup","kind":"article","url":"\/documentation\/swifthpke\/hpkeexception\/error-implementations","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/Error-Implementations"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception","abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","role":"symbol","title":"HPKEException","navigatorTitle":[{"kind":"identifier","text":"HPKEException"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/hpkeexception/pemstructure.json b/docs/data/documentation/swifthpke/hpkeexception/pemstructure.json index cd3b69f..71820f4 100644 --- a/docs/data/documentation/swifthpke/hpkeexception/pemstructure.json +++ b/docs/data/documentation/swifthpke/hpkeexception/pemstructure.json @@ -1 +1 @@ -{"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pemStructure"},"sections":[],"kind":"symbol","primaryContentSections":[{"declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"pemStructure","kind":"identifier"}]}],"kind":"declarations"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"metadata":{"symbolKind":"case","externalID":"s:9SwiftHPKE13HPKEExceptionO12pemStructureyA2CmF","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"pemStructure"}],"title":"HPKEException.pemStructure","role":"symbol","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Case"},"schemaVersion":{"major":0,"minor":3,"patch":0},"abstract":[{"text":"PEM structure is wrong","type":"text"}],"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/pemstructure"],"traits":[{"interfaceLanguage":"swift"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"role":"symbol","type":"topic","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"url":"\/documentation\/swifthpke\/hpkeexception","kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"HPKEException"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","title":"HPKEException","abstract":[{"text":"The HPKE exceptions","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/pemStructure":{"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/hpkeexception\/pemstructure","kind":"symbol","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"pemStructure"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pemStructure","title":"HPKEException.pemStructure","abstract":[{"text":"PEM structure is wrong","type":"text"}]}}} \ No newline at end of file +{"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pemStructure","interfaceLanguage":"swift"},"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"primaryContentSections":[{"declarations":[{"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pemStructure","kind":"identifier"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/pemstructure"]}],"sections":[],"schemaVersion":{"minor":3,"major":0,"patch":0},"metadata":{"roleHeading":"Case","role":"symbol","externalID":"s:9SwiftHPKE13HPKEExceptionO12pemStructureyA2CmF","modules":[{"name":"SwiftHPKE"}],"symbolKind":"case","title":"HPKEException.pemStructure","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pemStructure","kind":"identifier"}]},"abstract":[{"text":"PEM structure is wrong","type":"text"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/pemStructure":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pemStructure","role":"symbol","type":"topic","abstract":[{"text":"PEM structure is wrong","type":"text"}],"url":"\/documentation\/swifthpke\/hpkeexception\/pemstructure","title":"HPKEException.pemStructure","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pemStructure","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception","abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","role":"symbol","title":"HPKEException","navigatorTitle":[{"kind":"identifier","text":"HPKEException"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/hpkeexception/privatekeyparameter.json b/docs/data/documentation/swifthpke/hpkeexception/privatekeyparameter.json index 089b548..cc87d77 100644 --- a/docs/data/documentation/swifthpke/hpkeexception/privatekeyparameter.json +++ b/docs/data/documentation/swifthpke/hpkeexception/privatekeyparameter.json @@ -1 +1 @@ -{"metadata":{"roleHeading":"Case","externalID":"s:9SwiftHPKE13HPKEExceptionO19privateKeyParameteryA2CmF","modules":[{"name":"SwiftHPKE"}],"title":"HPKEException.privateKeyParameter","role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"privateKeyParameter","kind":"identifier"}],"symbolKind":"case"},"abstract":[{"type":"text","text":"Invalid parameter to PrivateKey constructor"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/privateKeyParameter"},"sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/privatekeyparameter"]}],"kind":"symbol","schemaVersion":{"major":0,"minor":3,"patch":0},"primaryContentSections":[{"declarations":[{"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"privateKeyParameter","kind":"identifier"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"role":"symbol","type":"topic","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"url":"\/documentation\/swifthpke\/hpkeexception","kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"HPKEException"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","title":"HPKEException","abstract":[{"text":"The HPKE exceptions","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/privateKeyParameter":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/privateKeyParameter","abstract":[{"type":"text","text":"Invalid parameter to PrivateKey constructor"}],"kind":"symbol","type":"topic","role":"symbol","title":"HPKEException.privateKeyParameter","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"privateKeyParameter","kind":"identifier"}],"url":"\/documentation\/swifthpke\/hpkeexception\/privatekeyparameter"}}} \ No newline at end of file +{"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/privateKeyParameter","interfaceLanguage":"swift"},"kind":"symbol","abstract":[{"type":"text","text":"Invalid parameter to PrivateKey constructor"}],"metadata":{"externalID":"s:9SwiftHPKE13HPKEExceptionO19privateKeyParameteryA2CmF","role":"symbol","roleHeading":"Case","modules":[{"name":"SwiftHPKE"}],"symbolKind":"case","title":"HPKEException.privateKeyParameter","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"privateKeyParameter","kind":"identifier"}]},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"sections":[],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"privateKeyParameter","kind":"identifier"}]}]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/privatekeyparameter"]}],"schemaVersion":{"major":0,"patch":0,"minor":3},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"url":"\/documentation\/swifthpke","role":"collection","type":"topic","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"title":"SwiftHPKE","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception","abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","role":"symbol","title":"HPKEException","navigatorTitle":[{"kind":"identifier","text":"HPKEException"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/privateKeyParameter":{"type":"topic","abstract":[{"text":"Invalid parameter to PrivateKey constructor","type":"text"}],"title":"HPKEException.privateKeyParameter","url":"\/documentation\/swifthpke\/hpkeexception\/privatekeyparameter","kind":"symbol","role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"privateKeyParameter","kind":"identifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/privateKeyParameter"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/hpkeexception/pskerror.json b/docs/data/documentation/swifthpke/hpkeexception/pskerror.json index fda956b..c40b626 100644 --- a/docs/data/documentation/swifthpke/hpkeexception/pskerror.json +++ b/docs/data/documentation/swifthpke/hpkeexception/pskerror.json @@ -1 +1 @@ -{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"pskError","kind":"identifier"}]}],"kind":"declarations"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/pskerror"]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pskError"},"metadata":{"roleHeading":"Case","symbolKind":"case","role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pskError","kind":"identifier"}],"modules":[{"name":"SwiftHPKE"}],"title":"HPKEException.pskError","externalID":"s:9SwiftHPKE13HPKEExceptionO8pskErroryA2CmF"},"schemaVersion":{"minor":3,"major":0,"patch":0},"sections":[],"kind":"symbol","abstract":[{"text":"Inconsistent PSK parameters","type":"text"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/pskError":{"abstract":[{"type":"text","text":"Inconsistent PSK parameters"}],"kind":"symbol","title":"HPKEException.pskError","role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"pskError","kind":"identifier"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pskError","url":"\/documentation\/swifthpke\/hpkeexception\/pskerror"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"role":"symbol","type":"topic","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"url":"\/documentation\/swifthpke\/hpkeexception","kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"HPKEException"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","title":"HPKEException","abstract":[{"text":"The HPKE exceptions","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"}}} \ No newline at end of file +{"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pskError","interfaceLanguage":"swift"},"abstract":[{"type":"text","text":"Inconsistent PSK parameters"}],"kind":"symbol","primaryContentSections":[{"declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"pskError","kind":"identifier"}]}],"kind":"declarations"}],"metadata":{"title":"HPKEException.pskError","role":"symbol","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE13HPKEExceptionO8pskErroryA2CmF","roleHeading":"Case","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"pskError"}],"symbolKind":"case"},"schemaVersion":{"patch":0,"major":0,"minor":3},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/pskerror"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception","abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","role":"symbol","title":"HPKEException","navigatorTitle":[{"kind":"identifier","text":"HPKEException"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/pskError":{"url":"\/documentation\/swifthpke\/hpkeexception\/pskerror","kind":"symbol","role":"symbol","type":"topic","abstract":[{"text":"Inconsistent PSK parameters","type":"text"}],"title":"HPKEException.pskError","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"pskError","kind":"identifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/pskError"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/hpkeexception/publickeyparameter.json b/docs/data/documentation/swifthpke/hpkeexception/publickeyparameter.json index 5f42ddc..3f035ba 100644 --- a/docs/data/documentation/swifthpke/hpkeexception/publickeyparameter.json +++ b/docs/data/documentation/swifthpke/hpkeexception/publickeyparameter.json @@ -1 +1 @@ -{"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/publicKeyParameter"},"sections":[],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"publicKeyParameter"}],"platforms":["macOS"],"languages":["swift"]}]}],"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/publickeyparameter"],"traits":[{"interfaceLanguage":"swift"}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"metadata":{"roleHeading":"Case","symbolKind":"case","externalID":"s:9SwiftHPKE13HPKEExceptionO18publicKeyParameteryA2CmF","title":"HPKEException.publicKeyParameter","modules":[{"name":"SwiftHPKE"}],"role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"publicKeyParameter","kind":"identifier"}]},"abstract":[{"text":"Invalid parameter to PublicKey constructor","type":"text"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/publicKeyParameter":{"abstract":[{"type":"text","text":"Invalid parameter to PublicKey constructor"}],"role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"publicKeyParameter","kind":"identifier"}],"title":"HPKEException.publicKeyParameter","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/publicKeyParameter","kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/hpkeexception\/publickeyparameter"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"role":"symbol","type":"topic","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"url":"\/documentation\/swifthpke\/hpkeexception","kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"HPKEException"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","title":"HPKEException","abstract":[{"text":"The HPKE exceptions","type":"text"}]}}} \ No newline at end of file +{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"sections":[],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/publicKeyParameter"},"abstract":[{"type":"text","text":"Invalid parameter to PublicKey constructor"}],"kind":"symbol","primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"publicKeyParameter","kind":"identifier"}],"languages":["swift"]}]}],"metadata":{"roleHeading":"Case","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"publicKeyParameter","kind":"identifier"}],"symbolKind":"case","role":"symbol","title":"HPKEException.publicKeyParameter","externalID":"s:9SwiftHPKE13HPKEExceptionO18publicKeyParameteryA2CmF","modules":[{"name":"SwiftHPKE"}]},"schemaVersion":{"patch":0,"major":0,"minor":3},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/hpkeexception\/publickeyparameter"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/publicKeyParameter":{"abstract":[{"type":"text","text":"Invalid parameter to PublicKey constructor"}],"url":"\/documentation\/swifthpke\/hpkeexception\/publickeyparameter","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"publicKeyParameter"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/publicKeyParameter","role":"symbol","title":"HPKEException.publicKeyParameter","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception","abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","role":"symbol","title":"HPKEException","navigatorTitle":[{"kind":"identifier","text":"HPKEException"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/hpkeexception/smallorder.json b/docs/data/documentation/swifthpke/hpkeexception/smallorder.json index 1ea5e17..a266b1b 100644 --- a/docs/data/documentation/swifthpke/hpkeexception/smallorder.json +++ b/docs/data/documentation/swifthpke/hpkeexception/smallorder.json @@ -1 +1 @@ -{"primaryContentSections":[{"declarations":[{"languages":["swift"],"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"smallOrder"}],"platforms":["macOS"]}],"kind":"declarations"}],"kind":"symbol","metadata":{"roleHeading":"Case","modules":[{"name":"SwiftHPKE"}],"symbolKind":"case","role":"symbol","title":"HPKEException.smallOrder","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"smallOrder","kind":"identifier"}],"externalID":"s:9SwiftHPKE13HPKEExceptionO10smallOrderyA2CmF"},"abstract":[{"type":"text","text":"X25519, X448 small order error"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/smallOrder"},"sections":[],"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/smallorder"],"traits":[{"interfaceLanguage":"swift"}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/smallOrder":{"title":"HPKEException.smallOrder","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/smallOrder","kind":"symbol","url":"\/documentation\/swifthpke\/hpkeexception\/smallorder","abstract":[{"text":"X25519, X448 small order error","type":"text"}],"role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"smallOrder","kind":"identifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"role":"symbol","type":"topic","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"url":"\/documentation\/swifthpke\/hpkeexception","kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"HPKEException"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","title":"HPKEException","abstract":[{"text":"The HPKE exceptions","type":"text"}]}}} \ No newline at end of file +{"metadata":{"title":"HPKEException.smallOrder","role":"symbol","roleHeading":"Case","externalID":"s:9SwiftHPKE13HPKEExceptionO10smallOrderyA2CmF","symbolKind":"case","modules":[{"name":"SwiftHPKE"}],"fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"smallOrder"}]},"variants":[{"paths":["\/documentation\/swifthpke\/hpkeexception\/smallorder"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/smallOrder","interfaceLanguage":"swift"},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"smallOrder"}]}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]]},"schemaVersion":{"patch":0,"major":0,"minor":3},"sections":[],"abstract":[{"text":"X25519, X448 small order error","type":"text"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException/smallOrder":{"kind":"symbol","abstract":[{"text":"X25519, X448 small order error","type":"text"}],"title":"HPKEException.smallOrder","url":"\/documentation\/swifthpke\/hpkeexception\/smallorder","role":"symbol","type":"topic","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"smallOrder"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException\/smallOrder"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception","abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","role":"symbol","title":"HPKEException","navigatorTitle":[{"kind":"identifier","text":"HPKEException"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/kdf.json b/docs/data/documentation/swifthpke/kdf.json index 40bcbfd..ebaf70e 100644 --- a/docs/data/documentation/swifthpke/kdf.json +++ b/docs/data/documentation/swifthpke/kdf.json @@ -1 +1 @@ -{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","interfaceLanguage":"swift"},"topicSections":[{"title":"Enumeration Cases","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF256","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF384","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF512"]},{"title":"Instance Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/description"]},{"title":"Default Implementations","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/Equatable-Implementations"]}],"schemaVersion":{"major":0,"patch":0,"minor":3},"sections":[],"relationshipsSections":[{"kind":"relationships","identifiers":["doc:\/\/SwiftHPKE\/s12CaseIterableP","doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","doc:\/\/SwiftHPKE\/SQ","doc:\/\/SwiftHPKE\/SH"],"type":"conformsTo","title":"Conforms To"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kdf"]}],"abstract":[{"type":"text","text":"The key derivation functions"}],"kind":"symbol","seeAlsoSections":[{"title":"Enumerations","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"text":"KDF","kind":"identifier"}]}],"kind":"declarations"}],"metadata":{"role":"symbol","modules":[{"name":"SwiftHPKE"}],"navigatorTitle":[{"text":"KDF","kind":"identifier"}],"title":"KDF","symbolKind":"enum","externalID":"s:9SwiftHPKE3KDFO","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"KDF"}],"roleHeading":"Enumeration"},"references":{"doc://SwiftHPKE/SQ":{"type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/SQ","title":"Swift.Equatable"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"navigatorTitle":[{"text":"KDF","kind":"identifier"}],"abstract":[{"text":"The key derivation functions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","title":"KDF","url":"\/documentation\/swifthpke\/kdf","type":"topic","kind":"symbol","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"KDF","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/KDF512":{"kind":"symbol","title":"KDF.KDF512","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF512","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"KDF512"}],"url":"\/documentation\/swifthpke\/kdf\/kdf512","type":"topic","role":"symbol","abstract":[{"type":"text","text":"HKDF-SHA512"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","abstract":[{"text":"The key encapsulation mechanisms","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","role":"symbol","title":"KEM","type":"topic","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"KEM","kind":"identifier"}],"navigatorTitle":[{"text":"KEM","kind":"identifier"}]},"doc://SwiftHPKE/SH":{"type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/SH","title":"Swift.Hashable"},"doc://SwiftHPKE/s12CaseIterableP":{"type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/s12CaseIterableP","title":"Swift.CaseIterable"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/description":{"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"abstract":[{"type":"text","text":"Textual description of "},{"code":"self","type":"codeVoice"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/description","type":"topic","url":"\/documentation\/swifthpke\/kdf\/description","role":"symbol","title":"description"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/KDF256":{"title":"KDF.KDF256","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF256","kind":"symbol","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"KDF256","kind":"identifier"}],"url":"\/documentation\/swifthpke\/kdf\/kdf256","type":"topic","role":"symbol","abstract":[{"type":"text","text":"HKDF-SHA256"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"navigatorTitle":[{"text":"AEAD","kind":"identifier"}],"type":"topic","title":"AEAD","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","url":"\/documentation\/swifthpke\/aead","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"AEAD"}],"abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"role":"symbol","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/KDF384":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF384","url":"\/documentation\/swifthpke\/kdf\/kdf384","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF384","kind":"identifier"}],"role":"symbol","kind":"symbol","title":"KDF.KDF384","type":"topic","abstract":[{"text":"HKDF-SHA384","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/s23CustomStringConvertibleP":{"type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","title":"Swift.CustomStringConvertible"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/Equatable-Implementations":{"kind":"article","type":"topic","title":"Equatable Implementations","role":"collectionGroup","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/Equatable-Implementations","abstract":[],"url":"\/documentation\/swifthpke\/kdf\/equatable-implementations"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"role":"symbol","type":"topic","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"url":"\/documentation\/swifthpke\/hpkeexception","kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"HPKEException"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","title":"HPKEException","abstract":[{"text":"The HPKE exceptions","type":"text"}]}}} \ No newline at end of file +{"kind":"symbol","sections":[],"metadata":{"navigatorTitle":[{"text":"KDF","kind":"identifier"}],"role":"symbol","externalID":"s:9SwiftHPKE3KDFO","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Enumeration","symbolKind":"enum","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"KDF"}],"title":"KDF"},"relationshipsSections":[{"type":"conformsTo","title":"Conforms To","kind":"relationships","identifiers":["doc:\/\/SwiftHPKE\/s12CaseIterableP","doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","doc:\/\/SwiftHPKE\/SQ","doc:\/\/SwiftHPKE\/SH"]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","interfaceLanguage":"swift"},"schemaVersion":{"patch":0,"major":0,"minor":3},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"abstract":[{"type":"text","text":"The key derivation functions"}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"languages":["swift"]}],"kind":"declarations"}],"topicSections":[{"title":"Enumeration Cases","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF256","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF384","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF512"]},{"title":"Instance Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/description"]},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/Equatable-Implementations"],"title":"Default Implementations","generated":true}],"variants":[{"paths":["\/documentation\/swifthpke\/kdf"],"traits":[{"interfaceLanguage":"swift"}]}],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"],"generated":true,"title":"Enumerations"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"url":"\/documentation\/swifthpke\/kdf","navigatorTitle":[{"text":"KDF","kind":"identifier"}],"role":"symbol","abstract":[{"type":"text","text":"The key derivation functions"}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"title":"KDF","type":"topic","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"},"doc://SwiftHPKE/SQ":{"identifier":"doc:\/\/SwiftHPKE\/SQ","title":"Swift.Equatable","type":"unresolvable"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/KDF512":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF512","url":"\/documentation\/swifthpke\/kdf\/kdf512","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"KDF512","kind":"identifier"}],"kind":"symbol","title":"KDF.KDF512","abstract":[{"type":"text","text":"HKDF-SHA512"}],"role":"symbol","type":"topic"},"doc://SwiftHPKE/s12CaseIterableP":{"identifier":"doc:\/\/SwiftHPKE\/s12CaseIterableP","title":"Swift.CaseIterable","type":"unresolvable"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/description":{"title":"description","kind":"symbol","role":"symbol","abstract":[{"type":"text","text":"Textual description of "},{"code":"self","type":"codeVoice"}],"fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/description","url":"\/documentation\/swifthpke\/kdf\/description","type":"topic"},"doc://SwiftHPKE/s23CustomStringConvertibleP":{"identifier":"doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","title":"Swift.CustomStringConvertible","type":"unresolvable"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception","abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","role":"symbol","title":"HPKEException","navigatorTitle":[{"kind":"identifier","text":"HPKEException"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/KDF384":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF384","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"KDF384","kind":"identifier"}],"abstract":[{"type":"text","text":"HKDF-SHA384"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/kdf\/kdf384","role":"symbol","title":"KDF.KDF384"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/Equatable-Implementations":{"abstract":[],"role":"collectionGroup","url":"\/documentation\/swifthpke\/kdf\/equatable-implementations","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/Equatable-Implementations","kind":"article","title":"Equatable Implementations"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/KDF256":{"title":"KDF.KDF256","url":"\/documentation\/swifthpke\/kdf\/kdf256","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF256","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"KDF256","kind":"identifier"}],"kind":"symbol","role":"symbol","abstract":[{"text":"HKDF-SHA256","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"type":"topic","navigatorTitle":[{"kind":"identifier","text":"AEAD"}],"role":"symbol","title":"AEAD","kind":"symbol","url":"\/documentation\/swifthpke\/aead","abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"AEAD","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","url":"\/documentation\/swifthpke\/kem","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"kind":"identifier","text":"KEM"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"kind":"symbol","title":"KEM","abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"role":"symbol","type":"topic"},"doc://SwiftHPKE/SH":{"identifier":"doc:\/\/SwiftHPKE\/SH","title":"Swift.Hashable","type":"unresolvable"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/kdf/!=(_:_:).json b/docs/data/documentation/swifthpke/kdf/!=(_:_:).json index 3a171e0..d73d3b5 100644 --- a/docs/data/documentation/swifthpke/kdf/!=(_:_:).json +++ b/docs/data/documentation/swifthpke/kdf/!=(_:_:).json @@ -1 +1 @@ -{"abstract":[{"type":"text","text":"Inherited from "},{"type":"codeVoice","code":"Equatable.!=(_:_:)"},{"type":"text","text":"."}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/!=(_:_:)"},"kind":"symbol","primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"!="},{"kind":"text","text":" "},{"text":"(","kind":"text"},{"text":"lhs","kind":"internalParam"},{"text":": ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"rhs","kind":"internalParam"},{"text":": ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"text":"Bool","preciseIdentifier":"s:Sb","kind":"typeIdentifier"}],"languages":["swift"],"platforms":["macOS"]}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/Equatable-Implementations"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kdf\/!=(_:_:)"]}],"metadata":{"roleHeading":"Operator","modules":[{"relatedModules":["Swift"],"name":"SwiftHPKE"}],"extendedModule":"Swift","role":"symbol","title":"!=(_:_:)","symbolKind":"op","fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:Sb","text":"Bool"}],"externalID":"s:SQsE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftHPKE3KDFO"},"schemaVersion":{"patch":0,"major":0,"minor":3},"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/Equatable-Implementations":{"kind":"article","type":"topic","title":"Equatable Implementations","role":"collectionGroup","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/Equatable-Implementations","abstract":[],"url":"\/documentation\/swifthpke\/kdf\/equatable-implementations"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"navigatorTitle":[{"text":"KDF","kind":"identifier"}],"abstract":[{"text":"The key derivation functions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","title":"KDF","url":"\/documentation\/swifthpke\/kdf","type":"topic","kind":"symbol","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"KDF","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/!=(_:_:)":{"title":"!=(_:_:)","role":"symbol","url":"\/documentation\/swifthpke\/kdf\/!=(_:_:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/!=(_:_:)","abstract":[],"kind":"symbol","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"preciseIdentifier":"s:Sb","kind":"typeIdentifier","text":"Bool"}],"type":"topic"}}} \ No newline at end of file +{"kind":"symbol","schemaVersion":{"minor":3,"patch":0,"major":0},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/Equatable-Implementations"]]},"metadata":{"externalID":"s:SQsE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftHPKE3KDFO","role":"symbol","modules":[{"relatedModules":["Swift"],"name":"SwiftHPKE"}],"roleHeading":"Operator","symbolKind":"op","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"!="},{"text":" ","kind":"text"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"Self"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"text":") -> ","kind":"text"},{"kind":"typeIdentifier","text":"Bool","preciseIdentifier":"s:Sb"}],"extendedModule":"Swift","title":"!=(_:_:)"},"abstract":[{"type":"text","text":"Inherited from "},{"code":"Equatable.!=(_:_:)","type":"codeVoice"},{"type":"text","text":"."}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/!=(_:_:)","interfaceLanguage":"swift"},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"kind":"internalParam","text":"lhs"},{"kind":"text","text":": "},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"internalParam","text":"rhs"},{"text":": ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}],"languages":["swift"],"platforms":["macOS"]}]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kdf\/!=(_:_:)"]}],"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/Equatable-Implementations":{"abstract":[],"role":"collectionGroup","url":"\/documentation\/swifthpke\/kdf\/equatable-implementations","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/Equatable-Implementations","kind":"article","title":"Equatable Implementations"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"url":"\/documentation\/swifthpke\/kdf","navigatorTitle":[{"text":"KDF","kind":"identifier"}],"role":"symbol","abstract":[{"type":"text","text":"The key derivation functions"}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"title":"KDF","type":"topic","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/!=(_:_:)":{"type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/kdf\/!=(_:_:)","title":"!=(_:_:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/!=(_:_:)","abstract":[],"fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}],"role":"symbol"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/kdf/description.json b/docs/data/documentation/swifthpke/kdf/description.json index c9dec48..28acfe8 100644 --- a/docs/data/documentation/swifthpke/kdf/description.json +++ b/docs/data/documentation/swifthpke/kdf/description.json @@ -1 +1 @@ -{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"]]},"sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kdf\/description"]}],"kind":"symbol","metadata":{"modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"}],"externalID":"s:9SwiftHPKE3KDFO11descriptionSSvp","symbolKind":"property","roleHeading":"Instance Property","role":"symbol","title":"description"},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"},{"text":" { ","kind":"text"},{"kind":"keyword","text":"get"},{"kind":"text","text":" }"}],"platforms":["macOS"]}]}],"abstract":[{"text":"Textual description of ","type":"text"},{"code":"self","type":"codeVoice"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/description","interfaceLanguage":"swift"},"schemaVersion":{"patch":0,"major":0,"minor":3},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/description":{"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"abstract":[{"type":"text","text":"Textual description of "},{"code":"self","type":"codeVoice"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/description","type":"topic","url":"\/documentation\/swifthpke\/kdf\/description","role":"symbol","title":"description"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"navigatorTitle":[{"text":"KDF","kind":"identifier"}],"abstract":[{"text":"The key derivation functions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","title":"KDF","url":"\/documentation\/swifthpke\/kdf","type":"topic","kind":"symbol","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"KDF","kind":"identifier"}]}}} \ No newline at end of file +{"metadata":{"externalID":"s:9SwiftHPKE3KDFO11descriptionSSvp","roleHeading":"Instance Property","role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"}],"symbolKind":"property","modules":[{"name":"SwiftHPKE"}],"title":"description"},"abstract":[{"text":"Textual description of ","type":"text"},{"code":"self","type":"codeVoice"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"]]},"sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/description","interfaceLanguage":"swift"},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":" { ","kind":"text"},{"text":"get","kind":"keyword"},{"text":" }","kind":"text"}],"languages":["swift"]}]}],"schemaVersion":{"patch":0,"major":0,"minor":3},"kind":"symbol","variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kdf\/description"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"url":"\/documentation\/swifthpke\/kdf","navigatorTitle":[{"text":"KDF","kind":"identifier"}],"role":"symbol","abstract":[{"type":"text","text":"The key derivation functions"}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"title":"KDF","type":"topic","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/description":{"title":"description","kind":"symbol","role":"symbol","abstract":[{"type":"text","text":"Textual description of "},{"code":"self","type":"codeVoice"}],"fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/description","url":"\/documentation\/swifthpke\/kdf\/description","type":"topic"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/kdf/equatable-implementations.json b/docs/data/documentation/swifthpke/kdf/equatable-implementations.json index cabf7a1..c906323 100644 --- a/docs/data/documentation/swifthpke/kdf/equatable-implementations.json +++ b/docs/data/documentation/swifthpke/kdf/equatable-implementations.json @@ -1 +1 @@ -{"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kdf\/equatable-implementations"]}],"metadata":{"role":"collectionGroup","roleHeading":"API Collection","modules":[{"name":"SwiftHPKE"}],"title":"Equatable Implementations"},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/Equatable-Implementations"},"kind":"article","sections":[],"schemaVersion":{"minor":3,"patch":0,"major":0},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"]]},"topicSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/!=(_:_:)"],"title":"Operators","generated":true}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/!=(_:_:)":{"title":"!=(_:_:)","role":"symbol","url":"\/documentation\/swifthpke\/kdf\/!=(_:_:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/!=(_:_:)","abstract":[],"kind":"symbol","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"preciseIdentifier":"s:Sb","kind":"typeIdentifier","text":"Bool"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"navigatorTitle":[{"text":"KDF","kind":"identifier"}],"abstract":[{"text":"The key derivation functions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","title":"KDF","url":"\/documentation\/swifthpke\/kdf","type":"topic","kind":"symbol","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"KDF","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"}}} \ No newline at end of file +{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"]]},"schemaVersion":{"patch":0,"major":0,"minor":3},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/Equatable-Implementations","interfaceLanguage":"swift"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kdf\/equatable-implementations"]}],"kind":"article","topicSections":[{"title":"Operators","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/!=(_:_:)"],"generated":true}],"sections":[],"metadata":{"title":"Equatable Implementations","modules":[{"name":"SwiftHPKE"}],"role":"collectionGroup","roleHeading":"API Collection"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/!=(_:_:)":{"type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/kdf\/!=(_:_:)","title":"!=(_:_:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/!=(_:_:)","abstract":[],"fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"url":"\/documentation\/swifthpke\/kdf","navigatorTitle":[{"text":"KDF","kind":"identifier"}],"role":"symbol","abstract":[{"type":"text","text":"The key derivation functions"}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"title":"KDF","type":"topic","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/kdf/kdf256.json b/docs/data/documentation/swifthpke/kdf/kdf256.json index a92724c..16180cf 100644 --- a/docs/data/documentation/swifthpke/kdf/kdf256.json +++ b/docs/data/documentation/swifthpke/kdf/kdf256.json @@ -1 +1 @@ -{"abstract":[{"text":"HKDF-SHA256","type":"text"}],"sections":[],"variants":[{"paths":["\/documentation\/swifthpke\/kdf\/kdf256"],"traits":[{"interfaceLanguage":"swift"}]}],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"KDF256","kind":"identifier"}],"languages":["swift"],"platforms":["macOS"]}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"]]},"metadata":{"modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE3KDFO6KDF256yA2CmF","symbolKind":"case","role":"symbol","roleHeading":"Case","title":"KDF.KDF256","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"KDF256"}]},"kind":"symbol","identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF256","interfaceLanguage":"swift"},"schemaVersion":{"major":0,"minor":3,"patch":0},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/KDF256":{"title":"KDF.KDF256","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF256","kind":"symbol","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"KDF256","kind":"identifier"}],"url":"\/documentation\/swifthpke\/kdf\/kdf256","type":"topic","role":"symbol","abstract":[{"type":"text","text":"HKDF-SHA256"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"navigatorTitle":[{"text":"KDF","kind":"identifier"}],"abstract":[{"text":"The key derivation functions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","title":"KDF","url":"\/documentation\/swifthpke\/kdf","type":"topic","kind":"symbol","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"KDF","kind":"identifier"}]}}} \ No newline at end of file +{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"]]},"kind":"symbol","schemaVersion":{"minor":3,"patch":0,"major":0},"metadata":{"title":"KDF.KDF256","symbolKind":"case","roleHeading":"Case","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"KDF256","kind":"identifier"}],"role":"symbol","externalID":"s:9SwiftHPKE3KDFO6KDF256yA2CmF","modules":[{"name":"SwiftHPKE"}]},"sections":[],"abstract":[{"text":"HKDF-SHA256","type":"text"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF256","interfaceLanguage":"swift"},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"KDF256","kind":"identifier"}]}]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kdf\/kdf256"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"url":"\/documentation\/swifthpke\/kdf","navigatorTitle":[{"text":"KDF","kind":"identifier"}],"role":"symbol","abstract":[{"type":"text","text":"The key derivation functions"}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"title":"KDF","type":"topic","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/KDF256":{"title":"KDF.KDF256","url":"\/documentation\/swifthpke\/kdf\/kdf256","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF256","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"KDF256","kind":"identifier"}],"kind":"symbol","role":"symbol","abstract":[{"text":"HKDF-SHA256","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/kdf/kdf384.json b/docs/data/documentation/swifthpke/kdf/kdf384.json index 71f8b71..921405e 100644 --- a/docs/data/documentation/swifthpke/kdf/kdf384.json +++ b/docs/data/documentation/swifthpke/kdf/kdf384.json @@ -1 +1 @@ -{"abstract":[{"text":"HKDF-SHA384","type":"text"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF384","interfaceLanguage":"swift"},"sections":[],"metadata":{"title":"KDF.KDF384","externalID":"s:9SwiftHPKE3KDFO6KDF384yA2CmF","modules":[{"name":"SwiftHPKE"}],"symbolKind":"case","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF384","kind":"identifier"}],"role":"symbol","roleHeading":"Case"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"]]},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"KDF384","kind":"identifier"}]}],"kind":"declarations"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kdf\/kdf384"]}],"schemaVersion":{"patch":0,"minor":3,"major":0},"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/KDF384":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF384","url":"\/documentation\/swifthpke\/kdf\/kdf384","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF384","kind":"identifier"}],"role":"symbol","kind":"symbol","title":"KDF.KDF384","type":"topic","abstract":[{"text":"HKDF-SHA384","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"navigatorTitle":[{"text":"KDF","kind":"identifier"}],"abstract":[{"text":"The key derivation functions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","title":"KDF","url":"\/documentation\/swifthpke\/kdf","type":"topic","kind":"symbol","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"KDF","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"}}} \ No newline at end of file +{"abstract":[{"text":"HKDF-SHA384","type":"text"}],"variants":[{"paths":["\/documentation\/swifthpke\/kdf\/kdf384"],"traits":[{"interfaceLanguage":"swift"}]}],"schemaVersion":{"patch":0,"major":0,"minor":3},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"]]},"kind":"symbol","primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"KDF384","kind":"identifier"}],"languages":["swift"]}]}],"sections":[],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF384"},"metadata":{"symbolKind":"case","roleHeading":"Case","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"KDF384","kind":"identifier"}],"externalID":"s:9SwiftHPKE3KDFO6KDF384yA2CmF","role":"symbol","modules":[{"name":"SwiftHPKE"}],"title":"KDF.KDF384"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/KDF384":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF384","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"KDF384","kind":"identifier"}],"abstract":[{"type":"text","text":"HKDF-SHA384"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/kdf\/kdf384","role":"symbol","title":"KDF.KDF384"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"url":"\/documentation\/swifthpke\/kdf","navigatorTitle":[{"text":"KDF","kind":"identifier"}],"role":"symbol","abstract":[{"type":"text","text":"The key derivation functions"}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"title":"KDF","type":"topic","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/kdf/kdf512.json b/docs/data/documentation/swifthpke/kdf/kdf512.json index cb7ba85..65b852b 100644 --- a/docs/data/documentation/swifthpke/kdf/kdf512.json +++ b/docs/data/documentation/swifthpke/kdf/kdf512.json @@ -1 +1 @@ -{"schemaVersion":{"major":0,"minor":3,"patch":0},"metadata":{"role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF512","kind":"identifier"}],"symbolKind":"case","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE3KDFO6KDF512yA2CmF","title":"KDF.KDF512","roleHeading":"Case"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kdf\/kdf512"]}],"sections":[],"kind":"symbol","identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF512","interfaceLanguage":"swift"},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"KDF512"}]}]}],"abstract":[{"text":"HKDF-SHA512","type":"text"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/KDF512":{"kind":"symbol","title":"KDF.KDF512","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF512","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"KDF512"}],"url":"\/documentation\/swifthpke\/kdf\/kdf512","type":"topic","role":"symbol","abstract":[{"type":"text","text":"HKDF-SHA512"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"navigatorTitle":[{"text":"KDF","kind":"identifier"}],"abstract":[{"text":"The key derivation functions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","title":"KDF","url":"\/documentation\/swifthpke\/kdf","type":"topic","kind":"symbol","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"KDF","kind":"identifier"}]}}} \ No newline at end of file +{"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"KDF512"}]}],"kind":"declarations"}],"abstract":[{"text":"HKDF-SHA512","type":"text"}],"kind":"symbol","metadata":{"modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE3KDFO6KDF512yA2CmF","symbolKind":"case","title":"KDF.KDF512","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"KDF512","kind":"identifier"}],"role":"symbol","roleHeading":"Case"},"sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kdf\/kdf512"]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF512"},"schemaVersion":{"patch":0,"major":0,"minor":3},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF/KDF512":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF\/KDF512","url":"\/documentation\/swifthpke\/kdf\/kdf512","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"KDF512","kind":"identifier"}],"kind":"symbol","title":"KDF.KDF512","abstract":[{"type":"text","text":"HKDF-SHA512"}],"role":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"url":"\/documentation\/swifthpke\/kdf","navigatorTitle":[{"text":"KDF","kind":"identifier"}],"role":"symbol","abstract":[{"type":"text","text":"The key derivation functions"}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"title":"KDF","type":"topic","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/kem.json b/docs/data/documentation/swifthpke/kem.json index dcdcd64..1c45b9c 100644 --- a/docs/data/documentation/swifthpke/kem.json +++ b/docs/data/documentation/swifthpke/kem.json @@ -1 +1 @@ -{"kind":"symbol","topicSections":[{"title":"Enumeration Cases","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P256","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P384","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P521","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X25519","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X448"]},{"title":"Instance Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/description"]},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/Equatable-Implementations"],"generated":true,"title":"Default Implementations"}],"seeAlsoSections":[{"generated":true,"title":"Enumerations","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"variants":[{"paths":["\/documentation\/swifthpke\/kem"],"traits":[{"interfaceLanguage":"swift"}]}],"schemaVersion":{"patch":0,"major":0,"minor":3},"abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"relationshipsSections":[{"type":"conformsTo","title":"Conforms To","identifiers":["doc:\/\/SwiftHPKE\/s12CaseIterableP","doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","doc:\/\/SwiftHPKE\/SQ","doc:\/\/SwiftHPKE\/SH"],"kind":"relationships"}],"metadata":{"roleHeading":"Enumeration","symbolKind":"enum","externalID":"s:9SwiftHPKE3KEMO","navigatorTitle":[{"text":"KEM","kind":"identifier"}],"title":"KEM","modules":[{"name":"SwiftHPKE"}],"role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KEM","kind":"identifier"}]},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"KEM","kind":"identifier"}]}],"kind":"declarations"}],"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"role":"symbol","type":"topic","navigatorTitle":[{"text":"HPKEException","kind":"identifier"}],"url":"\/documentation\/swifthpke\/hpkeexception","kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"HPKEException"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","title":"HPKEException","abstract":[{"text":"The HPKE exceptions","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/SQ":{"type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/SQ","title":"Swift.Equatable"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/X25519":{"type":"topic","kind":"symbol","title":"KEM.X25519","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X25519","abstract":[{"type":"text","text":"X25519 - HKDF-SHA256"}],"role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"X25519","kind":"identifier"}],"url":"\/documentation\/swifthpke\/kem\/x25519"},"doc://SwiftHPKE/SH":{"title":"Swift.Hashable","type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/SH"},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"navigatorTitle":[{"text":"KDF","kind":"identifier"}],"abstract":[{"text":"The key derivation functions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","title":"KDF","url":"\/documentation\/swifthpke\/kdf","type":"topic","kind":"symbol","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"KDF","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/P256":{"title":"KEM.P256","type":"topic","url":"\/documentation\/swifthpke\/kem\/p256","abstract":[{"text":"P256 - HKDF-SHA256","type":"text"}],"role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"P256"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P256","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/P384":{"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/kem\/p384","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P384","kind":"symbol","abstract":[{"text":"P384 - HKDF-SHA384","type":"text"}],"title":"KEM.P384","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"P384"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"navigatorTitle":[{"text":"AEAD","kind":"identifier"}],"type":"topic","title":"AEAD","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","url":"\/documentation\/swifthpke\/aead","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"AEAD"}],"abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"role":"symbol","kind":"symbol"},"doc://SwiftHPKE/s23CustomStringConvertibleP":{"title":"Swift.CustomStringConvertible","type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/P521":{"url":"\/documentation\/swifthpke\/kem\/p521","kind":"symbol","role":"symbol","abstract":[{"text":"P521 - HKDF-SHA512","type":"text"}],"type":"topic","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"P521","kind":"identifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P521","title":"KEM.P521"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","abstract":[{"text":"The key encapsulation mechanisms","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","role":"symbol","title":"KEM","type":"topic","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"KEM","kind":"identifier"}],"navigatorTitle":[{"text":"KEM","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/X448":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X448","type":"topic","role":"symbol","abstract":[{"text":"X448 - HKDF-SHA512","type":"text"}],"title":"KEM.X448","kind":"symbol","url":"\/documentation\/swifthpke\/kem\/x448","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"X448","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/Equatable-Implementations":{"url":"\/documentation\/swifthpke\/kem\/equatable-implementations","abstract":[],"title":"Equatable Implementations","kind":"article","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/Equatable-Implementations","type":"topic","role":"collectionGroup"},"doc://SwiftHPKE/s12CaseIterableP":{"title":"Swift.CaseIterable","type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/s12CaseIterableP"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/description":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/description","url":"\/documentation\/swifthpke\/kem\/description","abstract":[{"text":"Textual description of ","type":"text"},{"code":"self","type":"codeVoice"}],"kind":"symbol","title":"description","type":"topic","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"kind":"text","text":": "},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"}]}}} \ No newline at end of file +{"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"text":"KEM","kind":"identifier"}],"languages":["swift"]}]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","interfaceLanguage":"swift"},"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"abstract":[{"text":"The key encapsulation mechanisms","type":"text"}],"topicSections":[{"title":"Enumeration Cases","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P256","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P384","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P521","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X25519","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X448"]},{"title":"Instance Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/description"]},{"title":"Default Implementations","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/Equatable-Implementations"],"generated":true}],"schemaVersion":{"minor":3,"major":0,"patch":0},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kem"]}],"metadata":{"symbolKind":"enum","role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"KEM"}],"roleHeading":"Enumeration","externalID":"s:9SwiftHPKE3KEMO","modules":[{"name":"SwiftHPKE"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"title":"KEM"},"kind":"symbol","relationshipsSections":[{"identifiers":["doc:\/\/SwiftHPKE\/s12CaseIterableP","doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","doc:\/\/SwiftHPKE\/SQ","doc:\/\/SwiftHPKE\/SH"],"kind":"relationships","title":"Conforms To","type":"conformsTo"}],"seeAlsoSections":[{"title":"Enumerations","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException"],"generated":true}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/X25519":{"abstract":[{"text":"X25519 - HKDF-SHA256","type":"text"}],"fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"X25519","kind":"identifier"}],"title":"KEM.X25519","kind":"symbol","role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/kem\/x25519","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X25519"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/Equatable-Implementations":{"role":"collectionGroup","kind":"article","title":"Equatable Implementations","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/Equatable-Implementations","url":"\/documentation\/swifthpke\/kem\/equatable-implementations","type":"topic","abstract":[]},"doc://SwiftHPKE/documentation/SwiftHPKE/KDF":{"url":"\/documentation\/swifthpke\/kdf","navigatorTitle":[{"text":"KDF","kind":"identifier"}],"role":"symbol","abstract":[{"type":"text","text":"The key derivation functions"}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"KDF","kind":"identifier"}],"title":"KDF","type":"topic","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KDF"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/P256":{"url":"\/documentation\/swifthpke\/kem\/p256","title":"KEM.P256","abstract":[{"text":"P256 - HKDF-SHA256","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P256","kind":"symbol","type":"topic","role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"P256","kind":"identifier"}]},"doc://SwiftHPKE/SQ":{"type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/SQ","title":"Swift.Equatable"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","url":"\/documentation\/swifthpke\/kem","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"kind":"identifier","text":"KEM"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"kind":"symbol","title":"KEM","abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"role":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/P384":{"role":"symbol","url":"\/documentation\/swifthpke\/kem\/p384","abstract":[{"type":"text","text":"P384 - HKDF-SHA384"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P384","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"P384"}],"title":"KEM.P384","kind":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/X448":{"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"X448 - HKDF-SHA512"}],"url":"\/documentation\/swifthpke\/kem\/x448","title":"KEM.X448","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X448","role":"symbol","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"X448","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/description":{"kind":"symbol","role":"symbol","url":"\/documentation\/swifthpke\/kem\/description","title":"description","type":"topic","abstract":[{"type":"text","text":"Textual description of "},{"code":"self","type":"codeVoice"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/description","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"kind":"text","text":": "},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"}]},"doc://SwiftHPKE/s23CustomStringConvertibleP":{"type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","title":"Swift.CustomStringConvertible"},"doc://SwiftHPKE/documentation/SwiftHPKE/AEAD":{"type":"topic","navigatorTitle":[{"kind":"identifier","text":"AEAD"}],"role":"symbol","title":"AEAD","kind":"symbol","url":"\/documentation\/swifthpke\/aead","abstract":[{"type":"text","text":"The AEAD encryption algorithms"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/AEAD","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"AEAD","kind":"identifier"}]},"doc://SwiftHPKE/s12CaseIterableP":{"type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/s12CaseIterableP","title":"Swift.CaseIterable"},"doc://SwiftHPKE/documentation/SwiftHPKE/HPKEException":{"kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"HPKEException"}],"type":"topic","url":"\/documentation\/swifthpke\/hpkeexception","abstract":[{"text":"The HPKE exceptions","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/HPKEException","role":"symbol","title":"HPKEException","navigatorTitle":[{"kind":"identifier","text":"HPKEException"}]},"doc://SwiftHPKE/SH":{"type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/SH","title":"Swift.Hashable"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/P521":{"abstract":[{"text":"P521 - HKDF-SHA512","type":"text"}],"fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"P521","kind":"identifier"}],"role":"symbol","url":"\/documentation\/swifthpke\/kem\/p521","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P521","kind":"symbol","title":"KEM.P521","type":"topic"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/kem/!=(_:_:).json b/docs/data/documentation/swifthpke/kem/!=(_:_:).json index 5d4f8ad..2c73d1c 100644 --- a/docs/data/documentation/swifthpke/kem/!=(_:_:).json +++ b/docs/data/documentation/swifthpke/kem/!=(_:_:).json @@ -1 +1 @@ -{"kind":"symbol","schemaVersion":{"patch":0,"major":0,"minor":3},"abstract":[{"text":"Inherited from ","type":"text"},{"type":"codeVoice","code":"Equatable.!=(_:_:)"},{"text":".","type":"text"}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"!=","kind":"identifier"},{"kind":"text","text":" "},{"kind":"text","text":"("},{"text":"lhs","kind":"internalParam"},{"text":": ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"internalParam","text":"rhs"},{"kind":"text","text":": "},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}]}],"kind":"declarations"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kem\/!=(_:_:)"]}],"metadata":{"extendedModule":"Swift","fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"Self","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"text":"Bool","preciseIdentifier":"s:Sb","kind":"typeIdentifier"}],"title":"!=(_:_:)","roleHeading":"Operator","externalID":"s:SQsE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftHPKE3KEMO","symbolKind":"op","role":"symbol","modules":[{"name":"SwiftHPKE","relatedModules":["Swift"]}]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/!=(_:_:)"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/Equatable-Implementations"]]},"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","abstract":[{"text":"The key encapsulation mechanisms","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","role":"symbol","title":"KEM","type":"topic","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"KEM","kind":"identifier"}],"navigatorTitle":[{"text":"KEM","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/!=(_:_:)":{"abstract":[],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/!=(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"text":"Bool","preciseIdentifier":"s:Sb","kind":"typeIdentifier"}],"role":"symbol","kind":"symbol","title":"!=(_:_:)","type":"topic","url":"\/documentation\/swifthpke\/kem\/!=(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/Equatable-Implementations":{"url":"\/documentation\/swifthpke\/kem\/equatable-implementations","abstract":[],"title":"Equatable Implementations","kind":"article","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/Equatable-Implementations","type":"topic","role":"collectionGroup"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"}}} \ No newline at end of file +{"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/!=(_:_:)","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/Equatable-Implementations"]]},"variants":[{"paths":["\/documentation\/swifthpke\/kem\/!=(_:_:)"],"traits":[{"interfaceLanguage":"swift"}]}],"schemaVersion":{"minor":3,"patch":0,"major":0},"kind":"symbol","primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"kind":"text","text":" "},{"text":"(","kind":"text"},{"text":"lhs","kind":"internalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":", "},{"text":"rhs","kind":"internalParam"},{"kind":"text","text":": "},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}]}],"kind":"declarations"}],"sections":[],"abstract":[{"text":"Inherited from ","type":"text"},{"type":"codeVoice","code":"Equatable.!=(_:_:)"},{"text":".","type":"text"}],"metadata":{"role":"symbol","title":"!=(_:_:)","modules":[{"relatedModules":["Swift"],"name":"SwiftHPKE"}],"fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"kind":"text","text":" "},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}],"symbolKind":"op","externalID":"s:SQsE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftHPKE3KEMO","extendedModule":"Swift","roleHeading":"Operator"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/!=(_:_:)":{"kind":"symbol","title":"!=(_:_:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/!=(_:_:)","role":"symbol","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"text":"Bool","preciseIdentifier":"s:Sb","kind":"typeIdentifier"}],"type":"topic","url":"\/documentation\/swifthpke\/kem\/!=(_:_:)","abstract":[]},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","url":"\/documentation\/swifthpke\/kem","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"kind":"identifier","text":"KEM"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"kind":"symbol","title":"KEM","abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"role":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/Equatable-Implementations":{"role":"collectionGroup","kind":"article","title":"Equatable Implementations","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/Equatable-Implementations","url":"\/documentation\/swifthpke\/kem\/equatable-implementations","type":"topic","abstract":[]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/kem/description.json b/docs/data/documentation/swifthpke/kem/description.json index f670cb8..9766921 100644 --- a/docs/data/documentation/swifthpke/kem/description.json +++ b/docs/data/documentation/swifthpke/kem/description.json @@ -1 +1 @@ -{"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kem\/description"]}],"schemaVersion":{"minor":3,"patch":0,"major":0},"abstract":[{"type":"text","text":"Textual description of "},{"code":"self","type":"codeVoice"}],"metadata":{"roleHeading":"Instance Property","symbolKind":"property","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"}],"modules":[{"name":"SwiftHPKE"}],"title":"description","role":"symbol","externalID":"s:9SwiftHPKE3KEMO11descriptionSSvp"},"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"]]},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"kind":"text","text":": "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":" { ","kind":"text"},{"kind":"keyword","text":"get"},{"kind":"text","text":" }"}]}]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/description","interfaceLanguage":"swift"},"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/description":{"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/description","url":"\/documentation\/swifthpke\/kem\/description","abstract":[{"text":"Textual description of ","type":"text"},{"code":"self","type":"codeVoice"}],"kind":"symbol","title":"description","type":"topic","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"kind":"text","text":": "},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","abstract":[{"text":"The key encapsulation mechanisms","type":"text"}],"type":"topic","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"KEM"}],"url":"\/documentation\/swifthpke\/kem","kind":"symbol","title":"KEM","role":"symbol","navigatorTitle":[{"text":"KEM","kind":"identifier"}]}}} \ No newline at end of file +{"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/description"},"sections":[],"metadata":{"roleHeading":"Instance Property","externalID":"s:9SwiftHPKE3KEMO11descriptionSSvp","role":"symbol","title":"description","modules":[{"name":"SwiftHPKE"}],"symbolKind":"property","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}]},"schemaVersion":{"patch":0,"minor":3,"major":0},"kind":"symbol","variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kem\/description"]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"]]},"primaryContentSections":[{"declarations":[{"tokens":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"kind":"text","text":": "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":" { ","kind":"text"},{"kind":"keyword","text":"get"},{"kind":"text","text":" }"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"}],"abstract":[{"text":"Textual description of ","type":"text"},{"type":"codeVoice","code":"self"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/description":{"kind":"symbol","role":"symbol","url":"\/documentation\/swifthpke\/kem\/description","title":"description","type":"topic","abstract":[{"type":"text","text":"Textual description of "},{"code":"self","type":"codeVoice"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/description","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"text":"description","kind":"identifier"},{"kind":"text","text":": "},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","url":"\/documentation\/swifthpke\/kem","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"kind":"identifier","text":"KEM"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"kind":"symbol","title":"KEM","abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"role":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/kem/equatable-implementations.json b/docs/data/documentation/swifthpke/kem/equatable-implementations.json index 9b1a1b0..1ebf8eb 100644 --- a/docs/data/documentation/swifthpke/kem/equatable-implementations.json +++ b/docs/data/documentation/swifthpke/kem/equatable-implementations.json @@ -1 +1 @@ -{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/Equatable-Implementations"},"topicSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/!=(_:_:)"],"generated":true,"title":"Operators"}],"schemaVersion":{"major":0,"patch":0,"minor":3},"metadata":{"role":"collectionGroup","roleHeading":"API Collection","title":"Equatable Implementations","modules":[{"name":"SwiftHPKE"}]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kem\/equatable-implementations"]}],"sections":[],"kind":"article","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/!=(_:_:)":{"abstract":[],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/!=(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"text":"Bool","preciseIdentifier":"s:Sb","kind":"typeIdentifier"}],"role":"symbol","kind":"symbol","title":"!=(_:_:)","type":"topic","url":"\/documentation\/swifthpke\/kem\/!=(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","abstract":[{"text":"The key encapsulation mechanisms","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","role":"symbol","title":"KEM","type":"topic","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"KEM","kind":"identifier"}],"navigatorTitle":[{"text":"KEM","kind":"identifier"}]}}} \ No newline at end of file +{"schemaVersion":{"minor":3,"patch":0,"major":0},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/Equatable-Implementations"},"metadata":{"roleHeading":"API Collection","role":"collectionGroup","title":"Equatable Implementations","modules":[{"name":"SwiftHPKE"}]},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"]]},"topicSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/!=(_:_:)"],"title":"Operators"}],"sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kem\/equatable-implementations"]}],"kind":"article","references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","url":"\/documentation\/swifthpke\/kem","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"kind":"identifier","text":"KEM"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"kind":"symbol","title":"KEM","abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"role":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/!=(_:_:)":{"kind":"symbol","title":"!=(_:_:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/!=(_:_:)","role":"symbol","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"text":"Bool","preciseIdentifier":"s:Sb","kind":"typeIdentifier"}],"type":"topic","url":"\/documentation\/swifthpke\/kem\/!=(_:_:)","abstract":[]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/kem/p256.json b/docs/data/documentation/swifthpke/kem/p256.json index 8cf57eb..967c8dd 100644 --- a/docs/data/documentation/swifthpke/kem/p256.json +++ b/docs/data/documentation/swifthpke/kem/p256.json @@ -1 +1 @@ -{"schemaVersion":{"patch":0,"minor":3,"major":0},"kind":"symbol","variants":[{"paths":["\/documentation\/swifthpke\/kem\/p256"],"traits":[{"interfaceLanguage":"swift"}]}],"sections":[],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P256"},"abstract":[{"type":"text","text":"P256 - HKDF-SHA256"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"P256"}],"platforms":["macOS"]}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"]]},"metadata":{"symbolKind":"case","title":"KEM.P256","roleHeading":"Case","role":"symbol","externalID":"s:9SwiftHPKE3KEMO4P256yA2CmF","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"P256","kind":"identifier"}],"modules":[{"name":"SwiftHPKE"}]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","abstract":[{"text":"The key encapsulation mechanisms","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","role":"symbol","title":"KEM","type":"topic","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"KEM","kind":"identifier"}],"navigatorTitle":[{"text":"KEM","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/P256":{"title":"KEM.P256","type":"topic","url":"\/documentation\/swifthpke\/kem\/p256","abstract":[{"text":"P256 - HKDF-SHA256","type":"text"}],"role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"P256"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P256","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"}}} \ No newline at end of file +{"schemaVersion":{"minor":3,"major":0,"patch":0},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"P256"}]}],"kind":"declarations"}],"sections":[],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"]]},"abstract":[{"type":"text","text":"P256 - HKDF-SHA256"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kem\/p256"]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P256","interfaceLanguage":"swift"},"metadata":{"modules":[{"name":"SwiftHPKE"}],"symbolKind":"case","title":"KEM.P256","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"P256","kind":"identifier"}],"roleHeading":"Case","externalID":"s:9SwiftHPKE3KEMO4P256yA2CmF","role":"symbol"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"abstract":[{"text":"The key encapsulation mechanisms","type":"text"}],"url":"\/documentation\/swifthpke\/kem","role":"symbol","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"KEM"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"KEM"}],"title":"KEM"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/P256":{"url":"\/documentation\/swifthpke\/kem\/p256","title":"KEM.P256","abstract":[{"text":"P256 - HKDF-SHA256","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P256","kind":"symbol","type":"topic","role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"P256","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/kem/p384.json b/docs/data/documentation/swifthpke/kem/p384.json index e9d8441..52c7c28 100644 --- a/docs/data/documentation/swifthpke/kem/p384.json +++ b/docs/data/documentation/swifthpke/kem/p384.json @@ -1 +1 @@ -{"kind":"symbol","primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"P384","kind":"identifier"}],"languages":["swift"]}],"kind":"declarations"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"]]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P384","interfaceLanguage":"swift"},"sections":[],"metadata":{"role":"symbol","symbolKind":"case","externalID":"s:9SwiftHPKE3KEMO4P384yA2CmF","roleHeading":"Case","modules":[{"name":"SwiftHPKE"}],"title":"KEM.P384","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"P384"}]},"schemaVersion":{"major":0,"patch":0,"minor":3},"abstract":[{"text":"P384 - HKDF-SHA384","type":"text"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kem\/p384"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","abstract":[{"text":"The key encapsulation mechanisms","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","role":"symbol","title":"KEM","type":"topic","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"KEM","kind":"identifier"}],"navigatorTitle":[{"text":"KEM","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/P384":{"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/kem\/p384","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P384","kind":"symbol","abstract":[{"text":"P384 - HKDF-SHA384","type":"text"}],"title":"KEM.P384","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"kind":"identifier","text":"P384"}]}}} \ No newline at end of file +{"schemaVersion":{"major":0,"minor":3,"patch":0},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P384","interfaceLanguage":"swift"},"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"]]},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"P384","kind":"identifier"}],"languages":["swift"],"platforms":["macOS"]}]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kem\/p384"]}],"abstract":[{"text":"P384 - HKDF-SHA384","type":"text"}],"metadata":{"role":"symbol","externalID":"s:9SwiftHPKE3KEMO4P384yA2CmF","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"P384","kind":"identifier"}],"title":"KEM.P384","roleHeading":"Case","modules":[{"name":"SwiftHPKE"}],"symbolKind":"case"},"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/P384":{"role":"symbol","url":"\/documentation\/swifthpke\/kem\/p384","abstract":[{"type":"text","text":"P384 - HKDF-SHA384"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P384","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"P384"}],"title":"KEM.P384","kind":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","url":"\/documentation\/swifthpke\/kem","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"kind":"identifier","text":"KEM"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"kind":"symbol","title":"KEM","abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"role":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/kem/p521.json b/docs/data/documentation/swifthpke/kem/p521.json index 4ddf147..a5d0333 100644 --- a/docs/data/documentation/swifthpke/kem/p521.json +++ b/docs/data/documentation/swifthpke/kem/p521.json @@ -1 +1 @@ -{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"]]},"kind":"symbol","metadata":{"role":"symbol","symbolKind":"case","externalID":"s:9SwiftHPKE3KEMO4P521yA2CmF","modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"P521","kind":"identifier"}],"roleHeading":"Case","title":"KEM.P521"},"schemaVersion":{"patch":0,"major":0,"minor":3},"sections":[],"abstract":[{"text":"P521 - HKDF-SHA512","type":"text"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kem\/p521"]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P521"},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"P521","kind":"identifier"}],"platforms":["macOS"]}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","abstract":[{"text":"The key encapsulation mechanisms","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","role":"symbol","title":"KEM","type":"topic","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"KEM","kind":"identifier"}],"navigatorTitle":[{"text":"KEM","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/P521":{"url":"\/documentation\/swifthpke\/kem\/p521","kind":"symbol","role":"symbol","abstract":[{"text":"P521 - HKDF-SHA512","type":"text"}],"type":"topic","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"P521","kind":"identifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P521","title":"KEM.P521"}}} \ No newline at end of file +{"abstract":[{"text":"P521 - HKDF-SHA512","type":"text"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P521","interfaceLanguage":"swift"},"kind":"symbol","metadata":{"externalID":"s:9SwiftHPKE3KEMO4P521yA2CmF","role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"P521","kind":"identifier"}],"symbolKind":"case","title":"KEM.P521","roleHeading":"Case","modules":[{"name":"SwiftHPKE"}]},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"P521","kind":"identifier"}]}],"kind":"declarations"}],"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"]]},"schemaVersion":{"minor":3,"major":0,"patch":0},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kem\/p521"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection","title":"SwiftHPKE","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"url":"\/documentation\/swifthpke"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/P521":{"abstract":[{"text":"P521 - HKDF-SHA512","type":"text"}],"fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"P521","kind":"identifier"}],"role":"symbol","url":"\/documentation\/swifthpke\/kem\/p521","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/P521","kind":"symbol","title":"KEM.P521","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"abstract":[{"text":"The key encapsulation mechanisms","type":"text"}],"url":"\/documentation\/swifthpke\/kem","role":"symbol","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"KEM"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"KEM"}],"title":"KEM"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/kem/x25519.json b/docs/data/documentation/swifthpke/kem/x25519.json index 2bf836a..7e86406 100644 --- a/docs/data/documentation/swifthpke/kem/x25519.json +++ b/docs/data/documentation/swifthpke/kem/x25519.json @@ -1 +1 @@ -{"abstract":[{"text":"X25519 - HKDF-SHA256","type":"text"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kem\/x25519"]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X25519","interfaceLanguage":"swift"},"kind":"symbol","metadata":{"role":"symbol","symbolKind":"case","externalID":"s:9SwiftHPKE3KEMO6X25519yA2CmF","modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"X25519"}],"title":"KEM.X25519","roleHeading":"Case"},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"X25519"}]}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"]]},"sections":[],"schemaVersion":{"major":0,"minor":3,"patch":0},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/X25519":{"type":"topic","kind":"symbol","title":"KEM.X25519","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X25519","abstract":[{"type":"text","text":"X25519 - HKDF-SHA256"}],"role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"kind":"text","text":" "},{"text":"X25519","kind":"identifier"}],"url":"\/documentation\/swifthpke\/kem\/x25519"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","abstract":[{"text":"The key encapsulation mechanisms","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","role":"symbol","title":"KEM","type":"topic","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"KEM","kind":"identifier"}],"navigatorTitle":[{"text":"KEM","kind":"identifier"}]}}} \ No newline at end of file +{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"]]},"schemaVersion":{"minor":3,"major":0,"patch":0},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"X25519","kind":"identifier"}],"languages":["swift"],"platforms":["macOS"]}]}],"sections":[],"kind":"symbol","variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kem\/x25519"]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X25519"},"metadata":{"roleHeading":"Case","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"X25519","kind":"identifier"}],"symbolKind":"case","role":"symbol","externalID":"s:9SwiftHPKE3KEMO6X25519yA2CmF","modules":[{"name":"SwiftHPKE"}],"title":"KEM.X25519"},"abstract":[{"text":"X25519 - HKDF-SHA256","type":"text"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/X25519":{"abstract":[{"text":"X25519 - HKDF-SHA256","type":"text"}],"fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"text":"X25519","kind":"identifier"}],"title":"KEM.X25519","kind":"symbol","role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/kem\/x25519","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X25519"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","url":"\/documentation\/swifthpke\/kem","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"kind":"identifier","text":"KEM"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"kind":"symbol","title":"KEM","abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"role":"symbol","type":"topic"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/kem/x448.json b/docs/data/documentation/swifthpke/kem/x448.json index 0204073..1a26252 100644 --- a/docs/data/documentation/swifthpke/kem/x448.json +++ b/docs/data/documentation/swifthpke/kem/x448.json @@ -1 +1 @@ -{"metadata":{"fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"X448","kind":"identifier"}],"modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE3KEMO4X448yA2CmF","title":"KEM.X448","role":"symbol","symbolKind":"case","roleHeading":"Case"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kem\/x448"]}],"abstract":[{"text":"X448 - HKDF-SHA512","type":"text"}],"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"]]},"schemaVersion":{"major":0,"minor":3,"patch":0},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"X448","kind":"identifier"}],"languages":["swift"],"platforms":["macOS"]}]}],"kind":"symbol","identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X448","interfaceLanguage":"swift"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","abstract":[{"text":"The key encapsulation mechanisms","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","role":"symbol","title":"KEM","type":"topic","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"KEM","kind":"identifier"}],"navigatorTitle":[{"text":"KEM","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/X448":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X448","type":"topic","role":"symbol","abstract":[{"text":"X448 - HKDF-SHA512","type":"text"}],"title":"KEM.X448","kind":"symbol","url":"\/documentation\/swifthpke\/kem\/x448","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"X448","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"}}} \ No newline at end of file +{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/kem\/x448"]}],"metadata":{"externalID":"s:9SwiftHPKE3KEMO4X448yA2CmF","roleHeading":"Case","modules":[{"name":"SwiftHPKE"}],"symbolKind":"case","title":"KEM.X448","role":"symbol","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"X448","kind":"identifier"}]},"schemaVersion":{"patch":0,"major":0,"minor":3},"kind":"symbol","abstract":[{"text":"X448 - HKDF-SHA512","type":"text"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"X448","kind":"identifier"}]}]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X448"},"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM/X448":{"type":"topic","kind":"symbol","abstract":[{"type":"text","text":"X448 - HKDF-SHA512"}],"url":"\/documentation\/swifthpke\/kem\/x448","title":"KEM.X448","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM\/X448","role":"symbol","fragments":[{"kind":"keyword","text":"case"},{"text":" ","kind":"text"},{"text":"X448","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","url":"\/documentation\/swifthpke\/kem","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"kind":"identifier","text":"KEM"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"kind":"symbol","title":"KEM","abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"role":"symbol","type":"topic"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/keymanagement.json b/docs/data/documentation/swifthpke/keymanagement.json index c94bad2..0f979dd 100644 --- a/docs/data/documentation/swifthpke/keymanagement.json +++ b/docs/data/documentation/swifthpke/keymanagement.json @@ -1 +1 @@ -{"schemaVersion":{"patch":0,"minor":3,"major":0},"abstract":[{"type":"text","text":"Creating new keys and loading exsisting keys"}],"kind":"article","identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","interfaceLanguage":"swift"},"variants":[{"paths":["\/documentation\/swifthpke\/keymanagement"],"traits":[{"interfaceLanguage":"swift"}]}],"sections":[],"metadata":{"title":"Key Management","roleHeading":"Article","role":"article","modules":[{"name":"SwiftHPKE"}]},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"seeAlsoSections":[{"title":"Additional Information","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References"],"generated":true}],"primaryContentSections":[{"kind":"content","content":[{"anchor":"","text":"","type":"heading","level":2},{"anchor":"Create-new-Keys","text":"Create new Keys","type":"heading","level":3},{"inlineContent":[{"type":"text","text":"Given a "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","type":"reference","isActive":true},{"text":" instance it is possible to generate new ","type":"text"},{"type":"reference","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","isActive":true},{"type":"text","text":"’s and "},{"type":"reference","isActive":true,"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"},{"text":"’s.","type":"text"}],"type":"paragraph"},{"type":"codeListing","code":["import SwiftHPKE","","let suite = CipherSuite(kem: .X25519, kdf: .KDF256, aead: .CHACHAPOLY)","let (pubKey, privKey) = try suite.makeKeyPair()","","\/\/ See the key ASN1 structures","","print(pubKey)","print(privKey)"],"syntax":"swift"},{"type":"paragraph","inlineContent":[{"text":"giving (for example):","type":"text"}]},{"syntax":"swift","code":["Sequence (2):"," Sequence (1):"," Object Identifier: 1.3.101.110"," Bit String (256): 11100111 11100111 00010111 11110101 10101000 10010101 01001010 00100010 00011010 10001001 11001011 11010001 11101101 10000101 01110101 11011111 11010110 00001101 01001110 10100100 00111011 00110100 01110000 01011000 00111111 01011011 10001010 11111010 01101000 10010011 10100001 00001101","","Sequence (3):"," Integer: 0"," Sequence (1):"," Object Identifier: 1.3.101.110"," Octet String (34): 04 20 b0 e5 94 7d f8 72 04 8f 90 79 5f d5 b7 e4 6e ca 56 18 58 30 2e 4e 79 83 d6 46 bb 42 70 2a 34 68"],"type":"codeListing"},{"text":"Load existing Keys","type":"heading","anchor":"Load-existing-Keys","level":3},{"inlineContent":[{"text":"It is possible to load existing keys from their PEM encodings or DER encodings.","type":"text"}],"type":"paragraph"},{"code":["import SwiftHPKE","","\/\/ Public key encoding - curve P384","let pubKeyPem =","\"\"\"","-----BEGIN PUBLIC KEY-----","MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEQW\/MahMwMTFjwY95uOEdfBVC7HrQhTGG","TwxiPlgDiARqC6y6EQ1Ajkuhe4A02WOltRYQRXKytzspOR25UfgtagURAwxVFYzR","9cmi6FRmvvq\/Tsigd\/dAi4FNjniR7\/Pg","-----END PUBLIC KEY-----","\"\"\"","let pubKey = try PublicKey(pem: pubKeyPem)","","\/\/ Private key encoding - curve P384","let privKeyPem =","\"\"\"","-----BEGIN PRIVATE KEY-----","MIG\/AgEAMBAGByqGSM49AgEGBSuBBAAiBIGnMIGkAgEBBDBmpNziSYmGoWwl7apJ","M9ZdDBxkJqmxMScHGXG45ZQXSv7fIuJlsSwxK76nUiiO7gigBwYFK4EEACKhZANi","AARBb8xqEzAxMWPBj3m44R18FULsetCFMYZPDGI+WAOIBGoLrLoRDUCOS6F7gDTZ","Y6W1FhBFcrK3Oyk5HblR+C1qBREDDFUVjNH1yaLoVGa++r9OyKB390CLgU2OeJHv","8+A=","-----END PRIVATE KEY-----","\"\"\"","let privKey = try PrivateKey(pem: privKeyPem)","","\/\/ See the key ASN1 structures","","print(pubKey)","print(privKey)"],"syntax":"swift","type":"codeListing"},{"type":"paragraph","inlineContent":[{"type":"text","text":"giving:"}]},{"syntax":"swift","code":["Sequence (2):"," Sequence (2):"," Object Identifier: 1.2.840.10045.2.1"," Object Identifier: 1.3.132.0.34"," Bit String (776): 00000100 01000001 01101111 11001100 01101010 00010011 00110000 00110001 00110001 01100011 11000001 10001111 01111001 10111000 11100001 00011101 01111100 00010101 01000010 11101100 01111010 11010000 10000101 00110001 10000110 01001111 00001100 01100010 00111110 01011000 00000011 10001000 00000100 01101010 00001011 10101100 10111010 00010001 00001101 01000000 10001110 01001011 10100001 01111011 10000000 00110100 11011001 01100011 10100101 10110101 00010110 00010000 01000101 01110010 10110010 10110111 00111011 00101001 00111001 00011101 10111001 01010001 11111000 00101101 01101010 00000101 00010001 00000011 00001100 01010101 00010101 10001100 11010001 11110101 11001001 10100010 11101000 01010100 01100110 10111110 11111010 10111111 01001110 11001000 10100000 01110111 11110111 01000000 10001011 10000001 01001101 10001110 01111000 10010001 11101111 11110011 11100000","","Sequence (3):"," Integer: 0"," Sequence (2):"," Object Identifier: 1.2.840.10045.2.1"," Object Identifier: 1.3.132.0.34"," Octet String (167): 30 81 a4 02 01 01 04 30 66 a4 dc e2 49 89 86 a1 6c 25 ed aa 49 33 d6 5d 0c 1c 64 26 a9 b1 31 27 07 19 71 b8 e5 94 17 4a fe df 22 e2 65 b1 2c 31 2b be a7 52 28 8e ee 08 a0 07 06 05 2b 81 04 00 22 a1 64 03 62 00 04 41 6f cc 6a 13 30 31 31 63 c1 8f 79 b8 e1 1d 7c 15 42 ec 7a d0 85 31 86 4f 0c 62 3e 58 03 88 04 6a 0b ac ba 11 0d 40 8e 4b a1 7b 80 34 d9 63 a5 b5 16 10 45 72 b2 b7 3b 29 39 1d b9 51 f8 2d 6a 05 11 03 0c 55 15 8c d1 f5 c9 a2 e8 54 66 be fa bf 4e c8 a0 77 f7 40 8b 81 4d 8e 78 91 ef f3 e0"],"type":"codeListing"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Performance":{"kind":"article","url":"\/documentation\/swifthpke\/performance","role":"article","abstract":[{"text":"Encryption and decryption speed","type":"text"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","title":"Performance"},"doc://SwiftHPKE/documentation/SwiftHPKE/SecretExport":{"title":"Secret Export","url":"\/documentation\/swifthpke\/secretexport","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","abstract":[{"text":"Creating secret messages","type":"text"}],"type":"topic","role":"article","kind":"article"},"doc://SwiftHPKE/documentation/SwiftHPKE/References":{"abstract":[{"type":"text","text":"Algorithms from the following books and papers have been used in the implementation"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References","role":"article","kind":"article","title":"References","type":"topic","url":"\/documentation\/swifthpke\/references"},"doc://SwiftHPKE/documentation/SwiftHPKE/CryptoKit":{"kind":"article","url":"\/documentation\/swifthpke\/cryptokit","role":"article","abstract":[{"text":"SwiftHPKE is compatible with Apple’s CryptoKit framework","type":"text"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","title":"CryptoKit Compatibility"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"}}} \ No newline at end of file +{"schemaVersion":{"major":0,"patch":0,"minor":3},"primaryContentSections":[{"content":[{"text":"","type":"heading","anchor":"","level":2},{"text":"Create new Keys","level":3,"type":"heading","anchor":"Create-new-Keys"},{"inlineContent":[{"text":"Given a ","type":"text"},{"type":"reference","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","isActive":true},{"text":" instance it is possible to generate new ","type":"text"},{"type":"reference","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","isActive":true},{"text":"’s and ","type":"text"},{"isActive":true,"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","type":"reference"},{"type":"text","text":"’s."}],"type":"paragraph"},{"type":"codeListing","syntax":"swift","code":["import SwiftHPKE","","let suite = CipherSuite(kem: .X25519, kdf: .KDF256, aead: .CHACHAPOLY)","let (pubKey, privKey) = try suite.makeKeyPair()","","\/\/ See the key ASN1 structures","","print(pubKey)","print(privKey)"]},{"type":"paragraph","inlineContent":[{"text":"giving (for example):","type":"text"}]},{"syntax":"swift","code":["Sequence (2):"," Sequence (1):"," Object Identifier: 1.3.101.110"," Bit String (256): 11100111 11100111 00010111 11110101 10101000 10010101 01001010 00100010 00011010 10001001 11001011 11010001 11101101 10000101 01110101 11011111 11010110 00001101 01001110 10100100 00111011 00110100 01110000 01011000 00111111 01011011 10001010 11111010 01101000 10010011 10100001 00001101","","Sequence (3):"," Integer: 0"," Sequence (1):"," Object Identifier: 1.3.101.110"," Octet String (34): 04 20 b0 e5 94 7d f8 72 04 8f 90 79 5f d5 b7 e4 6e ca 56 18 58 30 2e 4e 79 83 d6 46 bb 42 70 2a 34 68"],"type":"codeListing"},{"text":"Load existing Keys","anchor":"Load-existing-Keys","type":"heading","level":3},{"type":"paragraph","inlineContent":[{"text":"It is possible to load existing keys from their PEM encodings or DER encodings.","type":"text"}]},{"syntax":"swift","code":["import SwiftHPKE","","\/\/ Public key encoding - curve P384","let pubKeyPem =","\"\"\"","-----BEGIN PUBLIC KEY-----","MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEQW\/MahMwMTFjwY95uOEdfBVC7HrQhTGG","TwxiPlgDiARqC6y6EQ1Ajkuhe4A02WOltRYQRXKytzspOR25UfgtagURAwxVFYzR","9cmi6FRmvvq\/Tsigd\/dAi4FNjniR7\/Pg","-----END PUBLIC KEY-----","\"\"\"","let pubKey = try PublicKey(pem: pubKeyPem)","","\/\/ Private key encoding - curve P384","let privKeyPem =","\"\"\"","-----BEGIN PRIVATE KEY-----","MIG\/AgEAMBAGByqGSM49AgEGBSuBBAAiBIGnMIGkAgEBBDBmpNziSYmGoWwl7apJ","M9ZdDBxkJqmxMScHGXG45ZQXSv7fIuJlsSwxK76nUiiO7gigBwYFK4EEACKhZANi","AARBb8xqEzAxMWPBj3m44R18FULsetCFMYZPDGI+WAOIBGoLrLoRDUCOS6F7gDTZ","Y6W1FhBFcrK3Oyk5HblR+C1qBREDDFUVjNH1yaLoVGa++r9OyKB390CLgU2OeJHv","8+A=","-----END PRIVATE KEY-----","\"\"\"","let privKey = try PrivateKey(pem: privKeyPem)","","\/\/ See the key ASN1 structures","","print(pubKey)","print(privKey)"],"type":"codeListing"},{"inlineContent":[{"type":"text","text":"giving:"}],"type":"paragraph"},{"syntax":"swift","type":"codeListing","code":["Sequence (2):"," Sequence (2):"," Object Identifier: 1.2.840.10045.2.1"," Object Identifier: 1.3.132.0.34"," Bit String (776): 00000100 01000001 01101111 11001100 01101010 00010011 00110000 00110001 00110001 01100011 11000001 10001111 01111001 10111000 11100001 00011101 01111100 00010101 01000010 11101100 01111010 11010000 10000101 00110001 10000110 01001111 00001100 01100010 00111110 01011000 00000011 10001000 00000100 01101010 00001011 10101100 10111010 00010001 00001101 01000000 10001110 01001011 10100001 01111011 10000000 00110100 11011001 01100011 10100101 10110101 00010110 00010000 01000101 01110010 10110010 10110111 00111011 00101001 00111001 00011101 10111001 01010001 11111000 00101101 01101010 00000101 00010001 00000011 00001100 01010101 00010101 10001100 11010001 11110101 11001001 10100010 11101000 01010100 01100110 10111110 11111010 10111111 01001110 11001000 10100000 01110111 11110111 01000000 10001011 10000001 01001101 10001110 01111000 10010001 11101111 11110011 11100000","","Sequence (3):"," Integer: 0"," Sequence (2):"," Object Identifier: 1.2.840.10045.2.1"," Object Identifier: 1.3.132.0.34"," Octet String (167): 30 81 a4 02 01 01 04 30 66 a4 dc e2 49 89 86 a1 6c 25 ed aa 49 33 d6 5d 0c 1c 64 26 a9 b1 31 27 07 19 71 b8 e5 94 17 4a fe df 22 e2 65 b1 2c 31 2b be a7 52 28 8e ee 08 a0 07 06 05 2b 81 04 00 22 a1 64 03 62 00 04 41 6f cc 6a 13 30 31 31 63 c1 8f 79 b8 e1 1d 7c 15 42 ec 7a d0 85 31 86 4f 0c 62 3e 58 03 88 04 6a 0b ac ba 11 0d 40 8e 4b a1 7b 80 34 d9 63 a5 b5 16 10 45 72 b2 b7 3b 29 39 1d b9 51 f8 2d 6a 05 11 03 0c 55 15 8c d1 f5 c9 a2 e8 54 66 be fa bf 4e c8 a0 77 f7 40 8b 81 4d 8e 78 91 ef f3 e0"]}],"kind":"content"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","interfaceLanguage":"swift"},"abstract":[{"text":"Creating new keys and loading exsisting keys","type":"text"}],"kind":"article","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"sections":[],"seeAlsoSections":[{"title":"Additional Information","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References"],"generated":true}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/keymanagement"]}],"metadata":{"role":"article","title":"Key Management","roleHeading":"Article","modules":[{"name":"SwiftHPKE"}]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/References":{"url":"\/documentation\/swifthpke\/references","title":"References","kind":"article","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References","abstract":[{"type":"text","text":"Algorithms from the following books and papers have been used in the implementation"}],"role":"article"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/SecretExport":{"url":"\/documentation\/swifthpke\/secretexport","title":"Secret Export","kind":"article","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","abstract":[{"type":"text","text":"Creating secret messages"}],"role":"article"},"doc://SwiftHPKE/documentation/SwiftHPKE/Performance":{"title":"Performance","abstract":[{"type":"text","text":"Encryption and decryption speed"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","role":"article","kind":"article","url":"\/documentation\/swifthpke\/performance"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/CryptoKit":{"url":"\/documentation\/swifthpke\/cryptokit","title":"CryptoKit Compatibility","kind":"article","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","abstract":[{"type":"text","text":"SwiftHPKE is compatible with Apple’s CryptoKit framework"}],"role":"article"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/performance.json b/docs/data/documentation/swifthpke/performance.json index 8f1d496..be365d9 100644 --- a/docs/data/documentation/swifthpke/performance.json +++ b/docs/data/documentation/swifthpke/performance.json @@ -1 +1 @@ -{"abstract":[{"type":"text","text":"Encryption and decryption speed"}],"schemaVersion":{"minor":3,"patch":0,"major":0},"primaryContentSections":[{"kind":"content","content":[{"level":2,"type":"heading","anchor":"","text":""},{"type":"paragraph","inlineContent":[{"text":"SwiftHPKE’s encryption and decryption performance was measured on an iMac 2021, Apple M1 chip.","type":"text"}]},{"inlineContent":[{"type":"text","text":"The time to create a "},{"type":"reference","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","isActive":true},{"type":"text","text":" and "},{"isActive":true,"type":"reference","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"},{"text":" instance in base mode is shown in the table below,","type":"text"},{"type":"text","text":" "},{"type":"text","text":"depending on the KEM type - units are milliseconds."}],"type":"paragraph"},{"alignments":["right","right","right"],"type":"table","rows":[[[{"type":"paragraph","inlineContent":[{"text":"KEM","type":"text"}]}],[{"inlineContent":[{"text":" Sender","type":"text"}],"type":"paragraph"}],[{"type":"paragraph","inlineContent":[{"type":"text","text":"Recipient "}]}]],[[{"inlineContent":[{"type":"text","text":"P256"}],"type":"paragraph"}],[{"type":"paragraph","inlineContent":[{"type":"text","text":"7 mSec"}]}],[{"inlineContent":[{"type":"text","text":"6 mSec"}],"type":"paragraph"}]],[[{"type":"paragraph","inlineContent":[{"type":"text","text":"P384"}]}],[{"inlineContent":[{"text":"20 mSec","type":"text"}],"type":"paragraph"}],[{"type":"paragraph","inlineContent":[{"type":"text","text":"17 mSec"}]}]],[[{"type":"paragraph","inlineContent":[{"text":"P521","type":"text"}]}],[{"type":"paragraph","inlineContent":[{"type":"text","text":"46 mSec"}]}],[{"inlineContent":[{"type":"text","text":"39 mSec"}],"type":"paragraph"}]],[[{"inlineContent":[{"type":"text","text":"X25519"}],"type":"paragraph"}],[{"type":"paragraph","inlineContent":[{"type":"text","text":"0.14 mSec"}]}],[{"inlineContent":[{"type":"text","text":"0.09 mSec"}],"type":"paragraph"}]],[[{"inlineContent":[{"type":"text","text":"X448"}],"type":"paragraph"}],[{"inlineContent":[{"type":"text","text":"1.1 mSec"}],"type":"paragraph"}],[{"type":"paragraph","inlineContent":[{"type":"text","text":"0.5 mSec"}]}]]],"header":"row"},{"type":"paragraph","inlineContent":[{"text":"The encryption and decryption speed in base mode, once the ","type":"text"},{"type":"codeVoice","code":"Sender"},{"type":"text","text":" or "},{"type":"codeVoice","code":"Recipient"},{"text":" instance is created,","type":"text"},{"type":"text","text":" "},{"text":"is shown in the table below, depending on the AEAD type - units are MBytes \/ Sec.","type":"text"}]},{"rows":[[[{"type":"paragraph","inlineContent":[{"type":"text","text":"AEAD"}]}],[{"inlineContent":[{"type":"text","text":" Encryption speed"}],"type":"paragraph"}],[{"inlineContent":[{"text":"Decryption speed ","type":"text"}],"type":"paragraph"}]],[[{"inlineContent":[{"type":"text","text":"AESGCM128"}],"type":"paragraph"}],[{"inlineContent":[{"type":"text","text":"3500 MB\/Sec (0.91 cycles \/ byte)"}],"type":"paragraph"}],[{"type":"paragraph","inlineContent":[{"text":"3340 MB\/Sec (0.96 cycles \/ byte)","type":"text"}]}]],[[{"inlineContent":[{"text":"AESGCM256","type":"text"}],"type":"paragraph"}],[{"type":"paragraph","inlineContent":[{"type":"text","text":"3640 MB\/Sec (0.88 cycles \/ byte)"}]}],[{"type":"paragraph","inlineContent":[{"type":"text","text":"3630 MB\/Sec (0.88 cycles \/ byte)"}]}]],[[{"type":"paragraph","inlineContent":[{"type":"text","text":"CHACHAPOLY"}]}],[{"type":"paragraph","inlineContent":[{"text":"555 MB\/Sec (5.8 cycles \/ byte)","type":"text"}]}],[{"inlineContent":[{"type":"text","text":"557 MB\/Sec (5.7 cycles \/ byte)"}],"type":"paragraph"}]]],"type":"table","alignments":["right","right","right"],"header":"row"}]}],"kind":"article","variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/performance"]}],"seeAlsoSections":[{"title":"Additional Information","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References"]}],"metadata":{"roleHeading":"Article","title":"Performance","role":"article","modules":[{"name":"SwiftHPKE"}]},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","interfaceLanguage":"swift"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/References":{"abstract":[{"type":"text","text":"Algorithms from the following books and papers have been used in the implementation"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References","role":"article","kind":"article","title":"References","type":"topic","url":"\/documentation\/swifthpke\/references"},"doc://SwiftHPKE/documentation/SwiftHPKE/KeyManagement":{"kind":"article","url":"\/documentation\/swifthpke\/keymanagement","role":"article","abstract":[{"text":"Creating new keys and loading exsisting keys","type":"text"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","title":"Key Management"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CryptoKit":{"kind":"article","url":"\/documentation\/swifthpke\/cryptokit","role":"article","abstract":[{"text":"SwiftHPKE is compatible with Apple’s CryptoKit framework","type":"text"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","title":"CryptoKit Compatibility"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"kind":"symbol","title":"Recipient","url":"\/documentation\/swifthpke\/recipient","role":"symbol","type":"topic","fragments":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Recipient"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"abstract":[{"text":"The recipient","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/SecretExport":{"title":"Secret Export","url":"\/documentation\/swifthpke\/secretexport","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","abstract":[{"text":"Creating secret messages","type":"text"}],"type":"topic","role":"article","kind":"article"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"Sender"}],"navigatorTitle":[{"text":"Sender","kind":"identifier"}],"kind":"symbol","abstract":[{"type":"text","text":"The sender"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","type":"topic","url":"\/documentation\/swifthpke\/sender","role":"symbol","title":"Sender"}}} \ No newline at end of file +{"schemaVersion":{"major":0,"minor":3,"patch":0},"seeAlsoSections":[{"title":"Additional Information","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References"]}],"sections":[],"metadata":{"title":"Performance","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Article","role":"article"},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance"},"kind":"article","primaryContentSections":[{"content":[{"level":2,"type":"heading","text":"","anchor":""},{"inlineContent":[{"type":"text","text":"SwiftHPKE’s encryption and decryption performance was measured on an iMac 2021, Apple M1 chip."}],"type":"paragraph"},{"inlineContent":[{"text":"The time to create a ","type":"text"},{"isActive":true,"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","type":"reference"},{"type":"text","text":" and "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","type":"reference","isActive":true},{"type":"text","text":" instance in base mode is shown in the table below,"},{"text":" ","type":"text"},{"text":"depending on the KEM type - units are milliseconds.","type":"text"}],"type":"paragraph"},{"rows":[[[{"type":"paragraph","inlineContent":[{"type":"text","text":"KEM"}]}],[{"type":"paragraph","inlineContent":[{"type":"text","text":" Sender"}]}],[{"type":"paragraph","inlineContent":[{"text":"Recipient ","type":"text"}]}]],[[{"type":"paragraph","inlineContent":[{"type":"text","text":"P256"}]}],[{"type":"paragraph","inlineContent":[{"type":"text","text":"7 mSec"}]}],[{"inlineContent":[{"text":"6 mSec","type":"text"}],"type":"paragraph"}]],[[{"type":"paragraph","inlineContent":[{"text":"P384","type":"text"}]}],[{"inlineContent":[{"text":"20 mSec","type":"text"}],"type":"paragraph"}],[{"inlineContent":[{"text":"17 mSec","type":"text"}],"type":"paragraph"}]],[[{"type":"paragraph","inlineContent":[{"type":"text","text":"P521"}]}],[{"inlineContent":[{"type":"text","text":"46 mSec"}],"type":"paragraph"}],[{"inlineContent":[{"text":"39 mSec","type":"text"}],"type":"paragraph"}]],[[{"type":"paragraph","inlineContent":[{"type":"text","text":"X25519"}]}],[{"type":"paragraph","inlineContent":[{"text":"0.14 mSec","type":"text"}]}],[{"type":"paragraph","inlineContent":[{"type":"text","text":"0.09 mSec"}]}]],[[{"type":"paragraph","inlineContent":[{"type":"text","text":"X448"}]}],[{"type":"paragraph","inlineContent":[{"type":"text","text":"1.1 mSec"}]}],[{"type":"paragraph","inlineContent":[{"text":"0.5 mSec","type":"text"}]}]]],"alignments":["right","right","right"],"header":"row","type":"table"},{"inlineContent":[{"text":"The encryption and decryption speed in base mode, once the ","type":"text"},{"code":"Sender","type":"codeVoice"},{"text":" or ","type":"text"},{"type":"codeVoice","code":"Recipient"},{"text":" instance is created,","type":"text"},{"type":"text","text":" "},{"type":"text","text":"is shown in the table below, depending on the AEAD type - units are MBytes \/ Sec."}],"type":"paragraph"},{"type":"table","header":"row","rows":[[[{"type":"paragraph","inlineContent":[{"type":"text","text":"AEAD"}]}],[{"type":"paragraph","inlineContent":[{"text":" Encryption speed","type":"text"}]}],[{"inlineContent":[{"text":"Decryption speed ","type":"text"}],"type":"paragraph"}]],[[{"inlineContent":[{"type":"text","text":"AESGCM128"}],"type":"paragraph"}],[{"type":"paragraph","inlineContent":[{"text":"3500 MB\/Sec (0.91 cycles \/ byte)","type":"text"}]}],[{"inlineContent":[{"text":"3340 MB\/Sec (0.96 cycles \/ byte)","type":"text"}],"type":"paragraph"}]],[[{"type":"paragraph","inlineContent":[{"text":"AESGCM256","type":"text"}]}],[{"inlineContent":[{"text":"3640 MB\/Sec (0.88 cycles \/ byte)","type":"text"}],"type":"paragraph"}],[{"inlineContent":[{"text":"3630 MB\/Sec (0.88 cycles \/ byte)","type":"text"}],"type":"paragraph"}]],[[{"inlineContent":[{"text":"CHACHAPOLY","type":"text"}],"type":"paragraph"}],[{"inlineContent":[{"type":"text","text":"555 MB\/Sec (5.8 cycles \/ byte)"}],"type":"paragraph"}],[{"inlineContent":[{"text":"557 MB\/Sec (5.7 cycles \/ byte)","type":"text"}],"type":"paragraph"}]]],"alignments":["right","right","right"]}],"kind":"content"}],"abstract":[{"type":"text","text":"Encryption and decryption speed"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/performance"]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/CryptoKit":{"url":"\/documentation\/swifthpke\/cryptokit","title":"CryptoKit Compatibility","kind":"article","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","abstract":[{"type":"text","text":"SwiftHPKE is compatible with Apple’s CryptoKit framework"}],"role":"article"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"url":"\/documentation\/swifthpke\/sender","type":"topic","abstract":[{"type":"text","text":"The sender"}],"role":"symbol","fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"Sender"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","title":"Sender","navigatorTitle":[{"kind":"identifier","text":"Sender"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KeyManagement":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","url":"\/documentation\/swifthpke\/keymanagement","kind":"article","abstract":[{"type":"text","text":"Creating new keys and loading exsisting keys"}],"type":"topic","role":"article","title":"Key Management"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"url":"\/documentation\/swifthpke\/recipient","abstract":[{"type":"text","text":"The recipient"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"text":"Recipient","kind":"identifier"}],"type":"topic","kind":"symbol","navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"title":"Recipient"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/References":{"url":"\/documentation\/swifthpke\/references","title":"References","kind":"article","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References","abstract":[{"type":"text","text":"Algorithms from the following books and papers have been used in the implementation"}],"role":"article"},"doc://SwiftHPKE/documentation/SwiftHPKE/SecretExport":{"url":"\/documentation\/swifthpke\/secretexport","title":"Secret Export","kind":"article","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","abstract":[{"type":"text","text":"Creating secret messages"}],"role":"article"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/privatekey.json b/docs/data/documentation/swifthpke/privatekey.json index 2e4c5ae..5710113 100644 --- a/docs/data/documentation/swifthpke/privatekey.json +++ b/docs/data/documentation/swifthpke/privatekey.json @@ -1 +1 @@ -{"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","interfaceLanguage":"swift"},"sections":[],"topicSections":[{"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"]},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)"],"title":"Constructors"},{"title":"Equality","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/==(_:_:)"]},{"generated":true,"title":"Default Implementations","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/Equatable-Implementations"]}],"relationshipsSections":[{"title":"Conforms To","identifiers":["doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","doc:\/\/SwiftHPKE\/SQ"],"kind":"relationships","type":"conformsTo"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}],"platforms":["macOS"]}]},{"kind":"content","content":[{"level":2,"type":"heading","anchor":"Overview","text":"Overview"},{"inlineContent":[{"text":"There are five different private key types corresponding to the five KEM’s","type":"text"}],"type":"paragraph"},{"type":"unorderedList","items":[{"content":[{"inlineContent":[{"text":"P256 - the key is a 32 byte value corresponding to a NIST curve secp256r1 private key","type":"text"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"P384 - the key is a 48 byte value corresponding to a NIST curve secp384r1 private key","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"P521 - the key is a 66 byte value corresponding to a NIST curve secp521r1 private key"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"X25519 - the key is a 32 byte value corresponding to a curve X25519 private key"}]}]},{"content":[{"inlineContent":[{"text":"X448 - the key is a 56 byte value corresponding to a curve X448 private key","type":"text"}],"type":"paragraph"}]}]}]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/privatekey"]}],"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"],"title":"Structures"}],"schemaVersion":{"patch":0,"major":0,"minor":3},"metadata":{"modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE10PrivateKeyV","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"roleHeading":"Structure","role":"symbol","title":"PrivateKey","symbolKind":"struct"},"abstract":[{"text":"The private key","type":"text"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/==(_:_:)":{"fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"=="},{"kind":"text","text":" "},{"kind":"text","text":"("},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":") -> ","kind":"text"},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey\/==(_:_:)","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/==(_:_:)","type":"topic","abstract":[{"text":"Equality of two private keys","type":"text"}],"title":"==(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/publicKey":{"title":"publicKey","abstract":[{"text":"The corresponding public key","type":"text"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","type":"topic","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"publicKey","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/privatekey\/publickey"},"doc://SwiftHPKE/s23CustomStringConvertibleP":{"title":"Swift.CustomStringConvertible","identifier":"doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","type":"unresolvable"},"doc://SwiftHPKE/SQ":{"title":"Swift.Equatable","identifier":"doc:\/\/SwiftHPKE\/SQ","type":"unresolvable"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(pem:)":{"title":"init(pem:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"pem","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"abstract":[{"type":"text","text":"Creates a PrivateKey from its PEM encoding."}],"url":"\/documentation\/swifthpke\/privatekey\/init(pem:)","role":"symbol","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/bytes":{"title":"bytes","abstract":[{"type":"text","text":"The serialized key bytes"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","type":"topic","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"url":"\/documentation\/swifthpke\/privatekey\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/Equatable-Implementations":{"abstract":[],"title":"Equatable Implementations","type":"topic","kind":"article","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/Equatable-Implementations","role":"collectionGroup","url":"\/documentation\/swifthpke\/privatekey\/equatable-implementations"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"url":"\/documentation\/swifthpke\/base64","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Base64"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","navigatorTitle":[{"text":"Base64","kind":"identifier"}],"title":"Base64","role":"symbol","kind":"symbol","abstract":[{"text":"The Base64 structure","type":"text"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/der":{"title":"der","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"abstract":[{"text":"The DER encoding of ","type":"text"},{"code":"self","type":"codeVoice"}],"url":"\/documentation\/swifthpke\/privatekey\/der","role":"symbol","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/description":{"title":"description","abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description","type":"topic","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"url":"\/documentation\/swifthpke\/privatekey\/description"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/pem":{"title":"pem","abstract":[{"type":"text","text":"The PEM base 64 encoding of "},{"code":"self","type":"codeVoice"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","type":"topic","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"url":"\/documentation\/swifthpke\/privatekey\/pem"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/asn1":{"title":"asn1","abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","type":"topic","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"asn1"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC","text":"ASN1"}],"url":"\/documentation\/swifthpke\/privatekey\/asn1"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(kem:bytes:)":{"title":"init(kem:bytes:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"kem"},{"text":": ","kind":"text"},{"text":"KEM","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO"},{"text":", ","kind":"text"},{"text":"bytes","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"abstract":[{"type":"text","text":"Creates a PrivateKey from its type and key bytes"}],"url":"\/documentation\/swifthpke\/privatekey\/init(kem:bytes:)","role":"symbol","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(der:)":{"type":"topic","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"der"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"role":"symbol","kind":"symbol","title":"init(der:)","abstract":[{"text":"Creates a PrivateKey from its DER encoding","type":"text"}],"url":"\/documentation\/swifthpke\/privatekey\/init(der:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)"}}} \ No newline at end of file +{"kind":"symbol","sections":[],"metadata":{"navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"externalID":"s:9SwiftHPKE10PrivateKeyV","role":"symbol","roleHeading":"Structure","modules":[{"name":"SwiftHPKE"}],"symbolKind":"struct","fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"text":"PrivateKey","kind":"identifier"}],"title":"PrivateKey"},"relationshipsSections":[{"type":"conformsTo","identifiers":["doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","doc:\/\/SwiftHPKE\/SQ"],"kind":"relationships","title":"Conforms To"}],"schemaVersion":{"minor":3,"major":0,"patch":0},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"abstract":[{"type":"text","text":"The private key"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"text":"PrivateKey","kind":"identifier"}]}]},{"kind":"content","content":[{"type":"heading","level":2,"anchor":"Overview","text":"Overview"},{"inlineContent":[{"type":"text","text":"There are five different private key types corresponding to the five KEM’s"}],"type":"paragraph"},{"items":[{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"P256 - the key is a 32 byte value corresponding to a NIST curve secp256r1 private key"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"P384 - the key is a 48 byte value corresponding to a NIST curve secp384r1 private key"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"P521 - the key is a 66 byte value corresponding to a NIST curve secp521r1 private key","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"X25519 - the key is a 32 byte value corresponding to a curve X25519 private key","type":"text"}]}]},{"content":[{"inlineContent":[{"text":"X448 - the key is a 56 byte value corresponding to a curve X448 private key","type":"text"}],"type":"paragraph"}]}],"type":"unorderedList"}]}],"topicSections":[{"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"]},{"title":"Constructors","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)"]},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/==(_:_:)"],"title":"Equality"},{"generated":true,"title":"Default Implementations","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/Equatable-Implementations"]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/privatekey"]}],"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"],"title":"Structures"}],"references":{"doc://SwiftHPKE/SQ":{"type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/SQ","title":"Swift.Equatable"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/bytes":{"kind":"symbol","type":"topic","title":"bytes","abstract":[{"text":"The serialized key bytes","type":"text"}],"role":"symbol","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"kind":"identifier","text":"bytes"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/privatekey\/bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/pem":{"type":"topic","kind":"symbol","title":"pem","abstract":[{"text":"The PEM base 64 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"pem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"url":"\/documentation\/swifthpke\/privatekey\/pem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(kem:bytes:)":{"type":"topic","title":"init(kem:bytes:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)","role":"symbol","kind":"symbol","abstract":[{"text":"Creates a PrivateKey from its type and key bytes","type":"text"}],"fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"kem","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"KEM","preciseIdentifier":"s:9SwiftHPKE3KEMO"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"bytes"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"url":"\/documentation\/swifthpke\/privatekey\/init(kem:bytes:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/publicKey":{"type":"topic","kind":"symbol","title":"publicKey","abstract":[{"text":"The corresponding public key","type":"text"}],"role":"symbol","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"kind":"identifier","text":"publicKey"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"}],"url":"\/documentation\/swifthpke\/privatekey\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(pem:)":{"title":"init(pem:)","type":"topic","url":"\/documentation\/swifthpke\/privatekey\/init(pem:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"pem"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"kind":"symbol","role":"symbol","abstract":[{"text":"Creates a PrivateKey from its PEM encoding.","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/description":{"type":"topic","kind":"symbol","title":"description","abstract":[{"text":"A textual representation of the ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"role":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"url":"\/documentation\/swifthpke\/privatekey\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/s23CustomStringConvertibleP":{"type":"unresolvable","identifier":"doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","title":"Swift.CustomStringConvertible"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/der":{"kind":"symbol","type":"topic","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"der"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/privatekey\/der","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","role":"symbol","abstract":[{"type":"text","text":"The DER encoding of "},{"code":"self","type":"codeVoice"}],"title":"der"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(der:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/privatekey\/init(der:)","abstract":[{"text":"Creates a PrivateKey from its DER encoding","type":"text"}],"title":"init(der:)","role":"symbol","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"text":"der","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/asn1":{"kind":"symbol","type":"topic","title":"asn1","abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"role":"symbol","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"text":"asn1","kind":"identifier"},{"kind":"text","text":": "},{"text":"ASN1","kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC"}],"url":"\/documentation\/swifthpke\/privatekey\/asn1","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/Equatable-Implementations":{"abstract":[],"type":"topic","role":"collectionGroup","title":"Equatable Implementations","kind":"article","url":"\/documentation\/swifthpke\/privatekey\/equatable-implementations","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/Equatable-Implementations"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"type":"topic","navigatorTitle":[{"text":"Base64","kind":"identifier"}],"abstract":[{"text":"The Base64 structure","type":"text"}],"title":"Base64","kind":"symbol","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"Base64","kind":"identifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","url":"\/documentation\/swifthpke\/base64"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/==(_:_:)":{"abstract":[{"type":"text","text":"Equality of two private keys"}],"role":"symbol","url":"\/documentation\/swifthpke\/privatekey\/==(_:_:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/==(_:_:)","kind":"symbol","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"==","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":") -> ","kind":"text"},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}],"title":"==(_:_:)"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/privatekey/!=(_:_:).json b/docs/data/documentation/swifthpke/privatekey/!=(_:_:).json index 2bb032b..017a4ac 100644 --- a/docs/data/documentation/swifthpke/privatekey/!=(_:_:).json +++ b/docs/data/documentation/swifthpke/privatekey/!=(_:_:).json @@ -1 +1 @@ -{"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/privatekey\/!=(_:_:)"]}],"abstract":[{"type":"text","text":"Inherited from "},{"code":"Equatable.!=(_:_:)","type":"codeVoice"},{"type":"text","text":"."}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"lhs","kind":"internalParam"},{"text":": ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"internalParam","text":"rhs"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"text":") -> ","kind":"text"},{"text":"Bool","preciseIdentifier":"s:Sb","kind":"typeIdentifier"}]}]}],"kind":"symbol","metadata":{"roleHeading":"Operator","modules":[{"name":"SwiftHPKE","relatedModules":["Swift"]}],"extendedModule":"Swift","externalID":"s:SQsE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftHPKE10PrivateKeyV","role":"symbol","symbolKind":"op","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:Sb","kind":"typeIdentifier","text":"Bool"}],"title":"!=(_:_:)"},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/!=(_:_:)","interfaceLanguage":"swift"},"schemaVersion":{"major":0,"patch":0,"minor":3},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/Equatable-Implementations"]]},"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/Equatable-Implementations":{"abstract":[],"title":"Equatable Implementations","type":"topic","kind":"article","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/Equatable-Implementations","role":"collectionGroup","url":"\/documentation\/swifthpke\/privatekey\/equatable-implementations"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/!=(_:_:)":{"fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"kind":"text","text":" "},{"text":"(","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"text":", ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}],"abstract":[],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/!=(_:_:)","type":"topic","url":"\/documentation\/swifthpke\/privatekey\/!=(_:_:)","role":"symbol","title":"!=(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"}}} \ No newline at end of file +{"abstract":[{"text":"Inherited from ","type":"text"},{"code":"Equatable.!=(_:_:)","type":"codeVoice"},{"type":"text","text":"."}],"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/Equatable-Implementations"]]},"schemaVersion":{"major":0,"patch":0,"minor":3},"metadata":{"externalID":"s:SQsE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftHPKE10PrivateKeyV","role":"symbol","extendedModule":"Swift","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:Sb","kind":"typeIdentifier","text":"Bool"}],"symbolKind":"op","title":"!=(_:_:)","roleHeading":"Operator","modules":[{"relatedModules":["Swift"],"name":"SwiftHPKE"}]},"variants":[{"paths":["\/documentation\/swifthpke\/privatekey\/!=(_:_:)"],"traits":[{"interfaceLanguage":"swift"}]}],"primaryContentSections":[{"declarations":[{"tokens":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"text":" ","kind":"text"},{"kind":"text","text":"("},{"text":"lhs","kind":"internalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"text":", ","kind":"text"},{"kind":"internalParam","text":"rhs"},{"text":": ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"}],"kind":"symbol","identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/!=(_:_:)"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/Equatable-Implementations":{"abstract":[],"type":"topic","role":"collectionGroup","title":"Equatable Implementations","kind":"article","url":"\/documentation\/swifthpke\/privatekey\/equatable-implementations","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/Equatable-Implementations"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/!=(_:_:)":{"fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"kind":"text","text":" "},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"text":"Bool","preciseIdentifier":"s:Sb","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/privatekey\/!=(_:_:)","kind":"symbol","type":"topic","abstract":[],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/!=(_:_:)","role":"symbol","title":"!=(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/privatekey/==(_:_:).json b/docs/data/documentation/swifthpke/privatekey/==(_:_:).json index fcf7d40..f22a39f 100644 --- a/docs/data/documentation/swifthpke/privatekey/==(_:_:).json +++ b/docs/data/documentation/swifthpke/privatekey/==(_:_:).json @@ -1 +1 @@ -{"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/privatekey\/==(_:_:)"]}],"kind":"symbol","abstract":[{"text":"Equality of two private keys","type":"text"}],"schemaVersion":{"minor":3,"patch":0,"major":0},"sections":[],"metadata":{"roleHeading":"Operator","symbolKind":"op","modules":[{"name":"SwiftHPKE"}],"role":"symbol","title":"==(_:_:)","fragments":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"=="},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:Sb","text":"Bool"}],"externalID":"s:9SwiftHPKE10PrivateKeyV2eeoiySbAC_ACtFZ"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"==","kind":"identifier"},{"kind":"text","text":" "},{"text":"(","kind":"text"},{"text":"key1","kind":"internalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"key2","kind":"internalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"},{"text":") -> ","kind":"text"},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}],"platforms":["macOS"]}]},{"kind":"parameters","parameters":[{"content":[{"type":"paragraph","inlineContent":[{"text":"a private key","type":"text"}]}],"name":"key1"},{"name":"key2","content":[{"inlineContent":[{"type":"text","text":"a private key"}],"type":"paragraph"}]}]},{"content":[{"text":"Return Value","type":"heading","level":2,"anchor":"return-value"},{"inlineContent":[{"type":"text","text":""},{"type":"codeVoice","code":"true"},{"text":" if key1 and key2 are equal, ","type":"text"},{"type":"codeVoice","code":"false"},{"text":" otherwise","type":"text"}],"type":"paragraph"}],"kind":"content"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/==(_:_:)"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/==(_:_:)":{"fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"=="},{"kind":"text","text":" "},{"kind":"text","text":"("},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":") -> ","kind":"text"},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}],"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey\/==(_:_:)","role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/==(_:_:)","type":"topic","abstract":[{"text":"Equality of two private keys","type":"text"}],"title":"==(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"}}} \ No newline at end of file +{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/==(_:_:)"},"metadata":{"role":"symbol","externalID":"s:9SwiftHPKE10PrivateKeyV2eeoiySbAC_ACtFZ","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"=="},{"text":" ","kind":"text"},{"kind":"text","text":"("},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:Sb","text":"Bool"}],"title":"==(_:_:)","roleHeading":"Operator","modules":[{"name":"SwiftHPKE"}],"symbolKind":"op"},"sections":[],"schemaVersion":{"minor":3,"patch":0,"major":0},"variants":[{"paths":["\/documentation\/swifthpke\/privatekey\/==(_:_:)"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","abstract":[{"type":"text","text":"Equality of two private keys"}],"primaryContentSections":[{"declarations":[{"tokens":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"==","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"key1","kind":"internalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"key2","kind":"internalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","text":"PrivateKey"},{"kind":"text","text":") -> "},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"key1","content":[{"type":"paragraph","inlineContent":[{"text":"a private key","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"a private key","type":"text"}]}],"name":"key2"}]},{"content":[{"level":2,"type":"heading","anchor":"return-value","text":"Return Value"},{"type":"paragraph","inlineContent":[{"type":"text","text":""},{"type":"codeVoice","code":"true"},{"text":" if key1 and key2 are equal, ","type":"text"},{"type":"codeVoice","code":"false"},{"text":" otherwise","type":"text"}]}],"kind":"content"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/==(_:_:)":{"abstract":[{"type":"text","text":"Equality of two private keys"}],"role":"symbol","url":"\/documentation\/swifthpke\/privatekey\/==(_:_:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/==(_:_:)","kind":"symbol","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"==","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":") -> ","kind":"text"},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}],"title":"==(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/privatekey/asn1.json b/docs/data/documentation/swifthpke/privatekey/asn1.json index 868e431..008ffa2 100644 --- a/docs/data/documentation/swifthpke/privatekey/asn1.json +++ b/docs/data/documentation/swifthpke/privatekey/asn1.json @@ -1 +1 @@ -{"kind":"symbol","schemaVersion":{"major":0,"minor":3,"patch":0},"variants":[{"paths":["\/documentation\/swifthpke\/privatekey\/asn1"],"traits":[{"interfaceLanguage":"swift"}]}],"sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","interfaceLanguage":"swift"},"abstract":[{"type":"text","text":"The ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"seeAlsoSections":[{"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"],"generated":true}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"metadata":{"role":"symbol","symbolKind":"property","externalID":"s:9SwiftHPKE10PrivateKeyV4asn14ASN1AECvp","modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"asn1","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:4ASN1AAC","kind":"typeIdentifier","text":"ASN1"}],"roleHeading":"Instance Property","title":"asn1"},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"asn1","kind":"identifier"},{"kind":"text","text":": "},{"text":"ASN1","kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC"},{"kind":"text","text":" { "},{"text":"get","kind":"keyword"},{"text":" }","kind":"text"}],"languages":["swift"],"platforms":["macOS"]}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/asn1":{"title":"asn1","abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","type":"topic","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"asn1"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC","text":"ASN1"}],"url":"\/documentation\/swifthpke\/privatekey\/asn1"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/pem":{"title":"pem","abstract":[{"type":"text","text":"The PEM base 64 encoding of "},{"code":"self","type":"codeVoice"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","type":"topic","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"url":"\/documentation\/swifthpke\/privatekey\/pem"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/publicKey":{"title":"publicKey","abstract":[{"text":"The corresponding public key","type":"text"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","type":"topic","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"publicKey","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/privatekey\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/description":{"title":"description","abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description","type":"topic","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"url":"\/documentation\/swifthpke\/privatekey\/description"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/der":{"title":"der","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"abstract":[{"text":"The DER encoding of ","type":"text"},{"code":"self","type":"codeVoice"}],"url":"\/documentation\/swifthpke\/privatekey\/der","role":"symbol","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/bytes":{"title":"bytes","abstract":[{"type":"text","text":"The serialized key bytes"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","type":"topic","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"url":"\/documentation\/swifthpke\/privatekey\/bytes"}}} \ No newline at end of file +{"schemaVersion":{"patch":0,"minor":3,"major":0},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1"},"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"asn1","kind":"identifier"},{"text":": ","kind":"text"},{"text":"ASN1","preciseIdentifier":"s:4ASN1AAC","kind":"typeIdentifier"},{"text":" { ","kind":"text"},{"kind":"keyword","text":"get"},{"kind":"text","text":" }"}]}],"kind":"declarations"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/privatekey\/asn1"]}],"metadata":{"symbolKind":"property","roleHeading":"Instance Property","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"asn1"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC","text":"ASN1"}],"externalID":"s:9SwiftHPKE10PrivateKeyV4asn14ASN1AECvp","role":"symbol","modules":[{"name":"SwiftHPKE"}],"title":"asn1"},"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"kind":"symbol","seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"],"title":"Properties","generated":true}],"abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/publicKey":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"}],"abstract":[{"type":"text","text":"The corresponding public key"}],"kind":"symbol","type":"topic","url":"\/documentation\/swifthpke\/privatekey\/publickey","role":"symbol","title":"publicKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/pem":{"type":"topic","kind":"symbol","title":"pem","abstract":[{"text":"The PEM base 64 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"pem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"url":"\/documentation\/swifthpke\/privatekey\/pem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/der":{"kind":"symbol","type":"topic","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"der"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/privatekey\/der","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","role":"symbol","abstract":[{"type":"text","text":"The DER encoding of "},{"code":"self","type":"codeVoice"}],"title":"der"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/description":{"type":"topic","kind":"symbol","title":"description","abstract":[{"text":"A textual representation of the ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"role":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"url":"\/documentation\/swifthpke\/privatekey\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/asn1":{"kind":"symbol","type":"topic","title":"asn1","abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"role":"symbol","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"text":"asn1","kind":"identifier"},{"kind":"text","text":": "},{"text":"ASN1","kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC"}],"url":"\/documentation\/swifthpke\/privatekey\/asn1","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/bytes":{"kind":"symbol","type":"topic","title":"bytes","abstract":[{"text":"The serialized key bytes","type":"text"}],"role":"symbol","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"kind":"identifier","text":"bytes"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/privatekey\/bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/privatekey/bytes.json b/docs/data/documentation/swifthpke/privatekey/bytes.json index 5c6890a..a9cfea2 100644 --- a/docs/data/documentation/swifthpke/privatekey/bytes.json +++ b/docs/data/documentation/swifthpke/privatekey/bytes.json @@ -1 +1 @@ -{"metadata":{"title":"bytes","symbolKind":"property","roleHeading":"Instance Property","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"text":"bytes","kind":"identifier"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"role":"symbol","externalID":"s:9SwiftHPKE10PrivateKeyV5bytesSays5UInt8VGvp","modules":[{"name":"SwiftHPKE"}]},"sections":[],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes"},"schemaVersion":{"major":0,"minor":3,"patch":0},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"abstract":[{"type":"text","text":"The serialized key bytes"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/privatekey\/bytes"]}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"bytes"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}]}],"kind":"declarations"}],"kind":"symbol","seeAlsoSections":[{"generated":true,"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/description":{"title":"description","abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description","type":"topic","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"url":"\/documentation\/swifthpke\/privatekey\/description"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/publicKey":{"title":"publicKey","abstract":[{"text":"The corresponding public key","type":"text"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","type":"topic","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"publicKey","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/privatekey\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/bytes":{"title":"bytes","abstract":[{"type":"text","text":"The serialized key bytes"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","type":"topic","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"url":"\/documentation\/swifthpke\/privatekey\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/asn1":{"title":"asn1","abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","type":"topic","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"asn1"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC","text":"ASN1"}],"url":"\/documentation\/swifthpke\/privatekey\/asn1"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/pem":{"title":"pem","abstract":[{"type":"text","text":"The PEM base 64 encoding of "},{"code":"self","type":"codeVoice"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","type":"topic","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"url":"\/documentation\/swifthpke\/privatekey\/pem"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/der":{"title":"der","abstract":[{"text":"The DER encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","type":"topic","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"der"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"url":"\/documentation\/swifthpke\/privatekey\/der"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"title":"Bytes","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","fragments":[{"text":"typealias","kind":"keyword"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"url":"\/documentation\/swifthpke\/bytes","role":"symbol","navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"}}} \ No newline at end of file +{"abstract":[{"type":"text","text":"The serialized key bytes"}],"sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/privatekey\/bytes"]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"schemaVersion":{"major":0,"patch":0,"minor":3},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes"},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"}]}]}],"seeAlsoSections":[{"generated":true,"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"]}],"kind":"symbol","metadata":{"roleHeading":"Instance Property","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"symbolKind":"property","role":"symbol","title":"bytes","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE10PrivateKeyV5bytesSays5UInt8VGvp"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/der":{"kind":"symbol","type":"topic","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"der"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/privatekey\/der","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","role":"symbol","abstract":[{"type":"text","text":"The DER encoding of "},{"code":"self","type":"codeVoice"}],"title":"der"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/asn1":{"kind":"symbol","type":"topic","title":"asn1","abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"role":"symbol","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"text":"asn1","kind":"identifier"},{"kind":"text","text":": "},{"text":"ASN1","kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC"}],"url":"\/documentation\/swifthpke\/privatekey\/asn1","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/bytes":{"kind":"symbol","type":"topic","title":"bytes","abstract":[{"text":"The serialized key bytes","type":"text"}],"role":"symbol","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"kind":"identifier","text":"bytes"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/privatekey\/bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/description":{"type":"topic","kind":"symbol","title":"description","abstract":[{"text":"A textual representation of the ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"role":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"url":"\/documentation\/swifthpke\/privatekey\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/pem":{"type":"topic","kind":"symbol","title":"pem","abstract":[{"text":"The PEM base 64 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"pem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"url":"\/documentation\/swifthpke\/privatekey\/pem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/publicKey":{"type":"topic","kind":"symbol","title":"publicKey","abstract":[{"text":"The corresponding public key","type":"text"}],"role":"symbol","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"kind":"identifier","text":"publicKey"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"}],"url":"\/documentation\/swifthpke\/privatekey\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/privatekey/der.json b/docs/data/documentation/swifthpke/privatekey/der.json index f5af5b3..564e2f7 100644 --- a/docs/data/documentation/swifthpke/privatekey/der.json +++ b/docs/data/documentation/swifthpke/privatekey/der.json @@ -1 +1 @@ -{"metadata":{"modules":[{"name":"SwiftHPKE"}],"title":"der","roleHeading":"Instance Property","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"symbolKind":"property","role":"symbol","externalID":"s:9SwiftHPKE10PrivateKeyV3derSays5UInt8VGvp"},"abstract":[{"type":"text","text":"The DER encoding of "},{"code":"self","type":"codeVoice"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","interfaceLanguage":"swift"},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"der"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":" { ","kind":"text"},{"text":"get","kind":"keyword"},{"kind":"text","text":" }"}],"languages":["swift"]}],"kind":"declarations"}],"variants":[{"paths":["\/documentation\/swifthpke\/privatekey\/der"],"traits":[{"interfaceLanguage":"swift"}]}],"sections":[],"schemaVersion":{"major":0,"minor":3,"patch":0},"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"seeAlsoSections":[{"generated":true,"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/der":{"title":"der","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"abstract":[{"text":"The DER encoding of ","type":"text"},{"code":"self","type":"codeVoice"}],"url":"\/documentation\/swifthpke\/privatekey\/der","role":"symbol","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/description":{"title":"description","abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description","type":"topic","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"url":"\/documentation\/swifthpke\/privatekey\/description"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/pem":{"title":"pem","abstract":[{"type":"text","text":"The PEM base 64 encoding of "},{"code":"self","type":"codeVoice"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","type":"topic","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"url":"\/documentation\/swifthpke\/privatekey\/pem"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/asn1":{"title":"asn1","abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","type":"topic","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"asn1"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC","text":"ASN1"}],"url":"\/documentation\/swifthpke\/privatekey\/asn1"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/publicKey":{"title":"publicKey","abstract":[{"text":"The corresponding public key","type":"text"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","type":"topic","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"publicKey","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/privatekey\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"title":"Bytes","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","fragments":[{"text":"typealias","kind":"keyword"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"url":"\/documentation\/swifthpke\/bytes","role":"symbol","navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/bytes":{"title":"bytes","abstract":[{"type":"text","text":"The serialized key bytes"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","type":"topic","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"url":"\/documentation\/swifthpke\/privatekey\/bytes"}}} \ No newline at end of file +{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"kind":"symbol","seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"],"title":"Properties"}],"sections":[],"schemaVersion":{"minor":3,"major":0,"patch":0},"metadata":{"fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"title":"der","role":"symbol","symbolKind":"property","externalID":"s:9SwiftHPKE10PrivateKeyV3derSays5UInt8VGvp","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Instance Property"},"abstract":[{"text":"The DER encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"der"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":" { "},{"kind":"keyword","text":"get"},{"text":" }","kind":"text"}],"languages":["swift"],"platforms":["macOS"]}]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/privatekey\/der"]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","interfaceLanguage":"swift"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/bytes":{"kind":"symbol","type":"topic","title":"bytes","abstract":[{"text":"The serialized key bytes","type":"text"}],"role":"symbol","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"kind":"identifier","text":"bytes"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/privatekey\/bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/description":{"type":"topic","kind":"symbol","title":"description","abstract":[{"text":"A textual representation of the ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"role":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"url":"\/documentation\/swifthpke\/privatekey\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/der":{"kind":"symbol","type":"topic","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"der"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/privatekey\/der","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","role":"symbol","abstract":[{"type":"text","text":"The DER encoding of "},{"code":"self","type":"codeVoice"}],"title":"der"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/pem":{"type":"topic","kind":"symbol","title":"pem","abstract":[{"text":"The PEM base 64 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"pem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"url":"\/documentation\/swifthpke\/privatekey\/pem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/asn1":{"kind":"symbol","type":"topic","title":"asn1","abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"role":"symbol","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"text":"asn1","kind":"identifier"},{"kind":"text","text":": "},{"text":"ASN1","kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC"}],"url":"\/documentation\/swifthpke\/privatekey\/asn1","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/publicKey":{"type":"topic","kind":"symbol","title":"publicKey","abstract":[{"text":"The corresponding public key","type":"text"}],"role":"symbol","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"kind":"identifier","text":"publicKey"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"}],"url":"\/documentation\/swifthpke\/privatekey\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/privatekey/description.json b/docs/data/documentation/swifthpke/privatekey/description.json index cd5376e..563e43c 100644 --- a/docs/data/documentation/swifthpke/privatekey/description.json +++ b/docs/data/documentation/swifthpke/privatekey/description.json @@ -1 +1 @@ -{"kind":"symbol","sections":[],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"text":" { ","kind":"text"},{"kind":"keyword","text":"get"},{"text":" }","kind":"text"}]}]}],"variants":[{"paths":["\/documentation\/swifthpke\/privatekey\/description"],"traits":[{"interfaceLanguage":"swift"}]}],"seeAlsoSections":[{"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der"],"generated":true}],"metadata":{"title":"description","symbolKind":"property","role":"symbol","roleHeading":"Instance Property","externalID":"s:9SwiftHPKE10PrivateKeyV11descriptionSSvp","modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"description"},{"kind":"text","text":": "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}]},"schemaVersion":{"minor":3,"patch":0,"major":0},"abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"type":"codeVoice","code":"self"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/pem":{"title":"pem","abstract":[{"type":"text","text":"The PEM base 64 encoding of "},{"code":"self","type":"codeVoice"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","type":"topic","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"url":"\/documentation\/swifthpke\/privatekey\/pem"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/bytes":{"title":"bytes","abstract":[{"type":"text","text":"The serialized key bytes"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","type":"topic","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"url":"\/documentation\/swifthpke\/privatekey\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/description":{"title":"description","abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description","type":"topic","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"url":"\/documentation\/swifthpke\/privatekey\/description"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/publicKey":{"title":"publicKey","abstract":[{"text":"The corresponding public key","type":"text"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","type":"topic","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"publicKey","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/privatekey\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/der":{"title":"der","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"abstract":[{"text":"The DER encoding of ","type":"text"},{"code":"self","type":"codeVoice"}],"url":"\/documentation\/swifthpke\/privatekey\/der","role":"symbol","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/asn1":{"title":"asn1","abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","type":"topic","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"asn1"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC","text":"ASN1"}],"url":"\/documentation\/swifthpke\/privatekey\/asn1"}}} \ No newline at end of file +{"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"abstract":[{"text":"A textual representation of the ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der"],"generated":true,"title":"Properties"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":" { "},{"text":"get","kind":"keyword"},{"text":" }","kind":"text"}]}]}],"kind":"symbol","variants":[{"paths":["\/documentation\/swifthpke\/privatekey\/description"],"traits":[{"interfaceLanguage":"swift"}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"metadata":{"title":"description","roleHeading":"Instance Property","symbolKind":"property","role":"symbol","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE10PrivateKeyV11descriptionSSvp","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"}]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/bytes":{"kind":"symbol","type":"topic","title":"bytes","abstract":[{"text":"The serialized key bytes","type":"text"}],"role":"symbol","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"kind":"identifier","text":"bytes"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/privatekey\/bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/description":{"type":"topic","kind":"symbol","title":"description","abstract":[{"text":"A textual representation of the ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"role":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"url":"\/documentation\/swifthpke\/privatekey\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/publicKey":{"type":"topic","kind":"symbol","title":"publicKey","abstract":[{"text":"The corresponding public key","type":"text"}],"role":"symbol","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"kind":"identifier","text":"publicKey"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"}],"url":"\/documentation\/swifthpke\/privatekey\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/pem":{"type":"topic","kind":"symbol","title":"pem","abstract":[{"text":"The PEM base 64 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"pem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"url":"\/documentation\/swifthpke\/privatekey\/pem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/asn1":{"kind":"symbol","type":"topic","title":"asn1","abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"role":"symbol","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"text":"asn1","kind":"identifier"},{"kind":"text","text":": "},{"text":"ASN1","kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC"}],"url":"\/documentation\/swifthpke\/privatekey\/asn1","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/der":{"kind":"symbol","type":"topic","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"der"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/privatekey\/der","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","role":"symbol","abstract":[{"type":"text","text":"The DER encoding of "},{"code":"self","type":"codeVoice"}],"title":"der"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/privatekey/equatable-implementations.json b/docs/data/documentation/swifthpke/privatekey/equatable-implementations.json index 88c36b1..6be11bb 100644 --- a/docs/data/documentation/swifthpke/privatekey/equatable-implementations.json +++ b/docs/data/documentation/swifthpke/privatekey/equatable-implementations.json @@ -1 +1 @@ -{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/privatekey\/equatable-implementations"]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/Equatable-Implementations"},"metadata":{"role":"collectionGroup","modules":[{"name":"SwiftHPKE"}],"roleHeading":"API Collection","title":"Equatable Implementations"},"topicSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/!=(_:_:)"],"title":"Operators"}],"schemaVersion":{"major":0,"patch":0,"minor":3},"sections":[],"kind":"article","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/!=(_:_:)":{"fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"kind":"text","text":" "},{"text":"(","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"text":", ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}],"abstract":[],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/!=(_:_:)","type":"topic","url":"\/documentation\/swifthpke\/privatekey\/!=(_:_:)","role":"symbol","title":"!=(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"}}} \ No newline at end of file +{"schemaVersion":{"minor":3,"major":0,"patch":0},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"metadata":{"modules":[{"name":"SwiftHPKE"}],"title":"Equatable Implementations","roleHeading":"API Collection","role":"collectionGroup"},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/Equatable-Implementations"},"kind":"article","topicSections":[{"title":"Operators","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/!=(_:_:)"]}],"sections":[],"variants":[{"paths":["\/documentation\/swifthpke\/privatekey\/equatable-implementations"],"traits":[{"interfaceLanguage":"swift"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/!=(_:_:)":{"fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"kind":"text","text":" "},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":") -> "},{"text":"Bool","preciseIdentifier":"s:Sb","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/privatekey\/!=(_:_:)","kind":"symbol","type":"topic","abstract":[],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/!=(_:_:)","role":"symbol","title":"!=(_:_:)"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/privatekey/init(der:).json b/docs/data/documentation/swifthpke/privatekey/init(der:).json index 632b1d8..913f86e 100644 --- a/docs/data/documentation/swifthpke/privatekey/init(der:).json +++ b/docs/data/documentation/swifthpke/privatekey/init(der:).json @@ -1 +1 @@ -{"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/privatekey\/init(der:)"]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)","interfaceLanguage":"swift"},"schemaVersion":{"major":0,"patch":0,"minor":3},"sections":[],"kind":"symbol","abstract":[{"type":"text","text":"Creates a PrivateKey from its DER encoding"}],"primaryContentSections":[{"declarations":[{"languages":["swift"],"tokens":[{"kind":"keyword","text":"init"},{"kind":"text","text":"("},{"text":"der","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"platforms":["macOS"]}],"kind":"declarations"},{"parameters":[{"name":"der","content":[{"inlineContent":[{"type":"text","text":"The DER encoding of the key"}],"type":"paragraph"}]}],"kind":"parameters"},{"kind":"content","content":[{"level":2,"type":"heading","text":"Discussion","anchor":"discussion"},{"name":"Throws","content":[{"inlineContent":[{"type":"text","text":"An exception if the DER encoding is wrong"}],"type":"paragraph"}],"style":"note","type":"aside"}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"metadata":{"title":"init(der:)","role":"symbol","externalID":"s:9SwiftHPKE10PrivateKeyV3derACSays5UInt8VG_tKcfc","modules":[{"name":"SwiftHPKE"}],"symbolKind":"init","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"der"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"roleHeading":"Initializer"},"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)"],"generated":true,"title":"Constructors"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(der:)":{"type":"topic","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"der"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"role":"symbol","kind":"symbol","title":"init(der:)","abstract":[{"text":"Creates a PrivateKey from its DER encoding","type":"text"}],"url":"\/documentation\/swifthpke\/privatekey\/init(der:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"title":"Bytes","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","fragments":[{"text":"typealias","kind":"keyword"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"url":"\/documentation\/swifthpke\/bytes","role":"symbol","navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(pem:)":{"title":"init(pem:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"pem","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"abstract":[{"type":"text","text":"Creates a PrivateKey from its PEM encoding."}],"url":"\/documentation\/swifthpke\/privatekey\/init(pem:)","role":"symbol","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(kem:bytes:)":{"title":"init(kem:bytes:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"kem"},{"text":": ","kind":"text"},{"text":"KEM","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO"},{"text":", ","kind":"text"},{"text":"bytes","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"abstract":[{"type":"text","text":"Creates a PrivateKey from its type and key bytes"}],"url":"\/documentation\/swifthpke\/privatekey\/init(kem:bytes:)","role":"symbol","kind":"symbol"}}} \ No newline at end of file +{"schemaVersion":{"major":0,"patch":0,"minor":3},"abstract":[{"type":"text","text":"Creates a PrivateKey from its DER encoding"}],"metadata":{"title":"init(der:)","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"der","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE10PrivateKeyV3derACSays5UInt8VG_tKcfc","roleHeading":"Initializer","symbolKind":"init","role":"symbol"},"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)"],"title":"Constructors"}],"variants":[{"paths":["\/documentation\/swifthpke\/privatekey\/init(der:)"],"traits":[{"interfaceLanguage":"swift"}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"kind":"symbol","sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)","interfaceLanguage":"swift"},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"init"},{"kind":"text","text":"("},{"text":"der","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"languages":["swift"]}]},{"kind":"parameters","parameters":[{"content":[{"inlineContent":[{"type":"text","text":"The DER encoding of the key"}],"type":"paragraph"}],"name":"der"}]},{"content":[{"text":"Discussion","type":"heading","level":2,"anchor":"discussion"},{"name":"Throws","content":[{"inlineContent":[{"text":"An exception if the DER encoding is wrong","type":"text"}],"type":"paragraph"}],"type":"aside","style":"note"}],"kind":"content"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(der:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/privatekey\/init(der:)","abstract":[{"text":"Creates a PrivateKey from its DER encoding","type":"text"}],"title":"init(der:)","role":"symbol","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"text":"der","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(pem:)":{"title":"init(pem:)","type":"topic","url":"\/documentation\/swifthpke\/privatekey\/init(pem:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"pem"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"kind":"symbol","role":"symbol","abstract":[{"text":"Creates a PrivateKey from its PEM encoding.","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(kem:bytes:)":{"type":"topic","title":"init(kem:bytes:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)","role":"symbol","kind":"symbol","abstract":[{"text":"Creates a PrivateKey from its type and key bytes","type":"text"}],"fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"kem","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"KEM","preciseIdentifier":"s:9SwiftHPKE3KEMO"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"bytes"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"url":"\/documentation\/swifthpke\/privatekey\/init(kem:bytes:)"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/privatekey/init(kem:bytes:).json b/docs/data/documentation/swifthpke/privatekey/init(kem:bytes:).json index 076b509..b121360 100644 --- a/docs/data/documentation/swifthpke/privatekey/init(kem:bytes:).json +++ b/docs/data/documentation/swifthpke/privatekey/init(kem:bytes:).json @@ -1 +1 @@ -{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"kind":"symbol","seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)"],"title":"Constructors","generated":true}],"schemaVersion":{"major":0,"minor":3,"patch":0},"metadata":{"roleHeading":"Initializer","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"kem"},{"text":": ","kind":"text"},{"text":"KEM","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"bytes"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"title":"init(kem:bytes:)","symbolKind":"init","role":"symbol","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE10PrivateKeyV3kem5bytesAcA3KEMO_Says5UInt8VGtKcfc"},"sections":[],"abstract":[{"text":"Creates a PrivateKey from its type and key bytes","type":"text"}],"variants":[{"paths":["\/documentation\/swifthpke\/privatekey\/init(kem:bytes:)"],"traits":[{"interfaceLanguage":"swift"}]}],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"kem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"KEM","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","preciseIdentifier":"s:9SwiftHPKE3KEMO"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"bytes"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"platforms":["macOS"],"languages":["swift"]}]},{"kind":"parameters","parameters":[{"content":[{"inlineContent":[{"type":"text","text":"The key type"}],"type":"paragraph"}],"name":"kem"},{"content":[{"inlineContent":[{"type":"text","text":"The key bytes"}],"type":"paragraph"}],"name":"bytes"}]},{"kind":"content","content":[{"text":"Discussion","level":2,"anchor":"discussion","type":"heading"},{"name":"Throws","type":"aside","style":"note","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if "},{"type":"codeVoice","code":"bytes"},{"text":" has wrong size for the key type","type":"text"}]}]}]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(kem:bytes:)":{"title":"init(kem:bytes:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"kem"},{"text":": ","kind":"text"},{"text":"KEM","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO"},{"text":", ","kind":"text"},{"text":"bytes","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"abstract":[{"type":"text","text":"Creates a PrivateKey from its type and key bytes"}],"url":"\/documentation\/swifthpke\/privatekey\/init(kem:bytes:)","role":"symbol","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(pem:)":{"title":"init(pem:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"pem","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"abstract":[{"type":"text","text":"Creates a PrivateKey from its PEM encoding."}],"url":"\/documentation\/swifthpke\/privatekey\/init(pem:)","role":"symbol","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(der:)":{"type":"topic","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"der"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"role":"symbol","kind":"symbol","title":"init(der:)","abstract":[{"text":"Creates a PrivateKey from its DER encoding","type":"text"}],"url":"\/documentation\/swifthpke\/privatekey\/init(der:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","abstract":[{"text":"The key encapsulation mechanisms","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","role":"symbol","title":"KEM","type":"topic","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"KEM","kind":"identifier"}],"navigatorTitle":[{"text":"KEM","kind":"identifier"}]}}} \ No newline at end of file +{"schemaVersion":{"minor":3,"major":0,"patch":0},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)","interfaceLanguage":"swift"},"primaryContentSections":[{"declarations":[{"languages":["swift"],"tokens":[{"kind":"keyword","text":"init"},{"text":"(","kind":"text"},{"text":"kem","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"KEM","preciseIdentifier":"s:9SwiftHPKE3KEMO","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"},{"kind":"text","text":", "},{"text":"bytes","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"platforms":["macOS"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"content":[{"inlineContent":[{"type":"text","text":"The key type"}],"type":"paragraph"}],"name":"kem"},{"name":"bytes","content":[{"type":"paragraph","inlineContent":[{"text":"The key bytes","type":"text"}]}]}]},{"content":[{"text":"Discussion","level":2,"anchor":"discussion","type":"heading"},{"content":[{"inlineContent":[{"text":"An exception if ","type":"text"},{"code":"bytes","type":"codeVoice"},{"text":" has wrong size for the key type","type":"text"}],"type":"paragraph"}],"type":"aside","name":"Throws","style":"note"}],"kind":"content"}],"abstract":[{"type":"text","text":"Creates a PrivateKey from its type and key bytes"}],"kind":"symbol","variants":[{"paths":["\/documentation\/swifthpke\/privatekey\/init(kem:bytes:)"],"traits":[{"interfaceLanguage":"swift"}]}],"metadata":{"externalID":"s:9SwiftHPKE10PrivateKeyV3kem5bytesAcA3KEMO_Says5UInt8VGtKcfc","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"kem"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE3KEMO","kind":"typeIdentifier","text":"KEM"},{"text":", ","kind":"text"},{"text":"bytes","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"role":"symbol","roleHeading":"Initializer","title":"init(kem:bytes:)","modules":[{"name":"SwiftHPKE"}],"symbolKind":"init"},"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"seeAlsoSections":[{"title":"Constructors","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)"],"generated":true}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(pem:)":{"title":"init(pem:)","type":"topic","url":"\/documentation\/swifthpke\/privatekey\/init(pem:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"pem"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"kind":"symbol","role":"symbol","abstract":[{"text":"Creates a PrivateKey from its PEM encoding.","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","url":"\/documentation\/swifthpke\/kem","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"kind":"identifier","text":"KEM"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"kind":"symbol","title":"KEM","abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"role":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(kem:bytes:)":{"type":"topic","title":"init(kem:bytes:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)","role":"symbol","kind":"symbol","abstract":[{"text":"Creates a PrivateKey from its type and key bytes","type":"text"}],"fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"kem","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"KEM","preciseIdentifier":"s:9SwiftHPKE3KEMO"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"bytes"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"url":"\/documentation\/swifthpke\/privatekey\/init(kem:bytes:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(der:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/privatekey\/init(der:)","abstract":[{"text":"Creates a PrivateKey from its DER encoding","type":"text"}],"title":"init(der:)","role":"symbol","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"text":"der","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/privatekey/init(pem:).json b/docs/data/documentation/swifthpke/privatekey/init(pem:).json index 4af5426..0120b78 100644 --- a/docs/data/documentation/swifthpke/privatekey/init(pem:).json +++ b/docs/data/documentation/swifthpke/privatekey/init(pem:).json @@ -1 +1 @@ -{"abstract":[{"type":"text","text":"Creates a PrivateKey from its PEM encoding."}],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"pem"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"languages":["swift"]}]},{"kind":"parameters","parameters":[{"name":"pem","content":[{"inlineContent":[{"type":"text","text":"The PEM encoding of the key"}],"type":"paragraph"}]}]},{"kind":"content","content":[{"type":"heading","text":"Discussion","anchor":"discussion","level":2},{"style":"note","name":"Throws","type":"aside","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if the PEM encoding is wrong"}]}]}]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/privatekey\/init(pem:)"]}],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)"],"title":"Constructors"}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)","interfaceLanguage":"swift"},"metadata":{"fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"pem","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE10PrivateKeyV3pemACSS_tKcfc","role":"symbol","roleHeading":"Initializer","symbolKind":"init","title":"init(pem:)"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(pem:)":{"title":"init(pem:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"pem","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"abstract":[{"type":"text","text":"Creates a PrivateKey from its PEM encoding."}],"url":"\/documentation\/swifthpke\/privatekey\/init(pem:)","role":"symbol","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(kem:bytes:)":{"title":"init(kem:bytes:)","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"kem"},{"text":": ","kind":"text"},{"text":"KEM","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO"},{"text":", ","kind":"text"},{"text":"bytes","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"abstract":[{"type":"text","text":"Creates a PrivateKey from its type and key bytes"}],"url":"\/documentation\/swifthpke\/privatekey\/init(kem:bytes:)","role":"symbol","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(der:)":{"type":"topic","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"der"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"role":"symbol","kind":"symbol","title":"init(der:)","abstract":[{"text":"Creates a PrivateKey from its DER encoding","type":"text"}],"url":"\/documentation\/swifthpke\/privatekey\/init(der:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"}}} \ No newline at end of file +{"variants":[{"paths":["\/documentation\/swifthpke\/privatekey\/init(pem:)"],"traits":[{"interfaceLanguage":"swift"}]}],"abstract":[{"type":"text","text":"Creates a PrivateKey from its PEM encoding."}],"schemaVersion":{"patch":0,"minor":3,"major":0},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"sections":[],"seeAlsoSections":[{"generated":true,"title":"Constructors","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)"]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)","interfaceLanguage":"swift"},"metadata":{"title":"init(pem:)","roleHeading":"Initializer","role":"symbol","symbolKind":"init","externalID":"s:9SwiftHPKE10PrivateKeyV3pemACSS_tKcfc","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"pem","kind":"externalParam"},{"kind":"text","text":": "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"modules":[{"name":"SwiftHPKE"}]},"kind":"symbol","primaryContentSections":[{"declarations":[{"tokens":[{"text":"init","kind":"keyword"},{"text":"(","kind":"text"},{"text":"pem","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"},{"parameters":[{"name":"pem","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The PEM encoding of the key"}]}]}],"kind":"parameters"},{"content":[{"level":2,"anchor":"discussion","type":"heading","text":"Discussion"},{"style":"note","name":"Throws","type":"aside","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if the PEM encoding is wrong"}]}]}],"kind":"content"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(kem:bytes:)":{"type":"topic","title":"init(kem:bytes:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(kem:bytes:)","role":"symbol","kind":"symbol","abstract":[{"text":"Creates a PrivateKey from its type and key bytes","type":"text"}],"fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"kem","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"KEM","preciseIdentifier":"s:9SwiftHPKE3KEMO"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"bytes"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"url":"\/documentation\/swifthpke\/privatekey\/init(kem:bytes:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(der:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(der:)","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/privatekey\/init(der:)","abstract":[{"text":"Creates a PrivateKey from its DER encoding","type":"text"}],"title":"init(der:)","role":"symbol","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"text":"der","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/init(pem:)":{"title":"init(pem:)","type":"topic","url":"\/documentation\/swifthpke\/privatekey\/init(pem:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/init(pem:)","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"pem"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"kind":"symbol","role":"symbol","abstract":[{"text":"Creates a PrivateKey from its PEM encoding.","type":"text"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/privatekey/pem.json b/docs/data/documentation/swifthpke/privatekey/pem.json index 2d33911..0f16660 100644 --- a/docs/data/documentation/swifthpke/privatekey/pem.json +++ b/docs/data/documentation/swifthpke/privatekey/pem.json @@ -1 +1 @@ -{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/privatekey\/pem"]}],"kind":"symbol","sections":[],"metadata":{"externalID":"s:9SwiftHPKE10PrivateKeyV3pemSSvp","title":"pem","role":"symbol","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Instance Property","symbolKind":"property","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}]},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":" { ","kind":"text"},{"kind":"keyword","text":"get"},{"text":" }","kind":"text"}],"platforms":["macOS"],"languages":["swift"]}]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","interfaceLanguage":"swift"},"abstract":[{"type":"text","text":"The PEM base 64 encoding of "},{"type":"codeVoice","code":"self"}],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"],"title":"Properties","generated":true}],"schemaVersion":{"major":0,"minor":3,"patch":0},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/publicKey":{"title":"publicKey","abstract":[{"text":"The corresponding public key","type":"text"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","type":"topic","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"publicKey","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/privatekey\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/asn1":{"title":"asn1","abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","type":"topic","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"asn1"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC","text":"ASN1"}],"url":"\/documentation\/swifthpke\/privatekey\/asn1"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/der":{"title":"der","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"abstract":[{"text":"The DER encoding of ","type":"text"},{"code":"self","type":"codeVoice"}],"url":"\/documentation\/swifthpke\/privatekey\/der","role":"symbol","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/bytes":{"title":"bytes","abstract":[{"type":"text","text":"The serialized key bytes"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","type":"topic","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"url":"\/documentation\/swifthpke\/privatekey\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/description":{"title":"description","abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description","type":"topic","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"url":"\/documentation\/swifthpke\/privatekey\/description"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/pem":{"title":"pem","abstract":[{"type":"text","text":"The PEM base 64 encoding of "},{"code":"self","type":"codeVoice"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","type":"topic","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"url":"\/documentation\/swifthpke\/privatekey\/pem"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"}}} \ No newline at end of file +{"seeAlsoSections":[{"generated":true,"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","interfaceLanguage":"swift"},"sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/privatekey\/pem"]}],"abstract":[{"text":"The PEM base 64 encoding of ","type":"text"},{"code":"self","type":"codeVoice"}],"schemaVersion":{"patch":0,"minor":3,"major":0},"metadata":{"title":"pem","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE10PrivateKeyV3pemSSvp","symbolKind":"property","role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"pem"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"roleHeading":"Instance Property"},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"pem"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"},{"kind":"text","text":" { "},{"kind":"keyword","text":"get"},{"text":" }","kind":"text"}],"platforms":["macOS"],"languages":["swift"]}]}],"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/description":{"type":"topic","kind":"symbol","title":"description","abstract":[{"text":"A textual representation of the ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"role":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"url":"\/documentation\/swifthpke\/privatekey\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/asn1":{"kind":"symbol","type":"topic","title":"asn1","abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"role":"symbol","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"text":"asn1","kind":"identifier"},{"kind":"text","text":": "},{"text":"ASN1","kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC"}],"url":"\/documentation\/swifthpke\/privatekey\/asn1","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/publicKey":{"type":"topic","kind":"symbol","title":"publicKey","abstract":[{"text":"The corresponding public key","type":"text"}],"role":"symbol","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"kind":"identifier","text":"publicKey"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"}],"url":"\/documentation\/swifthpke\/privatekey\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/bytes":{"kind":"symbol","type":"topic","title":"bytes","abstract":[{"text":"The serialized key bytes","type":"text"}],"role":"symbol","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"kind":"identifier","text":"bytes"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/privatekey\/bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/pem":{"type":"topic","kind":"symbol","title":"pem","abstract":[{"text":"The PEM base 64 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"pem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"url":"\/documentation\/swifthpke\/privatekey\/pem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/der":{"kind":"symbol","type":"topic","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"der"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/privatekey\/der","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","role":"symbol","abstract":[{"type":"text","text":"The DER encoding of "},{"code":"self","type":"codeVoice"}],"title":"der"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/privatekey/publickey.json b/docs/data/documentation/swifthpke/privatekey/publickey.json index ea577dc..db9124e 100644 --- a/docs/data/documentation/swifthpke/privatekey/publickey.json +++ b/docs/data/documentation/swifthpke/privatekey/publickey.json @@ -1 +1 @@ -{"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"schemaVersion":{"patch":0,"minor":3,"major":0},"metadata":{"symbolKind":"property","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"kind":"identifier","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"}],"title":"publicKey","modules":[{"name":"SwiftHPKE"}],"role":"symbol","externalID":"s:9SwiftHPKE10PrivateKeyV06publicD0AA06PublicD0Vvp","roleHeading":"Instance Property"},"primaryContentSections":[{"declarations":[{"tokens":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"publicKey"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"}],"sections":[],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey"},"abstract":[{"type":"text","text":"The corresponding public key"}],"seeAlsoSections":[{"title":"Properties","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/privatekey\/publickey"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/publicKey":{"title":"publicKey","abstract":[{"text":"The corresponding public key","type":"text"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","type":"topic","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"publicKey","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/privatekey\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/description":{"title":"description","abstract":[{"type":"text","text":"A textual representation of the ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description","type":"topic","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"url":"\/documentation\/swifthpke\/privatekey\/description"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/pem":{"title":"pem","abstract":[{"type":"text","text":"The PEM base 64 encoding of "},{"code":"self","type":"codeVoice"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","type":"topic","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"url":"\/documentation\/swifthpke\/privatekey\/pem"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/bytes":{"title":"bytes","abstract":[{"type":"text","text":"The serialized key bytes"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","type":"topic","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"url":"\/documentation\/swifthpke\/privatekey\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/asn1":{"title":"asn1","abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","type":"topic","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"asn1"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC","text":"ASN1"}],"url":"\/documentation\/swifthpke\/privatekey\/asn1"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/der":{"title":"der","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"abstract":[{"text":"The DER encoding of ","type":"text"},{"code":"self","type":"codeVoice"}],"url":"\/documentation\/swifthpke\/privatekey\/der","role":"symbol","kind":"symbol"}}} \ No newline at end of file +{"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"],"generated":true,"title":"Properties"}],"abstract":[{"type":"text","text":"The corresponding public key"}],"schemaVersion":{"patch":0,"minor":3,"major":0},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/privatekey\/publickey"]}],"kind":"symbol","primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"text":"publicKey","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"}],"platforms":["macOS"]}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"]]},"sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey","interfaceLanguage":"swift"},"metadata":{"roleHeading":"Instance Property","title":"publicKey","role":"symbol","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE10PrivateKeyV06publicD0AA06PublicD0Vvp","symbolKind":"property","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"publicKey","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"}]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/der":{"kind":"symbol","type":"topic","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"der"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/privatekey\/der","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/der","role":"symbol","abstract":[{"type":"text","text":"The DER encoding of "},{"code":"self","type":"codeVoice"}],"title":"der"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/pem":{"type":"topic","kind":"symbol","title":"pem","abstract":[{"text":"The PEM base 64 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"pem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"url":"\/documentation\/swifthpke\/privatekey\/pem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/pem"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/asn1":{"kind":"symbol","type":"topic","title":"asn1","abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"role":"symbol","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"text":"asn1","kind":"identifier"},{"kind":"text","text":": "},{"text":"ASN1","kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC"}],"url":"\/documentation\/swifthpke\/privatekey\/asn1","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/asn1"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/description":{"type":"topic","kind":"symbol","title":"description","abstract":[{"text":"A textual representation of the ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"role":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"url":"\/documentation\/swifthpke\/privatekey\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/description"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/bytes":{"kind":"symbol","type":"topic","title":"bytes","abstract":[{"text":"The serialized key bytes","type":"text"}],"role":"symbol","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"kind":"identifier","text":"bytes"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/privatekey\/bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey/publicKey":{"type":"topic","kind":"symbol","title":"publicKey","abstract":[{"text":"The corresponding public key","type":"text"}],"role":"symbol","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"kind":"identifier","text":"publicKey"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"}],"url":"\/documentation\/swifthpke\/privatekey\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey\/publicKey"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/publickey.json b/docs/data/documentation/swifthpke/publickey.json index 545d7be..37c53c3 100644 --- a/docs/data/documentation/swifthpke/publickey.json +++ b/docs/data/documentation/swifthpke/publickey.json @@ -1 +1 @@ -{"relationshipsSections":[{"identifiers":["doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","doc:\/\/SwiftHPKE\/SQ"],"title":"Conforms To","kind":"relationships","type":"conformsTo"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey"]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"},"schemaVersion":{"major":0,"minor":3,"patch":0},"kind":"symbol","metadata":{"externalID":"s:9SwiftHPKE9PublicKeyV","fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"text":"PublicKey","kind":"identifier"}],"title":"PublicKey","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"symbolKind":"struct","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Structure","role":"symbol"},"sections":[],"topicSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description"],"title":"Properties"},{"title":"Constructors","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)"]},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/==(_:_:)"],"title":"Equality"},{"generated":true,"title":"Default Implementations","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/Equatable-Implementations"]}],"abstract":[{"type":"text","text":"The public key"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"],"title":"Structures","generated":true}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}]}]},{"kind":"content","content":[{"anchor":"Overview","level":2,"type":"heading","text":"Overview"},{"type":"paragraph","inlineContent":[{"type":"text","text":"There are five different public key types corresponding to the five KEM’s"}]},{"type":"unorderedList","items":[{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"P256 - the key is a 65 byte value corresponding to a NIST secp256r1 uncompressed curve point"}]}]},{"content":[{"inlineContent":[{"type":"text","text":"P384 - the key is a 97 byte value corresponding to a NIST secp384r1 uncompressed curve point"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"P521 - the key is a 133 byte value corresponding to a NIST secp521r1 uncompressed curve point","type":"text"}]}]},{"content":[{"inlineContent":[{"text":"X25519 - the key is a 32 byte value corresponding to a curve X25519 public key","type":"text"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"text":"X448 - the key is a 56 byte value corresponding to a curve X448 public key","type":"text"}],"type":"paragraph"}]}]}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(kem:bytes:)":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)","abstract":[{"text":"Creates a PublicKey from its type and key bytes.","type":"text"}],"title":"init(kem:bytes:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"kem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM"},{"kind":"text","text":", "},{"text":"bytes","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"role":"symbol","url":"\/documentation\/swifthpke\/publickey\/init(kem:bytes:)","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/SQ":{"identifier":"doc:\/\/SwiftHPKE\/SQ","type":"unresolvable","title":"Swift.Equatable"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/pem":{"url":"\/documentation\/swifthpke\/publickey\/pem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","kind":"symbol","title":"pem","role":"symbol","abstract":[{"type":"text","text":"The PEM base 64 encoding of "},{"code":"self","type":"codeVoice"}],"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/description":{"url":"\/documentation\/swifthpke\/publickey\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description","kind":"symbol","title":"description","role":"symbol","abstract":[{"text":"A textual representation of the ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/Equatable-Implementations":{"type":"topic","url":"\/documentation\/swifthpke\/publickey\/equatable-implementations","title":"Equatable Implementations","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/Equatable-Implementations","abstract":[],"kind":"article","role":"collectionGroup"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/==(_:_:)":{"type":"topic","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"==","kind":"identifier"},{"text":" ","kind":"text"},{"kind":"text","text":"("},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":") -> "},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/publickey\/==(_:_:)","title":"==(_:_:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/==(_:_:)","abstract":[{"text":"Equality of two public keys","type":"text"}],"kind":"symbol","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/der":{"url":"\/documentation\/swifthpke\/publickey\/der","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","kind":"symbol","title":"der","role":"symbol","abstract":[{"text":"The DER encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(pem:)":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)","abstract":[{"type":"text","text":"Creates a PublicKey from its PEM encoding"}],"title":"init(pem:)","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"text":"pem","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/publickey\/init(pem:)"},"doc://SwiftHPKE/s23CustomStringConvertibleP":{"identifier":"doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","type":"unresolvable","title":"Swift.CustomStringConvertible"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/asn1":{"url":"\/documentation\/swifthpke\/publickey\/asn1","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","kind":"symbol","title":"asn1","role":"symbol","abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"asn1","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC","text":"ASN1"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(der:)":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)","abstract":[{"text":"Creates a PublicKey from its DER encoding","type":"text"}],"title":"init(der:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"der","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/publickey\/init(der:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/bytes":{"url":"\/documentation\/swifthpke\/publickey\/bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","kind":"symbol","title":"bytes","role":"symbol","abstract":[{"text":"The serialized key bytes","type":"text"}],"fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"url":"\/documentation\/swifthpke\/base64","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Base64"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","navigatorTitle":[{"text":"Base64","kind":"identifier"}],"title":"Base64","role":"symbol","kind":"symbol","abstract":[{"text":"The Base64 structure","type":"text"}],"type":"topic"}}} \ No newline at end of file +{"sections":[],"topicSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description"],"title":"Properties"},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)"],"title":"Constructors"},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/==(_:_:)"],"title":"Equality"},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/Equatable-Implementations"],"generated":true,"title":"Default Implementations"}],"abstract":[{"text":"The public key","type":"text"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"},"relationshipsSections":[{"type":"conformsTo","title":"Conforms To","identifiers":["doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP","doc:\/\/SwiftHPKE\/SQ"],"kind":"relationships"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"kind":"symbol","variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey"]}],"seeAlsoSections":[{"title":"Structures","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64"],"generated":true}],"schemaVersion":{"minor":3,"major":0,"patch":0},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}]}],"kind":"declarations"},{"content":[{"anchor":"Overview","type":"heading","text":"Overview","level":2},{"inlineContent":[{"type":"text","text":"There are five different public key types corresponding to the five KEM’s"}],"type":"paragraph"},{"type":"unorderedList","items":[{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"P256 - the key is a 65 byte value corresponding to a NIST secp256r1 uncompressed curve point"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"P384 - the key is a 97 byte value corresponding to a NIST secp384r1 uncompressed curve point","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"P521 - the key is a 133 byte value corresponding to a NIST secp521r1 uncompressed curve point"}]}]},{"content":[{"inlineContent":[{"type":"text","text":"X25519 - the key is a 32 byte value corresponding to a curve X25519 public key"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"X448 - the key is a 56 byte value corresponding to a curve X448 public key"}]}]}]}],"kind":"content"}],"metadata":{"navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"roleHeading":"Structure","title":"PublicKey","symbolKind":"struct","modules":[{"name":"SwiftHPKE"}],"fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"PublicKey","kind":"identifier"}],"externalID":"s:9SwiftHPKE9PublicKeyV","role":"symbol"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/description":{"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"abstract":[{"text":"A textual representation of the ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"title":"description","url":"\/documentation\/swifthpke\/publickey\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description","type":"topic","kind":"symbol","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/s23CustomStringConvertibleP":{"type":"unresolvable","title":"Swift.CustomStringConvertible","identifier":"doc:\/\/SwiftHPKE\/s23CustomStringConvertibleP"},"doc://SwiftHPKE/SQ":{"type":"unresolvable","title":"Swift.Equatable","identifier":"doc:\/\/SwiftHPKE\/SQ"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/==(_:_:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/==(_:_:)","url":"\/documentation\/swifthpke\/publickey\/==(_:_:)","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"=="},{"kind":"text","text":" "},{"text":"(","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}],"kind":"symbol","title":"==(_:_:)","abstract":[{"text":"Equality of two public keys","type":"text"}],"role":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/der":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","url":"\/documentation\/swifthpke\/publickey\/der","title":"der","type":"topic","kind":"symbol","role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"abstract":[{"text":"The DER encoding of ","type":"text"},{"code":"self","type":"codeVoice"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/pem":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","url":"\/documentation\/swifthpke\/publickey\/pem","title":"pem","type":"topic","kind":"symbol","role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"abstract":[{"text":"The PEM base 64 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(der:)":{"type":"topic","abstract":[{"type":"text","text":"Creates a PublicKey from its DER encoding"}],"title":"init(der:)","kind":"symbol","role":"symbol","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"der","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)","url":"\/documentation\/swifthpke\/publickey\/init(der:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Base64":{"type":"topic","navigatorTitle":[{"text":"Base64","kind":"identifier"}],"abstract":[{"text":"The Base64 structure","type":"text"}],"title":"Base64","kind":"symbol","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"text":"Base64","kind":"identifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Base64","url":"\/documentation\/swifthpke\/base64"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/Equatable-Implementations":{"role":"collectionGroup","url":"\/documentation\/swifthpke\/publickey\/equatable-implementations","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/Equatable-Implementations","kind":"article","title":"Equatable Implementations","abstract":[]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/bytes":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","title":"bytes","url":"\/documentation\/swifthpke\/publickey\/bytes","type":"topic","kind":"symbol","role":"symbol","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"abstract":[{"text":"The serialized key bytes","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(kem:bytes:)":{"type":"topic","abstract":[{"text":"Creates a PublicKey from its type and key bytes.","type":"text"}],"title":"init(kem:bytes:)","kind":"symbol","role":"symbol","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"text":"kem","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM"},{"text":", ","kind":"text"},{"text":"bytes","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)","url":"\/documentation\/swifthpke\/publickey\/init(kem:bytes:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(pem:)":{"type":"topic","abstract":[{"type":"text","text":"Creates a PublicKey from its PEM encoding"}],"title":"init(pem:)","kind":"symbol","role":"symbol","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"pem"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)","url":"\/documentation\/swifthpke\/publickey\/init(pem:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/asn1":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","title":"asn1","url":"\/documentation\/swifthpke\/publickey\/asn1","type":"topic","kind":"symbol","role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"asn1","kind":"identifier"},{"text":": ","kind":"text"},{"text":"ASN1","preciseIdentifier":"s:4ASN1AAC","kind":"typeIdentifier"}],"abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/publickey/!=(_:_:).json b/docs/data/documentation/swifthpke/publickey/!=(_:_:).json index 20a8a89..89f03c6 100644 --- a/docs/data/documentation/swifthpke/publickey/!=(_:_:).json +++ b/docs/data/documentation/swifthpke/publickey/!=(_:_:).json @@ -1 +1 @@ -{"schemaVersion":{"major":0,"minor":3,"patch":0},"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/Equatable-Implementations"]]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/!=(_:_:)","interfaceLanguage":"swift"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey\/!=(_:_:)"]}],"abstract":[{"type":"text","text":"Inherited from "},{"code":"Equatable.!=(_:_:)","type":"codeVoice"},{"text":".","type":"text"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"text":"static","kind":"keyword"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"!="},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"kind":"internalParam","text":"lhs"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"text":", ","kind":"text"},{"kind":"internalParam","text":"rhs"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"text":") -> ","kind":"text"},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}]}]}],"sections":[],"metadata":{"symbolKind":"op","fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"!="},{"text":" ","kind":"text"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"Self"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:Sb","text":"Bool"}],"externalID":"s:SQsE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftHPKE9PublicKeyV","role":"symbol","modules":[{"name":"SwiftHPKE","relatedModules":["Swift"]}],"roleHeading":"Operator","title":"!=(_:_:)","extendedModule":"Swift"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/Equatable-Implementations":{"type":"topic","url":"\/documentation\/swifthpke\/publickey\/equatable-implementations","title":"Equatable Implementations","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/Equatable-Implementations","abstract":[],"kind":"article","role":"collectionGroup"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/!=(_:_:)":{"fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"!=","kind":"identifier"},{"kind":"text","text":" "},{"kind":"text","text":"("},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"Self"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}],"role":"symbol","kind":"symbol","type":"topic","title":"!=(_:_:)","abstract":[],"url":"\/documentation\/swifthpke\/publickey\/!=(_:_:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/!=(_:_:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"}}} \ No newline at end of file +{"schemaVersion":{"patch":0,"major":0,"minor":3},"metadata":{"role":"symbol","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"Self"},{"text":", ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:Sb","kind":"typeIdentifier","text":"Bool"}],"symbolKind":"op","extendedModule":"Swift","roleHeading":"Operator","modules":[{"relatedModules":["Swift"],"name":"SwiftHPKE"}],"title":"!=(_:_:)","externalID":"s:SQsE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftHPKE9PublicKeyV"},"sections":[],"abstract":[{"type":"text","text":"Inherited from "},{"type":"codeVoice","code":"Equatable.!=(_:_:)"},{"text":".","type":"text"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"kind":"text","text":" "},{"kind":"text","text":"("},{"kind":"internalParam","text":"lhs"},{"text":": ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"rhs","kind":"internalParam"},{"text":": ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}],"languages":["swift"]}]}],"variants":[{"paths":["\/documentation\/swifthpke\/publickey\/!=(_:_:)"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/Equatable-Implementations"]]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/!=(_:_:)","interfaceLanguage":"swift"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/Equatable-Implementations":{"role":"collectionGroup","url":"\/documentation\/swifthpke\/publickey\/equatable-implementations","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/Equatable-Implementations","kind":"article","title":"Equatable Implementations","abstract":[]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/!=(_:_:)":{"role":"symbol","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"text":") -> ","kind":"text"},{"text":"Bool","preciseIdentifier":"s:Sb","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/!=(_:_:)","type":"topic","url":"\/documentation\/swifthpke\/publickey\/!=(_:_:)","kind":"symbol","title":"!=(_:_:)","abstract":[]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/publickey/==(_:_:).json b/docs/data/documentation/swifthpke/publickey/==(_:_:).json index 02e0209..b46bd8f 100644 --- a/docs/data/documentation/swifthpke/publickey/==(_:_:).json +++ b/docs/data/documentation/swifthpke/publickey/==(_:_:).json @@ -1 +1 @@ -{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"kind":"symbol","metadata":{"roleHeading":"Operator","symbolKind":"op","modules":[{"name":"SwiftHPKE"}],"role":"symbol","title":"==(_:_:)","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"=="},{"kind":"text","text":" "},{"kind":"text","text":"("},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","text":"Bool","preciseIdentifier":"s:Sb"}],"externalID":"s:9SwiftHPKE9PublicKeyV2eeoiySbAC_ACtFZ"},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"=="},{"kind":"text","text":" "},{"text":"(","kind":"text"},{"text":"key1","kind":"internalParam"},{"kind":"text","text":": "},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"},{"text":", ","kind":"text"},{"text":"key2","kind":"internalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":") -> "},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}],"platforms":["macOS"]}]},{"kind":"parameters","parameters":[{"name":"key1","content":[{"type":"paragraph","inlineContent":[{"text":"a public key","type":"text"}]}]},{"name":"key2","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"a public key"}]}]}]},{"kind":"content","content":[{"anchor":"return-value","type":"heading","level":2,"text":"Return Value"},{"inlineContent":[{"type":"text","text":""},{"code":"true","type":"codeVoice"},{"type":"text","text":" if key1 and key2 are equal, "},{"type":"codeVoice","code":"false"},{"text":" otherwise","type":"text"}],"type":"paragraph"}]}],"sections":[],"schemaVersion":{"major":0,"patch":0,"minor":3},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey\/==(_:_:)"]}],"abstract":[{"type":"text","text":"Equality of two public keys"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/==(_:_:)","interfaceLanguage":"swift"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/==(_:_:)":{"type":"topic","fragments":[{"kind":"keyword","text":"static"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"==","kind":"identifier"},{"text":" ","kind":"text"},{"kind":"text","text":"("},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":") -> "},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}],"url":"\/documentation\/swifthpke\/publickey\/==(_:_:)","title":"==(_:_:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/==(_:_:)","abstract":[{"text":"Equality of two public keys","type":"text"}],"kind":"symbol","role":"symbol"}}} \ No newline at end of file +{"schemaVersion":{"patch":0,"minor":3,"major":0},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/==(_:_:)","interfaceLanguage":"swift"},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"=="},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"key1","kind":"internalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"internalParam","text":"key2"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":") -> "},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}],"languages":["swift"],"platforms":["macOS"]}]},{"parameters":[{"name":"key1","content":[{"inlineContent":[{"text":"a public key","type":"text"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"a public key"}]}],"name":"key2"}],"kind":"parameters"},{"kind":"content","content":[{"anchor":"return-value","text":"Return Value","type":"heading","level":2},{"inlineContent":[{"type":"text","text":""},{"code":"true","type":"codeVoice"},{"text":" if key1 and key2 are equal, ","type":"text"},{"code":"false","type":"codeVoice"},{"type":"text","text":" otherwise"}],"type":"paragraph"}]}],"variants":[{"paths":["\/documentation\/swifthpke\/publickey\/==(_:_:)"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","abstract":[{"text":"Equality of two public keys","type":"text"}],"metadata":{"title":"==(_:_:)","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE9PublicKeyV2eeoiySbAC_ACtFZ","role":"symbol","symbolKind":"op","fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"==","kind":"identifier"},{"kind":"text","text":" "},{"text":"(","kind":"text"},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:Sb","kind":"typeIdentifier","text":"Bool"}],"roleHeading":"Operator"},"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/==(_:_:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/==(_:_:)","url":"\/documentation\/swifthpke\/publickey\/==(_:_:)","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"=="},{"kind":"text","text":" "},{"text":"(","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}],"kind":"symbol","title":"==(_:_:)","abstract":[{"text":"Equality of two public keys","type":"text"}],"role":"symbol","type":"topic"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/publickey/asn1.json b/docs/data/documentation/swifthpke/publickey/asn1.json index e523809..1ffa19d 100644 --- a/docs/data/documentation/swifthpke/publickey/asn1.json +++ b/docs/data/documentation/swifthpke/publickey/asn1.json @@ -1 +1 @@ -{"schemaVersion":{"major":0,"patch":0,"minor":3},"metadata":{"modules":[{"name":"SwiftHPKE"}],"role":"symbol","externalID":"s:9SwiftHPKE9PublicKeyV4asn14ASN1AECvp","roleHeading":"Instance Property","title":"asn1","symbolKind":"property","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"asn1","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:4ASN1AAC","text":"ASN1","kind":"typeIdentifier"}]},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","interfaceLanguage":"swift"},"kind":"symbol","abstract":[{"type":"text","text":"The ASN1 encoding of "},{"code":"self","type":"codeVoice"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey\/asn1"]}],"seeAlsoSections":[{"title":"Properties","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description"]}],"primaryContentSections":[{"declarations":[{"tokens":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"asn1"},{"kind":"text","text":": "},{"text":"ASN1","kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC"},{"kind":"text","text":" { "},{"kind":"keyword","text":"get"},{"text":" }","kind":"text"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"}],"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/bytes":{"url":"\/documentation\/swifthpke\/publickey\/bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","kind":"symbol","title":"bytes","role":"symbol","abstract":[{"text":"The serialized key bytes","type":"text"}],"fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/der":{"url":"\/documentation\/swifthpke\/publickey\/der","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","kind":"symbol","title":"der","role":"symbol","abstract":[{"text":"The DER encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/description":{"url":"\/documentation\/swifthpke\/publickey\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description","kind":"symbol","title":"description","role":"symbol","abstract":[{"text":"A textual representation of the ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/asn1":{"url":"\/documentation\/swifthpke\/publickey\/asn1","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","kind":"symbol","title":"asn1","role":"symbol","abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"asn1","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC","text":"ASN1"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/pem":{"url":"\/documentation\/swifthpke\/publickey\/pem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","kind":"symbol","title":"pem","role":"symbol","abstract":[{"type":"text","text":"The PEM base 64 encoding of "},{"code":"self","type":"codeVoice"}],"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"type":"topic"}}} \ No newline at end of file +{"primaryContentSections":[{"declarations":[{"languages":["swift"],"tokens":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"asn1","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"ASN1","preciseIdentifier":"s:4ASN1AAC"},{"kind":"text","text":" { "},{"kind":"keyword","text":"get"},{"text":" }","kind":"text"}],"platforms":["macOS"]}],"kind":"declarations"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey\/asn1"]}],"schemaVersion":{"patch":0,"minor":3,"major":0},"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"metadata":{"roleHeading":"Instance Property","role":"symbol","title":"asn1","externalID":"s:9SwiftHPKE9PublicKeyV4asn14ASN1AECvp","modules":[{"name":"SwiftHPKE"}],"symbolKind":"property","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"asn1"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC","text":"ASN1"}]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","interfaceLanguage":"swift"},"seeAlsoSections":[{"title":"Properties","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description"]}],"sections":[],"abstract":[{"type":"text","text":"The ASN1 encoding of "},{"type":"codeVoice","code":"self"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/description":{"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"abstract":[{"text":"A textual representation of the ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"title":"description","url":"\/documentation\/swifthpke\/publickey\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description","type":"topic","kind":"symbol","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/der":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","url":"\/documentation\/swifthpke\/publickey\/der","title":"der","type":"topic","kind":"symbol","role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"abstract":[{"text":"The DER encoding of ","type":"text"},{"code":"self","type":"codeVoice"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/bytes":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","title":"bytes","url":"\/documentation\/swifthpke\/publickey\/bytes","type":"topic","kind":"symbol","role":"symbol","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"abstract":[{"text":"The serialized key bytes","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/asn1":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","title":"asn1","url":"\/documentation\/swifthpke\/publickey\/asn1","type":"topic","kind":"symbol","role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"asn1","kind":"identifier"},{"text":": ","kind":"text"},{"text":"ASN1","preciseIdentifier":"s:4ASN1AAC","kind":"typeIdentifier"}],"abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/pem":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","url":"\/documentation\/swifthpke\/publickey\/pem","title":"pem","type":"topic","kind":"symbol","role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"abstract":[{"text":"The PEM base 64 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/publickey/bytes.json b/docs/data/documentation/swifthpke/publickey/bytes.json index 5c605a0..50d7f54 100644 --- a/docs/data/documentation/swifthpke/publickey/bytes.json +++ b/docs/data/documentation/swifthpke/publickey/bytes.json @@ -1 +1 @@ -{"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes"},"sections":[],"primaryContentSections":[{"declarations":[{"tokens":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"}],"kind":"symbol","schemaVersion":{"major":0,"minor":3,"patch":0},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"abstract":[{"type":"text","text":"The serialized key bytes"}],"seeAlsoSections":[{"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description"],"generated":true}],"variants":[{"paths":["\/documentation\/swifthpke\/publickey\/bytes"],"traits":[{"interfaceLanguage":"swift"}]}],"metadata":{"roleHeading":"Instance Property","title":"bytes","role":"symbol","externalID":"s:9SwiftHPKE9PublicKeyV5bytesSays5UInt8VGvp","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"kind":"identifier","text":"bytes"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"modules":[{"name":"SwiftHPKE"}],"symbolKind":"property"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/der":{"url":"\/documentation\/swifthpke\/publickey\/der","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","kind":"symbol","title":"der","role":"symbol","abstract":[{"text":"The DER encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/description":{"url":"\/documentation\/swifthpke\/publickey\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description","kind":"symbol","title":"description","role":"symbol","abstract":[{"text":"A textual representation of the ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/pem":{"url":"\/documentation\/swifthpke\/publickey\/pem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","kind":"symbol","title":"pem","role":"symbol","abstract":[{"type":"text","text":"The PEM base 64 encoding of "},{"code":"self","type":"codeVoice"}],"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/asn1":{"url":"\/documentation\/swifthpke\/publickey\/asn1","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","kind":"symbol","title":"asn1","role":"symbol","abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"asn1","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC","text":"ASN1"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/bytes":{"url":"\/documentation\/swifthpke\/publickey\/bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","kind":"symbol","title":"bytes","role":"symbol","abstract":[{"text":"The serialized key bytes","type":"text"}],"fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"type":"topic"}}} \ No newline at end of file +{"kind":"symbol","metadata":{"title":"bytes","roleHeading":"Instance Property","role":"symbol","symbolKind":"property","externalID":"s:9SwiftHPKE9PublicKeyV5bytesSays5UInt8VGvp","modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}]},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"schemaVersion":{"major":0,"minor":3,"patch":0},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes"},"abstract":[{"type":"text","text":"The serialized key bytes"}],"seeAlsoSections":[{"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description"],"generated":true}],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"bytes"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier"}],"languages":["swift"]}]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey\/bytes"]}],"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/pem":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","url":"\/documentation\/swifthpke\/publickey\/pem","title":"pem","type":"topic","kind":"symbol","role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"abstract":[{"text":"The PEM base 64 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/bytes":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","title":"bytes","url":"\/documentation\/swifthpke\/publickey\/bytes","type":"topic","kind":"symbol","role":"symbol","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"abstract":[{"text":"The serialized key bytes","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/der":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","url":"\/documentation\/swifthpke\/publickey\/der","title":"der","type":"topic","kind":"symbol","role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"abstract":[{"text":"The DER encoding of ","type":"text"},{"code":"self","type":"codeVoice"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/description":{"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"abstract":[{"text":"A textual representation of the ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"title":"description","url":"\/documentation\/swifthpke\/publickey\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description","type":"topic","kind":"symbol","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/asn1":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","title":"asn1","url":"\/documentation\/swifthpke\/publickey\/asn1","type":"topic","kind":"symbol","role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"asn1","kind":"identifier"},{"text":": ","kind":"text"},{"text":"ASN1","preciseIdentifier":"s:4ASN1AAC","kind":"typeIdentifier"}],"abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/publickey/der.json b/docs/data/documentation/swifthpke/publickey/der.json index fb64aa6..6cc4eeb 100644 --- a/docs/data/documentation/swifthpke/publickey/der.json +++ b/docs/data/documentation/swifthpke/publickey/der.json @@ -1 +1 @@ -{"seeAlsoSections":[{"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description"],"generated":true}],"sections":[],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"der"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":" { ","kind":"text"},{"kind":"keyword","text":"get"},{"kind":"text","text":" }"}],"languages":["swift"]}]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey\/der"]}],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"metadata":{"modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE9PublicKeyV3derSays5UInt8VGvp","title":"der","role":"symbol","symbolKind":"property","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"roleHeading":"Instance Property"},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","interfaceLanguage":"swift"},"schemaVersion":{"patch":0,"major":0,"minor":3},"abstract":[{"type":"text","text":"The DER encoding of "},{"code":"self","type":"codeVoice"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/description":{"url":"\/documentation\/swifthpke\/publickey\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description","kind":"symbol","title":"description","role":"symbol","abstract":[{"text":"A textual representation of the ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/asn1":{"url":"\/documentation\/swifthpke\/publickey\/asn1","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","kind":"symbol","title":"asn1","role":"symbol","abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"asn1","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC","text":"ASN1"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/der":{"url":"\/documentation\/swifthpke\/publickey\/der","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","kind":"symbol","title":"der","role":"symbol","abstract":[{"text":"The DER encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/bytes":{"url":"\/documentation\/swifthpke\/publickey\/bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","kind":"symbol","title":"bytes","role":"symbol","abstract":[{"text":"The serialized key bytes","type":"text"}],"fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/pem":{"url":"\/documentation\/swifthpke\/publickey\/pem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","kind":"symbol","title":"pem","role":"symbol","abstract":[{"type":"text","text":"The PEM base 64 encoding of "},{"code":"self","type":"codeVoice"}],"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"}}} \ No newline at end of file +{"kind":"symbol","identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der"},"primaryContentSections":[{"declarations":[{"tokens":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":" { "},{"kind":"keyword","text":"get"},{"text":" }","kind":"text"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"}],"schemaVersion":{"major":0,"patch":0,"minor":3},"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"metadata":{"modules":[{"name":"SwiftHPKE"}],"roleHeading":"Instance Property","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"title":"der","symbolKind":"property","externalID":"s:9SwiftHPKE9PublicKeyV3derSays5UInt8VGvp","role":"symbol"},"variants":[{"paths":["\/documentation\/swifthpke\/publickey\/der"],"traits":[{"interfaceLanguage":"swift"}]}],"abstract":[{"type":"text","text":"The DER encoding of "},{"type":"codeVoice","code":"self"}],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description"],"generated":true,"title":"Properties"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/description":{"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"abstract":[{"text":"A textual representation of the ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"title":"description","url":"\/documentation\/swifthpke\/publickey\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description","type":"topic","kind":"symbol","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/asn1":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","title":"asn1","url":"\/documentation\/swifthpke\/publickey\/asn1","type":"topic","kind":"symbol","role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"asn1","kind":"identifier"},{"text":": ","kind":"text"},{"text":"ASN1","preciseIdentifier":"s:4ASN1AAC","kind":"typeIdentifier"}],"abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/pem":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","url":"\/documentation\/swifthpke\/publickey\/pem","title":"pem","type":"topic","kind":"symbol","role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"abstract":[{"text":"The PEM base 64 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/bytes":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","title":"bytes","url":"\/documentation\/swifthpke\/publickey\/bytes","type":"topic","kind":"symbol","role":"symbol","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"abstract":[{"text":"The serialized key bytes","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/der":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","url":"\/documentation\/swifthpke\/publickey\/der","title":"der","type":"topic","kind":"symbol","role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"abstract":[{"text":"The DER encoding of ","type":"text"},{"code":"self","type":"codeVoice"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/publickey/description.json b/docs/data/documentation/swifthpke/publickey/description.json index 0b94a3b..86f7717 100644 --- a/docs/data/documentation/swifthpke/publickey/description.json +++ b/docs/data/documentation/swifthpke/publickey/description.json @@ -1 +1 @@ -{"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description"},"sections":[],"primaryContentSections":[{"declarations":[{"languages":["swift"],"tokens":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"text":" { ","kind":"text"},{"text":"get","kind":"keyword"},{"kind":"text","text":" }"}],"platforms":["macOS"]}],"kind":"declarations"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey\/description"]}],"seeAlsoSections":[{"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der"],"generated":true}],"schemaVersion":{"patch":0,"major":0,"minor":3},"metadata":{"role":"symbol","title":"description","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE9PublicKeyV11descriptionSSvp","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"description"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"roleHeading":"Instance Property","symbolKind":"property"},"abstract":[{"text":"A textual representation of the ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/der":{"url":"\/documentation\/swifthpke\/publickey\/der","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","kind":"symbol","title":"der","role":"symbol","abstract":[{"text":"The DER encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/asn1":{"url":"\/documentation\/swifthpke\/publickey\/asn1","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","kind":"symbol","title":"asn1","role":"symbol","abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"asn1","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC","text":"ASN1"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/description":{"url":"\/documentation\/swifthpke\/publickey\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description","kind":"symbol","title":"description","role":"symbol","abstract":[{"text":"A textual representation of the ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/pem":{"url":"\/documentation\/swifthpke\/publickey\/pem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","kind":"symbol","title":"pem","role":"symbol","abstract":[{"type":"text","text":"The PEM base 64 encoding of "},{"code":"self","type":"codeVoice"}],"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/bytes":{"url":"\/documentation\/swifthpke\/publickey\/bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","kind":"symbol","title":"bytes","role":"symbol","abstract":[{"text":"The serialized key bytes","type":"text"}],"fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"type":"topic"}}} \ No newline at end of file +{"sections":[],"kind":"symbol","metadata":{"role":"symbol","externalID":"s:9SwiftHPKE9PublicKeyV11descriptionSSvp","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"symbolKind":"property","title":"description","roleHeading":"Instance Property","modules":[{"name":"SwiftHPKE"}]},"seeAlsoSections":[{"generated":true,"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der"]}],"schemaVersion":{"major":0,"patch":0,"minor":3},"abstract":[{"text":"A textual representation of the ASN1 encoding of ","type":"text"},{"code":"self","type":"codeVoice"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"kind":"text","text":": "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":" { ","kind":"text"},{"text":"get","kind":"keyword"},{"kind":"text","text":" }"}],"platforms":["macOS"],"languages":["swift"]}]}],"variants":[{"paths":["\/documentation\/swifthpke\/publickey\/description"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/der":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","url":"\/documentation\/swifthpke\/publickey\/der","title":"der","type":"topic","kind":"symbol","role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"abstract":[{"text":"The DER encoding of ","type":"text"},{"code":"self","type":"codeVoice"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/bytes":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","title":"bytes","url":"\/documentation\/swifthpke\/publickey\/bytes","type":"topic","kind":"symbol","role":"symbol","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"abstract":[{"text":"The serialized key bytes","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/description":{"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"abstract":[{"text":"A textual representation of the ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"title":"description","url":"\/documentation\/swifthpke\/publickey\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description","type":"topic","kind":"symbol","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/pem":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","url":"\/documentation\/swifthpke\/publickey\/pem","title":"pem","type":"topic","kind":"symbol","role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"abstract":[{"text":"The PEM base 64 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/asn1":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","title":"asn1","url":"\/documentation\/swifthpke\/publickey\/asn1","type":"topic","kind":"symbol","role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"asn1","kind":"identifier"},{"text":": ","kind":"text"},{"text":"ASN1","preciseIdentifier":"s:4ASN1AAC","kind":"typeIdentifier"}],"abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/publickey/equatable-implementations.json b/docs/data/documentation/swifthpke/publickey/equatable-implementations.json index c44430f..0ce03e4 100644 --- a/docs/data/documentation/swifthpke/publickey/equatable-implementations.json +++ b/docs/data/documentation/swifthpke/publickey/equatable-implementations.json @@ -1 +1 @@ -{"schemaVersion":{"minor":3,"patch":0,"major":0},"kind":"article","identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/Equatable-Implementations"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey\/equatable-implementations"]}],"sections":[],"metadata":{"role":"collectionGroup","roleHeading":"API Collection","title":"Equatable Implementations","modules":[{"name":"SwiftHPKE"}]},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"topicSections":[{"title":"Operators","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/!=(_:_:)"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/!=(_:_:)":{"fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"!=","kind":"identifier"},{"kind":"text","text":" "},{"kind":"text","text":"("},{"text":"Self","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"Self"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:Sb","text":"Bool","kind":"typeIdentifier"}],"role":"symbol","kind":"symbol","type":"topic","title":"!=(_:_:)","abstract":[],"url":"\/documentation\/swifthpke\/publickey\/!=(_:_:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/!=(_:_:)"}}} \ No newline at end of file +{"kind":"article","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"metadata":{"roleHeading":"API Collection","role":"collectionGroup","modules":[{"name":"SwiftHPKE"}],"title":"Equatable Implementations"},"sections":[],"topicSections":[{"title":"Operators","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/!=(_:_:)"],"generated":true}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey\/equatable-implementations"]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/Equatable-Implementations"},"schemaVersion":{"minor":3,"major":0,"patch":0},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/!=(_:_:)":{"role":"symbol","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"typeIdentifier","text":"Self"},{"text":") -> ","kind":"text"},{"text":"Bool","preciseIdentifier":"s:Sb","kind":"typeIdentifier"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/!=(_:_:)","type":"topic","url":"\/documentation\/swifthpke\/publickey\/!=(_:_:)","kind":"symbol","title":"!=(_:_:)","abstract":[]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/publickey/init(der:).json b/docs/data/documentation/swifthpke/publickey/init(der:).json index c9de6ac..bc361fe 100644 --- a/docs/data/documentation/swifthpke/publickey/init(der:).json +++ b/docs/data/documentation/swifthpke/publickey/init(der:).json @@ -1 +1 @@ -{"metadata":{"title":"init(der:)","role":"symbol","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"der"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"roleHeading":"Initializer","modules":[{"name":"SwiftHPKE"}],"symbolKind":"init","externalID":"s:9SwiftHPKE9PublicKeyV3derACSays5UInt8VG_tKcfc"},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"init","kind":"keyword"},{"text":"(","kind":"text"},{"text":"der","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"languages":["swift"]}]},{"kind":"parameters","parameters":[{"content":[{"inlineContent":[{"type":"text","text":"The DER encoding of the key"}],"type":"paragraph"}],"name":"der"}]},{"content":[{"type":"heading","anchor":"discussion","level":2,"text":"Discussion"},{"style":"note","name":"Throws","content":[{"inlineContent":[{"text":"An exception if the DER encoding is wrong","type":"text"}],"type":"paragraph"}],"type":"aside"}],"kind":"content"}],"sections":[],"kind":"symbol","schemaVersion":{"patch":0,"major":0,"minor":3},"abstract":[{"type":"text","text":"Creates a PublicKey from its DER encoding"}],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)"],"generated":true,"title":"Constructors"}],"variants":[{"paths":["\/documentation\/swifthpke\/publickey\/init(der:)"],"traits":[{"interfaceLanguage":"swift"}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(pem:)":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)","abstract":[{"type":"text","text":"Creates a PublicKey from its PEM encoding"}],"title":"init(pem:)","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"text":"pem","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/publickey\/init(pem:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(kem:bytes:)":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)","abstract":[{"text":"Creates a PublicKey from its type and key bytes.","type":"text"}],"title":"init(kem:bytes:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"kem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM"},{"kind":"text","text":", "},{"text":"bytes","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"role":"symbol","url":"\/documentation\/swifthpke\/publickey\/init(kem:bytes:)","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(der:)":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)","abstract":[{"text":"Creates a PublicKey from its DER encoding","type":"text"}],"title":"init(der:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"der","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/publickey\/init(der:)"}}} \ No newline at end of file +{"schemaVersion":{"major":0,"minor":3,"patch":0},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)","interfaceLanguage":"swift"},"seeAlsoSections":[{"generated":true,"title":"Constructors","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)"]}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"init","kind":"keyword"},{"text":"(","kind":"text"},{"text":"der","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]}]},{"kind":"parameters","parameters":[{"content":[{"inlineContent":[{"text":"The DER encoding of the key","type":"text"}],"type":"paragraph"}],"name":"der"}]},{"kind":"content","content":[{"text":"Discussion","anchor":"discussion","type":"heading","level":2},{"name":"Throws","type":"aside","style":"note","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if the DER encoding is wrong"}]}]}]}],"metadata":{"role":"symbol","title":"init(der:)","roleHeading":"Initializer","externalID":"s:9SwiftHPKE9PublicKeyV3derACSays5UInt8VG_tKcfc","symbolKind":"init","modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"der","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}]},"kind":"symbol","abstract":[{"type":"text","text":"Creates a PublicKey from its DER encoding"}],"variants":[{"paths":["\/documentation\/swifthpke\/publickey\/init(der:)"],"traits":[{"interfaceLanguage":"swift"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(kem:bytes:)":{"type":"topic","abstract":[{"text":"Creates a PublicKey from its type and key bytes.","type":"text"}],"title":"init(kem:bytes:)","kind":"symbol","role":"symbol","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"text":"kem","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM"},{"text":", ","kind":"text"},{"text":"bytes","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)","url":"\/documentation\/swifthpke\/publickey\/init(kem:bytes:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(pem:)":{"type":"topic","abstract":[{"type":"text","text":"Creates a PublicKey from its PEM encoding"}],"title":"init(pem:)","kind":"symbol","role":"symbol","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"pem"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)","url":"\/documentation\/swifthpke\/publickey\/init(pem:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(der:)":{"type":"topic","abstract":[{"type":"text","text":"Creates a PublicKey from its DER encoding"}],"title":"init(der:)","kind":"symbol","role":"symbol","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"der","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)","url":"\/documentation\/swifthpke\/publickey\/init(der:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/publickey/init(kem:bytes:).json b/docs/data/documentation/swifthpke/publickey/init(kem:bytes:).json index a23a0a3..57a677a 100644 --- a/docs/data/documentation/swifthpke/publickey/init(kem:bytes:).json +++ b/docs/data/documentation/swifthpke/publickey/init(kem:bytes:).json @@ -1 +1 @@ -{"variants":[{"paths":["\/documentation\/swifthpke\/publickey\/init(kem:bytes:)"],"traits":[{"interfaceLanguage":"swift"}]}],"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)"],"title":"Constructors"}],"metadata":{"title":"init(kem:bytes:)","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"text":"kem","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM"},{"text":", ","kind":"text"},{"text":"bytes","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"externalID":"s:9SwiftHPKE9PublicKeyV3kem5bytesAcA3KEMO_Says5UInt8VGtKcfc","symbolKind":"init","roleHeading":"Initializer","role":"symbol","modules":[{"name":"SwiftHPKE"}]},"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"init","kind":"keyword"},{"kind":"text","text":"("},{"text":"kem","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"KEM","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"bytes"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"kem","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The key type"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"The key bytes","type":"text"}]}],"name":"bytes"}]},{"content":[{"level":2,"text":"Discussion","type":"heading","anchor":"discussion"},{"type":"paragraph","inlineContent":[{"text":"For types P256, P384 and P521 the key bytes represents","type":"text"},{"type":"text","text":" "},{"text":"either a compressed curve point or an uncompressed curve point.","type":"text"}]},{"style":"note","content":[{"inlineContent":[{"type":"text","text":"An exception if "},{"code":"bytes","type":"codeVoice"},{"text":" has wrong size for the key type","type":"text"}],"type":"paragraph"}],"name":"Throws","type":"aside"}],"kind":"content"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)","interfaceLanguage":"swift"},"schemaVersion":{"minor":3,"patch":0,"major":0},"kind":"symbol","abstract":[{"text":"Creates a PublicKey from its type and key bytes.","type":"text"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"kind":"symbol","url":"\/documentation\/swifthpke\/kem","abstract":[{"text":"The key encapsulation mechanisms","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","role":"symbol","title":"KEM","type":"topic","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"KEM","kind":"identifier"}],"navigatorTitle":[{"text":"KEM","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(kem:bytes:)":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)","abstract":[{"text":"Creates a PublicKey from its type and key bytes.","type":"text"}],"title":"init(kem:bytes:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"kem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM"},{"kind":"text","text":", "},{"text":"bytes","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"role":"symbol","url":"\/documentation\/swifthpke\/publickey\/init(kem:bytes:)","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(der:)":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)","abstract":[{"text":"Creates a PublicKey from its DER encoding","type":"text"}],"title":"init(der:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"der","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/publickey\/init(der:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(pem:)":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)","abstract":[{"type":"text","text":"Creates a PublicKey from its PEM encoding"}],"title":"init(pem:)","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"text":"pem","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/publickey\/init(pem:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"}}} \ No newline at end of file +{"abstract":[{"text":"Creates a PublicKey from its type and key bytes.","type":"text"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey\/init(kem:bytes:)"]}],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)"],"generated":true,"title":"Constructors"}],"sections":[],"metadata":{"roleHeading":"Initializer","role":"symbol","externalID":"s:9SwiftHPKE9PublicKeyV3kem5bytesAcA3KEMO_Says5UInt8VGtKcfc","title":"init(kem:bytes:)","modules":[{"name":"SwiftHPKE"}],"symbolKind":"init","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"kem"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"bytes"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}]},"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"init","kind":"keyword"},{"kind":"text","text":"("},{"text":"kem","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","text":"KEM","preciseIdentifier":"s:9SwiftHPKE3KEMO","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"bytes"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]}],"kind":"declarations"},{"parameters":[{"name":"kem","content":[{"inlineContent":[{"text":"The key type","type":"text"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The key bytes"}]}],"name":"bytes"}],"kind":"parameters"},{"kind":"content","content":[{"level":2,"type":"heading","text":"Discussion","anchor":"discussion"},{"inlineContent":[{"type":"text","text":"For types P256, P384 and P521 the key bytes represents"},{"text":" ","type":"text"},{"type":"text","text":"either a compressed curve point or an uncompressed curve point."}],"type":"paragraph"},{"style":"note","name":"Throws","type":"aside","content":[{"inlineContent":[{"type":"text","text":"An exception if "},{"type":"codeVoice","code":"bytes"},{"text":" has wrong size for the key type","type":"text"}],"type":"paragraph"}]}]}],"kind":"symbol","identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)"},"schemaVersion":{"patch":0,"minor":3,"major":0},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(der:)":{"type":"topic","abstract":[{"type":"text","text":"Creates a PublicKey from its DER encoding"}],"title":"init(der:)","kind":"symbol","role":"symbol","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"der","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)","url":"\/documentation\/swifthpke\/publickey\/init(der:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(kem:bytes:)":{"type":"topic","abstract":[{"text":"Creates a PublicKey from its type and key bytes.","type":"text"}],"title":"init(kem:bytes:)","kind":"symbol","role":"symbol","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"text":"kem","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM"},{"text":", ","kind":"text"},{"text":"bytes","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)","url":"\/documentation\/swifthpke\/publickey\/init(kem:bytes:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/KEM":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KEM","url":"\/documentation\/swifthpke\/kem","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"kind":"identifier","text":"KEM"}],"navigatorTitle":[{"kind":"identifier","text":"KEM"}],"kind":"symbol","title":"KEM","abstract":[{"type":"text","text":"The key encapsulation mechanisms"}],"role":"symbol","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(pem:)":{"type":"topic","abstract":[{"type":"text","text":"Creates a PublicKey from its PEM encoding"}],"title":"init(pem:)","kind":"symbol","role":"symbol","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"pem"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)","url":"\/documentation\/swifthpke\/publickey\/init(pem:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/publickey/init(pem:).json b/docs/data/documentation/swifthpke/publickey/init(pem:).json index 476fd99..0cb59d1 100644 --- a/docs/data/documentation/swifthpke/publickey/init(pem:).json +++ b/docs/data/documentation/swifthpke/publickey/init(pem:).json @@ -1 +1 @@ -{"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey\/init(pem:)"]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"seeAlsoSections":[{"title":"Constructors","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)"],"generated":true}],"sections":[],"kind":"symbol","metadata":{"title":"init(pem:)","role":"symbol","roleHeading":"Initializer","modules":[{"name":"SwiftHPKE"}],"symbolKind":"init","externalID":"s:9SwiftHPKE9PublicKeyV3pemACSS_tKcfc","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"pem","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"abstract":[{"type":"text","text":"Creates a PublicKey from its PEM encoding"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"init"},{"kind":"text","text":"("},{"text":"pem","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]}]},{"parameters":[{"name":"pem","content":[{"inlineContent":[{"type":"text","text":"The PEM encoding of the key"}],"type":"paragraph"}]}],"kind":"parameters"},{"kind":"content","content":[{"anchor":"discussion","text":"Discussion","type":"heading","level":2},{"style":"note","name":"Throws","type":"aside","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if the PEM encoding is wrong","type":"text"}]}]}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(pem:)":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)","abstract":[{"type":"text","text":"Creates a PublicKey from its PEM encoding"}],"title":"init(pem:)","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"text":"pem","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/publickey\/init(pem:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(der:)":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)","abstract":[{"text":"Creates a PublicKey from its DER encoding","type":"text"}],"title":"init(der:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"der","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/publickey\/init(der:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(kem:bytes:)":{"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)","abstract":[{"text":"Creates a PublicKey from its type and key bytes.","type":"text"}],"title":"init(kem:bytes:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"kem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM"},{"kind":"text","text":", "},{"text":"bytes","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"role":"symbol","url":"\/documentation\/swifthpke\/publickey\/init(kem:bytes:)","type":"topic"}}} \ No newline at end of file +{"kind":"symbol","sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)"],"title":"Constructors","generated":true}],"schemaVersion":{"major":0,"patch":0,"minor":3},"variants":[{"paths":["\/documentation\/swifthpke\/publickey\/init(pem:)"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)"},"abstract":[{"text":"Creates a PublicKey from its PEM encoding","type":"text"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"init","kind":"keyword"},{"kind":"text","text":"("},{"text":"pem","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"languages":["swift"]}]},{"kind":"parameters","parameters":[{"name":"pem","content":[{"type":"paragraph","inlineContent":[{"text":"The PEM encoding of the key","type":"text"}]}]}]},{"kind":"content","content":[{"level":2,"anchor":"discussion","text":"Discussion","type":"heading"},{"type":"aside","content":[{"inlineContent":[{"type":"text","text":"An exception if the PEM encoding is wrong"}],"type":"paragraph"}],"style":"note","name":"Throws"}]}],"metadata":{"modules":[{"name":"SwiftHPKE"}],"roleHeading":"Initializer","symbolKind":"init","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"pem"},{"kind":"text","text":": "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"externalID":"s:9SwiftHPKE9PublicKeyV3pemACSS_tKcfc","role":"symbol","title":"init(pem:)"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(pem:)":{"type":"topic","abstract":[{"type":"text","text":"Creates a PublicKey from its PEM encoding"}],"title":"init(pem:)","kind":"symbol","role":"symbol","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"pem"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(pem:)","url":"\/documentation\/swifthpke\/publickey\/init(pem:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(der:)":{"type":"topic","abstract":[{"type":"text","text":"Creates a PublicKey from its DER encoding"}],"title":"init(der:)","kind":"symbol","role":"symbol","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"der","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(der:)","url":"\/documentation\/swifthpke\/publickey\/init(der:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/init(kem:bytes:)":{"type":"topic","abstract":[{"text":"Creates a PublicKey from its type and key bytes.","type":"text"}],"title":"init(kem:bytes:)","kind":"symbol","role":"symbol","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"text":"kem","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE3KEMO","text":"KEM"},{"text":", ","kind":"text"},{"text":"bytes","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/init(kem:bytes:)","url":"\/documentation\/swifthpke\/publickey\/init(kem:bytes:)"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/publickey/pem.json b/docs/data/documentation/swifthpke/publickey/pem.json index 4a4074d..88b4e28 100644 --- a/docs/data/documentation/swifthpke/publickey/pem.json +++ b/docs/data/documentation/swifthpke/publickey/pem.json @@ -1 +1 @@ -{"abstract":[{"type":"text","text":"The PEM base 64 encoding of "},{"type":"codeVoice","code":"self"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem"},"schemaVersion":{"major":0,"patch":0,"minor":3},"kind":"symbol","variants":[{"paths":["\/documentation\/swifthpke\/publickey\/pem"],"traits":[{"interfaceLanguage":"swift"}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"sections":[],"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description"],"title":"Properties"}],"primaryContentSections":[{"declarations":[{"languages":["swift"],"tokens":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"pem"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"text":" { ","kind":"text"},{"text":"get","kind":"keyword"},{"kind":"text","text":" }"}],"platforms":["macOS"]}],"kind":"declarations"}],"metadata":{"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"}],"role":"symbol","roleHeading":"Instance Property","externalID":"s:9SwiftHPKE9PublicKeyV3pemSSvp","title":"pem","symbolKind":"property","modules":[{"name":"SwiftHPKE"}]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/description":{"url":"\/documentation\/swifthpke\/publickey\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description","kind":"symbol","title":"description","role":"symbol","abstract":[{"text":"A textual representation of the ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/pem":{"url":"\/documentation\/swifthpke\/publickey\/pem","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","kind":"symbol","title":"pem","role":"symbol","abstract":[{"type":"text","text":"The PEM base 64 encoding of "},{"code":"self","type":"codeVoice"}],"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/bytes":{"url":"\/documentation\/swifthpke\/publickey\/bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","kind":"symbol","title":"bytes","role":"symbol","abstract":[{"text":"The serialized key bytes","type":"text"}],"fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/der":{"url":"\/documentation\/swifthpke\/publickey\/der","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","kind":"symbol","title":"der","role":"symbol","abstract":[{"text":"The DER encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/asn1":{"url":"\/documentation\/swifthpke\/publickey\/asn1","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","kind":"symbol","title":"asn1","role":"symbol","abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"asn1","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:4ASN1AAC","text":"ASN1"}],"type":"topic"}}} \ No newline at end of file +{"seeAlsoSections":[{"title":"Properties","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description"],"generated":true}],"sections":[],"abstract":[{"text":"The PEM base 64 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/publickey\/pem"]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey"]]},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"pem"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"text":" { ","kind":"text"},{"text":"get","kind":"keyword"},{"text":" }","kind":"text"}]}]}],"kind":"symbol","schemaVersion":{"patch":0,"minor":3,"major":0},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","interfaceLanguage":"swift"},"metadata":{"symbolKind":"property","modules":[{"name":"SwiftHPKE"}],"role":"symbol","roleHeading":"Instance Property","externalID":"s:9SwiftHPKE9PublicKeyV3pemSSvp","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"kind":"identifier","text":"pem"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"title":"pem"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/description":{"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"description","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"abstract":[{"text":"A textual representation of the ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}],"title":"description","url":"\/documentation\/swifthpke\/publickey\/description","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/description","type":"topic","kind":"symbol","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/asn1":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/asn1","title":"asn1","url":"\/documentation\/swifthpke\/publickey\/asn1","type":"topic","kind":"symbol","role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"asn1","kind":"identifier"},{"text":": ","kind":"text"},{"text":"ASN1","preciseIdentifier":"s:4ASN1AAC","kind":"typeIdentifier"}],"abstract":[{"text":"The ASN1 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/bytes":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/bytes","title":"bytes","url":"\/documentation\/swifthpke\/publickey\/bytes","type":"topic","kind":"symbol","role":"symbol","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"text":"bytes","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"abstract":[{"text":"The serialized key bytes","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/der":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/der","url":"\/documentation\/swifthpke\/publickey\/der","title":"der","type":"topic","kind":"symbol","role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"der","kind":"identifier"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"abstract":[{"text":"The DER encoding of ","type":"text"},{"code":"self","type":"codeVoice"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey/pem":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey\/pem","url":"\/documentation\/swifthpke\/publickey\/pem","title":"pem","type":"topic","kind":"symbol","role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"pem","kind":"identifier"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"abstract":[{"text":"The PEM base 64 encoding of ","type":"text"},{"type":"codeVoice","code":"self"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/recipient.json b/docs/data/documentation/swifthpke/recipient.json index 5bdf1b7..39cdc01 100644 --- a/docs/data/documentation/swifthpke/recipient.json +++ b/docs/data/documentation/swifthpke/recipient.json @@ -1 +1 @@ -{"metadata":{"role":"symbol","symbolKind":"class","externalID":"s:9SwiftHPKE9RecipientC","navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"Recipient"}],"roleHeading":"Class","title":"Recipient"},"abstract":[{"text":"The recipient","type":"text"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"],"title":"Classes","generated":true}],"variants":[{"paths":["\/documentation\/swifthpke\/recipient"],"traits":[{"interfaceLanguage":"swift"}]}],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"text":"Recipient","kind":"identifier"}],"languages":["swift"],"platforms":["macOS"]}]},{"kind":"content","content":[{"anchor":"Overview","level":2,"text":"Overview","type":"heading"},{"type":"paragraph","inlineContent":[{"text":"Based on its ","type":"text"},{"type":"reference","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","isActive":true},{"text":", a ","type":"text"},{"type":"codeVoice","code":"Recipient"},{"text":" instance can decrypt a sequence of messages in one of four modes:","type":"text"}]},{"type":"unorderedList","items":[{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Base mode"}]}]},{"content":[{"inlineContent":[{"type":"text","text":"Preshared key mode"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"type":"text","text":"Authenticated mode"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"Authenticated, preshared key mode","type":"text"}]}]}]},{"name":"Important","content":[{"inlineContent":[{"type":"text","text":""},{"type":"text","text":" "},{"type":"text","text":"The decryption of the messages must be done in the order in which they were encrypted."}],"type":"paragraph"}],"style":"important","type":"aside"},{"type":"paragraph","inlineContent":[{"type":"text","text":"A "},{"code":"Recipient","type":"codeVoice"},{"text":" instance can also retrieve a generated export secret.","type":"text"}]}]}],"topicSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)"],"title":"Constructors"},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/open(ct:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/receiveExport(context:L:)"],"title":"Methods"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"},"schemaVersion":{"patch":0,"major":0,"minor":3},"sections":[],"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:encap:)":{"kind":"symbol","title":"init(suite:privateKey:info:authentication:encap:)","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:encap:)","role":"symbol","type":"topic","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","abstract":[{"text":"Creates a Recipient instance in authenticated mode","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:encap:)":{"kind":"symbol","title":"init(suite:privateKey:info:encap:)","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:encap:)","role":"symbol","type":"topic","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","abstract":[{"text":"Creates a Recipient instance in base mode","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:psk:pskId:encap:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in preshared key mode"}],"fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"type":"topic","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:psk:pskid:encap:)","kind":"symbol","title":"init(suite:privateKey:info:psk:pskId:encap:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/receiveExport(context:L:)":{"role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"receiveExport"},{"text":"(","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"title":"receiveExport(context:L:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/receiveExport(context:L:)","type":"topic","abstract":[{"type":"text","text":"Retrieve an export secret"}],"kind":"symbol","url":"\/documentation\/swifthpke\/recipient\/receiveexport(context:l:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/open(ct:aad:)":{"role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"title":"open(ct:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/open(ct:aad:)","type":"topic","abstract":[{"type":"text","text":"Decrypts a message"}],"kind":"symbol","url":"\/documentation\/swifthpke\/recipient\/open(ct:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"Sender"}],"navigatorTitle":[{"text":"Sender","kind":"identifier"}],"kind":"symbol","abstract":[{"type":"text","text":"The sender"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","type":"topic","url":"\/documentation\/swifthpke\/sender","role":"symbol","title":"Sender"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:psk:pskId:encap:)":{"kind":"symbol","title":"init(suite:privateKey:info:authentication:psk:pskId:encap:)","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:psk:pskid:encap:)","role":"symbol","type":"topic","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)","abstract":[{"text":"Creates a Recipient instance in authenticated, preshared key mode","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"kind":"symbol","title":"Recipient","url":"\/documentation\/swifthpke\/recipient","role":"symbol","type":"topic","fragments":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Recipient"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"abstract":[{"text":"The recipient","type":"text"}]}}} \ No newline at end of file +{"kind":"symbol","primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Recipient"}],"languages":["swift"]}]},{"kind":"content","content":[{"type":"heading","anchor":"Overview","level":2,"text":"Overview"},{"type":"paragraph","inlineContent":[{"type":"text","text":"Based on its "},{"type":"reference","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","isActive":true},{"type":"text","text":", a "},{"type":"codeVoice","code":"Recipient"},{"type":"text","text":" instance can decrypt a sequence of messages in one of four modes:"}]},{"type":"unorderedList","items":[{"content":[{"type":"paragraph","inlineContent":[{"text":"Base mode","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"Preshared key mode","type":"text"}]}]},{"content":[{"inlineContent":[{"text":"Authenticated mode","type":"text"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Authenticated, preshared key mode"}]}]}]},{"type":"aside","style":"important","name":"Important","content":[{"inlineContent":[{"type":"text","text":""},{"type":"text","text":" "},{"text":"The decryption of the messages must be done in the order in which they were encrypted.","type":"text"}],"type":"paragraph"}]},{"inlineContent":[{"type":"text","text":"A "},{"code":"Recipient","type":"codeVoice"},{"type":"text","text":" instance can also retrieve a generated export secret."}],"type":"paragraph"}]}],"abstract":[{"text":"The recipient","type":"text"}],"sections":[],"metadata":{"roleHeading":"Class","title":"Recipient","externalID":"s:9SwiftHPKE9RecipientC","role":"symbol","modules":[{"name":"SwiftHPKE"}],"navigatorTitle":[{"kind":"identifier","text":"Recipient"}],"symbolKind":"class","fragments":[{"kind":"keyword","text":"class"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Recipient"}]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/recipient"]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"schemaVersion":{"major":0,"patch":0,"minor":3},"seeAlsoSections":[{"title":"Classes","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"],"generated":true}],"topicSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)"],"title":"Constructors"},{"title":"Methods","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/open(ct:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/receiveExport(context:L:)"]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"url":"\/documentation\/swifthpke\/recipient","abstract":[{"type":"text","text":"The recipient"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"text":"Recipient","kind":"identifier"}],"type":"topic","kind":"symbol","navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"title":"Recipient"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:encap:)":{"url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:encap:)","abstract":[{"text":"Creates a Recipient instance in authenticated mode","type":"text"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"type":"topic","kind":"symbol","title":"init(suite:privateKey:info:authentication:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"url":"\/documentation\/swifthpke\/sender","type":"topic","abstract":[{"type":"text","text":"The sender"}],"role":"symbol","fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"Sender"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","title":"Sender","navigatorTitle":[{"kind":"identifier","text":"Sender"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/receiveExport(context:L:)":{"kind":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"title":"receiveExport(context:L:)","type":"topic","abstract":[{"type":"text","text":"Retrieve an export secret"}],"role":"symbol","url":"\/documentation\/swifthpke\/recipient\/receiveexport(context:l:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/receiveExport(context:L:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:psk:pskId:encap:)":{"url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:psk:pskid:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in authenticated, preshared key mode"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"type":"topic","kind":"symbol","title":"init(suite:privateKey:info:authentication:psk:pskId:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:encap:)":{"url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in base mode"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"type":"topic","kind":"symbol","title":"init(suite:privateKey:info:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:psk:pskId:encap:)":{"url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:psk:pskid:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in preshared key mode"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"type":"topic","kind":"symbol","title":"init(suite:privateKey:info:psk:pskId:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/open(ct:aad:)":{"kind":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"title":"open(ct:aad:)","type":"topic","abstract":[{"type":"text","text":"Decrypts a message"}],"role":"symbol","url":"\/documentation\/swifthpke\/recipient\/open(ct:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/open(ct:aad:)"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:encap:).json b/docs/data/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:encap:).json index 55f9896..dbe5673 100644 --- a/docs/data/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:encap:).json +++ b/docs/data/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:encap:).json @@ -1 +1 @@ -{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"]]},"abstract":[{"type":"text","text":"Creates a Recipient instance in authenticated mode"}],"sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","interfaceLanguage":"swift"},"seeAlsoSections":[{"title":"Constructors","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)"],"generated":true}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"text":"init","kind":"keyword"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier","text":"CipherSuite"},{"kind":"text","text":", "},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"platforms":["macOS"]}]},{"kind":"parameters","parameters":[{"name":"suite","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The CipherSuite of the Recipient"}]}]},{"name":"privateKey","content":[{"inlineContent":[{"text":"The recipient private key","type":"text"}],"type":"paragraph"}]},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}]},{"name":"authentication","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The sender public key"}]}]},{"name":"encap","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The encapsulated key"}]}]}]},{"kind":"content","content":[{"anchor":"discussion","level":2,"type":"heading","text":"Discussion"},{"content":[{"type":"paragraph","inlineContent":[{"text":"An exception if one of the keys does not match ","type":"text"},{"type":"codeVoice","code":"suite"}]}],"style":"note","name":"Throws","type":"aside"}]}],"schemaVersion":{"minor":3,"patch":0,"major":0},"metadata":{"modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE9RecipientC5suite10privateKey4info14authentication5encapAcA11CipherSuiteV_AA07PrivateF0VSays5UInt8VGAA06PublicF0VAOtKcfc","symbolKind":"init","role":"symbol","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"title":"init(suite:privateKey:info:authentication:encap:)","roleHeading":"Initializer"},"kind":"symbol","variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:encap:)"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:psk:pskId:encap:)":{"kind":"symbol","title":"init(suite:privateKey:info:authentication:psk:pskId:encap:)","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:psk:pskid:encap:)","role":"symbol","type":"topic","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)","abstract":[{"text":"Creates a Recipient instance in authenticated, preshared key mode","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:encap:)":{"kind":"symbol","title":"init(suite:privateKey:info:authentication:encap:)","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:encap:)","role":"symbol","type":"topic","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","abstract":[{"text":"Creates a Recipient instance in authenticated mode","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:psk:pskId:encap:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in preshared key mode"}],"fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"type":"topic","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:psk:pskid:encap:)","kind":"symbol","title":"init(suite:privateKey:info:psk:pskId:encap:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:encap:)":{"kind":"symbol","title":"init(suite:privateKey:info:encap:)","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:encap:)","role":"symbol","type":"topic","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","abstract":[{"text":"Creates a Recipient instance in base mode","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"kind":"symbol","title":"Recipient","url":"\/documentation\/swifthpke\/recipient","role":"symbol","type":"topic","fragments":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Recipient"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"abstract":[{"text":"The recipient","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"}}} \ No newline at end of file +{"abstract":[{"type":"text","text":"Creates a Recipient instance in authenticated mode"}],"seeAlsoSections":[{"generated":true,"title":"Constructors","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)"]}],"kind":"symbol","metadata":{"role":"symbol","externalID":"s:9SwiftHPKE9RecipientC5suite10privateKey4info14authentication5encapAcA11CipherSuiteV_AA07PrivateF0VSays5UInt8VGAA06PublicF0VAOtKcfc","modules":[{"name":"SwiftHPKE"}],"title":"init(suite:privateKey:info:authentication:encap:)","roleHeading":"Initializer","symbolKind":"init","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:encap:)"]}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"init","kind":"keyword"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"},{"kind":"text","text":", "},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PublicKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"languages":["swift"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"suite","content":[{"type":"paragraph","inlineContent":[{"text":"The CipherSuite of the Recipient","type":"text"}]}]},{"name":"privateKey","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient private key"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}],"name":"info"},{"name":"authentication","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The sender public key"}]}]},{"name":"encap","content":[{"type":"paragraph","inlineContent":[{"text":"The encapsulated key","type":"text"}]}]}]},{"kind":"content","content":[{"level":2,"text":"Discussion","type":"heading","anchor":"discussion"},{"style":"note","name":"Throws","content":[{"inlineContent":[{"text":"An exception if one of the keys does not match ","type":"text"},{"type":"codeVoice","code":"suite"}],"type":"paragraph"}],"type":"aside"}]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"]]},"sections":[],"schemaVersion":{"minor":3,"patch":0,"major":0},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:psk:pskId:encap:)":{"url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:psk:pskid:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in authenticated, preshared key mode"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"type":"topic","kind":"symbol","title":"init(suite:privateKey:info:authentication:psk:pskId:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:encap:)":{"url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in base mode"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"type":"topic","kind":"symbol","title":"init(suite:privateKey:info:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:encap:)":{"url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:encap:)","abstract":[{"text":"Creates a Recipient instance in authenticated mode","type":"text"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"type":"topic","kind":"symbol","title":"init(suite:privateKey:info:authentication:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"url":"\/documentation\/swifthpke\/recipient","abstract":[{"type":"text","text":"The recipient"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"text":"Recipient","kind":"identifier"}],"type":"topic","kind":"symbol","navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"title":"Recipient"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:psk:pskId:encap:)":{"url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:psk:pskid:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in preshared key mode"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"type":"topic","kind":"symbol","title":"init(suite:privateKey:info:psk:pskId:encap:)"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:psk:pskid:encap:).json b/docs/data/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:psk:pskid:encap:).json index 0987128..b2c23b6 100644 --- a/docs/data/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:psk:pskid:encap:).json +++ b/docs/data/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:psk:pskid:encap:).json @@ -1 +1 @@ -{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"]]},"kind":"symbol","primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"text":"init","kind":"keyword"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"platforms":["macOS"]}]},{"parameters":[{"name":"suite","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The CipherSuite of the Recipient"}]}]},{"name":"privateKey","content":[{"type":"paragraph","inlineContent":[{"text":"The recipient private key","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}],"name":"info"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The sender public key"}]}],"name":"authentication"},{"name":"psk","content":[{"inlineContent":[{"type":"text","text":"The preshared key"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"type":"text","text":"The preshared key id"}],"type":"paragraph"}],"name":"pskId"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The encapsulated key"}]}],"name":"encap"}],"kind":"parameters"},{"content":[{"type":"heading","anchor":"discussion","text":"Discussion","level":2},{"name":"Throws","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if one of the keys does not match ","type":"text"},{"type":"codeVoice","code":"suite"}]}],"style":"note","type":"aside"}],"kind":"content"}],"seeAlsoSections":[{"generated":true,"title":"Constructors","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)"]}],"schemaVersion":{"major":0,"patch":0,"minor":3},"abstract":[{"text":"Creates a Recipient instance in authenticated, preshared key mode","type":"text"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:psk:pskid:encap:)"]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)","interfaceLanguage":"swift"},"metadata":{"symbolKind":"init","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier","text":"CipherSuite"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"externalID":"s:9SwiftHPKE9RecipientC5suite10privateKey4info14authentication3psk0I2Id5encapAcA11CipherSuiteV_AA07PrivateF0VSays5UInt8VGAA06PublicF0VA3QtKcfc","role":"symbol","roleHeading":"Initializer","modules":[{"name":"SwiftHPKE"}],"title":"init(suite:privateKey:info:authentication:psk:pskId:encap:)"},"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:encap:)":{"kind":"symbol","title":"init(suite:privateKey:info:encap:)","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:encap:)","role":"symbol","type":"topic","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","abstract":[{"text":"Creates a Recipient instance in base mode","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:psk:pskId:encap:)":{"kind":"symbol","title":"init(suite:privateKey:info:authentication:psk:pskId:encap:)","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:psk:pskid:encap:)","role":"symbol","type":"topic","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)","abstract":[{"text":"Creates a Recipient instance in authenticated, preshared key mode","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"kind":"symbol","title":"Recipient","url":"\/documentation\/swifthpke\/recipient","role":"symbol","type":"topic","fragments":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Recipient"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"abstract":[{"text":"The recipient","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:encap:)":{"kind":"symbol","title":"init(suite:privateKey:info:authentication:encap:)","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:encap:)","role":"symbol","type":"topic","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","abstract":[{"text":"Creates a Recipient instance in authenticated mode","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:psk:pskId:encap:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in preshared key mode"}],"fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"type":"topic","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:psk:pskid:encap:)","kind":"symbol","title":"init(suite:privateKey:info:psk:pskId:encap:)","role":"symbol"}}} \ No newline at end of file +{"abstract":[{"type":"text","text":"Creates a Recipient instance in authenticated, preshared key mode"}],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)"],"title":"Constructors","generated":true}],"kind":"symbol","metadata":{"role":"symbol","externalID":"s:9SwiftHPKE9RecipientC5suite10privateKey4info14authentication3psk0I2Id5encapAcA11CipherSuiteV_AA07PrivateF0VSays5UInt8VGAA06PublicF0VA3QtKcfc","modules":[{"name":"SwiftHPKE"}],"title":"init(suite:privateKey:info:authentication:psk:pskId:encap:)","roleHeading":"Initializer","symbolKind":"init","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:psk:pskid:encap:)"]}],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"kind":"keyword","text":"init"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"CipherSuite","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}]}]},{"kind":"parameters","parameters":[{"name":"suite","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The CipherSuite of the Recipient"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient private key"}]}],"name":"privateKey"},{"name":"info","content":[{"inlineContent":[{"text":"The additional information","type":"text"}],"type":"paragraph"}]},{"name":"authentication","content":[{"type":"paragraph","inlineContent":[{"text":"The sender public key","type":"text"}]}]},{"name":"psk","content":[{"type":"paragraph","inlineContent":[{"text":"The preshared key","type":"text"}]}]},{"content":[{"inlineContent":[{"type":"text","text":"The preshared key id"}],"type":"paragraph"}],"name":"pskId"},{"content":[{"inlineContent":[{"text":"The encapsulated key","type":"text"}],"type":"paragraph"}],"name":"encap"}]},{"content":[{"text":"Discussion","type":"heading","level":2,"anchor":"discussion"},{"type":"aside","name":"Throws","style":"note","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"suite"}]}]}],"kind":"content"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"]]},"sections":[],"schemaVersion":{"major":0,"minor":3,"patch":0},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"url":"\/documentation\/swifthpke\/recipient","abstract":[{"type":"text","text":"The recipient"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"text":"Recipient","kind":"identifier"}],"type":"topic","kind":"symbol","navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"title":"Recipient"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:psk:pskId:encap:)":{"url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:psk:pskid:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in authenticated, preshared key mode"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"type":"topic","kind":"symbol","title":"init(suite:privateKey:info:authentication:psk:pskId:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:psk:pskId:encap:)":{"url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:psk:pskid:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in preshared key mode"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"type":"topic","kind":"symbol","title":"init(suite:privateKey:info:psk:pskId:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:encap:)":{"url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:encap:)","abstract":[{"text":"Creates a Recipient instance in authenticated mode","type":"text"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"type":"topic","kind":"symbol","title":"init(suite:privateKey:info:authentication:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:encap:)":{"url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in base mode"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"type":"topic","kind":"symbol","title":"init(suite:privateKey:info:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/recipient/init(suite:privatekey:info:encap:).json b/docs/data/documentation/swifthpke/recipient/init(suite:privatekey:info:encap:).json index 6e90e99..d91c59c 100644 --- a/docs/data/documentation/swifthpke/recipient/init(suite:privatekey:info:encap:).json +++ b/docs/data/documentation/swifthpke/recipient/init(suite:privatekey:info:encap:).json @@ -1 +1 @@ -{"abstract":[{"type":"text","text":"Creates a Recipient instance in base mode"}],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)"],"title":"Constructors","generated":true}],"metadata":{"fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier","text":"CipherSuite"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"externalID":"s:9SwiftHPKE9RecipientC5suite10privateKey4info5encapAcA11CipherSuiteV_AA07PrivateF0VSays5UInt8VGANtKcfc","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Initializer","symbolKind":"init","role":"symbol","title":"init(suite:privateKey:info:encap:)"},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier","text":"CipherSuite","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","text":"PrivateKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"platforms":["macOS"],"languages":["swift"]}]},{"parameters":[{"content":[{"type":"paragraph","inlineContent":[{"text":"The CipherSuite of the Recipient","type":"text"}]}],"name":"suite"},{"content":[{"inlineContent":[{"text":"The recipient private key","type":"text"}],"type":"paragraph"}],"name":"privateKey"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}],"name":"info"},{"name":"encap","content":[{"inlineContent":[{"type":"text","text":"The encapsulated key"}],"type":"paragraph"}]}],"kind":"parameters"},{"kind":"content","content":[{"type":"heading","text":"Discussion","level":2,"anchor":"discussion"},{"type":"aside","style":"note","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if one of the keys does not match ","type":"text"},{"code":"suite","type":"codeVoice"}]}],"name":"Throws"}]}],"sections":[],"variants":[{"paths":["\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:encap:)"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","schemaVersion":{"minor":3,"patch":0,"major":0},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:psk:pskId:encap:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in preshared key mode"}],"fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"type":"topic","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:psk:pskid:encap:)","kind":"symbol","title":"init(suite:privateKey:info:psk:pskId:encap:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:encap:)":{"kind":"symbol","title":"init(suite:privateKey:info:encap:)","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:encap:)","role":"symbol","type":"topic","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","abstract":[{"text":"Creates a Recipient instance in base mode","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:psk:pskId:encap:)":{"kind":"symbol","title":"init(suite:privateKey:info:authentication:psk:pskId:encap:)","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:psk:pskid:encap:)","role":"symbol","type":"topic","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)","abstract":[{"text":"Creates a Recipient instance in authenticated, preshared key mode","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"title":"Bytes","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","fragments":[{"text":"typealias","kind":"keyword"},{"text":" ","kind":"text"},{"text":"Bytes","kind":"identifier"}],"abstract":[{"text":"Array of unsigned 8 bit values","type":"text"}],"url":"\/documentation\/swifthpke\/bytes","role":"symbol","navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:encap:)":{"kind":"symbol","title":"init(suite:privateKey:info:authentication:encap:)","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:encap:)","role":"symbol","type":"topic","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","abstract":[{"text":"Creates a Recipient instance in authenticated mode","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"kind":"symbol","title":"Recipient","url":"\/documentation\/swifthpke\/recipient","role":"symbol","type":"topic","fragments":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Recipient"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"abstract":[{"text":"The recipient","type":"text"}]}}} \ No newline at end of file +{"seeAlsoSections":[{"title":"Constructors","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)"]}],"sections":[],"abstract":[{"type":"text","text":"Creates a Recipient instance in base mode"}],"variants":[{"paths":["\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:encap:)"],"traits":[{"interfaceLanguage":"swift"}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"]]},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"tokens":[{"text":"init","kind":"keyword"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"languages":["swift"]}],"kind":"declarations"},{"parameters":[{"name":"suite","content":[{"inlineContent":[{"type":"text","text":"The CipherSuite of the Recipient"}],"type":"paragraph"}]},{"name":"privateKey","content":[{"inlineContent":[{"type":"text","text":"The recipient private key"}],"type":"paragraph"}]},{"name":"info","content":[{"inlineContent":[{"text":"The additional information","type":"text"}],"type":"paragraph"}]},{"name":"encap","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The encapsulated key"}]}]}],"kind":"parameters"},{"content":[{"text":"Discussion","type":"heading","level":2,"anchor":"discussion"},{"style":"note","name":"Throws","type":"aside","content":[{"inlineContent":[{"text":"An exception if one of the keys does not match ","type":"text"},{"type":"codeVoice","code":"suite"}],"type":"paragraph"}]}],"kind":"content"}],"kind":"symbol","schemaVersion":{"minor":3,"major":0,"patch":0},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)"},"metadata":{"fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"title":"init(suite:privateKey:info:encap:)","externalID":"s:9SwiftHPKE9RecipientC5suite10privateKey4info5encapAcA11CipherSuiteV_AA07PrivateF0VSays5UInt8VGANtKcfc","role":"symbol","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Initializer","symbolKind":"init"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"url":"\/documentation\/swifthpke\/recipient","abstract":[{"type":"text","text":"The recipient"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"text":"Recipient","kind":"identifier"}],"type":"topic","kind":"symbol","navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"title":"Recipient"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:encap:)":{"url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:encap:)","abstract":[{"text":"Creates a Recipient instance in authenticated mode","type":"text"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"type":"topic","kind":"symbol","title":"init(suite:privateKey:info:authentication:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:psk:pskId:encap:)":{"url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:psk:pskid:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in preshared key mode"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"type":"topic","kind":"symbol","title":"init(suite:privateKey:info:psk:pskId:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:encap:)":{"url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in base mode"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"type":"topic","kind":"symbol","title":"init(suite:privateKey:info:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:psk:pskId:encap:)":{"url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:psk:pskid:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in authenticated, preshared key mode"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"type":"topic","kind":"symbol","title":"init(suite:privateKey:info:authentication:psk:pskId:encap:)"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/recipient/init(suite:privatekey:info:psk:pskid:encap:).json b/docs/data/documentation/swifthpke/recipient/init(suite:privatekey:info:psk:pskid:encap:).json index 022e71f..cd8414e 100644 --- a/docs/data/documentation/swifthpke/recipient/init(suite:privatekey:info:psk:pskid:encap:).json +++ b/docs/data/documentation/swifthpke/recipient/init(suite:privatekey:info:psk:pskid:encap:).json @@ -1 +1 @@ -{"schemaVersion":{"minor":3,"major":0,"patch":0},"seeAlsoSections":[{"title":"Constructors","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)"],"generated":true}],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)"},"sections":[],"abstract":[{"text":"Creates a Recipient instance in preshared key mode","type":"text"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:psk:pskid:encap:)"]}],"primaryContentSections":[{"declarations":[{"languages":["swift"],"tokens":[{"text":"init","kind":"keyword"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","text":"CipherSuite","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"platforms":["macOS"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"suite","content":[{"inlineContent":[{"text":"The CipherSuite of the Recipient","type":"text"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient private key"}]}],"name":"privateKey"},{"content":[{"inlineContent":[{"type":"text","text":"The additional information"}],"type":"paragraph"}],"name":"info"},{"content":[{"inlineContent":[{"type":"text","text":"The preshared key"}],"type":"paragraph"}],"name":"psk"},{"content":[{"inlineContent":[{"text":"The preshared key id","type":"text"}],"type":"paragraph"}],"name":"pskId"},{"name":"encap","content":[{"inlineContent":[{"type":"text","text":"The encapsulated key"}],"type":"paragraph"}]}]},{"content":[{"text":"Discussion","anchor":"discussion","type":"heading","level":2},{"name":"Throws","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"suite"}]}],"style":"note","type":"aside"}],"kind":"content"}],"metadata":{"externalID":"s:9SwiftHPKE9RecipientC5suite10privateKey4info3psk0H2Id5encapAcA11CipherSuiteV_AA07PrivateF0VSays5UInt8VGA3PtKcfc","symbolKind":"init","title":"init(suite:privateKey:info:psk:pskId:encap:)","modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"roleHeading":"Initializer","role":"symbol"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:encap:)":{"kind":"symbol","title":"init(suite:privateKey:info:encap:)","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:encap:)","role":"symbol","type":"topic","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"privateKey"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","abstract":[{"text":"Creates a Recipient instance in base mode","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"kind":"symbol","title":"Recipient","url":"\/documentation\/swifthpke\/recipient","role":"symbol","type":"topic","fragments":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Recipient"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"abstract":[{"text":"The recipient","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:psk:pskId:encap:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in preshared key mode"}],"fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"type":"topic","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:psk:pskid:encap:)","kind":"symbol","title":"init(suite:privateKey:info:psk:pskId:encap:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:psk:pskId:encap:)":{"kind":"symbol","title":"init(suite:privateKey:info:authentication:psk:pskId:encap:)","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:psk:pskid:encap:)","role":"symbol","type":"topic","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)","abstract":[{"text":"Creates a Recipient instance in authenticated, preshared key mode","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:encap:)":{"kind":"symbol","title":"init(suite:privateKey:info:authentication:encap:)","url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:encap:)","role":"symbol","type":"topic","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","abstract":[{"text":"Creates a Recipient instance in authenticated mode","type":"text"}]}}} \ No newline at end of file +{"variants":[{"paths":["\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:psk:pskid:encap:)"],"traits":[{"interfaceLanguage":"swift"}]}],"sections":[],"kind":"symbol","seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)"],"generated":true,"title":"Constructors"}],"abstract":[{"type":"text","text":"Creates a Recipient instance in preshared key mode"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","interfaceLanguage":"swift"},"schemaVersion":{"major":0,"patch":0,"minor":3},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"text":"init","kind":"keyword"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}]}]},{"parameters":[{"name":"suite","content":[{"inlineContent":[{"type":"text","text":"The CipherSuite of the Recipient"}],"type":"paragraph"}]},{"name":"privateKey","content":[{"inlineContent":[{"type":"text","text":"The recipient private key"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"text":"The additional information","type":"text"}],"type":"paragraph"}],"name":"info"},{"content":[{"inlineContent":[{"type":"text","text":"The preshared key"}],"type":"paragraph"}],"name":"psk"},{"name":"pskId","content":[{"inlineContent":[{"type":"text","text":"The preshared key id"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The encapsulated key"}]}],"name":"encap"}],"kind":"parameters"},{"kind":"content","content":[{"type":"heading","anchor":"discussion","text":"Discussion","level":2},{"type":"aside","name":"Throws","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if one of the keys does not match ","type":"text"},{"type":"codeVoice","code":"suite"}]}],"style":"note"}]}],"metadata":{"externalID":"s:9SwiftHPKE9RecipientC5suite10privateKey4info3psk0H2Id5encapAcA11CipherSuiteV_AA07PrivateF0VSays5UInt8VGA3PtKcfc","role":"symbol","title":"init(suite:privateKey:info:psk:pskId:encap:)","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":", "},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"symbolKind":"init","roleHeading":"Initializer","modules":[{"name":"SwiftHPKE"}]},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:psk:pskId:encap:)":{"url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:psk:pskid:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in preshared key mode"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:psk:pskId:encap:)","fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"type":"topic","kind":"symbol","title":"init(suite:privateKey:info:psk:pskId:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:psk:pskId:encap:)":{"url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:psk:pskid:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in authenticated, preshared key mode"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:psk:pskId:encap:)","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"type":"topic","kind":"symbol","title":"init(suite:privateKey:info:authentication:psk:pskId:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:encap:)":{"url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:encap:)","abstract":[{"type":"text","text":"Creates a Recipient instance in base mode"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:encap:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"encap"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"type":"topic","kind":"symbol","title":"init(suite:privateKey:info:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/init(suite:privateKey:info:authentication:encap:)":{"url":"\/documentation\/swifthpke\/recipient\/init(suite:privatekey:info:authentication:encap:)","abstract":[{"text":"Creates a Recipient instance in authenticated mode","type":"text"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/init(suite:privateKey:info:authentication:encap:)","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"text":", ","kind":"text"},{"text":"privateKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"encap","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"type":"topic","kind":"symbol","title":"init(suite:privateKey:info:authentication:encap:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"url":"\/documentation\/swifthpke\/recipient","abstract":[{"type":"text","text":"The recipient"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"text":"Recipient","kind":"identifier"}],"type":"topic","kind":"symbol","navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"title":"Recipient"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/recipient/open(ct:aad:).json b/docs/data/documentation/swifthpke/recipient/open(ct:aad:).json index 0767cdb..903ba73 100644 --- a/docs/data/documentation/swifthpke/recipient/open(ct:aad:).json +++ b/docs/data/documentation/swifthpke/recipient/open(ct:aad:).json @@ -1 +1 @@ -{"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/open(ct:aad:)"},"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"]]},"sections":[],"metadata":{"externalID":"s:9SwiftHPKE9RecipientC4open2ct3aadSays5UInt8VGAI_AItKF","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"title":"open(ct:aad:)","symbolKind":"method","roleHeading":"Instance Method","modules":[{"name":"SwiftHPKE"}],"role":"symbol"},"abstract":[{"type":"text","text":"Decrypts a message"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"platforms":["macOS"]}]},{"kind":"parameters","parameters":[{"name":"ct","content":[{"type":"paragraph","inlineContent":[{"text":"The cipher text to decrypt","type":"text"}]}]},{"name":"aad","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The associated data"}]}]}]},{"content":[{"level":2,"type":"heading","text":"Return Value","anchor":"return-value"},{"type":"paragraph","inlineContent":[{"text":"The plain text","type":"text"}]}],"kind":"content"},{"kind":"content","content":[{"text":"Discussion","anchor":"discussion","level":2,"type":"heading"},{"name":"Throws","type":"aside","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if decryption fails or ","type":"text"},{"code":"self.suite.aead","type":"codeVoice"},{"type":"text","text":" is EXPORTONLY"}]}],"style":"note"}]}],"seeAlsoSections":[{"generated":true,"title":"Methods","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/receiveExport(context:L:)"]}],"schemaVersion":{"minor":3,"major":0,"patch":0},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/recipient\/open(ct:aad:)"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/open(ct:aad:)":{"role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"title":"open(ct:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/open(ct:aad:)","type":"topic","abstract":[{"type":"text","text":"Decrypts a message"}],"kind":"symbol","url":"\/documentation\/swifthpke\/recipient\/open(ct:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"kind":"symbol","title":"Recipient","url":"\/documentation\/swifthpke\/recipient","role":"symbol","type":"topic","fragments":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Recipient"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"abstract":[{"text":"The recipient","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/receiveExport(context:L:)":{"role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"receiveExport"},{"text":"(","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"title":"receiveExport(context:L:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/receiveExport(context:L:)","type":"topic","abstract":[{"type":"text","text":"Retrieve an export secret"}],"kind":"symbol","url":"\/documentation\/swifthpke\/recipient\/receiveexport(context:l:)"}}} \ No newline at end of file +{"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"kind":"symbol","abstract":[{"type":"text","text":"Decrypts a message"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"]]},"seeAlsoSections":[{"title":"Methods","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/receiveExport(context:L:)"],"generated":true}],"variants":[{"paths":["\/documentation\/swifthpke\/recipient\/open(ct:aad:)"],"traits":[{"interfaceLanguage":"swift"}]}],"metadata":{"symbolKind":"method","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"text":"ct","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"roleHeading":"Instance Method","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE9RecipientC4open2ct3aadSays5UInt8VGAI_AItKF","title":"open(ct:aad:)"},"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"open"},{"text":"(","kind":"text"},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"ct","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The cipher text to decrypt"}]}]},{"name":"aad","content":[{"inlineContent":[{"type":"text","text":"The associated data"}],"type":"paragraph"}]}]},{"kind":"content","content":[{"level":2,"anchor":"return-value","type":"heading","text":"Return Value"},{"inlineContent":[{"type":"text","text":"The plain text"}],"type":"paragraph"}]},{"content":[{"type":"heading","text":"Discussion","level":2,"anchor":"discussion"},{"content":[{"inlineContent":[{"type":"text","text":"An exception if decryption fails or "},{"type":"codeVoice","code":"self.suite.aead"},{"text":" is EXPORTONLY","type":"text"}],"type":"paragraph"}],"type":"aside","style":"note","name":"Throws"}],"kind":"content"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/open(ct:aad:)"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/receiveExport(context:L:)":{"kind":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"title":"receiveExport(context:L:)","type":"topic","abstract":[{"type":"text","text":"Retrieve an export secret"}],"role":"symbol","url":"\/documentation\/swifthpke\/recipient\/receiveexport(context:l:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/receiveExport(context:L:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"url":"\/documentation\/swifthpke\/recipient","abstract":[{"type":"text","text":"The recipient"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"text":"Recipient","kind":"identifier"}],"type":"topic","kind":"symbol","navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"title":"Recipient"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/open(ct:aad:)":{"kind":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"title":"open(ct:aad:)","type":"topic","abstract":[{"type":"text","text":"Decrypts a message"}],"role":"symbol","url":"\/documentation\/swifthpke\/recipient\/open(ct:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/open(ct:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/recipient/receiveexport(context:l:).json b/docs/data/documentation/swifthpke/recipient/receiveexport(context:l:).json index e8d23b8..1bddcfb 100644 --- a/docs/data/documentation/swifthpke/recipient/receiveexport(context:l:).json +++ b/docs/data/documentation/swifthpke/recipient/receiveexport(context:l:).json @@ -1 +1 @@ -{"variants":[{"paths":["\/documentation\/swifthpke\/recipient\/receiveexport(context:l:)"],"traits":[{"interfaceLanguage":"swift"}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"]]},"abstract":[{"type":"text","text":"Retrieve an export secret"}],"sections":[],"kind":"symbol","primaryContentSections":[{"declarations":[{"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"context","content":[{"type":"paragraph","inlineContent":[{"text":"The export context","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"The length of the export secret","type":"text"}]}],"name":"L"}]},{"content":[{"anchor":"return-value","level":2,"type":"heading","text":"Return Value"},{"inlineContent":[{"text":"The export secret","type":"text"}],"type":"paragraph"}],"kind":"content"},{"content":[{"anchor":"discussion","type":"heading","level":2,"text":"Discussion"},{"name":"Throws","style":"note","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if L is negative or too large"}]}],"type":"aside"}],"kind":"content"}],"seeAlsoSections":[{"title":"Methods","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/open(ct:aad:)"],"generated":true}],"schemaVersion":{"minor":3,"patch":0,"major":0},"metadata":{"roleHeading":"Instance Method","title":"receiveExport(context:L:)","symbolKind":"method","role":"symbol","modules":[{"name":"SwiftHPKE"}],"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"externalID":"s:9SwiftHPKE9RecipientC13receiveExport7context1LSays5UInt8VGAI_SitKF"},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/receiveExport(context:L:)"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/receiveExport(context:L:)":{"role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"receiveExport"},{"text":"(","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"title":"receiveExport(context:L:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/receiveExport(context:L:)","type":"topic","abstract":[{"type":"text","text":"Retrieve an export secret"}],"kind":"symbol","url":"\/documentation\/swifthpke\/recipient\/receiveexport(context:l:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"kind":"symbol","title":"Recipient","url":"\/documentation\/swifthpke\/recipient","role":"symbol","type":"topic","fragments":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Recipient"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"abstract":[{"text":"The recipient","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/open(ct:aad:)":{"role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"open"},{"kind":"text","text":"("},{"text":"ct","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"title":"open(ct:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/open(ct:aad:)","type":"topic","abstract":[{"type":"text","text":"Decrypts a message"}],"kind":"symbol","url":"\/documentation\/swifthpke\/recipient\/open(ct:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"}}} \ No newline at end of file +{"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"receiveExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}]}],"kind":"declarations"},{"parameters":[{"content":[{"inlineContent":[{"type":"text","text":"The export context"}],"type":"paragraph"}],"name":"context"},{"name":"L","content":[{"type":"paragraph","inlineContent":[{"text":"The length of the export secret","type":"text"}]}]}],"kind":"parameters"},{"content":[{"anchor":"return-value","level":2,"type":"heading","text":"Return Value"},{"type":"paragraph","inlineContent":[{"type":"text","text":"The export secret"}]}],"kind":"content"},{"kind":"content","content":[{"level":2,"type":"heading","anchor":"discussion","text":"Discussion"},{"name":"Throws","style":"note","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if L is negative or too large"}]}],"type":"aside"}]}],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"]]},"sections":[],"metadata":{"roleHeading":"Instance Method","modules":[{"name":"SwiftHPKE"}],"symbolKind":"method","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"kind":"identifier","text":"receiveExport"},{"kind":"text","text":"("},{"kind":"externalParam","text":"context"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"role":"symbol","title":"receiveExport(context:L:)","externalID":"s:9SwiftHPKE9RecipientC13receiveExport7context1LSays5UInt8VGAI_SitKF"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/recipient\/receiveexport(context:l:)"]}],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/open(ct:aad:)"],"title":"Methods","generated":true}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/receiveExport(context:L:)"},"schemaVersion":{"patch":0,"major":0,"minor":3},"abstract":[{"type":"text","text":"Retrieve an export secret"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/receiveExport(context:L:)":{"kind":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"receiveExport","kind":"identifier"},{"kind":"text","text":"("},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"title":"receiveExport(context:L:)","type":"topic","abstract":[{"type":"text","text":"Retrieve an export secret"}],"role":"symbol","url":"\/documentation\/swifthpke\/recipient\/receiveexport(context:l:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/receiveExport(context:L:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient/open(ct:aad:)":{"kind":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"open","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"ct"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"aad"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"title":"open(ct:aad:)","type":"topic","abstract":[{"type":"text","text":"Decrypts a message"}],"role":"symbol","url":"\/documentation\/swifthpke\/recipient\/open(ct:aad:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient\/open(ct:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"url":"\/documentation\/swifthpke\/recipient","abstract":[{"type":"text","text":"The recipient"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"text":"Recipient","kind":"identifier"}],"type":"topic","kind":"symbol","navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"title":"Recipient"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/references.json b/docs/data/documentation/swifthpke/references.json index bf2f971..dc31c85 100644 --- a/docs/data/documentation/swifthpke/references.json +++ b/docs/data/documentation/swifthpke/references.json @@ -1 +1 @@ -{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"primaryContentSections":[{"kind":"content","content":[{"level":2,"anchor":"","text":"","type":"heading"},{"type":"unorderedList","items":[{"content":[{"inlineContent":[{"type":"text","text":"[FIPS 180-4] - FIPS PUB 180-4 - Secure Hash Standard (SHS), August 2015"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"[GUIDE] - Hankerson, Menezes, Vanstone: Guide to Elliptic Curve Cryptography. Springer 2004","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"[RFC 9180] - Hybrid Public Key Encryption, February 2022","type":"text"}]}]},{"content":[{"inlineContent":[{"text":"[SEC 1] - Standards for Efficient Cryptography 1 (SEC 1), Certicom Corp. 2009","type":"text"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"[SEC 2] - Standards for Efficient Cryptography 2 (SEC 2), Certicom Corp. 2010"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"[WARREN] - Henry S. Warren, Jr.: Montgomery Multiplication, July 2012","type":"text"}]}]}]}]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/references"]}],"metadata":{"roleHeading":"Article","modules":[{"name":"SwiftHPKE"}],"title":"References","role":"article"},"abstract":[{"type":"text","text":"Algorithms from the following books and papers have been used in the implementation"}],"sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References","interfaceLanguage":"swift"},"kind":"article","seeAlsoSections":[{"title":"Additional Information","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance"]}],"schemaVersion":{"patch":0,"major":0,"minor":3},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KeyManagement":{"kind":"article","url":"\/documentation\/swifthpke\/keymanagement","role":"article","abstract":[{"text":"Creating new keys and loading exsisting keys","type":"text"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","title":"Key Management"},"doc://SwiftHPKE/documentation/SwiftHPKE/Performance":{"kind":"article","url":"\/documentation\/swifthpke\/performance","role":"article","abstract":[{"text":"Encryption and decryption speed","type":"text"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","title":"Performance"},"doc://SwiftHPKE/documentation/SwiftHPKE/CryptoKit":{"kind":"article","url":"\/documentation\/swifthpke\/cryptokit","role":"article","abstract":[{"text":"SwiftHPKE is compatible with Apple’s CryptoKit framework","type":"text"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","title":"CryptoKit Compatibility"},"doc://SwiftHPKE/documentation/SwiftHPKE/SecretExport":{"title":"Secret Export","url":"\/documentation\/swifthpke\/secretexport","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","abstract":[{"text":"Creating secret messages","type":"text"}],"type":"topic","role":"article","kind":"article"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"}}} \ No newline at end of file +{"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References"},"abstract":[{"text":"Algorithms from the following books and papers have been used in the implementation","type":"text"}],"kind":"article","seeAlsoSections":[{"title":"Additional Information","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance"],"generated":true}],"primaryContentSections":[{"kind":"content","content":[{"text":"","type":"heading","level":2,"anchor":""},{"type":"unorderedList","items":[{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"[FIPS 180-4] - FIPS PUB 180-4 - Secure Hash Standard (SHS), August 2015"}]}]},{"content":[{"inlineContent":[{"text":"[GUIDE] - Hankerson, Menezes, Vanstone: Guide to Elliptic Curve Cryptography. Springer 2004","type":"text"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"[RFC 9180] - Hybrid Public Key Encryption, February 2022"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"[SEC 1] - Standards for Efficient Cryptography 1 (SEC 1), Certicom Corp. 2009"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"[SEC 2] - Standards for Efficient Cryptography 2 (SEC 2), Certicom Corp. 2010","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"[WARREN] - Henry S. Warren, Jr.: Montgomery Multiplication, July 2012"}]}]}]}]}],"metadata":{"title":"References","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Article","role":"article"},"schemaVersion":{"major":0,"patch":0,"minor":3},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/references"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/KeyManagement":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","url":"\/documentation\/swifthpke\/keymanagement","kind":"article","abstract":[{"type":"text","text":"Creating new keys and loading exsisting keys"}],"type":"topic","role":"article","title":"Key Management"},"doc://SwiftHPKE/documentation/SwiftHPKE/CryptoKit":{"url":"\/documentation\/swifthpke\/cryptokit","title":"CryptoKit Compatibility","kind":"article","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","abstract":[{"type":"text","text":"SwiftHPKE is compatible with Apple’s CryptoKit framework"}],"role":"article"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/SecretExport":{"url":"\/documentation\/swifthpke\/secretexport","title":"Secret Export","kind":"article","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","abstract":[{"type":"text","text":"Creating secret messages"}],"role":"article"},"doc://SwiftHPKE/documentation/SwiftHPKE/Performance":{"title":"Performance","abstract":[{"type":"text","text":"Encryption and decryption speed"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","role":"article","kind":"article","url":"\/documentation\/swifthpke\/performance"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/secretexport.json b/docs/data/documentation/swifthpke/secretexport.json index d17bf55..5b667cc 100644 --- a/docs/data/documentation/swifthpke/secretexport.json +++ b/docs/data/documentation/swifthpke/secretexport.json @@ -1 +1 @@ -{"sections":[],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport"},"metadata":{"role":"article","roleHeading":"Article","title":"Secret Export","modules":[{"name":"SwiftHPKE"}]},"schemaVersion":{"minor":3,"major":0,"patch":0},"variants":[{"paths":["\/documentation\/swifthpke\/secretexport"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"article","abstract":[{"text":"Creating secret messages","type":"text"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"seeAlsoSections":[{"title":"Additional Information","generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References"]}],"primaryContentSections":[{"kind":"content","content":[{"type":"heading","text":"","level":2,"anchor":""},{"inlineContent":[{"text":"Given the recipient’s public key, a sender can generate a secret that only the recipient can know.","type":"text"}],"type":"paragraph"},{"anchor":"Example-1","text":"Example 1","type":"heading","level":3},{"syntax":"swift","type":"codeListing","code":["import SwiftHPKE","","\/\/ The aead need not be .EXPORTONLY, any aead will work","","let theSuite = CipherSuite(kem: .P256, kdf: .KDF256, aead: .EXPORTONLY)","let (recipientPubKey, recipientPrivKey) = try theSuite.makeKeyPair()","","\/\/ Generate the secret","","let (encapsulated, secret) = try theSuite.sendExport(publicKey: recipientPubKey, info: [], context: [1, 2, 3], L: 10)","print(\"Generated secret:\", secret)","","\/\/ The recipient retrieves the secret by means of the encapsulated key","","let retrievedSecret = try theSuite.receiveExport(privateKey: recipientPrivKey, info: [], context: [1, 2, 3], L: 10, encap: encapsulated)","print(\"Retrieved secret:\", retrievedSecret)"]},{"inlineContent":[{"type":"text","text":"giving (for example):"}],"type":"paragraph"},{"syntax":"swift","code":["Generated secret: [172, 169, 119, 121, 167, 53, 213, 12, 0, 29]","Retrieved secret: [172, 169, 119, 121, 167, 53, 213, 12, 0, 29]"],"type":"codeListing"},{"type":"heading","level":3,"text":"Example 2","anchor":"Example-2"},{"type":"codeListing","syntax":"swift","code":["import SwiftHPKE","","\/\/ The aead need not be .EXPORTONLY, any aead will work","","let theSuite = CipherSuite(kem: .P256, kdf: .KDF256, aead: .EXPORTONLY)","let (recipientPubKey, recipientPrivKey) = try theSuite.makeKeyPair()","let sender = try Sender(suite: theSuite, publicKey: recipientPubKey, info: [])","","\/\/ Generate the secret","","let secret = try sender.sendExport(context: [1, 2, 3], L: 10)","print(\"Generated secret:\", secret)","","\/\/ The recipient retrieves the secret by means of the encapsulated key","","let receiver = try Recipient(suite: theSuite, privateKey: recipientPrivKey, info: [], encap: sender.encapsulatedKey)","let retrievedSecret = try receiver.receiveExport(context: [1, 2, 3], L: 10)","print(\"Retrieved secret:\", retrievedSecret)"]},{"inlineContent":[{"type":"text","text":"giving (for example):"}],"type":"paragraph"},{"type":"codeListing","code":["Generated secret: [3, 230, 139, 128, 86, 4, 81, 78, 110, 135]","Retrieved secret: [3, 230, 139, 128, 86, 4, 81, 78, 110, 135]"],"syntax":"swift"},{"inlineContent":[{"text":"The above examples use Base mode. Preshared key mode, Authenticated mode and Authenticated, preshared key mode","type":"text"},{"text":" ","type":"text"},{"type":"text","text":"can also be used."}],"type":"paragraph"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/References":{"abstract":[{"type":"text","text":"Algorithms from the following books and papers have been used in the implementation"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References","role":"article","kind":"article","title":"References","type":"topic","url":"\/documentation\/swifthpke\/references"},"doc://SwiftHPKE/documentation/SwiftHPKE/CryptoKit":{"kind":"article","url":"\/documentation\/swifthpke\/cryptokit","role":"article","abstract":[{"text":"SwiftHPKE is compatible with Apple’s CryptoKit framework","type":"text"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","title":"CryptoKit Compatibility"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/KeyManagement":{"kind":"article","url":"\/documentation\/swifthpke\/keymanagement","role":"article","abstract":[{"text":"Creating new keys and loading exsisting keys","type":"text"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","title":"Key Management"},"doc://SwiftHPKE/documentation/SwiftHPKE/Performance":{"kind":"article","url":"\/documentation\/swifthpke\/performance","role":"article","abstract":[{"text":"Encryption and decryption speed","type":"text"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","title":"Performance"}}} \ No newline at end of file +{"abstract":[{"text":"Creating secret messages","type":"text"}],"sections":[],"variants":[{"paths":["\/documentation\/swifthpke\/secretexport"],"traits":[{"interfaceLanguage":"swift"}]}],"schemaVersion":{"minor":3,"patch":0,"major":0},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/SecretExport","interfaceLanguage":"swift"},"primaryContentSections":[{"kind":"content","content":[{"type":"heading","level":2,"text":"","anchor":""},{"type":"paragraph","inlineContent":[{"text":"Given the recipient’s public key, a sender can generate a secret that only the recipient can know.","type":"text"}]},{"text":"Example 1","type":"heading","level":3,"anchor":"Example-1"},{"code":["import SwiftHPKE","","\/\/ The aead need not be .EXPORTONLY, any aead will work","","let theSuite = CipherSuite(kem: .P256, kdf: .KDF256, aead: .EXPORTONLY)","let (recipientPubKey, recipientPrivKey) = try theSuite.makeKeyPair()","","\/\/ Generate the secret","","let (encapsulated, secret) = try theSuite.sendExport(publicKey: recipientPubKey, info: [], context: [1, 2, 3], L: 10)","print(\"Generated secret:\", secret)","","\/\/ The recipient retrieves the secret by means of the encapsulated key","","let retrievedSecret = try theSuite.receiveExport(privateKey: recipientPrivKey, info: [], context: [1, 2, 3], L: 10, encap: encapsulated)","print(\"Retrieved secret:\", retrievedSecret)"],"type":"codeListing","syntax":"swift"},{"type":"paragraph","inlineContent":[{"type":"text","text":"giving (for example):"}]},{"syntax":"swift","code":["Generated secret: [172, 169, 119, 121, 167, 53, 213, 12, 0, 29]","Retrieved secret: [172, 169, 119, 121, 167, 53, 213, 12, 0, 29]"],"type":"codeListing"},{"level":3,"anchor":"Example-2","type":"heading","text":"Example 2"},{"type":"codeListing","code":["import SwiftHPKE","","\/\/ The aead need not be .EXPORTONLY, any aead will work","","let theSuite = CipherSuite(kem: .P256, kdf: .KDF256, aead: .EXPORTONLY)","let (recipientPubKey, recipientPrivKey) = try theSuite.makeKeyPair()","let sender = try Sender(suite: theSuite, publicKey: recipientPubKey, info: [])","","\/\/ Generate the secret","","let secret = try sender.sendExport(context: [1, 2, 3], L: 10)","print(\"Generated secret:\", secret)","","\/\/ The recipient retrieves the secret by means of the encapsulated key","","let receiver = try Recipient(suite: theSuite, privateKey: recipientPrivKey, info: [], encap: sender.encapsulatedKey)","let retrievedSecret = try receiver.receiveExport(context: [1, 2, 3], L: 10)","print(\"Retrieved secret:\", retrievedSecret)"],"syntax":"swift"},{"type":"paragraph","inlineContent":[{"text":"giving (for example):","type":"text"}]},{"syntax":"swift","code":["Generated secret: [3, 230, 139, 128, 86, 4, 81, 78, 110, 135]","Retrieved secret: [3, 230, 139, 128, 86, 4, 81, 78, 110, 135]"],"type":"codeListing"},{"inlineContent":[{"text":"The above examples use Base mode. Preshared key mode, Authenticated mode and Authenticated, preshared key mode","type":"text"},{"text":" ","type":"text"},{"text":"can also be used.","type":"text"}],"type":"paragraph"}]}],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References"],"generated":true,"title":"Additional Information"}],"kind":"article","metadata":{"role":"article","roleHeading":"Article","modules":[{"name":"SwiftHPKE"}],"title":"Secret Export"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Performance":{"title":"Performance","abstract":[{"type":"text","text":"Encryption and decryption speed"}],"type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Performance","role":"article","kind":"article","url":"\/documentation\/swifthpke\/performance"},"doc://SwiftHPKE/documentation/SwiftHPKE/KeyManagement":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/KeyManagement","url":"\/documentation\/swifthpke\/keymanagement","kind":"article","abstract":[{"type":"text","text":"Creating new keys and loading exsisting keys"}],"type":"topic","role":"article","title":"Key Management"},"doc://SwiftHPKE/documentation/SwiftHPKE/References":{"url":"\/documentation\/swifthpke\/references","title":"References","kind":"article","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/References","abstract":[{"type":"text","text":"Algorithms from the following books and papers have been used in the implementation"}],"role":"article"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/CryptoKit":{"url":"\/documentation\/swifthpke\/cryptokit","title":"CryptoKit Compatibility","kind":"article","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CryptoKit","abstract":[{"type":"text","text":"SwiftHPKE is compatible with Apple’s CryptoKit framework"}],"role":"article"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/sender.json b/docs/data/documentation/swifthpke/sender.json index 5e89290..b0f8715 100644 --- a/docs/data/documentation/swifthpke/sender.json +++ b/docs/data/documentation/swifthpke/sender.json @@ -1 +1 @@ -{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"abstract":[{"type":"text","text":"The sender"}],"topicSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/encapsulatedKey"],"title":"Properties"},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)"],"title":"Constructors"},{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/seal(pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/sendExport(context:L:)"],"title":"Methods"}],"sections":[],"schemaVersion":{"major":0,"minor":3,"patch":0},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/sender"]}],"metadata":{"navigatorTitle":[{"kind":"identifier","text":"Sender"}],"externalID":"s:9SwiftHPKE6SenderC","roleHeading":"Class","title":"Sender","role":"symbol","symbolKind":"class","fragments":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Sender"}],"modules":[{"name":"SwiftHPKE"}]},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Sender"}],"languages":["swift"],"platforms":["macOS"]}]},{"content":[{"level":2,"anchor":"Overview","type":"heading","text":"Overview"},{"type":"paragraph","inlineContent":[{"text":"Based on its ","type":"text"},{"isActive":true,"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","type":"reference"},{"type":"text","text":", a "},{"code":"Sender","type":"codeVoice"},{"type":"text","text":" instance can encrypt a sequence of messages in one of four modes:"}]},{"type":"unorderedList","items":[{"content":[{"inlineContent":[{"text":"Base mode","type":"text"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"text":"Preshared key mode","type":"text"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"text":"Authenticated mode","type":"text"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"Authenticated, preshared key mode","type":"text"}]}]}]},{"inlineContent":[{"type":"text","text":"A "},{"type":"codeVoice","code":"Sender"},{"type":"text","text":" instance can also generate an export secret that only the recipient can know."}],"type":"paragraph"}],"kind":"content"}],"seeAlsoSections":[{"title":"Classes","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"],"generated":true}],"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","kind":"symbol","title":"init(suite:publicKey:info:)","type":"topic","fragments":[{"kind":"keyword","text":"convenience"},{"text":" ","kind":"text"},{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:)","abstract":[{"text":"Creates a Sender instance in base mode","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/seal(pt:aad:)":{"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Encrypts a message"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/seal(pt:aad:)","type":"topic","url":"\/documentation\/swifthpke\/sender\/seal(pt:aad:)","role":"symbol","title":"seal(pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/encapsulatedKey":{"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/sender\/encapsulatedkey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/encapsulatedKey","kind":"symbol","abstract":[{"text":"The encapsulated key","type":"text"}],"title":"encapsulatedKey","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"encapsulatedKey"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:psk:pskId:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","kind":"symbol","title":"init(suite:publicKey:info:psk:pskId:)","type":"topic","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:psk:pskid:)","abstract":[{"text":"Creates a Sender instance in preshared key mode","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:psk:pskId:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)","kind":"symbol","title":"init(suite:publicKey:info:authentication:psk:pskId:)","type":"topic","fragments":[{"text":"convenience","kind":"keyword"},{"kind":"text","text":" "},{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"abstract":[{"text":"Creates a Sender instance in authenticated, preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:psk:pskid:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"Sender"}],"navigatorTitle":[{"text":"Sender","kind":"identifier"}],"kind":"symbol","abstract":[{"type":"text","text":"The sender"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","type":"topic","url":"\/documentation\/swifthpke\/sender","role":"symbol","title":"Sender"},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"kind":"symbol","title":"Recipient","url":"\/documentation\/swifthpke\/recipient","role":"symbol","type":"topic","fragments":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Recipient"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"abstract":[{"text":"The recipient","type":"text"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","kind":"symbol","title":"init(suite:publicKey:info:authentication:)","type":"topic","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"abstract":[{"text":"Creates a Sender instance in authenticated mode","type":"text"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/sendExport(context:L:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/sendExport(context:L:)","type":"topic","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"abstract":[{"type":"text","text":"Generate an export secret"}],"url":"\/documentation\/swifthpke\/sender\/sendexport(context:l:)","kind":"symbol","title":"sendExport(context:L:)","role":"symbol"}}} \ No newline at end of file +{"abstract":[{"type":"text","text":"The sender"}],"metadata":{"title":"Sender","modules":[{"name":"SwiftHPKE"}],"role":"symbol","symbolKind":"class","fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"text":"Sender","kind":"identifier"}],"roleHeading":"Class","externalID":"s:9SwiftHPKE6SenderC","navigatorTitle":[{"kind":"identifier","text":"Sender"}]},"sections":[],"schemaVersion":{"patch":0,"major":0,"minor":3},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE"]]},"topicSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/encapsulatedKey"],"title":"Properties"},{"title":"Constructors","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)"]},{"title":"Methods","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/seal(pt:aad:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/sendExport(context:L:)"]}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Sender"}]}],"kind":"declarations"},{"content":[{"text":"Overview","level":2,"anchor":"Overview","type":"heading"},{"inlineContent":[{"text":"Based on its ","type":"text"},{"type":"reference","isActive":true,"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"},{"text":", a ","type":"text"},{"code":"Sender","type":"codeVoice"},{"type":"text","text":" instance can encrypt a sequence of messages in one of four modes:"}],"type":"paragraph"},{"type":"unorderedList","items":[{"content":[{"inlineContent":[{"text":"Base mode","type":"text"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"type":"text","text":"Preshared key mode"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Authenticated mode"}]}]},{"content":[{"inlineContent":[{"text":"Authenticated, preshared key mode","type":"text"}],"type":"paragraph"}]}]},{"type":"paragraph","inlineContent":[{"text":"A ","type":"text"},{"code":"Sender","type":"codeVoice"},{"text":" instance can also generate an export secret that only the recipient can know.","type":"text"}]}],"kind":"content"}],"variants":[{"paths":["\/documentation\/swifthpke\/sender"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"},"kind":"symbol","seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient"],"generated":true,"title":"Classes"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:psk:pskId:)":{"kind":"symbol","url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:psk:pskid:)","abstract":[{"text":"Creates a Sender instance in authenticated, preshared key mode","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)","title":"init(suite:publicKey:info:authentication:psk:pskId:)","type":"topic","role":"symbol","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier","text":"CipherSuite"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:psk:pskId:)":{"type":"topic","kind":"symbol","role":"symbol","url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:psk:pskid:)","abstract":[{"text":"Creates a Sender instance in preshared key mode","type":"text"}],"title":"init(suite:publicKey:info:psk:pskId:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"url":"\/documentation\/swifthpke\/sender","type":"topic","abstract":[{"type":"text","text":"The sender"}],"role":"symbol","fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"Sender"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","title":"Sender","navigatorTitle":[{"kind":"identifier","text":"Sender"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:)":{"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:)","kind":"symbol","abstract":[{"text":"Creates a Sender instance in authenticated mode","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","title":"init(suite:publicKey:info:authentication:)","type":"topic","role":"symbol","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier","text":"CipherSuite"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/sendExport(context:L:)":{"url":"\/documentation\/swifthpke\/sender\/sendexport(context:l:)","type":"topic","abstract":[{"text":"Generate an export secret","type":"text"}],"role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/sendExport(context:L:)","title":"sendExport(context:L:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:)":{"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:)","kind":"symbol","abstract":[{"text":"Creates a Sender instance in base mode","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","title":"init(suite:publicKey:info:)","type":"topic","role":"symbol","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier","text":"CipherSuite"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Recipient":{"url":"\/documentation\/swifthpke\/recipient","abstract":[{"type":"text","text":"The recipient"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Recipient","fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"text":"Recipient","kind":"identifier"}],"type":"topic","kind":"symbol","navigatorTitle":[{"text":"Recipient","kind":"identifier"}],"title":"Recipient"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/encapsulatedKey":{"kind":"symbol","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"encapsulatedKey"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"title":"encapsulatedKey","url":"\/documentation\/swifthpke\/sender\/encapsulatedkey","abstract":[{"type":"text","text":"The encapsulated key"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/encapsulatedKey","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/seal(pt:aad:)":{"url":"\/documentation\/swifthpke\/sender\/seal(pt:aad:)","type":"topic","abstract":[{"type":"text","text":"Encrypts a message"}],"role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/seal(pt:aad:)","title":"seal(pt:aad:)"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/sender/encapsulatedkey.json b/docs/data/documentation/swifthpke/sender/encapsulatedkey.json index 382436e..bc7fca5 100644 --- a/docs/data/documentation/swifthpke/sender/encapsulatedkey.json +++ b/docs/data/documentation/swifthpke/sender/encapsulatedkey.json @@ -1 +1 @@ -{"schemaVersion":{"minor":3,"patch":0,"major":0},"abstract":[{"type":"text","text":"The encapsulated key"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/encapsulatedKey","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"]]},"metadata":{"title":"encapsulatedKey","fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"kind":"identifier","text":"encapsulatedKey"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"role":"symbol","modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE6SenderC15encapsulatedKeySays5UInt8VGvp","symbolKind":"property","roleHeading":"Instance Property"},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"kind":"identifier","text":"encapsulatedKey"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"}]}]}],"sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/sender\/encapsulatedkey"]}],"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/encapsulatedKey":{"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/sender\/encapsulatedkey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/encapsulatedKey","kind":"symbol","abstract":[{"text":"The encapsulated key","type":"text"}],"title":"encapsulatedKey","fragments":[{"text":"let","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"encapsulatedKey"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"Sender"}],"navigatorTitle":[{"text":"Sender","kind":"identifier"}],"kind":"symbol","abstract":[{"type":"text","text":"The sender"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","type":"topic","url":"\/documentation\/swifthpke\/sender","role":"symbol","title":"Sender"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"}}} \ No newline at end of file +{"variants":[{"paths":["\/documentation\/swifthpke\/sender\/encapsulatedkey"],"traits":[{"interfaceLanguage":"swift"}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"]]},"metadata":{"fragments":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"kind":"identifier","text":"encapsulatedKey"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"title":"encapsulatedKey","roleHeading":"Instance Property","externalID":"s:9SwiftHPKE6SenderC15encapsulatedKeySays5UInt8VGvp","modules":[{"name":"SwiftHPKE"}],"role":"symbol","symbolKind":"property"},"kind":"symbol","primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"kind":"keyword","text":"let"},{"text":" ","kind":"text"},{"kind":"identifier","text":"encapsulatedKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes"}]}]}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/encapsulatedKey","interfaceLanguage":"swift"},"schemaVersion":{"minor":3,"major":0,"patch":0},"abstract":[{"type":"text","text":"The encapsulated key"}],"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/encapsulatedKey":{"kind":"symbol","fragments":[{"text":"let","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"encapsulatedKey"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"title":"encapsulatedKey","url":"\/documentation\/swifthpke\/sender\/encapsulatedkey","abstract":[{"type":"text","text":"The encapsulated key"}],"role":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/encapsulatedKey","type":"topic"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"url":"\/documentation\/swifthpke\/sender","type":"topic","abstract":[{"type":"text","text":"The sender"}],"role":"symbol","fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"Sender"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","title":"Sender","navigatorTitle":[{"kind":"identifier","text":"Sender"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/sender/init(suite:publickey:info:).json b/docs/data/documentation/swifthpke/sender/init(suite:publickey:info:).json index 3771b18..dc88e95 100644 --- a/docs/data/documentation/swifthpke/sender/init(suite:publickey:info:).json +++ b/docs/data/documentation/swifthpke/sender/init(suite:publickey:info:).json @@ -1 +1 @@ -{"schemaVersion":{"minor":3,"patch":0,"major":0},"abstract":[{"type":"text","text":"Creates a Sender instance in base mode"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","interfaceLanguage":"swift"},"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)"],"title":"Constructors","generated":true}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"]]},"primaryContentSections":[{"declarations":[{"tokens":[{"kind":"keyword","text":"convenience"},{"text":" ","kind":"text"},{"kind":"keyword","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"},{"text":", ","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"languages":["swift"],"platforms":["macOS"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"suite","content":[{"type":"paragraph","inlineContent":[{"text":"The CipherSuite of the Sender","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient public key"}]}],"name":"publicKey"},{"name":"info","content":[{"inlineContent":[{"type":"text","text":"The additional information"}],"type":"paragraph"}]}]},{"content":[{"anchor":"discussion","text":"Discussion","type":"heading","level":2},{"content":[{"type":"paragraph","inlineContent":[{"text":"An exception if ","type":"text"},{"code":"publicKey","type":"codeVoice"},{"text":" does not match ","type":"text"},{"code":"suite","type":"codeVoice"}]}],"type":"aside","style":"note","name":"Throws"}],"kind":"content"}],"kind":"symbol","metadata":{"symbolKind":"init","roleHeading":"Initializer","modules":[{"name":"SwiftHPKE"}],"title":"init(suite:publicKey:info:)","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"externalID":"s:9SwiftHPKE6SenderC5suite9publicKey4infoAcA11CipherSuiteV_AA06PublicF0VSays5UInt8VGtKcfc","role":"symbol"},"sections":[],"variants":[{"paths":["\/documentation\/swifthpke\/sender\/init(suite:publickey:info:)"],"traits":[{"interfaceLanguage":"swift"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","kind":"symbol","title":"init(suite:publicKey:info:authentication:)","type":"topic","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"abstract":[{"text":"Creates a Sender instance in authenticated mode","type":"text"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:psk:pskId:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","kind":"symbol","title":"init(suite:publicKey:info:psk:pskId:)","type":"topic","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:psk:pskid:)","abstract":[{"text":"Creates a Sender instance in preshared key mode","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"Sender"}],"navigatorTitle":[{"text":"Sender","kind":"identifier"}],"kind":"symbol","abstract":[{"type":"text","text":"The sender"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","type":"topic","url":"\/documentation\/swifthpke\/sender","role":"symbol","title":"Sender"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:psk:pskId:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)","kind":"symbol","title":"init(suite:publicKey:info:authentication:psk:pskId:)","type":"topic","fragments":[{"text":"convenience","kind":"keyword"},{"kind":"text","text":" "},{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"abstract":[{"text":"Creates a Sender instance in authenticated, preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:psk:pskid:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","kind":"symbol","title":"init(suite:publicKey:info:)","type":"topic","fragments":[{"kind":"keyword","text":"convenience"},{"text":" ","kind":"text"},{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:)","abstract":[{"text":"Creates a Sender instance in base mode","type":"text"}],"role":"symbol"}}} \ No newline at end of file +{"kind":"symbol","variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/sender\/init(suite:publickey:info:)"]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)"},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"keyword"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","kind":"typeIdentifier","text":"CipherSuite"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","text":"PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"languages":["swift"]}]},{"kind":"parameters","parameters":[{"name":"suite","content":[{"inlineContent":[{"text":"The CipherSuite of the Sender","type":"text"}],"type":"paragraph"}]},{"name":"publicKey","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The recipient public key"}]}]},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"text":"The additional information","type":"text"}]}]}]},{"content":[{"anchor":"discussion","type":"heading","level":2,"text":"Discussion"},{"style":"note","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if ","type":"text"},{"type":"codeVoice","code":"publicKey"},{"type":"text","text":" does not match "},{"type":"codeVoice","code":"suite"}]}],"name":"Throws","type":"aside"}],"kind":"content"}],"schemaVersion":{"minor":3,"major":0,"patch":0},"metadata":{"symbolKind":"init","fragments":[{"kind":"keyword","text":"convenience"},{"text":" ","kind":"text"},{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"title":"init(suite:publicKey:info:)","role":"symbol","externalID":"s:9SwiftHPKE6SenderC5suite9publicKey4infoAcA11CipherSuiteV_AA06PublicF0VSays5UInt8VGtKcfc","roleHeading":"Initializer","modules":[{"name":"SwiftHPKE"}]},"abstract":[{"type":"text","text":"Creates a Sender instance in base mode"}],"seeAlsoSections":[{"title":"Constructors","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)"],"generated":true}],"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:)":{"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:)","kind":"symbol","abstract":[{"text":"Creates a Sender instance in authenticated mode","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","title":"init(suite:publicKey:info:authentication:)","type":"topic","role":"symbol","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier","text":"CipherSuite"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:)":{"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:)","kind":"symbol","abstract":[{"text":"Creates a Sender instance in base mode","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","title":"init(suite:publicKey:info:)","type":"topic","role":"symbol","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier","text":"CipherSuite"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:psk:pskId:)":{"kind":"symbol","url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:psk:pskid:)","abstract":[{"text":"Creates a Sender instance in authenticated, preshared key mode","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)","title":"init(suite:publicKey:info:authentication:psk:pskId:)","type":"topic","role":"symbol","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier","text":"CipherSuite"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"url":"\/documentation\/swifthpke\/sender","type":"topic","abstract":[{"type":"text","text":"The sender"}],"role":"symbol","fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"Sender"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","title":"Sender","navigatorTitle":[{"kind":"identifier","text":"Sender"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:psk:pskId:)":{"type":"topic","kind":"symbol","role":"symbol","url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:psk:pskid:)","abstract":[{"text":"Creates a Sender instance in preshared key mode","type":"text"}],"title":"init(suite:publicKey:info:psk:pskId:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/sender/init(suite:publickey:info:authentication:).json b/docs/data/documentation/swifthpke/sender/init(suite:publickey:info:authentication:).json index 120d3d3..a971b65 100644 --- a/docs/data/documentation/swifthpke/sender/init(suite:publickey:info:authentication:).json +++ b/docs/data/documentation/swifthpke/sender/init(suite:publickey:info:authentication:).json @@ -1 +1 @@ -{"schemaVersion":{"major":0,"patch":0,"minor":3},"kind":"symbol","seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)"],"generated":true,"title":"Constructors"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:)"]}],"sections":[],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","interfaceLanguage":"swift"},"abstract":[{"text":"Creates a Sender instance in authenticated mode","type":"text"}],"primaryContentSections":[{"declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"kind":"keyword","text":"convenience"},{"kind":"text","text":" "},{"text":"init","kind":"keyword"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"text":", ","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","kind":"typeIdentifier","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", "},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"suite","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The CipherSuite of the Sender"}]}]},{"name":"publicKey","content":[{"inlineContent":[{"text":"The recipient public key","type":"text"}],"type":"paragraph"}]},{"name":"info","content":[{"inlineContent":[{"type":"text","text":"The additional information"}],"type":"paragraph"}]},{"name":"authentication","content":[{"inlineContent":[{"text":"The sender private key","type":"text"}],"type":"paragraph"}]}]},{"content":[{"type":"heading","level":2,"anchor":"discussion","text":"Discussion"},{"style":"note","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"code":"suite","type":"codeVoice"}]}],"type":"aside","name":"Throws"}],"kind":"content"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"]]},"metadata":{"symbolKind":"init","modules":[{"name":"SwiftHPKE"}],"title":"init(suite:publicKey:info:authentication:)","fragments":[{"text":"convenience","kind":"keyword"},{"kind":"text","text":" "},{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier","text":"CipherSuite"},{"kind":"text","text":", "},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"roleHeading":"Initializer","role":"symbol","externalID":"s:9SwiftHPKE6SenderC5suite9publicKey4info14authenticationAcA11CipherSuiteV_AA06PublicF0VSays5UInt8VGAA07PrivateF0VtKcfc"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:)":{"role":"symbol","type":"topic","url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:)","kind":"symbol","fragments":[{"kind":"keyword","text":"convenience"},{"text":" ","kind":"text"},{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier","text":"CipherSuite"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","title":"init(suite:publicKey:info:)","abstract":[{"type":"text","text":"Creates a Sender instance in base mode"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","kind":"symbol","title":"init(suite:publicKey:info:authentication:)","type":"topic","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"abstract":[{"text":"Creates a Sender instance in authenticated mode","type":"text"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"Sender"}],"navigatorTitle":[{"text":"Sender","kind":"identifier"}],"kind":"symbol","abstract":[{"type":"text","text":"The sender"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","type":"topic","url":"\/documentation\/swifthpke\/sender","role":"symbol","title":"Sender"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:psk:pskId:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)","kind":"symbol","title":"init(suite:publicKey:info:authentication:psk:pskId:)","type":"topic","fragments":[{"text":"convenience","kind":"keyword"},{"kind":"text","text":" "},{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"abstract":[{"text":"Creates a Sender instance in authenticated, preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:psk:pskid:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:psk:pskId:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","kind":"symbol","title":"init(suite:publicKey:info:psk:pskId:)","type":"topic","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:psk:pskid:)","abstract":[{"text":"Creates a Sender instance in preshared key mode","type":"text"}],"role":"symbol"}}} \ No newline at end of file +{"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"]]},"schemaVersion":{"major":0,"minor":3,"patch":0},"metadata":{"symbolKind":"init","role":"symbol","fragments":[{"text":"convenience","kind":"keyword"},{"kind":"text","text":" "},{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"publicKey"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE6SenderC5suite9publicKey4info14authenticationAcA11CipherSuiteV_AA06PublicF0VSays5UInt8VGAA07PrivateF0VtKcfc","title":"init(suite:publicKey:info:authentication:)","roleHeading":"Initializer"},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","interfaceLanguage":"swift"},"abstract":[{"type":"text","text":"Creates a Sender instance in authenticated mode"}],"variants":[{"paths":["\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:)"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)"],"title":"Constructors"}],"primaryContentSections":[{"declarations":[{"languages":["swift"],"tokens":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"keyword"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","text":"PrivateKey"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"platforms":["macOS"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"suite","content":[{"inlineContent":[{"type":"text","text":"The CipherSuite of the Sender"}],"type":"paragraph"}]},{"name":"publicKey","content":[{"type":"paragraph","inlineContent":[{"text":"The recipient public key","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}],"name":"info"},{"content":[{"type":"paragraph","inlineContent":[{"text":"The sender private key","type":"text"}]}],"name":"authentication"}]},{"content":[{"anchor":"discussion","level":2,"type":"heading","text":"Discussion"},{"type":"aside","content":[{"type":"paragraph","inlineContent":[{"text":"An exception if one of the keys does not match ","type":"text"},{"code":"suite","type":"codeVoice"}]}],"name":"Throws","style":"note"}],"kind":"content"}],"sections":[],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:)":{"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:)","kind":"symbol","abstract":[{"text":"Creates a Sender instance in base mode","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","title":"init(suite:publicKey:info:)","type":"topic","role":"symbol","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier","text":"CipherSuite"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:)":{"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:)","kind":"symbol","abstract":[{"text":"Creates a Sender instance in authenticated mode","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","title":"init(suite:publicKey:info:authentication:)","type":"topic","role":"symbol","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier","text":"CipherSuite"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"url":"\/documentation\/swifthpke\/sender","type":"topic","abstract":[{"type":"text","text":"The sender"}],"role":"symbol","fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"Sender"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","title":"Sender","navigatorTitle":[{"kind":"identifier","text":"Sender"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:psk:pskId:)":{"kind":"symbol","url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:psk:pskid:)","abstract":[{"text":"Creates a Sender instance in authenticated, preshared key mode","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)","title":"init(suite:publicKey:info:authentication:psk:pskId:)","type":"topic","role":"symbol","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier","text":"CipherSuite"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:psk:pskId:)":{"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:psk:pskid:)","kind":"symbol","abstract":[{"text":"Creates a Sender instance in preshared key mode","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","title":"init(suite:publicKey:info:psk:pskId:)","type":"topic","role":"symbol","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier","text":"CipherSuite"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/sender/init(suite:publickey:info:authentication:psk:pskid:).json b/docs/data/documentation/swifthpke/sender/init(suite:publickey:info:authentication:psk:pskid:).json index d7ce7ed..13dd7ee 100644 --- a/docs/data/documentation/swifthpke/sender/init(suite:publickey:info:authentication:psk:pskid:).json +++ b/docs/data/documentation/swifthpke/sender/init(suite:publickey:info:authentication:psk:pskid:).json @@ -1 +1 @@ -{"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"convenience"},{"text":" ","kind":"text"},{"text":"init","kind":"keyword"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier","text":"CipherSuite"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PrivateKey","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"languages":["swift"],"platforms":["macOS"]}]},{"kind":"parameters","parameters":[{"name":"suite","content":[{"inlineContent":[{"type":"text","text":"The CipherSuite of the Sender"}],"type":"paragraph"}]},{"name":"publicKey","content":[{"inlineContent":[{"text":"The recipient public key","type":"text"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"The additional information","type":"text"}]}],"name":"info"},{"name":"authentication","content":[{"type":"paragraph","inlineContent":[{"text":"The sender private key","type":"text"}]}]},{"name":"psk","content":[{"inlineContent":[{"type":"text","text":"The preshared key"}],"type":"paragraph"}]},{"name":"pskId","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key id"}]}]}]},{"content":[{"type":"heading","level":2,"text":"Discussion","anchor":"discussion"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"suite"},{"text":" or the ","type":"text"},{"type":"codeVoice","code":"psk"},{"type":"text","text":" parameters are inconsistent"}]}],"name":"Throws","style":"note","type":"aside"}],"kind":"content"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)","interfaceLanguage":"swift"},"sections":[],"variants":[{"paths":["\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:psk:pskid:)"],"traits":[{"interfaceLanguage":"swift"}]}],"schemaVersion":{"patch":0,"major":0,"minor":3},"metadata":{"roleHeading":"Initializer","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"externalID":"s:9SwiftHPKE6SenderC5suite9publicKey4info14authentication3psk0I2IdAcA11CipherSuiteV_AA06PublicF0VSays5UInt8VGAA07PrivateF0VA2PtKcfc","modules":[{"name":"SwiftHPKE"}],"title":"init(suite:publicKey:info:authentication:psk:pskId:)","symbolKind":"init","role":"symbol"},"abstract":[{"text":"Creates a Sender instance in authenticated, preshared key mode","type":"text"}],"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)"],"generated":true,"title":"Constructors"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"]]},"kind":"symbol","references":{"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"Sender"}],"navigatorTitle":[{"text":"Sender","kind":"identifier"}],"kind":"symbol","abstract":[{"type":"text","text":"The sender"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","type":"topic","url":"\/documentation\/swifthpke\/sender","role":"symbol","title":"Sender"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","kind":"symbol","title":"init(suite:publicKey:info:authentication:)","type":"topic","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"abstract":[{"text":"Creates a Sender instance in authenticated mode","type":"text"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:psk:pskId:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","kind":"symbol","title":"init(suite:publicKey:info:psk:pskId:)","type":"topic","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:psk:pskid:)","abstract":[{"text":"Creates a Sender instance in preshared key mode","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:psk:pskId:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)","kind":"symbol","title":"init(suite:publicKey:info:authentication:psk:pskId:)","type":"topic","fragments":[{"text":"convenience","kind":"keyword"},{"kind":"text","text":" "},{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"abstract":[{"text":"Creates a Sender instance in authenticated, preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:psk:pskid:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"title":"PrivateKey","type":"topic","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateKey"}],"abstract":[{"type":"text","text":"The private key"}],"url":"\/documentation\/swifthpke\/privatekey","role":"symbol","navigatorTitle":[{"text":"PrivateKey","kind":"identifier"}],"kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","kind":"symbol","title":"init(suite:publicKey:info:)","type":"topic","fragments":[{"kind":"keyword","text":"convenience"},{"text":" ","kind":"text"},{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:)","abstract":[{"text":"Creates a Sender instance in base mode","type":"text"}],"role":"symbol"}}} \ No newline at end of file +{"abstract":[{"type":"text","text":"Creates a Sender instance in authenticated, preshared key mode"}],"primaryContentSections":[{"declarations":[{"tokens":[{"text":"convenience","kind":"keyword"},{"kind":"text","text":" "},{"kind":"keyword","text":"init"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"suite","content":[{"type":"paragraph","inlineContent":[{"text":"The CipherSuite of the Sender","type":"text"}]}]},{"content":[{"inlineContent":[{"text":"The recipient public key","type":"text"}],"type":"paragraph"}],"name":"publicKey"},{"name":"info","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The additional information"}]}]},{"content":[{"inlineContent":[{"text":"The sender private key","type":"text"}],"type":"paragraph"}],"name":"authentication"},{"name":"psk","content":[{"type":"paragraph","inlineContent":[{"text":"The preshared key","type":"text"}]}]},{"name":"pskId","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key id"}]}]}]},{"content":[{"text":"Discussion","anchor":"discussion","level":2,"type":"heading"},{"type":"aside","style":"note","name":"Throws","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if one of the keys does not match "},{"type":"codeVoice","code":"suite"},{"type":"text","text":" or the "},{"type":"codeVoice","code":"psk"},{"type":"text","text":" parameters are inconsistent"}]}]}],"kind":"content"}],"schemaVersion":{"patch":0,"minor":3,"major":0},"sections":[],"seeAlsoSections":[{"generated":true,"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)"],"title":"Constructors"}],"variants":[{"paths":["\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:psk:pskid:)"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","metadata":{"symbolKind":"init","modules":[{"name":"SwiftHPKE"}],"role":"symbol","fragments":[{"text":"convenience","kind":"keyword"},{"kind":"text","text":" "},{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"title":"init(suite:publicKey:info:authentication:psk:pskId:)","externalID":"s:9SwiftHPKE6SenderC5suite9publicKey4info14authentication3psk0I2IdAcA11CipherSuiteV_AA06PublicF0VSays5UInt8VGAA07PrivateF0VA2PtKcfc","roleHeading":"Initializer"},"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:)":{"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:)","kind":"symbol","abstract":[{"text":"Creates a Sender instance in authenticated mode","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","title":"init(suite:publicKey:info:authentication:)","type":"topic","role":"symbol","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier","text":"CipherSuite"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:psk:pskId:)":{"type":"topic","kind":"symbol","role":"symbol","url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:psk:pskid:)","abstract":[{"text":"Creates a Sender instance in preshared key mode","type":"text"}],"title":"init(suite:publicKey:info:psk:pskId:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:)":{"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:)","kind":"symbol","abstract":[{"text":"Creates a Sender instance in base mode","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","title":"init(suite:publicKey:info:)","type":"topic","role":"symbol","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier","text":"CipherSuite"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"url":"\/documentation\/swifthpke\/sender","type":"topic","abstract":[{"type":"text","text":"The sender"}],"role":"symbol","fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"Sender"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","title":"Sender","navigatorTitle":[{"kind":"identifier","text":"Sender"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:psk:pskId:)":{"kind":"symbol","url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:psk:pskid:)","abstract":[{"text":"Creates a Sender instance in authenticated, preshared key mode","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)","title":"init(suite:publicKey:info:authentication:psk:pskId:)","type":"topic","role":"symbol","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier","text":"CipherSuite"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/PrivateKey":{"kind":"symbol","url":"\/documentation\/swifthpke\/privatekey","abstract":[{"text":"The private key","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PrivateKey","title":"PrivateKey","type":"topic","navigatorTitle":[{"kind":"identifier","text":"PrivateKey"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PrivateKey","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/sender/init(suite:publickey:info:psk:pskid:).json b/docs/data/documentation/swifthpke/sender/init(suite:publickey:info:psk:pskid:).json index 416408c..8df0f1b 100644 --- a/docs/data/documentation/swifthpke/sender/init(suite:publickey:info:psk:pskid:).json +++ b/docs/data/documentation/swifthpke/sender/init(suite:publickey:info:psk:pskid:).json @@ -1 +1 @@ -{"metadata":{"fragments":[{"kind":"keyword","text":"convenience"},{"kind":"text","text":" "},{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"psk","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"title":"init(suite:publicKey:info:psk:pskId:)","externalID":"s:9SwiftHPKE6SenderC5suite9publicKey4info3psk0H2IdAcA11CipherSuiteV_AA06PublicF0VSays5UInt8VGA2OtKcfc","roleHeading":"Initializer","modules":[{"name":"SwiftHPKE"}],"symbolKind":"init","role":"symbol"},"kind":"symbol","primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"keyword"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite"},{"kind":"text","text":", "},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":", "},{"text":"psk","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"platforms":["macOS"]}]},{"parameters":[{"content":[{"inlineContent":[{"text":"The CipherSuite of the Sender","type":"text"}],"type":"paragraph"}],"name":"suite"},{"content":[{"inlineContent":[{"text":"The recipient public key","type":"text"}],"type":"paragraph"}],"name":"publicKey"},{"content":[{"inlineContent":[{"text":"The additional information","type":"text"}],"type":"paragraph"}],"name":"info"},{"content":[{"inlineContent":[{"type":"text","text":"The preshared key"}],"type":"paragraph"}],"name":"psk"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key id"}]}],"name":"pskId"}],"kind":"parameters"},{"content":[{"text":"Discussion","anchor":"discussion","type":"heading","level":2},{"type":"aside","content":[{"inlineContent":[{"text":"An exception if ","type":"text"},{"type":"codeVoice","code":"publicKey"},{"text":" does not match ","type":"text"},{"code":"suite","type":"codeVoice"},{"text":" or the ","type":"text"},{"code":"psk","type":"codeVoice"},{"text":" parameters are inconsistent","type":"text"}],"type":"paragraph"}],"name":"Throws","style":"note"}],"kind":"content"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"]]},"abstract":[{"type":"text","text":"Creates a Sender instance in preshared key mode"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)"},"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)"],"generated":true,"title":"Constructors"}],"sections":[],"schemaVersion":{"patch":0,"minor":3,"major":0},"variants":[{"paths":["\/documentation\/swifthpke\/sender\/init(suite:publickey:info:psk:pskid:)"],"traits":[{"interfaceLanguage":"swift"}]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:psk:pskId:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)","kind":"symbol","title":"init(suite:publicKey:info:authentication:psk:pskId:)","type":"topic","fragments":[{"text":"convenience","kind":"keyword"},{"kind":"text","text":" "},{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"kind":"text","text":": "},{"text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"abstract":[{"text":"Creates a Sender instance in authenticated, preshared key mode","type":"text"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:psk:pskid:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"url":"\/documentation\/swifthpke\/publickey","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"kind":"symbol","title":"PublicKey","abstract":[{"text":"The public key","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"Sender"}],"navigatorTitle":[{"text":"Sender","kind":"identifier"}],"kind":"symbol","abstract":[{"type":"text","text":"The sender"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","type":"topic","url":"\/documentation\/swifthpke\/sender","role":"symbol","title":"Sender"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","kind":"symbol","title":"init(suite:publicKey:info:)","type":"topic","fragments":[{"kind":"keyword","text":"convenience"},{"text":" ","kind":"text"},{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","text":"PublicKey","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:)","abstract":[{"text":"Creates a Sender instance in base mode","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:psk:pskId:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","kind":"symbol","title":"init(suite:publicKey:info:psk:pskId:)","type":"topic","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:psk:pskid:)","abstract":[{"text":"Creates a Sender instance in preshared key mode","type":"text"}],"role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","abstract":[{"text":"The cipher suite","type":"text"}],"type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CipherSuite"}],"kind":"symbol","title":"CipherSuite","url":"\/documentation\/swifthpke\/ciphersuite","role":"symbol","navigatorTitle":[{"text":"CipherSuite","kind":"identifier"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","kind":"symbol","title":"init(suite:publicKey:info:authentication:)","type":"topic","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"text":"CipherSuite","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"text":", ","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier","text":"PublicKey"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"authentication"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV","text":"PrivateKey","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"abstract":[{"text":"Creates a Sender instance in authenticated mode","type":"text"}],"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:)","role":"symbol"}}} \ No newline at end of file +{"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"convenience","kind":"keyword"},{"kind":"text","text":" "},{"text":"init","kind":"keyword"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"suite"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","kind":"typeIdentifier","text":"CipherSuite","preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","text":"PublicKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","text":"Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}],"platforms":["macOS"],"languages":["swift"]}]},{"kind":"parameters","parameters":[{"content":[{"inlineContent":[{"type":"text","text":"The CipherSuite of the Sender"}],"type":"paragraph"}],"name":"suite"},{"content":[{"inlineContent":[{"text":"The recipient public key","type":"text"}],"type":"paragraph"}],"name":"publicKey"},{"name":"info","content":[{"inlineContent":[{"type":"text","text":"The additional information"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"type":"text","text":"The preshared key"}],"type":"paragraph"}],"name":"psk"},{"name":"pskId","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The preshared key id"}]}]}]},{"kind":"content","content":[{"text":"Discussion","type":"heading","anchor":"discussion","level":2},{"name":"Throws","type":"aside","content":[{"inlineContent":[{"text":"An exception if ","type":"text"},{"code":"publicKey","type":"codeVoice"},{"type":"text","text":" does not match "},{"code":"suite","type":"codeVoice"},{"type":"text","text":" or the "},{"type":"codeVoice","code":"psk"},{"type":"text","text":" parameters are inconsistent"}],"type":"paragraph"}],"style":"note"}]}],"sections":[],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"]]},"metadata":{"modules":[{"name":"SwiftHPKE"}],"externalID":"s:9SwiftHPKE6SenderC5suite9publicKey4info3psk0H2IdAcA11CipherSuiteV_AA06PublicF0VSays5UInt8VGA2OtKcfc","fragments":[{"kind":"keyword","text":"convenience"},{"text":" ","kind":"text"},{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"text":"suite","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"publicKey","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"info","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"kind":"text","text":", "},{"text":"pskId","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}],"symbolKind":"init","role":"symbol","title":"init(suite:publicKey:info:psk:pskId:)","roleHeading":"Initializer"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/sender\/init(suite:publickey:info:psk:pskid:)"]}],"abstract":[{"text":"Creates a Sender instance in preshared key mode","type":"text"}],"seeAlsoSections":[{"title":"Constructors","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)"],"generated":true}],"kind":"symbol","schemaVersion":{"major":0,"minor":3,"patch":0},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"url":"\/documentation\/swifthpke\/sender","type":"topic","abstract":[{"type":"text","text":"The sender"}],"role":"symbol","fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"Sender"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","title":"Sender","navigatorTitle":[{"kind":"identifier","text":"Sender"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:psk:pskId:)":{"type":"topic","kind":"symbol","role":"symbol","url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:psk:pskid:)","abstract":[{"text":"Creates a Sender instance in preshared key mode","type":"text"}],"title":"init(suite:publicKey:info:psk:pskId:)","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:psk:pskId:)","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","text":"CipherSuite","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"publicKey"},{"text":": ","kind":"text"},{"text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"info","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":") "},{"text":"throws","kind":"keyword"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:psk:pskId:)":{"kind":"symbol","url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:psk:pskid:)","abstract":[{"text":"Creates a Sender instance in authenticated, preshared key mode","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:psk:pskId:)","title":"init(suite:publicKey:info:authentication:psk:pskId:)","type":"topic","role":"symbol","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier","text":"CipherSuite"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"psk"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"pskId"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/CipherSuite":{"abstract":[{"text":"The cipher suite","type":"text"}],"role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"CipherSuite","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"CipherSuite"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/CipherSuite","title":"CipherSuite","type":"topic","kind":"symbol","url":"\/documentation\/swifthpke\/ciphersuite"},"doc://SwiftHPKE/documentation/SwiftHPKE/PublicKey":{"type":"topic","navigatorTitle":[{"text":"PublicKey","kind":"identifier"}],"abstract":[{"type":"text","text":"The public key"}],"title":"PublicKey","kind":"symbol","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"PublicKey"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/PublicKey","url":"\/documentation\/swifthpke\/publickey"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:)":{"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:)","kind":"symbol","abstract":[{"text":"Creates a Sender instance in base mode","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:)","title":"init(suite:publicKey:info:)","type":"topic","role":"symbol","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier","text":"CipherSuite"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/init(suite:publicKey:info:authentication:)":{"url":"\/documentation\/swifthpke\/sender\/init(suite:publickey:info:authentication:)","kind":"symbol","abstract":[{"text":"Creates a Sender instance in authenticated mode","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/init(suite:publicKey:info:authentication:)","title":"init(suite:publicKey:info:authentication:)","type":"topic","role":"symbol","fragments":[{"text":"convenience","kind":"keyword"},{"text":" ","kind":"text"},{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"suite"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE11CipherSuiteV","kind":"typeIdentifier","text":"CipherSuite"},{"kind":"text","text":", "},{"text":"publicKey","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"PublicKey","preciseIdentifier":"s:9SwiftHPKE9PublicKeyV"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"info"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"text":"authentication","kind":"externalParam"},{"kind":"text","text":": "},{"text":"PrivateKey","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE10PrivateKeyV"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"}]}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/sender/seal(pt:aad:).json b/docs/data/documentation/swifthpke/sender/seal(pt:aad:).json index 1a6f5db..83964de 100644 --- a/docs/data/documentation/swifthpke/sender/seal(pt:aad:).json +++ b/docs/data/documentation/swifthpke/sender/seal(pt:aad:).json @@ -1 +1 @@ -{"schemaVersion":{"patch":0,"minor":3,"major":0},"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/seal(pt:aad:)","interfaceLanguage":"swift"},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}]}]},{"kind":"parameters","parameters":[{"content":[{"type":"paragraph","inlineContent":[{"text":"The plain text to encrypt","type":"text"}]}],"name":"pt"},{"name":"aad","content":[{"inlineContent":[{"type":"text","text":"The associated data"}],"type":"paragraph"}]}]},{"kind":"content","content":[{"type":"heading","anchor":"return-value","text":"Return Value","level":2},{"type":"paragraph","inlineContent":[{"text":"The cipher text","type":"text"}]}]},{"kind":"content","content":[{"level":2,"text":"Discussion","anchor":"discussion","type":"heading"},{"content":[{"inlineContent":[{"type":"text","text":"An exception if encryption fails or "},{"type":"codeVoice","code":"self.suite.aead"},{"text":" is EXPORTONLY","type":"text"}],"type":"paragraph"}],"style":"note","type":"aside","name":"Throws"}]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/sender\/seal(pt:aad:)"]}],"abstract":[{"type":"text","text":"Encrypts a message"}],"sections":[],"seeAlsoSections":[{"title":"Methods","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/sendExport(context:L:)"],"generated":true}],"metadata":{"roleHeading":"Instance Method","role":"symbol","title":"seal(pt:aad:)","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"pt"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"}],"modules":[{"name":"SwiftHPKE"}],"symbolKind":"method","externalID":"s:9SwiftHPKE6SenderC4seal2pt3aadSays5UInt8VGAI_AItKF"},"kind":"symbol","hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"]]},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/sendExport(context:L:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/sendExport(context:L:)","type":"topic","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"abstract":[{"type":"text","text":"Generate an export secret"}],"url":"\/documentation\/swifthpke\/sender\/sendexport(context:l:)","kind":"symbol","title":"sendExport(context:L:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"Sender"}],"navigatorTitle":[{"text":"Sender","kind":"identifier"}],"kind":"symbol","abstract":[{"type":"text","text":"The sender"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","type":"topic","url":"\/documentation\/swifthpke\/sender","role":"symbol","title":"Sender"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/seal(pt:aad:)":{"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Encrypts a message"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/seal(pt:aad:)","type":"topic","url":"\/documentation\/swifthpke\/sender\/seal(pt:aad:)","role":"symbol","title":"seal(pt:aad:)"}}} \ No newline at end of file +{"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/seal(pt:aad:)","interfaceLanguage":"swift"},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}]}]},{"kind":"parameters","parameters":[{"name":"pt","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The plain text to encrypt"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The associated data"}]}],"name":"aad"}]},{"kind":"content","content":[{"anchor":"return-value","type":"heading","text":"Return Value","level":2},{"type":"paragraph","inlineContent":[{"text":"The cipher text","type":"text"}]}]},{"kind":"content","content":[{"level":2,"type":"heading","text":"Discussion","anchor":"discussion"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An exception if encryption fails or "},{"code":"self.suite.aead","type":"codeVoice"},{"type":"text","text":" is EXPORTONLY"}]}],"type":"aside","name":"Throws","style":"note"}]}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"]]},"metadata":{"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"seal","kind":"identifier"},{"text":"(","kind":"text"},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"aad","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"title":"seal(pt:aad:)","externalID":"s:9SwiftHPKE6SenderC4seal2pt3aadSays5UInt8VGAI_AItKF","symbolKind":"method","modules":[{"name":"SwiftHPKE"}],"role":"symbol","roleHeading":"Instance Method"},"schemaVersion":{"minor":3,"patch":0,"major":0},"sections":[],"kind":"symbol","variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/sender\/seal(pt:aad:)"]}],"seeAlsoSections":[{"generated":true,"title":"Methods","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/sendExport(context:L:)"]}],"abstract":[{"type":"text","text":"Encrypts a message"}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"url":"\/documentation\/swifthpke\/sender","type":"topic","abstract":[{"type":"text","text":"The sender"}],"role":"symbol","fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"Sender"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","title":"Sender","navigatorTitle":[{"kind":"identifier","text":"Sender"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/seal(pt:aad:)":{"url":"\/documentation\/swifthpke\/sender\/seal(pt:aad:)","type":"topic","abstract":[{"type":"text","text":"Encrypts a message"}],"role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/seal(pt:aad:)","title":"seal(pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/sendExport(context:L:)":{"url":"\/documentation\/swifthpke\/sender\/sendexport(context:l:)","type":"topic","abstract":[{"text":"Generate an export secret","type":"text"}],"role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/sendExport(context:L:)","title":"sendExport(context:L:)"}}} \ No newline at end of file diff --git a/docs/data/documentation/swifthpke/sender/sendexport(context:l:).json b/docs/data/documentation/swifthpke/sender/sendexport(context:l:).json index 8b0dbb6..c0e7a7c 100644 --- a/docs/data/documentation/swifthpke/sender/sendexport(context:l:).json +++ b/docs/data/documentation/swifthpke/sender/sendexport(context:l:).json @@ -1 +1 @@ -{"schemaVersion":{"minor":3,"patch":0,"major":0},"sections":[],"abstract":[{"text":"Generate an export secret","type":"text"}],"seeAlsoSections":[{"title":"Methods","identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/seal(pt:aad:)"],"generated":true}],"metadata":{"symbolKind":"method","modules":[{"name":"SwiftHPKE"}],"roleHeading":"Instance Method","role":"symbol","title":"sendExport(context:L:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendExport"},{"text":"(","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"externalID":"s:9SwiftHPKE6SenderC10sendExport7context1LSays5UInt8VGAI_SitKF"},"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}]}],"kind":"declarations"},{"parameters":[{"name":"context","content":[{"type":"paragraph","inlineContent":[{"text":"The export context","type":"text"}]}]},{"name":"L","content":[{"type":"paragraph","inlineContent":[{"text":"The length of the export secret","type":"text"}]}]}],"kind":"parameters"},{"kind":"content","content":[{"anchor":"return-value","type":"heading","text":"Return Value","level":2},{"type":"paragraph","inlineContent":[{"type":"text","text":"The export secret"}]}]},{"content":[{"anchor":"discussion","text":"Discussion","level":2,"type":"heading"},{"content":[{"type":"paragraph","inlineContent":[{"text":"An exception if L is negative or too large","type":"text"}]}],"style":"note","type":"aside","name":"Throws"}],"kind":"content"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"]]},"variants":[{"paths":["\/documentation\/swifthpke\/sender\/sendexport(context:l:)"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/sendExport(context:L:)"},"references":{"doc://SwiftHPKE/documentation/SwiftHPKE":{"type":"topic","role":"collection","abstract":[{"text":"Hybrid Public Key Encryption","type":"text"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","url":"\/documentation\/swifthpke","title":"SwiftHPKE","kind":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"navigatorTitle":[{"text":"Bytes","kind":"identifier"}],"title":"Bytes","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","type":"topic","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Bytes"}],"url":"\/documentation\/swifthpke\/bytes"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/sendExport(context:L:)":{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/sendExport(context:L:)","type":"topic","fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"}],"abstract":[{"type":"text","text":"Generate an export secret"}],"url":"\/documentation\/swifthpke\/sender\/sendexport(context:l:)","kind":"symbol","title":"sendExport(context:L:)","role":"symbol"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/seal(pt:aad:)":{"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"seal"},{"text":"(","kind":"text"},{"text":"pt","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"abstract":[{"type":"text","text":"Encrypts a message"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/seal(pt:aad:)","type":"topic","url":"\/documentation\/swifthpke\/sender\/seal(pt:aad:)","role":"symbol","title":"seal(pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"Sender"}],"navigatorTitle":[{"text":"Sender","kind":"identifier"}],"kind":"symbol","abstract":[{"type":"text","text":"The sender"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","type":"topic","url":"\/documentation\/swifthpke\/sender","role":"symbol","title":"Sender"}}} \ No newline at end of file +{"seeAlsoSections":[{"identifiers":["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/seal(pt:aad:)"],"generated":true,"title":"Methods"}],"hierarchy":{"paths":[["doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender"]]},"metadata":{"title":"sendExport(context:L:)","roleHeading":"Instance Method","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"context"},{"kind":"text","text":": "},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"kind":"externalParam","text":"L"},{"kind":"text","text":": "},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":") ","kind":"text"},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"}],"externalID":"s:9SwiftHPKE6SenderC10sendExport7context1LSays5UInt8VGAI_SitKF","symbolKind":"method","modules":[{"name":"SwiftHPKE"}]},"sections":[],"abstract":[{"type":"text","text":"Generate an export secret"}],"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"sendExport"},{"kind":"text","text":"("},{"text":"context","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"kind":"text","text":" -> "},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes"}]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"context","content":[{"type":"paragraph","inlineContent":[{"text":"The export context","type":"text"}]}]},{"name":"L","content":[{"type":"paragraph","inlineContent":[{"text":"The length of the export secret","type":"text"}]}]}]},{"kind":"content","content":[{"text":"Return Value","type":"heading","anchor":"return-value","level":2},{"type":"paragraph","inlineContent":[{"type":"text","text":"The export secret"}]}]},{"content":[{"text":"Discussion","anchor":"discussion","level":2,"type":"heading"},{"type":"aside","content":[{"inlineContent":[{"type":"text","text":"An exception if L is negative or too large"}],"type":"paragraph"}],"style":"note","name":"Throws"}],"kind":"content"}],"identifier":{"url":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/sendExport(context:L:)","interfaceLanguage":"swift"},"kind":"symbol","schemaVersion":{"major":0,"patch":0,"minor":3},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swifthpke\/sender\/sendexport(context:l:)"]}],"references":{"doc://SwiftHPKE/documentation/SwiftHPKE/Bytes":{"url":"\/documentation\/swifthpke\/bytes","type":"topic","abstract":[{"type":"text","text":"Array of unsigned 8 bit values"}],"role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"text":"Bytes","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Bytes","title":"Bytes","navigatorTitle":[{"kind":"identifier","text":"Bytes"}]},"doc://SwiftHPKE/documentation/SwiftHPKE":{"title":"SwiftHPKE","url":"\/documentation\/swifthpke","abstract":[{"type":"text","text":"Hybrid Public Key Encryption"}],"identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE","type":"topic","kind":"symbol","role":"collection"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/seal(pt:aad:)":{"url":"\/documentation\/swifthpke\/sender\/seal(pt:aad:)","type":"topic","abstract":[{"type":"text","text":"Encrypts a message"}],"role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"seal"},{"kind":"text","text":"("},{"text":"pt","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"},{"text":", ","kind":"text"},{"text":"aad","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","text":"Bytes","kind":"typeIdentifier"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/seal(pt:aad:)","title":"seal(pt:aad:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender/sendExport(context:L:)":{"url":"\/documentation\/swifthpke\/sender\/sendexport(context:l:)","type":"topic","abstract":[{"text":"Generate an export secret","type":"text"}],"role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"sendExport","kind":"identifier"},{"text":"(","kind":"text"},{"text":"context","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Bytes","kind":"typeIdentifier","preciseIdentifier":"s:9SwiftHPKE5Bytesa"},{"kind":"text","text":", "},{"text":"L","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:9SwiftHPKE5Bytesa","kind":"typeIdentifier","text":"Bytes"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender\/sendExport(context:L:)","title":"sendExport(context:L:)"},"doc://SwiftHPKE/documentation/SwiftHPKE/Sender":{"url":"\/documentation\/swifthpke\/sender","type":"topic","abstract":[{"type":"text","text":"The sender"}],"role":"symbol","fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"Sender"}],"kind":"symbol","identifier":"doc:\/\/SwiftHPKE\/documentation\/SwiftHPKE\/Sender","title":"Sender","navigatorTitle":[{"kind":"identifier","text":"Sender"}]}}} \ No newline at end of file diff --git a/docs/documentation/swifthpke/aead/!=(_:_:)/index.html b/docs/documentation/swifthpke/aead/!=(_:_:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/aead/!=(_:_:)/index.html +++ b/docs/documentation/swifthpke/aead/!=(_:_:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/aead/aesgcm128/index.html b/docs/documentation/swifthpke/aead/aesgcm128/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/aead/aesgcm128/index.html +++ b/docs/documentation/swifthpke/aead/aesgcm128/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/aead/aesgcm256/index.html b/docs/documentation/swifthpke/aead/aesgcm256/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/aead/aesgcm256/index.html +++ b/docs/documentation/swifthpke/aead/aesgcm256/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/aead/chachapoly/index.html b/docs/documentation/swifthpke/aead/chachapoly/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/aead/chachapoly/index.html +++ b/docs/documentation/swifthpke/aead/chachapoly/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/aead/description/index.html b/docs/documentation/swifthpke/aead/description/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/aead/description/index.html +++ b/docs/documentation/swifthpke/aead/description/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/aead/equatable-implementations/index.html b/docs/documentation/swifthpke/aead/equatable-implementations/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/aead/equatable-implementations/index.html +++ b/docs/documentation/swifthpke/aead/equatable-implementations/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/aead/exportonly/index.html b/docs/documentation/swifthpke/aead/exportonly/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/aead/exportonly/index.html +++ b/docs/documentation/swifthpke/aead/exportonly/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/aead/index.html b/docs/documentation/swifthpke/aead/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/aead/index.html +++ b/docs/documentation/swifthpke/aead/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/base64/decode(_:)/index.html b/docs/documentation/swifthpke/base64/decode(_:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/base64/decode(_:)/index.html +++ b/docs/documentation/swifthpke/base64/decode(_:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/base64/encode(_:_:)/index.html b/docs/documentation/swifthpke/base64/encode(_:_:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/base64/encode(_:_:)/index.html +++ b/docs/documentation/swifthpke/base64/encode(_:_:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/base64/index.html b/docs/documentation/swifthpke/base64/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/base64/index.html +++ b/docs/documentation/swifthpke/base64/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/base64/pemdecode(_:_:)/index.html b/docs/documentation/swifthpke/base64/pemdecode(_:_:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/base64/pemdecode(_:_:)/index.html +++ b/docs/documentation/swifthpke/base64/pemdecode(_:_:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/base64/pemencode(_:_:)/index.html b/docs/documentation/swifthpke/base64/pemencode(_:_:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/base64/pemencode(_:_:)/index.html +++ b/docs/documentation/swifthpke/base64/pemencode(_:_:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/byte/index.html b/docs/documentation/swifthpke/byte/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/byte/index.html +++ b/docs/documentation/swifthpke/byte/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/bytes/index.html b/docs/documentation/swifthpke/bytes/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/bytes/index.html +++ b/docs/documentation/swifthpke/bytes/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/ciphersuite/aead/index.html b/docs/documentation/swifthpke/ciphersuite/aead/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/ciphersuite/aead/index.html +++ b/docs/documentation/swifthpke/ciphersuite/aead/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/ciphersuite/derivekeypair(ikm:)/index.html b/docs/documentation/swifthpke/ciphersuite/derivekeypair(ikm:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/ciphersuite/derivekeypair(ikm:)/index.html +++ b/docs/documentation/swifthpke/ciphersuite/derivekeypair(ikm:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/ciphersuite/description/index.html b/docs/documentation/swifthpke/ciphersuite/description/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/ciphersuite/description/index.html +++ b/docs/documentation/swifthpke/ciphersuite/description/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/ciphersuite/index.html b/docs/documentation/swifthpke/ciphersuite/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/ciphersuite/index.html +++ b/docs/documentation/swifthpke/ciphersuite/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/ciphersuite/init(kem:kdf:aead:)/index.html b/docs/documentation/swifthpke/ciphersuite/init(kem:kdf:aead:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/ciphersuite/init(kem:kdf:aead:)/index.html +++ b/docs/documentation/swifthpke/ciphersuite/init(kem:kdf:aead:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/ciphersuite/kdf/index.html b/docs/documentation/swifthpke/ciphersuite/kdf/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/ciphersuite/kdf/index.html +++ b/docs/documentation/swifthpke/ciphersuite/kdf/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/ciphersuite/kem/index.html b/docs/documentation/swifthpke/ciphersuite/kem/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/ciphersuite/kem/index.html +++ b/docs/documentation/swifthpke/ciphersuite/kem/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/ciphersuite/makekeypair()/index.html b/docs/documentation/swifthpke/ciphersuite/makekeypair()/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/ciphersuite/makekeypair()/index.html +++ b/docs/documentation/swifthpke/ciphersuite/makekeypair()/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:ct:aad:encap:)/index.html b/docs/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:ct:aad:encap:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:ct:aad:encap:)/index.html +++ b/docs/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:ct:aad:encap:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)/index.html b/docs/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)/index.html +++ b/docs/documentation/swifthpke/ciphersuite/open(privatekey:info:authentication:psk:pskid:ct:aad:encap:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/ciphersuite/open(privatekey:info:ct:aad:encap:)/index.html b/docs/documentation/swifthpke/ciphersuite/open(privatekey:info:ct:aad:encap:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/ciphersuite/open(privatekey:info:ct:aad:encap:)/index.html +++ b/docs/documentation/swifthpke/ciphersuite/open(privatekey:info:ct:aad:encap:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/ciphersuite/open(privatekey:info:psk:pskid:ct:aad:encap:)/index.html b/docs/documentation/swifthpke/ciphersuite/open(privatekey:info:psk:pskid:ct:aad:encap:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/ciphersuite/open(privatekey:info:psk:pskid:ct:aad:encap:)/index.html +++ b/docs/documentation/swifthpke/ciphersuite/open(privatekey:info:psk:pskid:ct:aad:encap:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:encap:)/index.html b/docs/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:encap:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:encap:)/index.html +++ b/docs/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:encap:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)/index.html b/docs/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)/index.html +++ b/docs/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:authentication:psk:pskid:encap:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:encap:)/index.html b/docs/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:encap:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:encap:)/index.html +++ b/docs/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:encap:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:psk:pskid:encap:)/index.html b/docs/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:psk:pskid:encap:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:psk:pskid:encap:)/index.html +++ b/docs/documentation/swifthpke/ciphersuite/receiveexport(privatekey:info:context:l:psk:pskid:encap:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:psk:pskid:pt:aad:)/index.html b/docs/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:psk:pskid:pt:aad:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:psk:pskid:pt:aad:)/index.html +++ b/docs/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:psk:pskid:pt:aad:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:pt:aad:)/index.html b/docs/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:pt:aad:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:pt:aad:)/index.html +++ b/docs/documentation/swifthpke/ciphersuite/seal(publickey:info:authentication:pt:aad:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/ciphersuite/seal(publickey:info:psk:pskid:pt:aad:)/index.html b/docs/documentation/swifthpke/ciphersuite/seal(publickey:info:psk:pskid:pt:aad:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/ciphersuite/seal(publickey:info:psk:pskid:pt:aad:)/index.html +++ b/docs/documentation/swifthpke/ciphersuite/seal(publickey:info:psk:pskid:pt:aad:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/ciphersuite/seal(publickey:info:pt:aad:)/index.html b/docs/documentation/swifthpke/ciphersuite/seal(publickey:info:pt:aad:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/ciphersuite/seal(publickey:info:pt:aad:)/index.html +++ b/docs/documentation/swifthpke/ciphersuite/seal(publickey:info:pt:aad:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:)/index.html b/docs/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:)/index.html +++ b/docs/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:)/index.html b/docs/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:)/index.html +++ b/docs/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:psk:pskid:)/index.html b/docs/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:psk:pskid:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:psk:pskid:)/index.html +++ b/docs/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:authentication:psk:pskid:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:psk:pskid:)/index.html b/docs/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:psk:pskid:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:psk:pskid:)/index.html +++ b/docs/documentation/swifthpke/ciphersuite/sendexport(publickey:info:context:l:psk:pskid:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/cryptokit/index.html b/docs/documentation/swifthpke/cryptokit/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/cryptokit/index.html +++ b/docs/documentation/swifthpke/cryptokit/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/hpkeexception/!=(_:_:)/index.html b/docs/documentation/swifthpke/hpkeexception/!=(_:_:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/hpkeexception/!=(_:_:)/index.html +++ b/docs/documentation/swifthpke/hpkeexception/!=(_:_:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/hpkeexception/asn1structure/index.html b/docs/documentation/swifthpke/hpkeexception/asn1structure/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/hpkeexception/asn1structure/index.html +++ b/docs/documentation/swifthpke/hpkeexception/asn1structure/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/hpkeexception/base64/index.html b/docs/documentation/swifthpke/hpkeexception/base64/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/hpkeexception/base64/index.html +++ b/docs/documentation/swifthpke/hpkeexception/base64/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/hpkeexception/decodepoint/index.html b/docs/documentation/swifthpke/hpkeexception/decodepoint/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/hpkeexception/decodepoint/index.html +++ b/docs/documentation/swifthpke/hpkeexception/decodepoint/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/hpkeexception/derivedkeyerror/index.html b/docs/documentation/swifthpke/hpkeexception/derivedkeyerror/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/hpkeexception/derivedkeyerror/index.html +++ b/docs/documentation/swifthpke/hpkeexception/derivedkeyerror/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/hpkeexception/description/index.html b/docs/documentation/swifthpke/hpkeexception/description/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/hpkeexception/description/index.html +++ b/docs/documentation/swifthpke/hpkeexception/description/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/hpkeexception/equatable-implementations/index.html b/docs/documentation/swifthpke/hpkeexception/equatable-implementations/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/hpkeexception/equatable-implementations/index.html +++ b/docs/documentation/swifthpke/hpkeexception/equatable-implementations/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/hpkeexception/error-implementations/index.html b/docs/documentation/swifthpke/hpkeexception/error-implementations/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/hpkeexception/error-implementations/index.html +++ b/docs/documentation/swifthpke/hpkeexception/error-implementations/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/hpkeexception/exportonlyerror/index.html b/docs/documentation/swifthpke/hpkeexception/exportonlyerror/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/hpkeexception/exportonlyerror/index.html +++ b/docs/documentation/swifthpke/hpkeexception/exportonlyerror/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/hpkeexception/exportsize/index.html b/docs/documentation/swifthpke/hpkeexception/exportsize/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/hpkeexception/exportsize/index.html +++ b/docs/documentation/swifthpke/hpkeexception/exportsize/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/hpkeexception/index.html b/docs/documentation/swifthpke/hpkeexception/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/hpkeexception/index.html +++ b/docs/documentation/swifthpke/hpkeexception/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/hpkeexception/keymismatch/index.html b/docs/documentation/swifthpke/hpkeexception/keymismatch/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/hpkeexception/keymismatch/index.html +++ b/docs/documentation/swifthpke/hpkeexception/keymismatch/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/hpkeexception/localizeddescription/index.html b/docs/documentation/swifthpke/hpkeexception/localizeddescription/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/hpkeexception/localizeddescription/index.html +++ b/docs/documentation/swifthpke/hpkeexception/localizeddescription/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/hpkeexception/pemstructure/index.html b/docs/documentation/swifthpke/hpkeexception/pemstructure/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/hpkeexception/pemstructure/index.html +++ b/docs/documentation/swifthpke/hpkeexception/pemstructure/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/hpkeexception/privatekeyparameter/index.html b/docs/documentation/swifthpke/hpkeexception/privatekeyparameter/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/hpkeexception/privatekeyparameter/index.html +++ b/docs/documentation/swifthpke/hpkeexception/privatekeyparameter/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/hpkeexception/pskerror/index.html b/docs/documentation/swifthpke/hpkeexception/pskerror/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/hpkeexception/pskerror/index.html +++ b/docs/documentation/swifthpke/hpkeexception/pskerror/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/hpkeexception/publickeyparameter/index.html b/docs/documentation/swifthpke/hpkeexception/publickeyparameter/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/hpkeexception/publickeyparameter/index.html +++ b/docs/documentation/swifthpke/hpkeexception/publickeyparameter/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/hpkeexception/smallorder/index.html b/docs/documentation/swifthpke/hpkeexception/smallorder/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/hpkeexception/smallorder/index.html +++ b/docs/documentation/swifthpke/hpkeexception/smallorder/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/index.html b/docs/documentation/swifthpke/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/index.html +++ b/docs/documentation/swifthpke/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/kdf/!=(_:_:)/index.html b/docs/documentation/swifthpke/kdf/!=(_:_:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/kdf/!=(_:_:)/index.html +++ b/docs/documentation/swifthpke/kdf/!=(_:_:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/kdf/description/index.html b/docs/documentation/swifthpke/kdf/description/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/kdf/description/index.html +++ b/docs/documentation/swifthpke/kdf/description/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/kdf/equatable-implementations/index.html b/docs/documentation/swifthpke/kdf/equatable-implementations/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/kdf/equatable-implementations/index.html +++ b/docs/documentation/swifthpke/kdf/equatable-implementations/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/kdf/index.html b/docs/documentation/swifthpke/kdf/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/kdf/index.html +++ b/docs/documentation/swifthpke/kdf/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/kdf/kdf256/index.html b/docs/documentation/swifthpke/kdf/kdf256/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/kdf/kdf256/index.html +++ b/docs/documentation/swifthpke/kdf/kdf256/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/kdf/kdf384/index.html b/docs/documentation/swifthpke/kdf/kdf384/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/kdf/kdf384/index.html +++ b/docs/documentation/swifthpke/kdf/kdf384/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/kdf/kdf512/index.html b/docs/documentation/swifthpke/kdf/kdf512/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/kdf/kdf512/index.html +++ b/docs/documentation/swifthpke/kdf/kdf512/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/kem/!=(_:_:)/index.html b/docs/documentation/swifthpke/kem/!=(_:_:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/kem/!=(_:_:)/index.html +++ b/docs/documentation/swifthpke/kem/!=(_:_:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/kem/description/index.html b/docs/documentation/swifthpke/kem/description/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/kem/description/index.html +++ b/docs/documentation/swifthpke/kem/description/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/kem/equatable-implementations/index.html b/docs/documentation/swifthpke/kem/equatable-implementations/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/kem/equatable-implementations/index.html +++ b/docs/documentation/swifthpke/kem/equatable-implementations/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/kem/index.html b/docs/documentation/swifthpke/kem/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/kem/index.html +++ b/docs/documentation/swifthpke/kem/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/kem/p256/index.html b/docs/documentation/swifthpke/kem/p256/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/kem/p256/index.html +++ b/docs/documentation/swifthpke/kem/p256/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/kem/p384/index.html b/docs/documentation/swifthpke/kem/p384/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/kem/p384/index.html +++ b/docs/documentation/swifthpke/kem/p384/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/kem/p521/index.html b/docs/documentation/swifthpke/kem/p521/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/kem/p521/index.html +++ b/docs/documentation/swifthpke/kem/p521/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/kem/x25519/index.html b/docs/documentation/swifthpke/kem/x25519/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/kem/x25519/index.html +++ b/docs/documentation/swifthpke/kem/x25519/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/kem/x448/index.html b/docs/documentation/swifthpke/kem/x448/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/kem/x448/index.html +++ b/docs/documentation/swifthpke/kem/x448/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/keymanagement/index.html b/docs/documentation/swifthpke/keymanagement/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/keymanagement/index.html +++ b/docs/documentation/swifthpke/keymanagement/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/performance/index.html b/docs/documentation/swifthpke/performance/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/performance/index.html +++ b/docs/documentation/swifthpke/performance/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/privatekey/!=(_:_:)/index.html b/docs/documentation/swifthpke/privatekey/!=(_:_:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/privatekey/!=(_:_:)/index.html +++ b/docs/documentation/swifthpke/privatekey/!=(_:_:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/privatekey/==(_:_:)/index.html b/docs/documentation/swifthpke/privatekey/==(_:_:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/privatekey/==(_:_:)/index.html +++ b/docs/documentation/swifthpke/privatekey/==(_:_:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/privatekey/asn1/index.html b/docs/documentation/swifthpke/privatekey/asn1/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/privatekey/asn1/index.html +++ b/docs/documentation/swifthpke/privatekey/asn1/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/privatekey/bytes/index.html b/docs/documentation/swifthpke/privatekey/bytes/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/privatekey/bytes/index.html +++ b/docs/documentation/swifthpke/privatekey/bytes/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/privatekey/der/index.html b/docs/documentation/swifthpke/privatekey/der/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/privatekey/der/index.html +++ b/docs/documentation/swifthpke/privatekey/der/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/privatekey/description/index.html b/docs/documentation/swifthpke/privatekey/description/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/privatekey/description/index.html +++ b/docs/documentation/swifthpke/privatekey/description/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/privatekey/equatable-implementations/index.html b/docs/documentation/swifthpke/privatekey/equatable-implementations/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/privatekey/equatable-implementations/index.html +++ b/docs/documentation/swifthpke/privatekey/equatable-implementations/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/privatekey/index.html b/docs/documentation/swifthpke/privatekey/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/privatekey/index.html +++ b/docs/documentation/swifthpke/privatekey/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/privatekey/init(der:)/index.html b/docs/documentation/swifthpke/privatekey/init(der:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/privatekey/init(der:)/index.html +++ b/docs/documentation/swifthpke/privatekey/init(der:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/privatekey/init(kem:bytes:)/index.html b/docs/documentation/swifthpke/privatekey/init(kem:bytes:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/privatekey/init(kem:bytes:)/index.html +++ b/docs/documentation/swifthpke/privatekey/init(kem:bytes:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/privatekey/init(pem:)/index.html b/docs/documentation/swifthpke/privatekey/init(pem:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/privatekey/init(pem:)/index.html +++ b/docs/documentation/swifthpke/privatekey/init(pem:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/privatekey/pem/index.html b/docs/documentation/swifthpke/privatekey/pem/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/privatekey/pem/index.html +++ b/docs/documentation/swifthpke/privatekey/pem/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/privatekey/publickey/index.html b/docs/documentation/swifthpke/privatekey/publickey/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/privatekey/publickey/index.html +++ b/docs/documentation/swifthpke/privatekey/publickey/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/publickey/!=(_:_:)/index.html b/docs/documentation/swifthpke/publickey/!=(_:_:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/publickey/!=(_:_:)/index.html +++ b/docs/documentation/swifthpke/publickey/!=(_:_:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/publickey/==(_:_:)/index.html b/docs/documentation/swifthpke/publickey/==(_:_:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/publickey/==(_:_:)/index.html +++ b/docs/documentation/swifthpke/publickey/==(_:_:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/publickey/asn1/index.html b/docs/documentation/swifthpke/publickey/asn1/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/publickey/asn1/index.html +++ b/docs/documentation/swifthpke/publickey/asn1/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/publickey/bytes/index.html b/docs/documentation/swifthpke/publickey/bytes/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/publickey/bytes/index.html +++ b/docs/documentation/swifthpke/publickey/bytes/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/publickey/der/index.html b/docs/documentation/swifthpke/publickey/der/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/publickey/der/index.html +++ b/docs/documentation/swifthpke/publickey/der/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/publickey/description/index.html b/docs/documentation/swifthpke/publickey/description/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/publickey/description/index.html +++ b/docs/documentation/swifthpke/publickey/description/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/publickey/equatable-implementations/index.html b/docs/documentation/swifthpke/publickey/equatable-implementations/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/publickey/equatable-implementations/index.html +++ b/docs/documentation/swifthpke/publickey/equatable-implementations/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/publickey/index.html b/docs/documentation/swifthpke/publickey/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/publickey/index.html +++ b/docs/documentation/swifthpke/publickey/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/publickey/init(der:)/index.html b/docs/documentation/swifthpke/publickey/init(der:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/publickey/init(der:)/index.html +++ b/docs/documentation/swifthpke/publickey/init(der:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/publickey/init(kem:bytes:)/index.html b/docs/documentation/swifthpke/publickey/init(kem:bytes:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/publickey/init(kem:bytes:)/index.html +++ b/docs/documentation/swifthpke/publickey/init(kem:bytes:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/publickey/init(pem:)/index.html b/docs/documentation/swifthpke/publickey/init(pem:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/publickey/init(pem:)/index.html +++ b/docs/documentation/swifthpke/publickey/init(pem:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/publickey/pem/index.html b/docs/documentation/swifthpke/publickey/pem/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/publickey/pem/index.html +++ b/docs/documentation/swifthpke/publickey/pem/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/recipient/index.html b/docs/documentation/swifthpke/recipient/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/recipient/index.html +++ b/docs/documentation/swifthpke/recipient/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:encap:)/index.html b/docs/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:encap:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:encap:)/index.html +++ b/docs/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:encap:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:psk:pskid:encap:)/index.html b/docs/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:psk:pskid:encap:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:psk:pskid:encap:)/index.html +++ b/docs/documentation/swifthpke/recipient/init(suite:privatekey:info:authentication:psk:pskid:encap:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/recipient/init(suite:privatekey:info:encap:)/index.html b/docs/documentation/swifthpke/recipient/init(suite:privatekey:info:encap:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/recipient/init(suite:privatekey:info:encap:)/index.html +++ b/docs/documentation/swifthpke/recipient/init(suite:privatekey:info:encap:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/recipient/init(suite:privatekey:info:psk:pskid:encap:)/index.html b/docs/documentation/swifthpke/recipient/init(suite:privatekey:info:psk:pskid:encap:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/recipient/init(suite:privatekey:info:psk:pskid:encap:)/index.html +++ b/docs/documentation/swifthpke/recipient/init(suite:privatekey:info:psk:pskid:encap:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/recipient/open(ct:aad:)/index.html b/docs/documentation/swifthpke/recipient/open(ct:aad:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/recipient/open(ct:aad:)/index.html +++ b/docs/documentation/swifthpke/recipient/open(ct:aad:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/recipient/receiveexport(context:l:)/index.html b/docs/documentation/swifthpke/recipient/receiveexport(context:l:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/recipient/receiveexport(context:l:)/index.html +++ b/docs/documentation/swifthpke/recipient/receiveexport(context:l:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/references/index.html b/docs/documentation/swifthpke/references/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/references/index.html +++ b/docs/documentation/swifthpke/references/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/secretexport/index.html b/docs/documentation/swifthpke/secretexport/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/secretexport/index.html +++ b/docs/documentation/swifthpke/secretexport/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/sender/encapsulatedkey/index.html b/docs/documentation/swifthpke/sender/encapsulatedkey/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/sender/encapsulatedkey/index.html +++ b/docs/documentation/swifthpke/sender/encapsulatedkey/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/sender/index.html b/docs/documentation/swifthpke/sender/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/sender/index.html +++ b/docs/documentation/swifthpke/sender/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/sender/init(suite:publickey:info:)/index.html b/docs/documentation/swifthpke/sender/init(suite:publickey:info:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/sender/init(suite:publickey:info:)/index.html +++ b/docs/documentation/swifthpke/sender/init(suite:publickey:info:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/sender/init(suite:publickey:info:authentication:)/index.html b/docs/documentation/swifthpke/sender/init(suite:publickey:info:authentication:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/sender/init(suite:publickey:info:authentication:)/index.html +++ b/docs/documentation/swifthpke/sender/init(suite:publickey:info:authentication:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/sender/init(suite:publickey:info:authentication:psk:pskid:)/index.html b/docs/documentation/swifthpke/sender/init(suite:publickey:info:authentication:psk:pskid:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/sender/init(suite:publickey:info:authentication:psk:pskid:)/index.html +++ b/docs/documentation/swifthpke/sender/init(suite:publickey:info:authentication:psk:pskid:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/sender/init(suite:publickey:info:psk:pskid:)/index.html b/docs/documentation/swifthpke/sender/init(suite:publickey:info:psk:pskid:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/sender/init(suite:publickey:info:psk:pskid:)/index.html +++ b/docs/documentation/swifthpke/sender/init(suite:publickey:info:psk:pskid:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/sender/seal(pt:aad:)/index.html b/docs/documentation/swifthpke/sender/seal(pt:aad:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/sender/seal(pt:aad:)/index.html +++ b/docs/documentation/swifthpke/sender/seal(pt:aad:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/documentation/swifthpke/sender/sendexport(context:l:)/index.html b/docs/documentation/swifthpke/sender/sendexport(context:l:)/index.html index c5ff468..3cd602d 100644 --- a/docs/documentation/swifthpke/sender/sendexport(context:l:)/index.html +++ b/docs/documentation/swifthpke/sender/sendexport(context:l:)/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/index.html b/docs/index.html index c5ff468..3cd602d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1 +1 @@ -Documentation
\ No newline at end of file +Documentation
\ No newline at end of file diff --git a/docs/js/903.5a8b9c15.js b/docs/js/903.b3710a74.js similarity index 100% rename from docs/js/903.5a8b9c15.js rename to docs/js/903.b3710a74.js diff --git a/docs/js/index.91ed7402.js b/docs/js/index.2871ffbd.js similarity index 99% rename from docs/js/index.91ed7402.js rename to docs/js/index.2871ffbd.js index 217de33..193c00b 100644 --- a/docs/js/index.91ed7402.js +++ b/docs/js/index.2871ffbd.js @@ -6,4 +6,4 @@ * * See https://swift.org/LICENSE.txt for license information * See https://swift.org/CONTRIBUTORS.txt for Swift project authors - */(function(){var e={1970:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=function(){var e=this,t=e._self._c;return t("SVGIcon",{staticClass:"close-icon",attrs:{viewBox:"0 0 14 14",themeId:"close"}},[t("path",{attrs:{d:"M12.73,0l1.27,1.27-5.74,5.73,5.72,5.72-1.27,1.27-5.72-5.72L1.28,13.99,.01,12.72,5.72,7.01,0,1.28,1.27,.01,6.99,5.73,12.73,0Z"}})])},o=[],i=n(3453),a={name:"CloseIcon",components:{SVGIcon:i.Z}},s=a,c=n(1001),l=(0,c.Z)(s,r,o,!1,null,null,null),u=l.exports},8785:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=function(){var e=this,t=e._self._c;return t("SVGIcon",{staticClass:"inline-chevron-right-icon",attrs:{viewBox:"0 0 14 14",themeId:"inline-chevron-right"}},[t("path",{attrs:{d:"M2.964 1.366l0.649-0.76 7.426 6.343-7.423 6.445-0.655-0.755 6.545-5.683-6.542-5.59z"}})])},o=[],i=n(3453),a={name:"InlineChevronRightIcon",components:{SVGIcon:i.Z}},s=a,c=n(1001),l=(0,c.Z)(s,r,o,!1,null,null,null),u=l.exports},3453:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=function(){var e=this,t=e._self._c;return t("svg",{staticClass:"svg-icon",attrs:{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[e.themeOverrideURL?t("use",{attrs:{href:`${e.themeOverrideURL}#${e.themeId}`,width:"100%",height:"100%"}}):e._t("default")],2)},o=[],i=n(9089),a={name:"SVGIcon",props:{themeId:{type:String,required:!1},iconUrl:{type:String,default:null}},computed:{themeOverrideURL:({iconUrl:e,themeId:t})=>e||(0,i.$8)(["theme","icons",t],void 0)}},s=a,c=n(1001),l=(0,c.Z)(s,r,o,!1,null,"979a134a",null),u=l.exports},5670:function(e,t,n){"use strict";n(647);var r=n(144),o=n(7152),i=n(8345),a=function(){var e=this,t=e._self._c;return t("div",{class:{fromkeyboard:e.fromKeyboard,hascustomheader:e.hasCustomHeader},attrs:{id:"app"}},[t("div",{attrs:{id:e.AppTopID}}),e.isTargetIDE?e._e():t("a",{attrs:{href:"#main",id:"skip-nav"}},[e._v(e._s(e.$t("accessibility.skip-navigation")))]),t("InitialLoadingPlaceholder"),e._t("header",(function(){return[e.enablei18n?t("SuggestLang"):e._e(),e.hasCustomHeader?t("custom-header",{attrs:{"data-color-scheme":e.preferredColorScheme}}):e._e()]}),{isTargetIDE:e.isTargetIDE}),t("div",{attrs:{id:e.baseNavStickyAnchorId}}),e._t("default",(function(){return[t("router-view",{staticClass:"router-content"}),e.hasCustomFooter?t("custom-footer",{attrs:{"data-color-scheme":e.preferredColorScheme}}):e.isTargetIDE?e._e():t("Footer",{scopedSlots:e._u([{key:"default",fn:function({className:n}){return[e.enablei18n?t("div",{class:n},[t("LocaleSelector")],1):e._e()]}}])})]}),{isTargetIDE:e.isTargetIDE}),e._t("footer",null,{isTargetIDE:e.isTargetIDE})],2)},s=[],c=n(4030),l=n(9804),u=function(){var e=this,t=e._self._c;return t("footer",{staticClass:"footer"},[t("div",{staticClass:"row"},[t("ColorSchemeToggle")],1),e._t("default",null,{className:"row"})],2)},d=[],m=function(){var e=this,t=e._self._c;return t("fieldset",{staticClass:"color-scheme-toggle",attrs:{role:"radiogroup"}},[t("legend",{staticClass:"visuallyhidden"},[e._v(e._s(e.$t("color-scheme.select")))]),e._l(e.options,(function(n){return t("label",{key:n},[t("input",{attrs:{type:"radio"},domProps:{checked:n==e.preferredColorScheme,value:n},on:{input:e.setPreferredColorScheme}}),t("div",{staticClass:"text"},[e._v(e._s(e.$t(`color-scheme.${n}`)))])])}))],2)},f=[],h={name:"ColorSchemeToggle",data:()=>({appState:c["default"].state}),computed:{options:({supportsAutoColorScheme:e})=>[l.Z.light,l.Z.dark,...e?[l.Z.auto]:[]],preferredColorScheme:({appState:e})=>e.preferredColorScheme,supportsAutoColorScheme:({appState:e})=>e.supportsAutoColorScheme},methods:{setPreferredColorScheme:e=>{c["default"].setPreferredColorScheme(e.target.value)}},watch:{preferredColorScheme:{immediate:!0,handler(e){document.body.dataset.colorScheme=e}}}},p=h,g=n(1001),v=(0,g.Z)(p,m,f,!1,null,"78690df2",null),b=v.exports,w={name:"Footer",components:{ColorSchemeToggle:b}},y=w,S=(0,g.Z)(y,u,d,!1,null,"4e049dbd",null),C=S.exports,_=function(){var e=this,t=e._self._c;return e.loaded?e._e():t("div",{staticClass:"InitialLoadingPlaceholder",attrs:{id:"loading-placeholder"}})},E=[],L={name:"InitialLoadingPlaceholder",data(){return{loaded:!1}},created(){const e=()=>{this.loaded=!0};this.$router.onReady(e,e)}},P=L,A=(0,g.Z)(P,_,E,!1,null,"35c356b6",null),k=A.exports,T=n(1716),j=n(9089);function I(e,t){return e&&"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,t)&&"string"===typeof e[t]}function x(e,t,n,r){if(!t||"object"!==typeof t||r&&(I(t,"light")||I(t,"dark"))){let o=t;if(I(t,r)&&(o=t[r]),"object"===typeof o)return;n[e]=o}else Object.entries(t).forEach((([t,o])=>{const i=[e,t].join("-");x(i,o,n,r)}))}function N(e,t="light"){const n={},r=e||{};return x("-",r,n,t),n}var $=n(2717),O=function(){var e=this,t=e._self._c;return e.displaySuggestLang?t("div",{staticClass:"suggest-lang"},[t("div",{staticClass:"suggest-lang__wrapper"},[t("router-link",{staticClass:"suggest-lang__link",attrs:{to:e.getLocaleParam(e.preferredLocale),lang:e.getCodeForSlug(e.preferredLocale)},nativeOn:{click:function(t){return e.setPreferredLocale(e.preferredLocale)}}},[e._v(e._s(e.$i18n.messages[e.preferredLocale]["view-in"])),t("InlineChevronRightIcon",{staticClass:"icon-inline"})],1),t("div",{staticClass:"suggest-lang__close-icon-wrapper"},[t("button",{staticClass:"suggest-lang__close-icon-button",attrs:{"aria-label":e.$t("continue-viewing")},on:{click:function(t){return e.setPreferredLocale(e.$i18n.locale)}}},[t("CloseIcon",{staticClass:"icon-inline"})],1)])],1)]):e._e()},D=[],Z=n(8785),R=n(1970),q=n(2412),U=n(9030),V={name:"SuggestLang",components:{InlineChevronRightIcon:Z.Z,CloseIcon:R.Z},computed:{preferredLocale:()=>{const e=c["default"].state.preferredLocale;if(e)return e;const t=q.find((e=>{const t=e.code.split("-")[0],n=window.navigator.language.split("-")[0];return n===t}));return t?t.slug:null},displaySuggestLang:({preferredLocale:e,$i18n:t})=>e&&t.locale!==e},methods:{setPreferredLocale:e=>{c["default"].setPreferredLocale(e)},getCodeForSlug:U.dZ,getLocaleParam:U.KP}},B=V,M=(0,g.Z)(B,O,D,!1,null,"768a347b",null),H=M.exports,F=function(){var e=this,t=e._self._c;return t("div",{staticClass:"locale-selector"},[t("select",{attrs:{"aria-label":e.$t("select-language")},domProps:{value:e.$i18n.locale},on:{change:e.updateRouter}},e._l(e.locales,(function({slug:n,name:r,code:o}){return t("option",{key:n,attrs:{lang:o},domProps:{value:n}},[e._v(" "+e._s(r)+" ")])})),0),t("ChevronThickIcon",{staticClass:"icon-inline"})],1)},W=[],J=function(){var e=this,t=e._self._c;return t("SVGIcon",{staticClass:"chevron-thick-icon",attrs:{viewBox:"0 0 14 10.5",themeId:"chevron-thick"}},[t("path",{attrs:{d:"M12.43,0l1.57,1.22L7,10.5,0,1.23,1.58,0,7,7,12.43,0Z"}})])},G=[],K=n(3453),z={name:"ChevronThickIcon",components:{SVGIcon:K.Z}},X=z,Y=(0,g.Z)(X,J,G,!1,null,null,null),Q=Y.exports,ee={name:"LocaleSelector",components:{ChevronThickIcon:Q},methods:{updateRouter({target:{value:e}}){this.$router.push((0,U.KP)(e)),c["default"].setPreferredLocale(e),(0,U.jk)(e,this)}},computed:{availableLocales:()=>c["default"].state.availableLocales,locales:({availableLocales:e})=>q.filter((({code:t})=>e.includes(t)))}},te=ee,ne=(0,g.Z)(te,F,W,!1,null,"d21858a2",null),re=ne.exports,oe={name:"CoreApp",components:{Footer:C,InitialLoadingPlaceholder:k,SuggestLang:H,LocaleSelector:re},provide(){return{isTargetIDE:this.isTargetIDE,performanceMetricsEnabled:"true"==={NODE_ENV:"production",VUE_APP_TITLE:"Documentation",BASE_URL:"{{BASE_PATH}}/"}.VUE_APP_PERFORMANCE_ENABLED}},data(){return{AppTopID:$.$,appState:c["default"].state,fromKeyboard:!1,isTargetIDE:"ide"==={NODE_ENV:"production",VUE_APP_TITLE:"Documentation",BASE_URL:"{{BASE_PATH}}/"}.VUE_APP_TARGET,themeSettings:j.S3,baseNavStickyAnchorId:T.EA}},computed:{currentColorScheme:({appState:e})=>e.systemColorScheme,preferredColorScheme:({appState:e})=>e.preferredColorScheme,availableLocales:({appState:e})=>e.availableLocales,CSSCustomProperties:({currentColorScheme:e,preferredColorScheme:t,themeSettings:n})=>N(n.theme,t===l.Z.auto?e:t),hasCustomHeader:()=>!!window.customElements.get("custom-header"),hasCustomFooter:()=>!!window.customElements.get("custom-footer"),enablei18n:({availableLocales:e})=>(0,j.$8)(["features","docs","i18n","enable"],!1)&&e.length>1},props:{enableThemeSettings:{type:Boolean,default:!0}},watch:{CSSCustomProperties:{immediate:!0,handler(e){this.detachStylesFromRoot(e),this.attachStylesToRoot(e)}}},async created(){window.addEventListener("keydown",this.onKeyDown),this.$bridge.on("navigation",this.handleNavigationRequest),this.enableThemeSettings&&Object.assign(this.themeSettings,await(0,j.Kx)()),window.addEventListener("pageshow",this.syncPreferredColorScheme),this.$once("hook:beforeDestroy",(()=>{window.removeEventListener("pageshow",this.syncPreferredColorScheme)}))},mounted(){(document.querySelector(".footer-current-year")||{}).innerText=(new Date).getFullYear(),this.attachColorSchemeListeners()},beforeDestroy(){this.fromKeyboard?window.removeEventListener("mousedown",this.onMouseDown):window.removeEventListener("keydown",this.onKeyDown),this.$bridge.off("navigation",this.handleNavigationRequest),this.detachStylesFromRoot(this.CSSCustomProperties)},methods:{onKeyDown(){this.fromKeyboard=!0,window.addEventListener("mousedown",this.onMouseDown),window.removeEventListener("keydown",this.onKeyDown)},onMouseDown(){this.fromKeyboard=!1,window.addEventListener("keydown",this.onKeyDown),window.removeEventListener("mousedown",this.onMouseDown)},handleNavigationRequest(e){this.$router.push(e)},attachColorSchemeListeners(){if(!window.matchMedia)return;const e=window.matchMedia("(prefers-color-scheme: dark)");e.addListener(this.onColorSchemePreferenceChange),this.$once("hook:beforeDestroy",(()=>{e.removeListener(this.onColorSchemePreferenceChange)})),this.onColorSchemePreferenceChange(e)},onColorSchemePreferenceChange({matches:e}){const t=e?l.Z.dark:l.Z.light;c["default"].setSystemColorScheme(t)},attachStylesToRoot(e){const t=document.body;Object.entries(e).filter((([,e])=>Boolean(e))).forEach((([e,n])=>{t.style.setProperty(e,n)}))},detachStylesFromRoot(e){const t=document.body;Object.entries(e).forEach((([e])=>{t.style.removeProperty(e)}))},syncPreferredColorScheme(){c["default"].syncPreferredColorScheme()}}},ie=oe,ae=(0,g.Z)(ie,a,s,!1,null,"3742c1d7",null),se=ae.exports;class ce{constructor(){this.$send=()=>{}}send(e){this.$send(e)}}class le{constructor(){const{webkit:{messageHandlers:{bridge:e={}}={}}={}}=window;this.bridge=e;const{postMessage:t=(()=>{})}=e;this.$send=t.bind(e)}send(e){this.$send(e)}}class ue{constructor(e=new ce){this.backend=e,this.listeners={}}send(e){this.backend.send(e)}receive(e){this.emit(e.type,e.data)}emit(e,t){this.listeners[e]&&this.listeners[e].forEach((e=>e(t)))}on(e,t){this.listeners[e]||(this.listeners[e]=new Set),this.listeners[e].add(t)}off(e,t){this.listeners[e]&&this.listeners[e].delete(t)}}var de={install(e,t){let n;n=t.performanceMetricsEnabled||"ide"===t.appTarget?new le:new ce,e.prototype.$bridge=new ue(n)}};function me(e){return`custom-${e}`}function fe(e){return class extends HTMLElement{constructor(){super();const t=this.attachShadow({mode:"open"}),n=e.content.cloneNode(!0);t.appendChild(n)}}}function he(e){const t=me(e),n=document.getElementById(t);n&&window.customElements.define(t,fe(n))}function pe(e,t={names:["header","footer"]}){const{names:n}=t;e.config.ignoredElements=/^custom-/,n.forEach(he)}function ge(e,t){const{value:n=!1}=t;e.style.display=n?"none":""}var ve={hide:ge};function be(e,{performanceMetrics:t=!1}={}){e.config.productionTip=!1,e.use(pe),e.directive("hide",ve.hide),e.use(de,{appTarget:{NODE_ENV:"production",VUE_APP_TITLE:"Documentation",BASE_URL:"{{BASE_PATH}}/"}.VUE_APP_TARGET,performanceMetricsEnabled:t}),window.bridge=e.prototype.$bridge,e.config.performance=t}var we=n(4589),ye=n(5381),Se=n(5657),Ce=n(3208),_e=n(2449);const Ee=10;function Le(e){const{name:t}=e,n=t.includes(we.J_);return n?Ee:0}function Pe(){const{location:e}=window;return e.pathname+e.search+e.hash}function Ae(){const e=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0);return ePromise.all([n.e(523),n.e(843)]).then(n.bind(n,4586))},{path:"/tutorials/:id/*",name:"topic",component:()=>Promise.all([n.e(523),n.e(903),n.e(162)]).then(n.bind(n,8032))},{path:"/documentation/*",name:we.J_,component:()=>Promise.all([n.e(523),n.e(37),n.e(903),n.e(982)]).then(n.bind(n,5840))},{path:"*",name:we.vL,component:Ge},{path:"*",name:we.Rp,component:Be}];const ze=[{pathPrefix:"/:locale?",nameSuffix:"-locale"}];function Xe(e,t=[],n=ze){return n.reduce(((n,r)=>n.concat(e.filter((e=>!t.includes(e.name))).map((e=>({...e,path:r.pathPrefix+e.path,name:e.name+r.nameSuffix}))))),[])}const Ye=[...Ke,...Xe(Ke,[we.vL,we.Rp])];function Qe(e={}){const t=new i.Z({mode:"history",base:j.FH,scrollBehavior:ke,...e,routes:e.routes||Ye});return t.onReady((()=>{"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"),Te()})),"ide"!=={NODE_ENV:"production",VUE_APP_TITLE:"Documentation",BASE_URL:"{{BASE_PATH}}/"}.VUE_APP_TARGET&&t.onError((e=>{const{route:n={path:"/"}}=e;t.replace({name:"server-error",params:[n.path]})})),window.addEventListener("unload",je),t}var et=n(5559);function tt(e=et){const{defaultLocale:t,messages:n,dateTimeFormats:r={}}=e,i=new o.Z({dateTimeFormats:r,locale:t,fallbackLocale:t,messages:n});return i}r["default"].use(be),r["default"].use(i.Z),r["default"].use(o.Z),new r["default"]({router:Qe(),render:e=>e(se),i18n:tt()}).$mount("#app")},2717:function(e,t,n){"use strict";n.d(t,{$:function(){return r}});const r="app-top"},9804:function(e,t){"use strict";t["Z"]={auto:"auto",dark:"dark",light:"light"}},1265:function(e,t){"use strict";t["Z"]={eager:"eager",lazy:"lazy"}},1716:function(e,t,n){"use strict";n.d(t,{EA:function(){return i},L$:function(){return o},MenuLinkModifierClasses:function(){return s},RS:function(){return r},Yj:function(){return a}});const r=52,o=48,i="nav-sticky-anchor",a="nav-open-navigator",s={noClose:"noclose"}},4589:function(e,t,n){"use strict";n.d(t,{J_:function(){return i},Rp:function(){return o},vL:function(){return r}});const r="not-found",o="server-error",i="documentation-topic"},5559:function(e,t,n){"use strict";n.r(t),n.d(t,{defaultLocale:function(){return a},messages:function(){return s}});var r=JSON.parse('{"view-in":"View in English","continue-viewing":"Continue viewing in English","language":"Language","video":{"replay":"Replay","play":"Play","pause":"Pause","watch":"Watch intro video"},"tutorials":{"title":"Tutorial | Tutorials","step":"Step {number}","submit":"Submit","next":"Next","preview":{"title":"No Preview | Preview | Previews","no-preview-available-step":"No preview available for this step."},"nav":{"chapters":"Chapters","current":"Current {thing}"},"assessment":{"check-your-understanding":"Check Your Understanding","success-message":"Great job, you\'ve answered all the questions for this tutorial.","answer-result":"Answer {answer} is {result}","correct":"correct","incorrect":"incorrect","next-question":"Next question","legend":"Possible answers"},"project-files":"Project files","estimated-time":"Estimated Time","sections":{"chapter":"Chapter {number}"},"question-of":"Question {index} of {total}","section-of":"{number} of {total}","overriding-title":"{newTitle} with {title}","time":{"format":"{number} {minutes}","minutes":{"full":"minute | minutes | {count} minutes","short":"min | mins"},"hours":{"full":"hour | hours"}}},"documentation":{"title":"Documentation","nav":{"breadcrumbs":"Breadcrumbs","menu":"Menu","open-menu":"Open Menu","close-menu":"Close Menu"},"current-page":"Current page is {title}","card":{"learn-more":"Learn More","read-article":"Read article","start-tutorial":"Start tutorial","view-api":"View API collection","view-symbol":"View symbol","view-sample-code":"View sample code"},"view-more":"View more"},"aside-kind":{"beta":"Beta","experiment":"Experiment","important":"Important","note":"Note","tip":"Tip","warning":"Warning","deprecated":"Deprecated"},"change-type":{"added":"Added","modified":"Modified","deprecated":"Deprecated"},"verbs":{"hide":"Hide","show":"Show","close":"Close"},"sections":{"title":"Section {number}","on-this-page":"On this page","topics":"Topics","default-implementations":"Default Implementations","relationships":"Relationships","see-also":"See Also","declaration":"Declaration","details":"Details","parameters":"Parameters","possible-values":"Possible Values","parts":"Parts","availability":"Availability","resources":"Resources"},"metadata":{"details":{"name":"Name","key":"Key","type":"Type"},"beta":{"legal":"This documentation refers to beta software and may be changed.","software":"Beta Software"},"default-implementation":"Default implementation provided. | Default implementations provided."},"availability":{"introduced-and-deprecated":"Introduced in {name} {introducedAt} and deprecated in {name} {deprecatedAt}","available-on":"Available on {name} {introducedAt} and later"},"more":"More","less":"Less","api-reference":"API Reference","filter":{"title":"Filter","search-symbols":"Search symbols in {technology}","suggested-tags":"Suggested tag | Suggested tags","selected-tags":"Selected tag | Selected tags","add-tag":"Add tag","tag-select-remove":"Tag. Select to remove from list.","navigate":"To navigate the symbols, press Up Arrow, Down Arrow, Left Arrow or Right Arrow","siblings-label":"{number-siblings} of {total-siblings} symbols inside {parent-siblings}","parent-label":"{number-siblings} of {total-siblings} symbols inside {parent-siblings} containing one symbol | {number-siblings} of {total-siblings} symbols inside {parent-siblings} containing {number-parent} symbols","reset-filter":"Reset Filter"},"navigator":{"title":"Documentation Navigator","open-navigator":"Open Documentation Navigator","close-navigator":"Close Documentation Navigator","no-results":"No results found.","no-children":"No data available.","error-fetching":"There was an error fetching the data.","items-found":"No items were found | 1 item was found | {number} items were found. Tab back to navigate through them.","navigator-is":"Navigator is {state}","state":{"loading":"loading","ready":"ready"},"tags":{"hide-deprecated":"Hide Deprecated"}},"tab":{"request":"Request","response":"Response"},"required":"Required","parameters":{"default":"Default","minimum":"Minimum","maximum":"Maximum","possible-types":"Type | Possible types","possible-values":"Value | Possible Values"},"content-type":"Content-Type: {value}","read-only":"Read-only","error":{"unknown":"An unknown error occurred.","image":"Image failed to load","not-found":"The page you\'re looking for can\'t be found."},"color-scheme":{"select":"Select a color scheme preference","auto":"Auto","dark":"Dark","light":"Light"},"accessibility":{"strike":{"start":"start of stricken text","end":"end of stricken text"},"code":{"start":"start of code block","end":"end of code block"},"skip-navigation":"Skip Navigation","in-page-link":"in page link"},"select-language":"Select the language for this page","icons":{"clear":"Clear","web-service-endpoint":"Web Service Endpoint","search":"Search"},"formats":{"parenthesis":"({content})","colon":"{content}: "},"quicknav":{"button":{"label":"Open Quick Navigation","title":"Click or type / for quick navigation"},"preview-unavailable":"Preview unavailable"}}'),o=JSON.parse('{"view-in":"以中文查看","continue-viewing":"继续以中文查看","language":"语言","video":{"replay":"重新播放","play":"播放","pause":"暂停","watch":"观看介绍视频"},"tutorials":{"title":"教程","step":"第 {number} 步","submit":"提交","next":"下一步","preview":{"title":"无预览 | 预览","no-preview-available-step":"这一步没有预览。"},"nav":{"chapters":"章节","current":"当前{thing}"},"assessment":{"check-your-understanding":"检查你的理解程度","success-message":"很棒,你回答了此教程的所有问题。","answer-number-is":"第 {index} 个答案","correct":"正确","incorrect":"错误","next-question":"下一个问题"},"project-files":"项目文件","estimated-time":"预计时间","sections":{"chapter":"第 {number} 章"},"question-of":"第 {index} 个问题(共 {total} 个)","section-of":"{number}/{total}","overriding-title":"{newTitle}{title}","time":{"format":"{number} {minutes}","minutes":{"full":"分钟 | {count} 分钟","short":"分钟"},"hours":{"full":"小时"}}},"documentation":{"title":"文档","nav":{"breadcrumbs":"面包屑导航","menu":"菜单","open-menu":"打开菜单","close-menu":"关闭菜单"},"current-page":"当前页面为:{title}","card":{"learn-more":"进一步了解","read-article":"阅读文章","start-tutorial":"开始教程","view-api":"查看 API 集合","view-symbol":"查看符号","view-sample-code":"查看示例代码"}},"aside-kind":{"beta":"Beta 版","experiment":"试验","important":"重要事项","note":"注","tip":"提示","warning":"警告","deprecated":"已弃用"},"change-type":{"added":"已添加","modified":"已修改","deprecated":"已弃用"},"verbs":{"hide":"隐藏","show":"显示","close":"关闭"},"sections":{"title":"第 {number} 部分","on-this-page":"在此页面上","topics":"主题","default-implementations":"默认实现","relationships":"关系","see-also":"另请参阅","declaration":"声明","details":"详细信息","parameters":"参数","possible-values":"可能值","parts":"部件","availability":"可用性","resources":"资源"},"metadata":{"details":{"name":"名称","key":"密钥","type":"类型"},"beta":{"legal":"此文档涉及 Beta 版软件且可能会改动。","software":"Beta 版软件"},"default-implementation":"提供默认实现。| 提供默认实现方法。"},"availability":{"introduced-and-deprecated":"{name} {introducedAt} 中引入,{name} {deprecatedAt} 中弃用","available-on":"{name} {introducedAt} 及更高版本中可用"},"more":"更多","less":"更少","api-reference":"API 参考","filter":{"title":"过滤","search-symbols":"在 {technology} 搜索符号","suggested-tags":"建议标签","selected-tags":"所选标签","add-tag":"添加标签","tag-select-remove":"标签。选择以从列表中移除。","navigate":"若要导航符号,请按下上箭头、下箭头、左箭头或右箭头。","siblings-label":"{parent-siblings} 内含 {number-siblings} 个符号(共 {total-siblings} 个)","parent-label":"{parent-siblings} 内含 {number-siblings} 个符号(共 {total-siblings} 个)包含一个符号 | {parent-siblings} 内含 {number-siblings} 个符号(共 {total-siblings} 个)包含 {number-parent} 个符号","reset-filter":"还原过滤条件"},"navigator":{"title":"文档导航器","open-navigator":"打开文档导航器","close-navigator":"关闭文档导航器","no-results":"未找到结果。","no-children":"无可用数据。","error-fetching":"获取数据时出错。","items-found":"未找到任何项目 | 找到 1 个项目 | 找到 {number} 个项目。按下 Tab 键导航。","navigator-is":"导航器{state}","state":{"loading":"正在载入","ready":"准备就绪"},"tags":{"hide-deprecated":"隐藏已弃用"}},"tab":{"request":"请求","response":"回复"},"required":"必需","parameters":{"default":"默认","minimum":"最小值","maximum":"最大值","possible-types":"类型 | 可能类型","possible-values":"值 | 可能值"},"content-type":"内容类型:{value}","read-only":"只读","error":{"unknown":"出现未知错误。","image":"图像无法载入"},"color-scheme":{"select":"选择首选颜色方案","auto":"自动","dark":"深色","light":"浅色"},"accessibility":{"strike":{"start":"删除线文本开始","end":"删除线文本结束"},"code":{"start":"代码块开头","end":"代码块结尾"},"skip-navigation":"跳过导航"},"select-language":"选择此页面的语言","icons":{"clear":"清除","web-service-endpoint":"网络服务端点","search":"搜索"},"formats":{"parenthesis":"({content})","colon":"{content}: "},"quicknav":{"button":{"label":"打开快速导航","title":"点按或键入 / 进行快速导航"}}}'),i=JSON.parse('{"view-in":"日本語で表示","continue-viewing":"日本語で表示を続ける","language":"言語","video":{"replay":"リプレイ","play":"再生","pause":"一時停止","watch":"概要のビデオを観る"},"tutorials":{"title":"チュートリアル | チュートリアル","step":"手順{number}","submit":"送信","next":"次へ","preview":{"title":"プレビューなし | プレビュー | プレビュー","no-preview-available-step":"この手順では利用可能なプレビューがありません。"},"nav":{"chapters":"章","current":"現在の{thing}"},"assessment":{"check-your-understanding":"理解度を確認する","success-message":"よくできました。このチュートリアルの問題にすべて回答しました。","answer-number-is":"問題番号{index}は","correct":"正解です","incorrect":"不正解です","next-question":"次の問題"},"project-files":"プロジェクトファイル","estimated-time":"予測時間","sections":{"chapter":"{number}章"},"question-of":"{total}問中の{index}問","section-of":"{total}件中の{number}件","overriding-title":"{title}の{newTitle}","time":{"format":"{number} {minutes}","minutes":{"full":"分 | 分 | {count}分","short":"分 | 分"},"hours":{"full":"時間 | 時間"}}},"documentation":{"title":"ドキュメント","nav":{"breadcrumbs":"パンくずリスト","menu":"メニュー","open-menu":"メニューを開く","close-menu":"メニューを閉じる"},"current-page":"現在のページは{title}です","card":{"learn-more":"詳しい情報","read-article":"記事を読む","start-tutorial":"チュートリアルを開始","view-api":"APIのコレクションを表示","view-symbol":"記号を表示","view-sample-code":"サンプルコードを表示"}},"aside-kind":{"beta":"ベータ版","experiment":"試験運用版","important":"重要","note":"注意","tip":"ヒント","warning":"警告","deprecated":"非推奨"},"change-type":{"added":"追加","modified":"変更","deprecated":"非推奨"},"verbs":{"hide":"非表示","show":"表示","close":"閉じる"},"sections":{"title":"セクション{number}","on-this-page":"このページの内容","topics":"トピック","default-implementations":"デフォルト実装","relationships":"関連項目","see-also":"参照","declaration":"宣言","details":"詳細","parameters":"パラメータ","possible-values":"使用できる値","parts":"パーツ","availability":"利用可能","resources":"リソース"},"metadata":{"details":{"name":"名前","key":"キー","type":"タイプ"},"beta":{"legal":"このドキュメントはベータ版のソフトウェアのもので、変更される可能性があります。","software":"ベータ版ソフトウェア"},"default-implementation":"デフォルト実装あり。| デフォルト実装あり。"},"availability":{"introduced-and-deprecated":"{name} {introducedAt}で導入され、{name} {deprecatedAt}で非推奨になりました","available-on":"{name} {introducedAt}以降で使用できます"},"more":"さらに表示","less":"表示を減らす","api-reference":"APIリファレンス","filter":{"title":"フィルタ","search-symbols":"{technology}でシンボルを検索","suggested-tags":"提案されたタグ | 提案されたタグ","selected-tags":"選択したタグ | 選択したタグ","add-tag":"タグを追加","tag-select-remove":"タグ。選択してリストから削除します。","navigate":"シンボルを移動するには、上下左右の矢印キーを押します。","siblings-label":"{total-siblings}個中{number-siblings}個のシンボルが{parent-siblings}の中にあります","parent-label":"{total-siblings}個中{number-siblings}個のシンボルが1個のシンボルを含む{parent-siblings}の中にあります | {total-siblings}個中{number-siblings}個のシンボルが{number-parent}個のシンボルを含む{parent-siblings}の中にあります","reset-filter":"フィルタをリセット"},"navigator":{"title":"ドキュメントナビゲータ","open-navigator":"ドキュメントナビゲータを開く","close-navigator":"ドキュメントナビゲータを閉じる","no-results":"結果が見つかりません。","no-children":"使用できるデータがありません。","error-fetching":"データを取得する際にエラーが起きました。","items-found":"項目が見つかりません | 1個の項目が見つかりました | {number}個の項目が見つかりましたTabキーを押すと項目をナビゲートできます。","navigator-is":"ナビゲータは{state}です","state":{"loading":"読み込み中","ready":"準備完了"},"tags":{"hide-deprecated":"非推奨の項目を非表示"}},"tab":{"request":"リクエスト","response":"レスポンス"},"required":"必須","parameters":{"default":"デフォルト","minimum":"最小","maximum":"最大","possible-types":"タイプ | 使用できるタイプ","possible-values":"値 | 使用できる値"},"content-type":"Content-Type: {value}","read-only":"読み出し専用","error":{"unknown":"原因不明のエラーが起きました。","image":"イメージを読み込めませんでした"},"color-scheme":{"select":"カラースキーム環境設定を選択","auto":"自動","dark":"ダーク","light":"ライト"},"accessibility":{"strike":{"start":"取り消し線テキストの開始","end":"取り消し線テキストの終了"},"code":{"start":"コードブロックの開始","end":"コードブロックの終了"},"skip-navigation":"ナビゲーションをスキップ"},"select-language":"このページの言語を選択","icons":{"clear":"消去","web-service-endpoint":"Webサービスのエンドポイント","search":"検索"},"formats":{"parenthesis":"({content})","colon":"{content}: "},"quicknav":{"button":{"label":"クイックナビゲーションを開く","title":"クリックするか「/」を入力すると素早く移動します"}}}');const a="en-US",s={"en-US":r,"zh-CN":o,"ja-JP":i}},4030:function(e,t,n){"use strict";var r=n(9804),o=n(1265),i=n(5394),a=n(2412);const s="undefined"!==typeof window.matchMedia&&[r.Z.light,r.Z.dark,"no-preference"].some((e=>window.matchMedia(`(prefers-color-scheme: ${e})`).matches)),c=s?r.Z.auto:r.Z.light;t["default"]={state:{imageLoadingStrategy:"ide"==={NODE_ENV:"production",VUE_APP_TITLE:"Documentation",BASE_URL:"{{BASE_PATH}}/"}.VUE_APP_TARGET?o.Z.eager:o.Z.lazy,preferredColorScheme:i.Z.preferredColorScheme||c,preferredLocale:i.Z.preferredLocale,supportsAutoColorScheme:s,systemColorScheme:r.Z.light,availableLocales:[]},reset(){this.state.imageLoadingStrategy="ide"==={NODE_ENV:"production",VUE_APP_TITLE:"Documentation",BASE_URL:"{{BASE_PATH}}/"}.VUE_APP_TARGET?o.Z.eager:o.Z.lazy,this.state.preferredColorScheme=i.Z.preferredColorScheme||c,this.state.supportsAutoColorScheme=s,this.state.systemColorScheme=r.Z.light},setImageLoadingStrategy(e){this.state.imageLoadingStrategy=e},setPreferredColorScheme(e){this.state.preferredColorScheme=e,i.Z.preferredColorScheme=e},setAllLocalesAreAvailable(){const e=a.map((e=>e.code));this.state.availableLocales=e},setAvailableLocales(e=[]){this.state.availableLocales=e},setPreferredLocale(e){this.state.preferredLocale=e,i.Z.preferredLocale=this.state.preferredLocale},setSystemColorScheme(e){this.state.systemColorScheme=e},syncPreferredColorScheme(){i.Z.preferredColorScheme&&i.Z.preferredColorScheme!==this.state.preferredColorScheme&&(this.state.preferredColorScheme=i.Z.preferredColorScheme)}}},5947:function(e,t,n){"use strict";function r(e){return e.reduce(((e,t)=>(t.traits.includes("dark")?e.dark.push(t):e.light.push(t),e)),{light:[],dark:[]})}function o(e){const t=["1x","2x","3x"];return t.reduce(((t,n)=>{const r=e.find((e=>e.traits.includes(n)));return r?t.concat({density:n,src:r.url,size:r.size}):t}),[])}function i(e){const t="/",n=new RegExp(`${t}+`,"g");return e.join(t).replace(n,t)}function a(e){const{baseUrl:t}=window,n=Array.isArray(e)?i(e):e;return n&&"string"===typeof n&&!n.startsWith(t)&&n.startsWith("/")?i([t,n]):n}function s(e){return e?e.startsWith("/")?e:`/${e}`:e}function c(e){return e?`url('${a(e)}')`:void 0}function l(e){return new Promise(((t,n)=>{const r=new Image;r.src=e,r.onerror=n,r.onload=()=>t({width:r.width,height:r.height})}))}n.d(t,{AH:function(){return a},Jf:function(){return s},RY:function(){return l},T8:function(){return d},XV:function(){return r},eZ:function(){return c},u:function(){return o}});const u={landscape:"landscape",portrait:"portrait",square:"square"};function d(e,t){return e&&t?et?u.landscape:u.square:null}},5381:function(e,t,n){"use strict";n.d(t,{L3:function(){return r},fr:function(){return s},kB:function(){return i},lU:function(){return o}});const r={large:"large",medium:"medium",small:"small"},o={default:"default",nav:"nav"},i={[o.default]:{[r.large]:{minWidth:1069,contentWidth:980},[r.medium]:{minWidth:736,maxWidth:1068,contentWidth:692},[r.small]:{minWidth:320,maxWidth:735,contentWidth:280}},[o.nav]:{[r.large]:{minWidth:1024},[r.medium]:{minWidth:768,maxWidth:1023},[r.small]:{minWidth:320,maxWidth:767}}},a={[r.small]:0,[r.medium]:1,[r.large]:2};function s(e,t){return a[e]>a[t]}},9030:function(e,t,n){"use strict";n.d(t,{KP:function(){return l},dZ:function(){return s},jk:function(){return u}});var r=n(2412),o=n(5559),i=n(3465);const a=r.reduce(((e,t)=>({...e,[t.slug]:t.code})),{});function s(e){return a[e]}function c(e){return!!a[e]}function l(e){return{params:{locale:e===o.defaultLocale?void 0:e}}}function u(e=o.defaultLocale,t={}){if(!c(e))return;t.$i18n.locale=e;const n=s(e);(0,i.e)(n)}},5657:function(e,t,n){"use strict";function r(e){let t=null,n=e-1;const r=new Promise((e=>{t=e}));return requestAnimationFrame((function e(){n-=1,n<=0?t():requestAnimationFrame(e)})),r}function o(e){return new Promise((t=>{setTimeout(t,e)}))}n.d(t,{J:function(){return r},X:function(){return o}})},3465:function(e,t,n){"use strict";n.d(t,{X:function(){return u},e:function(){return d}});var r=n(9089),o=n(2449);const i=(0,r.$8)(["meta","title"],"Documentation"),a=({title:e,description:t,url:n,currentLocale:r})=>[{name:"description",content:t},{property:"og:locale",content:r},{property:"og:site_name",content:i},{property:"og:type",content:"website"},{property:"og:title",content:e},{property:"og:description",content:t},{property:"og:url",content:n},{property:"og:image",content:(0,o.HH)("/developer-og.jpg")},{name:"twitter:image",content:(0,o.HH)("/developer-og-twitter.jpg")},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:description",content:t},{name:"twitter:title",content:e},{name:"twitter:url",content:n}],s=e=>[e,i].filter(Boolean).join(" | "),c=e=>{const{content:t}=e,n=e.property?"property":"name",r=e[n],o=document.querySelector(`meta[${n}="${r}"]`);if(o&&t)o.setAttribute("content",t);else if(o&&!t)o.remove();else if(t){const t=document.createElement("meta");t.setAttribute(n,e[n]),t.setAttribute("content",e.content),document.getElementsByTagName("head")[0].appendChild(t)}},l=e=>{document.title=e};function u({title:e,description:t,url:n,currentLocale:r}){const o=s(e);l(o),a({title:o,description:t,url:n,currentLocale:r}).forEach((e=>c(e)))}function d(e){document.querySelector("html").setAttribute("lang",e)}},5394:function(e,t,n){"use strict";var r=n(7247);const o={preferredColorScheme:"developer.setting.preferredColorScheme",preferredLocale:"developer.setting.preferredLocale",preferredLanguage:"docs.setting.preferredLanguage"},i={preferredColorScheme:"docs.setting.preferredColorScheme"};t["Z"]=Object.defineProperties({},Object.keys(o).reduce(((e,t)=>({...e,[t]:{get:()=>{const e=i[t],n=r.mr.getItem(o[t]);return e?n||r.mr.getItem(e):n},set:e=>r.mr.setItem(o[t],e)}})),{}))},7247:function(e,t,n){"use strict";n.d(t,{mr:function(){return a},tO:function(){return c},y7:function(){return l}});const r="developer.setting.";function o(e=localStorage){return{getItem:t=>{try{return e.getItem(t)}catch(n){return null}},setItem:(t,n)=>{try{e.setItem(t,n)}catch(r){}},removeItem:t=>{try{e.removeItem(t)}catch(n){}}}}function i(e){return{get:(t,n)=>{const o=JSON.parse(e.getItem(r+t));return null!==o?o:n},set:(t,n)=>e.setItem(r+t,JSON.stringify(n)),remove:t=>e.removeItem(r+t)}}const a=o(window.localStorage),s=o(window.sessionStorage),c=i(a),l=i(s)},3208:function(e,t,n){"use strict";n.d(t,{HA:function(){return a},RL:function(){return u},Xv:function(){return s},ZQ:function(){return d},hr:function(){return l},id:function(){return m},sj:function(){return c}});n(8269);const r=/(?:\s+|[`"<>])/g,o=/^-+/,i=/["'&<>]/g;function a(e){return e.trim().replace(r,"-").replace(o,"").toLowerCase()}function s(e){const t=e=>({'"':""","'":"'","&":"&","<":"<",">":">"}[e]||e);return e.replace(i,t)}function c(e){return e.replace(/#(.*)/,((e,t)=>`#${CSS.escape(t)}`))}function l(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function u(e){let t,n;const r="\\s*",o=" ",i=e.trim(),a=i.length;if(!a)return o;const s=[];for(t=0;te.json())).catch((()=>({})))}const c=(e,t)=>r(i,e,t)},2449:function(e,t,n){"use strict";n.d(t,{Lp:function(){return s},Q2:function(){return a},WN:function(){return c},Ex:function(){return i},HH:function(){return l}});var r=n(5947),o={input:"input",tags:"tags"};function i(e={}){return Object.entries(e).reduce(((e,[t,n])=>n?e.concat(`${encodeURIComponent(t)}=${encodeURIComponent(n)}`):e),[]).join("&")}function a(e,{changes:t,language:n,context:r}={}){const[o,a]=e.split("#"),s=o.match(/\?.*/),c=i({changes:t,language:n,context:r}),l=s?"&":"?",u=a?o:e,d=c?`${l}${c}`:"",m=a?`#${a}`:"";return`${u}${d}${m}`}function s(e,t){const{query:{changes:n,[o.input]:r,[o.tags]:i,...a}={}}=e,{query:{changes:s,[o.input]:c,[o.tags]:l,...u}={}}=t;return e.name===t.name&&JSON.stringify({path:e.path,query:a})===JSON.stringify({path:t.path,query:u})}function c(e,t=window.location.href){return new URL((0,r.AH)(e),t)}function l(e,t){return c(e,t).href}},647:function(e,t,n){n.p=window.baseUrl},2412:function(e){"use strict";e.exports=JSON.parse('[{"code":"en-US","name":"English","slug":"en-US"},{"code":"zh-CN","name":"简体中文","slug":"zh-CN"},{"code":"ja-JP","name":"日本語","slug":"ja-JP"}]')}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.m=e,function(){var e=[];n.O=function(t,r,o,i){if(!r){var a=1/0;for(u=0;u=i)&&Object.keys(n.O).every((function(e){return n.O[e](r[c])}))?r.splice(c--,1):(s=!1,i0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[r,o,i]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){a[e]=function(){return r[e]}}));return a["default"]=function(){return r},n.d(i,a),i}}(),function(){n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))}}(),function(){n.u=function(e){return"js/"+({82:"highlight-js-json-js",113:"highlight-js-markdown-js",133:"highlight-js-llvm-js",162:"topic",176:"highlight-js-shell-js",213:"highlight-js-diff-js",217:"highlight-js-custom-swift",392:"highlight-js-scss-js",393:"highlight-js-bash-js",435:"highlight-js-python-js",490:"highlight-js-xml-js",527:"highlight-js-swift-js",546:"highlight-js-c-js",596:"highlight-js-php-js",621:"highlight-js-cpp-js",623:"highlight-js-ruby-js",637:"highlight-js-objectivec-js",642:"highlight-js-custom-markdown",645:"highlight-js-perl-js",788:"highlight-js-java-js",814:"highlight-js-javascript-js",843:"tutorials-overview",864:"highlight-js-css-js",878:"highlight-js-http-js",982:"documentation-topic"}[e]||e)+"."+{37:"3cabdf6d",82:"2a1856ba",113:"a2f456af",133:"26121771",162:"2687cdff",176:"0ad5b20f",213:"4db9a783",217:"738731d1",337:"274a8ccc",392:"adcd11a2",393:"702f0c5c",435:"60354774",490:"0d78f903",523:"3af1b2ef",527:"bdd5bff5",546:"063069d3",596:"c458ffa4",621:"458a9ae4",623:"7272231f",637:"74dea052",642:"78c9f6ed",645:"da6eda82",675:"1d13263d",788:"4fe21e94",814:"dfc9d16d",843:"2eff1231",864:"bfc4251f",878:"f78e83c2",903:"5a8b9c15",982:"f9ef3692"}[e]+".js"}}(),function(){n.miniCssF=function(e){return"css/"+({162:"topic",843:"tutorials-overview",982:"documentation-topic"}[e]||e)+"."+{162:"672a9049",523:"e9a069b0",675:"40c3bcb2",843:"6eb589ed",982:"b186e79f"}[e]+".css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="swift-docc-render:";n.l=function(r,o,i,a){if(e[r])e[r].push(o);else{var s,c;if(void 0!==i)for(var l=document.getElementsByTagName("script"),u=0;ue||(0,i.$8)(["theme","icons",t],void 0)}},s=a,c=n(1001),l=(0,c.Z)(s,r,o,!1,null,"979a134a",null),u=l.exports},5670:function(e,t,n){"use strict";n(647);var r=n(144),o=n(7152),i=n(8345),a=function(){var e=this,t=e._self._c;return t("div",{class:{fromkeyboard:e.fromKeyboard,hascustomheader:e.hasCustomHeader},attrs:{id:"app"}},[t("div",{attrs:{id:e.AppTopID}}),e.isTargetIDE?e._e():t("a",{attrs:{href:"#main",id:"skip-nav"}},[e._v(e._s(e.$t("accessibility.skip-navigation")))]),t("InitialLoadingPlaceholder"),e._t("header",(function(){return[e.enablei18n?t("SuggestLang"):e._e(),e.hasCustomHeader?t("custom-header",{attrs:{"data-color-scheme":e.preferredColorScheme}}):e._e()]}),{isTargetIDE:e.isTargetIDE}),t("div",{attrs:{id:e.baseNavStickyAnchorId}}),e._t("default",(function(){return[t("router-view",{staticClass:"router-content"}),e.hasCustomFooter?t("custom-footer",{attrs:{"data-color-scheme":e.preferredColorScheme}}):e.isTargetIDE?e._e():t("Footer",{scopedSlots:e._u([{key:"default",fn:function({className:n}){return[e.enablei18n?t("div",{class:n},[t("LocaleSelector")],1):e._e()]}}])})]}),{isTargetIDE:e.isTargetIDE}),e._t("footer",null,{isTargetIDE:e.isTargetIDE})],2)},s=[],c=n(4030),l=n(9804),u=function(){var e=this,t=e._self._c;return t("footer",{staticClass:"footer"},[t("div",{staticClass:"row"},[t("ColorSchemeToggle")],1),e._t("default",null,{className:"row"})],2)},d=[],m=function(){var e=this,t=e._self._c;return t("fieldset",{staticClass:"color-scheme-toggle",attrs:{role:"radiogroup"}},[t("legend",{staticClass:"visuallyhidden"},[e._v(e._s(e.$t("color-scheme.select")))]),e._l(e.options,(function(n){return t("label",{key:n},[t("input",{attrs:{type:"radio"},domProps:{checked:n==e.preferredColorScheme,value:n},on:{input:e.setPreferredColorScheme}}),t("div",{staticClass:"text"},[e._v(e._s(e.$t(`color-scheme.${n}`)))])])}))],2)},f=[],h={name:"ColorSchemeToggle",data:()=>({appState:c["default"].state}),computed:{options:({supportsAutoColorScheme:e})=>[l.Z.light,l.Z.dark,...e?[l.Z.auto]:[]],preferredColorScheme:({appState:e})=>e.preferredColorScheme,supportsAutoColorScheme:({appState:e})=>e.supportsAutoColorScheme},methods:{setPreferredColorScheme:e=>{c["default"].setPreferredColorScheme(e.target.value)}},watch:{preferredColorScheme:{immediate:!0,handler(e){document.body.dataset.colorScheme=e}}}},p=h,g=n(1001),v=(0,g.Z)(p,m,f,!1,null,"78690df2",null),b=v.exports,w={name:"Footer",components:{ColorSchemeToggle:b}},y=w,S=(0,g.Z)(y,u,d,!1,null,"4e049dbd",null),C=S.exports,_=function(){var e=this,t=e._self._c;return e.loaded?e._e():t("div",{staticClass:"InitialLoadingPlaceholder",attrs:{id:"loading-placeholder"}})},E=[],L={name:"InitialLoadingPlaceholder",data(){return{loaded:!1}},created(){const e=()=>{this.loaded=!0};this.$router.onReady(e,e)}},P=L,A=(0,g.Z)(P,_,E,!1,null,"35c356b6",null),k=A.exports,T=n(1716),j=n(9089);function I(e,t){return e&&"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,t)&&"string"===typeof e[t]}function x(e,t,n,r){if(!t||"object"!==typeof t||r&&(I(t,"light")||I(t,"dark"))){let o=t;if(I(t,r)&&(o=t[r]),"object"===typeof o)return;n[e]=o}else Object.entries(t).forEach((([t,o])=>{const i=[e,t].join("-");x(i,o,n,r)}))}function N(e,t="light"){const n={},r=e||{};return x("-",r,n,t),n}var $=n(2717),O=function(){var e=this,t=e._self._c;return e.displaySuggestLang?t("div",{staticClass:"suggest-lang"},[t("div",{staticClass:"suggest-lang__wrapper"},[t("router-link",{staticClass:"suggest-lang__link",attrs:{to:e.getLocaleParam(e.preferredLocale),lang:e.getCodeForSlug(e.preferredLocale)},nativeOn:{click:function(t){return e.setPreferredLocale(e.preferredLocale)}}},[e._v(e._s(e.$i18n.messages[e.preferredLocale]["view-in"])),t("InlineChevronRightIcon",{staticClass:"icon-inline"})],1),t("div",{staticClass:"suggest-lang__close-icon-wrapper"},[t("button",{staticClass:"suggest-lang__close-icon-button",attrs:{"aria-label":e.$t("continue-viewing")},on:{click:function(t){return e.setPreferredLocale(e.$i18n.locale)}}},[t("CloseIcon",{staticClass:"icon-inline"})],1)])],1)]):e._e()},D=[],Z=n(8785),R=n(1970),q=n(2412),U=n(9030),V={name:"SuggestLang",components:{InlineChevronRightIcon:Z.Z,CloseIcon:R.Z},computed:{preferredLocale:()=>{const e=c["default"].state.preferredLocale;if(e)return e;const t=q.find((e=>{const t=e.code.split("-")[0],n=window.navigator.language.split("-")[0];return n===t}));return t?t.slug:null},displaySuggestLang:({preferredLocale:e,$i18n:t})=>e&&t.locale!==e},methods:{setPreferredLocale:e=>{c["default"].setPreferredLocale(e)},getCodeForSlug:U.dZ,getLocaleParam:U.KP}},B=V,M=(0,g.Z)(B,O,D,!1,null,"768a347b",null),H=M.exports,F=function(){var e=this,t=e._self._c;return t("div",{staticClass:"locale-selector"},[t("select",{attrs:{"aria-label":e.$t("select-language")},domProps:{value:e.$i18n.locale},on:{change:e.updateRouter}},e._l(e.locales,(function({slug:n,name:r,code:o}){return t("option",{key:n,attrs:{lang:o},domProps:{value:n}},[e._v(" "+e._s(r)+" ")])})),0),t("ChevronThickIcon",{staticClass:"icon-inline"})],1)},W=[],J=function(){var e=this,t=e._self._c;return t("SVGIcon",{staticClass:"chevron-thick-icon",attrs:{viewBox:"0 0 14 10.5",themeId:"chevron-thick"}},[t("path",{attrs:{d:"M12.43,0l1.57,1.22L7,10.5,0,1.23,1.58,0,7,7,12.43,0Z"}})])},G=[],K=n(3453),z={name:"ChevronThickIcon",components:{SVGIcon:K.Z}},X=z,Y=(0,g.Z)(X,J,G,!1,null,null,null),Q=Y.exports,ee={name:"LocaleSelector",components:{ChevronThickIcon:Q},methods:{updateRouter({target:{value:e}}){this.$router.push((0,U.KP)(e)),c["default"].setPreferredLocale(e),(0,U.jk)(e,this)}},computed:{availableLocales:()=>c["default"].state.availableLocales,locales:({availableLocales:e})=>q.filter((({code:t})=>e.includes(t)))}},te=ee,ne=(0,g.Z)(te,F,W,!1,null,"d21858a2",null),re=ne.exports,oe={name:"CoreApp",components:{Footer:C,InitialLoadingPlaceholder:k,SuggestLang:H,LocaleSelector:re},provide(){return{isTargetIDE:this.isTargetIDE,performanceMetricsEnabled:"true"==={NODE_ENV:"production",VUE_APP_TITLE:"Documentation",BASE_URL:"{{BASE_PATH}}/"}.VUE_APP_PERFORMANCE_ENABLED}},data(){return{AppTopID:$.$,appState:c["default"].state,fromKeyboard:!1,isTargetIDE:"ide"==={NODE_ENV:"production",VUE_APP_TITLE:"Documentation",BASE_URL:"{{BASE_PATH}}/"}.VUE_APP_TARGET,themeSettings:j.S3,baseNavStickyAnchorId:T.EA}},computed:{currentColorScheme:({appState:e})=>e.systemColorScheme,preferredColorScheme:({appState:e})=>e.preferredColorScheme,availableLocales:({appState:e})=>e.availableLocales,CSSCustomProperties:({currentColorScheme:e,preferredColorScheme:t,themeSettings:n})=>N(n.theme,t===l.Z.auto?e:t),hasCustomHeader:()=>!!window.customElements.get("custom-header"),hasCustomFooter:()=>!!window.customElements.get("custom-footer"),enablei18n:({availableLocales:e})=>(0,j.$8)(["features","docs","i18n","enable"],!1)&&e.length>1},props:{enableThemeSettings:{type:Boolean,default:!0}},watch:{CSSCustomProperties:{immediate:!0,handler(e){this.detachStylesFromRoot(e),this.attachStylesToRoot(e)}}},async created(){window.addEventListener("keydown",this.onKeyDown),this.$bridge.on("navigation",this.handleNavigationRequest),this.enableThemeSettings&&Object.assign(this.themeSettings,await(0,j.Kx)()),window.addEventListener("pageshow",this.syncPreferredColorScheme),this.$once("hook:beforeDestroy",(()=>{window.removeEventListener("pageshow",this.syncPreferredColorScheme)}))},mounted(){(document.querySelector(".footer-current-year")||{}).innerText=(new Date).getFullYear(),this.attachColorSchemeListeners()},beforeDestroy(){this.fromKeyboard?window.removeEventListener("mousedown",this.onMouseDown):window.removeEventListener("keydown",this.onKeyDown),this.$bridge.off("navigation",this.handleNavigationRequest),this.detachStylesFromRoot(this.CSSCustomProperties)},methods:{onKeyDown(){this.fromKeyboard=!0,window.addEventListener("mousedown",this.onMouseDown),window.removeEventListener("keydown",this.onKeyDown)},onMouseDown(){this.fromKeyboard=!1,window.addEventListener("keydown",this.onKeyDown),window.removeEventListener("mousedown",this.onMouseDown)},handleNavigationRequest(e){this.$router.push(e)},attachColorSchemeListeners(){if(!window.matchMedia)return;const e=window.matchMedia("(prefers-color-scheme: dark)");e.addListener(this.onColorSchemePreferenceChange),this.$once("hook:beforeDestroy",(()=>{e.removeListener(this.onColorSchemePreferenceChange)})),this.onColorSchemePreferenceChange(e)},onColorSchemePreferenceChange({matches:e}){const t=e?l.Z.dark:l.Z.light;c["default"].setSystemColorScheme(t)},attachStylesToRoot(e){const t=document.body;Object.entries(e).filter((([,e])=>Boolean(e))).forEach((([e,n])=>{t.style.setProperty(e,n)}))},detachStylesFromRoot(e){const t=document.body;Object.entries(e).forEach((([e])=>{t.style.removeProperty(e)}))},syncPreferredColorScheme(){c["default"].syncPreferredColorScheme()}}},ie=oe,ae=(0,g.Z)(ie,a,s,!1,null,"3742c1d7",null),se=ae.exports;class ce{constructor(){this.$send=()=>{}}send(e){this.$send(e)}}class le{constructor(){const{webkit:{messageHandlers:{bridge:e={}}={}}={}}=window;this.bridge=e;const{postMessage:t=(()=>{})}=e;this.$send=t.bind(e)}send(e){this.$send(e)}}class ue{constructor(e=new ce){this.backend=e,this.listeners={}}send(e){this.backend.send(e)}receive(e){this.emit(e.type,e.data)}emit(e,t){this.listeners[e]&&this.listeners[e].forEach((e=>e(t)))}on(e,t){this.listeners[e]||(this.listeners[e]=new Set),this.listeners[e].add(t)}off(e,t){this.listeners[e]&&this.listeners[e].delete(t)}}var de={install(e,t){let n;n=t.performanceMetricsEnabled||"ide"===t.appTarget?new le:new ce,e.prototype.$bridge=new ue(n)}};function me(e){return`custom-${e}`}function fe(e){return class extends HTMLElement{constructor(){super();const t=this.attachShadow({mode:"open"}),n=e.content.cloneNode(!0);t.appendChild(n)}}}function he(e){const t=me(e),n=document.getElementById(t);n&&window.customElements.define(t,fe(n))}function pe(e,t={names:["header","footer"]}){const{names:n}=t;e.config.ignoredElements=/^custom-/,n.forEach(he)}function ge(e,t){const{value:n=!1}=t;e.style.display=n?"none":""}var ve={hide:ge};function be(e,{performanceMetrics:t=!1}={}){e.config.productionTip=!1,e.use(pe),e.directive("hide",ve.hide),e.use(de,{appTarget:{NODE_ENV:"production",VUE_APP_TITLE:"Documentation",BASE_URL:"{{BASE_PATH}}/"}.VUE_APP_TARGET,performanceMetricsEnabled:t}),window.bridge=e.prototype.$bridge,e.config.performance=t}var we=n(4589),ye=n(5381),Se=n(5657),Ce=n(3208),_e=n(2449);const Ee=10;function Le(e){const{name:t}=e,n=t.includes(we.J_);return n?Ee:0}function Pe(){const{location:e}=window;return e.pathname+e.search+e.hash}function Ae(){const e=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0);return ePromise.all([n.e(523),n.e(843)]).then(n.bind(n,4586))},{path:"/tutorials/:id/*",name:"topic",component:()=>Promise.all([n.e(523),n.e(903),n.e(162)]).then(n.bind(n,8032))},{path:"/documentation/*",name:we.J_,component:()=>Promise.all([n.e(523),n.e(37),n.e(903),n.e(982)]).then(n.bind(n,5840))},{path:"*",name:we.vL,component:Ge},{path:"*",name:we.Rp,component:Be}];const ze=[{pathPrefix:"/:locale?",nameSuffix:"-locale"}];function Xe(e,t=[],n=ze){return n.reduce(((n,r)=>n.concat(e.filter((e=>!t.includes(e.name))).map((e=>({...e,path:r.pathPrefix+e.path,name:e.name+r.nameSuffix}))))),[])}const Ye=[...Ke,...Xe(Ke,[we.vL,we.Rp])];function Qe(e={}){const t=new i.Z({mode:"history",base:j.FH,scrollBehavior:ke,...e,routes:e.routes||Ye});return t.onReady((()=>{"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"),Te()})),"ide"!=={NODE_ENV:"production",VUE_APP_TITLE:"Documentation",BASE_URL:"{{BASE_PATH}}/"}.VUE_APP_TARGET&&t.onError((e=>{const{route:n={path:"/"}}=e;t.replace({name:"server-error",params:[n.path]})})),window.addEventListener("unload",je),t}var et=n(5559);function tt(e=et){const{defaultLocale:t,messages:n,dateTimeFormats:r={}}=e,i=new o.Z({dateTimeFormats:r,locale:t,fallbackLocale:t,messages:n});return i}r["default"].use(be),r["default"].use(i.Z),r["default"].use(o.Z),new r["default"]({router:Qe(),render:e=>e(se),i18n:tt()}).$mount("#app")},2717:function(e,t,n){"use strict";n.d(t,{$:function(){return r}});const r="app-top"},9804:function(e,t){"use strict";t["Z"]={auto:"auto",dark:"dark",light:"light"}},1265:function(e,t){"use strict";t["Z"]={eager:"eager",lazy:"lazy"}},1716:function(e,t,n){"use strict";n.d(t,{EA:function(){return i},L$:function(){return o},MenuLinkModifierClasses:function(){return s},RS:function(){return r},Yj:function(){return a}});const r=52,o=48,i="nav-sticky-anchor",a="nav-open-navigator",s={noClose:"noclose"}},4589:function(e,t,n){"use strict";n.d(t,{J_:function(){return i},Rp:function(){return o},vL:function(){return r}});const r="not-found",o="server-error",i="documentation-topic"},5559:function(e,t,n){"use strict";n.r(t),n.d(t,{defaultLocale:function(){return a},messages:function(){return s}});var r=JSON.parse('{"view-in":"View in English","continue-viewing":"Continue viewing in English","language":"Language","video":{"replay":"Replay","play":"Play","pause":"Pause","watch":"Watch intro video"},"tutorials":{"title":"Tutorial | Tutorials","step":"Step {number}","submit":"Submit","next":"Next","preview":{"title":"No Preview | Preview | Previews","no-preview-available-step":"No preview available for this step."},"nav":{"chapters":"Chapters","current":"Current {thing}"},"assessment":{"check-your-understanding":"Check Your Understanding","success-message":"Great job, you\'ve answered all the questions for this tutorial.","answer-result":"Answer {answer} is {result}","correct":"correct","incorrect":"incorrect","next-question":"Next question","legend":"Possible answers"},"project-files":"Project files","estimated-time":"Estimated Time","sections":{"chapter":"Chapter {number}"},"question-of":"Question {index} of {total}","section-of":"{number} of {total}","overriding-title":"{newTitle} with {title}","time":{"format":"{number} {minutes}","minutes":{"full":"minute | minutes | {count} minutes","short":"min | mins"},"hours":{"full":"hour | hours"}}},"documentation":{"title":"Documentation","nav":{"breadcrumbs":"Breadcrumbs","menu":"Menu","open-menu":"Open Menu","close-menu":"Close Menu"},"current-page":"Current page is {title}","card":{"learn-more":"Learn More","read-article":"Read article","start-tutorial":"Start tutorial","view-api":"View API collection","view-symbol":"View symbol","view-sample-code":"View sample code"},"view-more":"View more"},"aside-kind":{"beta":"Beta","experiment":"Experiment","important":"Important","note":"Note","tip":"Tip","warning":"Warning","deprecated":"Deprecated"},"change-type":{"added":"Added","modified":"Modified","deprecated":"Deprecated"},"verbs":{"hide":"Hide","show":"Show","close":"Close"},"sections":{"title":"Section {number}","on-this-page":"On this page","topics":"Topics","default-implementations":"Default Implementations","relationships":"Relationships","see-also":"See Also","declaration":"Declaration","details":"Details","parameters":"Parameters","possible-values":"Possible Values","parts":"Parts","availability":"Availability","resources":"Resources"},"metadata":{"details":{"name":"Name","key":"Key","type":"Type"},"beta":{"legal":"This documentation refers to beta software and may be changed.","software":"Beta Software"},"default-implementation":"Default implementation provided. | Default implementations provided."},"availability":{"introduced-and-deprecated":"Introduced in {name} {introducedAt} and deprecated in {name} {deprecatedAt}","available-on":"Available on {name} {introducedAt} and later"},"more":"More","less":"Less","api-reference":"API Reference","filter":{"title":"Filter","search-symbols":"Search symbols in {technology}","suggested-tags":"Suggested tag | Suggested tags","selected-tags":"Selected tag | Selected tags","add-tag":"Add tag","tag-select-remove":"Tag. Select to remove from list.","navigate":"To navigate the symbols, press Up Arrow, Down Arrow, Left Arrow or Right Arrow","siblings-label":"{number-siblings} of {total-siblings} symbols inside {parent-siblings}","parent-label":"{number-siblings} of {total-siblings} symbols inside {parent-siblings} containing one symbol | {number-siblings} of {total-siblings} symbols inside {parent-siblings} containing {number-parent} symbols","reset-filter":"Reset Filter"},"navigator":{"title":"Documentation Navigator","open-navigator":"Open Documentation Navigator","close-navigator":"Close Documentation Navigator","no-results":"No results found.","no-children":"No data available.","error-fetching":"There was an error fetching the data.","items-found":"No items were found | 1 item was found | {number} items were found. Tab back to navigate through them.","navigator-is":"Navigator is {state}","state":{"loading":"loading","ready":"ready"},"tags":{"hide-deprecated":"Hide Deprecated"}},"tab":{"request":"Request","response":"Response"},"required":"Required","parameters":{"default":"Default","minimum":"Minimum","maximum":"Maximum","possible-types":"Type | Possible types","possible-values":"Value | Possible Values"},"content-type":"Content-Type: {value}","read-only":"Read-only","error":{"unknown":"An unknown error occurred.","image":"Image failed to load","not-found":"The page you\'re looking for can\'t be found."},"color-scheme":{"select":"Select a color scheme preference","auto":"Auto","dark":"Dark","light":"Light"},"accessibility":{"strike":{"start":"start of stricken text","end":"end of stricken text"},"code":{"start":"start of code block","end":"end of code block"},"skip-navigation":"Skip Navigation","in-page-link":"in page link"},"select-language":"Select the language for this page","icons":{"clear":"Clear","web-service-endpoint":"Web Service Endpoint","search":"Search"},"formats":{"parenthesis":"({content})","colon":"{content}: "},"quicknav":{"button":{"label":"Open Quick Navigation","title":"Click or type / for quick navigation"},"preview-unavailable":"Preview unavailable"}}'),o=JSON.parse('{"view-in":"以中文查看","continue-viewing":"继续以中文查看","language":"语言","video":{"replay":"重新播放","play":"播放","pause":"暂停","watch":"观看介绍视频"},"tutorials":{"title":"教程","step":"第 {number} 步","submit":"提交","next":"下一步","preview":{"title":"无预览 | 预览","no-preview-available-step":"这一步没有预览。"},"nav":{"chapters":"章节","current":"当前{thing}"},"assessment":{"check-your-understanding":"检查你的理解程度","success-message":"很棒,你回答了此教程的所有问题。","answer-number-is":"第 {index} 个答案","correct":"正确","incorrect":"错误","next-question":"下一个问题"},"project-files":"项目文件","estimated-time":"预计时间","sections":{"chapter":"第 {number} 章"},"question-of":"第 {index} 个问题(共 {total} 个)","section-of":"{number}/{total}","overriding-title":"{newTitle}{title}","time":{"format":"{number} {minutes}","minutes":{"full":"分钟 | {count} 分钟","short":"分钟"},"hours":{"full":"小时"}}},"documentation":{"title":"文档","nav":{"breadcrumbs":"面包屑导航","menu":"菜单","open-menu":"打开菜单","close-menu":"关闭菜单"},"current-page":"当前页面为:{title}","card":{"learn-more":"进一步了解","read-article":"阅读文章","start-tutorial":"开始教程","view-api":"查看 API 集合","view-symbol":"查看符号","view-sample-code":"查看示例代码"}},"aside-kind":{"beta":"Beta 版","experiment":"试验","important":"重要事项","note":"注","tip":"提示","warning":"警告","deprecated":"已弃用"},"change-type":{"added":"已添加","modified":"已修改","deprecated":"已弃用"},"verbs":{"hide":"隐藏","show":"显示","close":"关闭"},"sections":{"title":"第 {number} 部分","on-this-page":"在此页面上","topics":"主题","default-implementations":"默认实现","relationships":"关系","see-also":"另请参阅","declaration":"声明","details":"详细信息","parameters":"参数","possible-values":"可能值","parts":"部件","availability":"可用性","resources":"资源"},"metadata":{"details":{"name":"名称","key":"密钥","type":"类型"},"beta":{"legal":"此文档涉及 Beta 版软件且可能会改动。","software":"Beta 版软件"},"default-implementation":"提供默认实现。| 提供默认实现方法。"},"availability":{"introduced-and-deprecated":"{name} {introducedAt} 中引入,{name} {deprecatedAt} 中弃用","available-on":"{name} {introducedAt} 及更高版本中可用"},"more":"更多","less":"更少","api-reference":"API 参考","filter":{"title":"过滤","search-symbols":"在 {technology} 搜索符号","suggested-tags":"建议标签","selected-tags":"所选标签","add-tag":"添加标签","tag-select-remove":"标签。选择以从列表中移除。","navigate":"若要导航符号,请按下上箭头、下箭头、左箭头或右箭头。","siblings-label":"{parent-siblings} 内含 {number-siblings} 个符号(共 {total-siblings} 个)","parent-label":"{parent-siblings} 内含 {number-siblings} 个符号(共 {total-siblings} 个)包含一个符号 | {parent-siblings} 内含 {number-siblings} 个符号(共 {total-siblings} 个)包含 {number-parent} 个符号","reset-filter":"还原过滤条件"},"navigator":{"title":"文档导航器","open-navigator":"打开文档导航器","close-navigator":"关闭文档导航器","no-results":"未找到结果。","no-children":"无可用数据。","error-fetching":"获取数据时出错。","items-found":"未找到任何项目 | 找到 1 个项目 | 找到 {number} 个项目。按下 Tab 键导航。","navigator-is":"导航器{state}","state":{"loading":"正在载入","ready":"准备就绪"},"tags":{"hide-deprecated":"隐藏已弃用"}},"tab":{"request":"请求","response":"回复"},"required":"必需","parameters":{"default":"默认","minimum":"最小值","maximum":"最大值","possible-types":"类型 | 可能类型","possible-values":"值 | 可能值"},"content-type":"内容类型:{value}","read-only":"只读","error":{"unknown":"出现未知错误。","image":"图像无法载入"},"color-scheme":{"select":"选择首选颜色方案","auto":"自动","dark":"深色","light":"浅色"},"accessibility":{"strike":{"start":"删除线文本开始","end":"删除线文本结束"},"code":{"start":"代码块开头","end":"代码块结尾"},"skip-navigation":"跳过导航"},"select-language":"选择此页面的语言","icons":{"clear":"清除","web-service-endpoint":"网络服务端点","search":"搜索"},"formats":{"parenthesis":"({content})","colon":"{content}: "},"quicknav":{"button":{"label":"打开快速导航","title":"点按或键入 / 进行快速导航"}}}'),i=JSON.parse('{"view-in":"日本語で表示","continue-viewing":"日本語で表示を続ける","language":"言語","video":{"replay":"リプレイ","play":"再生","pause":"一時停止","watch":"概要のビデオを観る"},"tutorials":{"title":"チュートリアル | チュートリアル","step":"手順{number}","submit":"送信","next":"次へ","preview":{"title":"プレビューなし | プレビュー | プレビュー","no-preview-available-step":"この手順では利用可能なプレビューがありません。"},"nav":{"chapters":"章","current":"現在の{thing}"},"assessment":{"check-your-understanding":"理解度を確認する","success-message":"よくできました。このチュートリアルの問題にすべて回答しました。","answer-number-is":"問題番号{index}は","correct":"正解です","incorrect":"不正解です","next-question":"次の問題"},"project-files":"プロジェクトファイル","estimated-time":"予測時間","sections":{"chapter":"{number}章"},"question-of":"{total}問中の{index}問","section-of":"{total}件中の{number}件","overriding-title":"{title}の{newTitle}","time":{"format":"{number} {minutes}","minutes":{"full":"分 | 分 | {count}分","short":"分 | 分"},"hours":{"full":"時間 | 時間"}}},"documentation":{"title":"ドキュメント","nav":{"breadcrumbs":"パンくずリスト","menu":"メニュー","open-menu":"メニューを開く","close-menu":"メニューを閉じる"},"current-page":"現在のページは{title}です","card":{"learn-more":"詳しい情報","read-article":"記事を読む","start-tutorial":"チュートリアルを開始","view-api":"APIのコレクションを表示","view-symbol":"記号を表示","view-sample-code":"サンプルコードを表示"}},"aside-kind":{"beta":"ベータ版","experiment":"試験運用版","important":"重要","note":"注意","tip":"ヒント","warning":"警告","deprecated":"非推奨"},"change-type":{"added":"追加","modified":"変更","deprecated":"非推奨"},"verbs":{"hide":"非表示","show":"表示","close":"閉じる"},"sections":{"title":"セクション{number}","on-this-page":"このページの内容","topics":"トピック","default-implementations":"デフォルト実装","relationships":"関連項目","see-also":"参照","declaration":"宣言","details":"詳細","parameters":"パラメータ","possible-values":"使用できる値","parts":"パーツ","availability":"利用可能","resources":"リソース"},"metadata":{"details":{"name":"名前","key":"キー","type":"タイプ"},"beta":{"legal":"このドキュメントはベータ版のソフトウェアのもので、変更される可能性があります。","software":"ベータ版ソフトウェア"},"default-implementation":"デフォルト実装あり。| デフォルト実装あり。"},"availability":{"introduced-and-deprecated":"{name} {introducedAt}で導入され、{name} {deprecatedAt}で非推奨になりました","available-on":"{name} {introducedAt}以降で使用できます"},"more":"さらに表示","less":"表示を減らす","api-reference":"APIリファレンス","filter":{"title":"フィルタ","search-symbols":"{technology}でシンボルを検索","suggested-tags":"提案されたタグ | 提案されたタグ","selected-tags":"選択したタグ | 選択したタグ","add-tag":"タグを追加","tag-select-remove":"タグ。選択してリストから削除します。","navigate":"シンボルを移動するには、上下左右の矢印キーを押します。","siblings-label":"{total-siblings}個中{number-siblings}個のシンボルが{parent-siblings}の中にあります","parent-label":"{total-siblings}個中{number-siblings}個のシンボルが1個のシンボルを含む{parent-siblings}の中にあります | {total-siblings}個中{number-siblings}個のシンボルが{number-parent}個のシンボルを含む{parent-siblings}の中にあります","reset-filter":"フィルタをリセット"},"navigator":{"title":"ドキュメントナビゲータ","open-navigator":"ドキュメントナビゲータを開く","close-navigator":"ドキュメントナビゲータを閉じる","no-results":"結果が見つかりません。","no-children":"使用できるデータがありません。","error-fetching":"データを取得する際にエラーが起きました。","items-found":"項目が見つかりません | 1個の項目が見つかりました | {number}個の項目が見つかりましたTabキーを押すと項目をナビゲートできます。","navigator-is":"ナビゲータは{state}です","state":{"loading":"読み込み中","ready":"準備完了"},"tags":{"hide-deprecated":"非推奨の項目を非表示"}},"tab":{"request":"リクエスト","response":"レスポンス"},"required":"必須","parameters":{"default":"デフォルト","minimum":"最小","maximum":"最大","possible-types":"タイプ | 使用できるタイプ","possible-values":"値 | 使用できる値"},"content-type":"Content-Type: {value}","read-only":"読み出し専用","error":{"unknown":"原因不明のエラーが起きました。","image":"イメージを読み込めませんでした"},"color-scheme":{"select":"カラースキーム環境設定を選択","auto":"自動","dark":"ダーク","light":"ライト"},"accessibility":{"strike":{"start":"取り消し線テキストの開始","end":"取り消し線テキストの終了"},"code":{"start":"コードブロックの開始","end":"コードブロックの終了"},"skip-navigation":"ナビゲーションをスキップ"},"select-language":"このページの言語を選択","icons":{"clear":"消去","web-service-endpoint":"Webサービスのエンドポイント","search":"検索"},"formats":{"parenthesis":"({content})","colon":"{content}: "},"quicknav":{"button":{"label":"クイックナビゲーションを開く","title":"クリックするか「/」を入力すると素早く移動します"}}}');const a="en-US",s={"en-US":r,"zh-CN":o,"ja-JP":i}},4030:function(e,t,n){"use strict";var r=n(9804),o=n(1265),i=n(5394),a=n(2412);const s="undefined"!==typeof window.matchMedia&&[r.Z.light,r.Z.dark,"no-preference"].some((e=>window.matchMedia(`(prefers-color-scheme: ${e})`).matches)),c=s?r.Z.auto:r.Z.light;t["default"]={state:{imageLoadingStrategy:"ide"==={NODE_ENV:"production",VUE_APP_TITLE:"Documentation",BASE_URL:"{{BASE_PATH}}/"}.VUE_APP_TARGET?o.Z.eager:o.Z.lazy,preferredColorScheme:i.Z.preferredColorScheme||c,preferredLocale:i.Z.preferredLocale,supportsAutoColorScheme:s,systemColorScheme:r.Z.light,availableLocales:[]},reset(){this.state.imageLoadingStrategy="ide"==={NODE_ENV:"production",VUE_APP_TITLE:"Documentation",BASE_URL:"{{BASE_PATH}}/"}.VUE_APP_TARGET?o.Z.eager:o.Z.lazy,this.state.preferredColorScheme=i.Z.preferredColorScheme||c,this.state.supportsAutoColorScheme=s,this.state.systemColorScheme=r.Z.light},setImageLoadingStrategy(e){this.state.imageLoadingStrategy=e},setPreferredColorScheme(e){this.state.preferredColorScheme=e,i.Z.preferredColorScheme=e},setAllLocalesAreAvailable(){const e=a.map((e=>e.code));this.state.availableLocales=e},setAvailableLocales(e=[]){this.state.availableLocales=e},setPreferredLocale(e){this.state.preferredLocale=e,i.Z.preferredLocale=this.state.preferredLocale},setSystemColorScheme(e){this.state.systemColorScheme=e},syncPreferredColorScheme(){i.Z.preferredColorScheme&&i.Z.preferredColorScheme!==this.state.preferredColorScheme&&(this.state.preferredColorScheme=i.Z.preferredColorScheme)}}},5947:function(e,t,n){"use strict";function r(e){return e.reduce(((e,t)=>(t.traits.includes("dark")?e.dark.push(t):e.light.push(t),e)),{light:[],dark:[]})}function o(e){const t=["1x","2x","3x"];return t.reduce(((t,n)=>{const r=e.find((e=>e.traits.includes(n)));return r?t.concat({density:n,src:r.url,size:r.size}):t}),[])}function i(e){const t="/",n=new RegExp(`${t}+`,"g");return e.join(t).replace(n,t)}function a(e){const{baseUrl:t}=window,n=Array.isArray(e)?i(e):e;return n&&"string"===typeof n&&!n.startsWith(t)&&n.startsWith("/")?i([t,n]):n}function s(e){return e?e.startsWith("/")?e:`/${e}`:e}function c(e){return e?`url('${a(e)}')`:void 0}function l(e){return new Promise(((t,n)=>{const r=new Image;r.src=e,r.onerror=n,r.onload=()=>t({width:r.width,height:r.height})}))}n.d(t,{AH:function(){return a},Jf:function(){return s},RY:function(){return l},T8:function(){return d},XV:function(){return r},eZ:function(){return c},u:function(){return o}});const u={landscape:"landscape",portrait:"portrait",square:"square"};function d(e,t){return e&&t?et?u.landscape:u.square:null}},5381:function(e,t,n){"use strict";n.d(t,{L3:function(){return r},fr:function(){return s},kB:function(){return i},lU:function(){return o}});const r={large:"large",medium:"medium",small:"small"},o={default:"default",nav:"nav"},i={[o.default]:{[r.large]:{minWidth:1069,contentWidth:980},[r.medium]:{minWidth:736,maxWidth:1068,contentWidth:692},[r.small]:{minWidth:320,maxWidth:735,contentWidth:280}},[o.nav]:{[r.large]:{minWidth:1024},[r.medium]:{minWidth:768,maxWidth:1023},[r.small]:{minWidth:320,maxWidth:767}}},a={[r.small]:0,[r.medium]:1,[r.large]:2};function s(e,t){return a[e]>a[t]}},9030:function(e,t,n){"use strict";n.d(t,{KP:function(){return l},dZ:function(){return s},jk:function(){return u}});var r=n(2412),o=n(5559),i=n(3465);const a=r.reduce(((e,t)=>({...e,[t.slug]:t.code})),{});function s(e){return a[e]}function c(e){return!!a[e]}function l(e){return{params:{locale:e===o.defaultLocale?void 0:e}}}function u(e=o.defaultLocale,t={}){if(!c(e))return;t.$i18n.locale=e;const n=s(e);(0,i.e)(n)}},5657:function(e,t,n){"use strict";function r(e){let t=null,n=e-1;const r=new Promise((e=>{t=e}));return requestAnimationFrame((function e(){n-=1,n<=0?t():requestAnimationFrame(e)})),r}function o(e){return new Promise((t=>{setTimeout(t,e)}))}n.d(t,{J:function(){return r},X:function(){return o}})},3465:function(e,t,n){"use strict";n.d(t,{X:function(){return u},e:function(){return d}});var r=n(9089),o=n(2449);const i=(0,r.$8)(["meta","title"],"Documentation"),a=({title:e,description:t,url:n,currentLocale:r})=>[{name:"description",content:t},{property:"og:locale",content:r},{property:"og:site_name",content:i},{property:"og:type",content:"website"},{property:"og:title",content:e},{property:"og:description",content:t},{property:"og:url",content:n},{property:"og:image",content:(0,o.HH)("/developer-og.jpg")},{name:"twitter:image",content:(0,o.HH)("/developer-og-twitter.jpg")},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:description",content:t},{name:"twitter:title",content:e},{name:"twitter:url",content:n}],s=e=>[e,i].filter(Boolean).join(" | "),c=e=>{const{content:t}=e,n=e.property?"property":"name",r=e[n],o=document.querySelector(`meta[${n}="${r}"]`);if(o&&t)o.setAttribute("content",t);else if(o&&!t)o.remove();else if(t){const t=document.createElement("meta");t.setAttribute(n,e[n]),t.setAttribute("content",e.content),document.getElementsByTagName("head")[0].appendChild(t)}},l=e=>{document.title=e};function u({title:e,description:t,url:n,currentLocale:r}){const o=s(e);l(o),a({title:o,description:t,url:n,currentLocale:r}).forEach((e=>c(e)))}function d(e){document.querySelector("html").setAttribute("lang",e)}},5394:function(e,t,n){"use strict";var r=n(7247);const o={preferredColorScheme:"developer.setting.preferredColorScheme",preferredLocale:"developer.setting.preferredLocale",preferredLanguage:"docs.setting.preferredLanguage"},i={preferredColorScheme:"docs.setting.preferredColorScheme"};t["Z"]=Object.defineProperties({},Object.keys(o).reduce(((e,t)=>({...e,[t]:{get:()=>{const e=i[t],n=r.mr.getItem(o[t]);return e?n||r.mr.getItem(e):n},set:e=>r.mr.setItem(o[t],e)}})),{}))},7247:function(e,t,n){"use strict";n.d(t,{mr:function(){return a},tO:function(){return c},y7:function(){return l}});const r="developer.setting.";function o(e=localStorage){return{getItem:t=>{try{return e.getItem(t)}catch(n){return null}},setItem:(t,n)=>{try{e.setItem(t,n)}catch(r){}},removeItem:t=>{try{e.removeItem(t)}catch(n){}}}}function i(e){return{get:(t,n)=>{const o=JSON.parse(e.getItem(r+t));return null!==o?o:n},set:(t,n)=>e.setItem(r+t,JSON.stringify(n)),remove:t=>e.removeItem(r+t)}}const a=o(window.localStorage),s=o(window.sessionStorage),c=i(a),l=i(s)},3208:function(e,t,n){"use strict";n.d(t,{HA:function(){return a},RL:function(){return u},Xv:function(){return s},ZQ:function(){return d},hr:function(){return l},id:function(){return m},sj:function(){return c}});n(8269);const r=/(?:\s+|[`"<>])/g,o=/^-+/,i=/["'&<>]/g;function a(e){return e.trim().replace(r,"-").replace(o,"").toLowerCase()}function s(e){const t=e=>({'"':""","'":"'","&":"&","<":"<",">":">"}[e]||e);return e.replace(i,t)}function c(e){return e.replace(/#(.*)/,((e,t)=>`#${CSS.escape(t)}`))}function l(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function u(e){let t,n;const r="\\s*",o=" ",i=e.trim(),a=i.length;if(!a)return o;const s=[];for(t=0;te.json())).catch((()=>({})))}const c=(e,t)=>r(i,e,t)},2449:function(e,t,n){"use strict";n.d(t,{Lp:function(){return s},Q2:function(){return a},WN:function(){return c},Ex:function(){return i},HH:function(){return l}});var r=n(5947),o={input:"input",tags:"tags"};function i(e={}){return Object.entries(e).reduce(((e,[t,n])=>n?e.concat(`${encodeURIComponent(t)}=${encodeURIComponent(n)}`):e),[]).join("&")}function a(e,{changes:t,language:n,context:r}={}){const[o,a]=e.split("#"),s=o.match(/\?.*/),c=i({changes:t,language:n,context:r}),l=s?"&":"?",u=a?o:e,d=c?`${l}${c}`:"",m=a?`#${a}`:"";return`${u}${d}${m}`}function s(e,t){const{query:{changes:n,[o.input]:r,[o.tags]:i,...a}={}}=e,{query:{changes:s,[o.input]:c,[o.tags]:l,...u}={}}=t;return e.name===t.name&&JSON.stringify({path:e.path,query:a})===JSON.stringify({path:t.path,query:u})}function c(e,t=window.location.href){return new URL((0,r.AH)(e),t)}function l(e,t){return c(e,t).href}},647:function(e,t,n){n.p=window.baseUrl},2412:function(e){"use strict";e.exports=JSON.parse('[{"code":"en-US","name":"English","slug":"en-US"},{"code":"zh-CN","name":"简体中文","slug":"zh-CN"},{"code":"ja-JP","name":"日本語","slug":"ja-JP"}]')}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.m=e,function(){var e=[];n.O=function(t,r,o,i){if(!r){var a=1/0;for(u=0;u=i)&&Object.keys(n.O).every((function(e){return n.O[e](r[c])}))?r.splice(c--,1):(s=!1,i0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[r,o,i]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){a[e]=function(){return r[e]}}));return a["default"]=function(){return r},n.d(i,a),i}}(),function(){n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))}}(),function(){n.u=function(e){return"js/"+({82:"highlight-js-json-js",113:"highlight-js-markdown-js",133:"highlight-js-llvm-js",162:"topic",176:"highlight-js-shell-js",213:"highlight-js-diff-js",217:"highlight-js-custom-swift",392:"highlight-js-scss-js",393:"highlight-js-bash-js",435:"highlight-js-python-js",490:"highlight-js-xml-js",527:"highlight-js-swift-js",546:"highlight-js-c-js",596:"highlight-js-php-js",621:"highlight-js-cpp-js",623:"highlight-js-ruby-js",637:"highlight-js-objectivec-js",642:"highlight-js-custom-markdown",645:"highlight-js-perl-js",788:"highlight-js-java-js",814:"highlight-js-javascript-js",843:"tutorials-overview",864:"highlight-js-css-js",878:"highlight-js-http-js",982:"documentation-topic"}[e]||e)+"."+{37:"3cabdf6d",82:"2a1856ba",113:"a2f456af",133:"26121771",162:"2687cdff",176:"0ad5b20f",213:"4db9a783",217:"738731d1",337:"274a8ccc",392:"adcd11a2",393:"702f0c5c",435:"60354774",490:"0d78f903",523:"3af1b2ef",527:"bdd5bff5",546:"063069d3",596:"c458ffa4",621:"458a9ae4",623:"7272231f",637:"74dea052",642:"78c9f6ed",645:"da6eda82",675:"1d13263d",788:"4fe21e94",814:"dfc9d16d",843:"2eff1231",864:"bfc4251f",878:"f78e83c2",903:"b3710a74",982:"f9ef3692"}[e]+".js"}}(),function(){n.miniCssF=function(e){return"css/"+({162:"topic",843:"tutorials-overview",982:"documentation-topic"}[e]||e)+"."+{162:"672a9049",523:"e9a069b0",675:"40c3bcb2",843:"6eb589ed",982:"b186e79f"}[e]+".css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="swift-docc-render:";n.l=function(r,o,i,a){if(e[r])e[r].push(o);else{var s,c;if(void 0!==i)for(var l=document.getElementsByTagName("script"),u=0;u