Initializerswift-crypto 3.12.2_CryptoExtras->Crypto
init(rawRepresentation:)
ARC+API.swift:124- iOS
- 16.0+
- macOS
- 13.0+
- tvOS
- 16.0+
- watchOS
- 9.0+
init<D>(rawRepresentation: D) throws where D : DataProtocol
init<D>(rawRepresentation: D) throws where D : DataProtocol
s6Crypto4P384O01_A6ExtrasE6_ARCV1O9PublicKeyV17rawRepresentationAHx_tKc20FoundationEssentials12DataProtocolRzlufc
What are these?132N6
import Crypto
A cryptography library for Swift.
import _CryptoExtras
Provides additional cryptographic APIs that are not available in CryptoKit (and therefore the core Crypto library).
struct PublicKey
The server public key, used by clients to create anonymous credentials in conjunction with the server.
enum P384
An elliptic curve that enables NIST P-384 signatures and key agreement.
enum _ARCV1
Anonymous Rate-Limited Credentials (ARC).
protocol DataProtocol : RandomAccessCollection where Self.Element == UInt8, Self.SubSequence : DataProtocol
var rawRepresentation: Data { get }
func finalize(_ credentialResponse: P384._ARCV1.CredentialResponse, for precredential: P384._ARCV1.Precredential) throws -> P384._ARCV1.Credential
Create a credential from the issuer response.
func prepareCredentialRequest<D>(requestContext: D) throws -> P384._ARCV1.Precredential where D : DataProtocol
Prepare a credential request for a given request context.