Initializerswift-crypto 3.12.2_CryptoExtras->Crypto
init
Creates a random private key for ARC(P-384).
- iOS
- 16.0+
- macOS
- 13.0+
- tvOS
- 16.0+
- watchOS
- 9.0+
init()
Creates a random private key for ARC(P-384).
init()
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 PrivateKey
The server secrets used to issue and verify credentials.
enum P384
An elliptic curve that enables NIST P-384 signatures and key agreement.
enum _ARCV1
Anonymous Rate-Limited Credentials (ARC).
init<D>(rawRepresentation: D) throws where D : DataProtocol
var publicKey: P384._ARCV1.PublicKey { get }
var rawRepresentation: Data { get }
func issue(_ credentialRequest: P384._ARCV1.CredentialRequest) throws -> P384._ARCV1.CredentialResponse
Generate a credential response from a credential request.
func verify<D1, D2>(_ presentation: P384._ARCV1.Presentation, requestContext: D1, presentationContext: D2, presentationLimit: Int, nonce: Int) throws -> Bool where D1 : DataProtocol, D2 : DataProtocol
Verify a presentation is valid for a given attribute.