SwiftstructCryptoKit

struct CryptoKit.P521.KeyAgreement.PrivateKey

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 18

  1. fieldlet impl: CryptoKit.CoreCryptoNISTCurvePrivateKeyImpl<CryptoKit.P521>+0x0
  2. funckeyFromDiversification(with: Foundation.Data, seedExtractionLabel: Foundation.Data) -> CryptoKit.P521.KeyAgreement.PrivateKey
  3. funcsharedSecretFromKeyAgreement(with: CryptoKit.P521.KeyAgreement.PublicKey) throws -> CryptoKit.SharedSecret
  4. initinit<A where A: RandomAccessCollection, A.Element == UInt8>(derRepresentation: A) throws -> CryptoKit.P521.KeyAgreement.PrivateKey
  5. initinit(pemRepresentation: String) throws -> CryptoKit.P521.KeyAgreement.PrivateKey
  6. initinit<A where A: Foundation.ContiguousBytes>(rawRepresentation: A) throws -> CryptoKit.P521.KeyAgreement.PrivateKey
  7. initinit<A where A: Foundation.ContiguousBytes>(x963Representation: A) throws -> CryptoKit.P521.KeyAgreement.PrivateKey
  8. initinit(compactRepresentable: Bool) -> CryptoKit.P521.KeyAgreement.PrivateKey
  9. initinit(ikm: CryptoKit.SymmetricKey) throws -> CryptoKit.P521.KeyAgreement.PrivateKey
  10. initinit(seed: Foundation.Data, compactRepresentable: Bool) throws -> CryptoKit.P521.KeyAgreement.PrivateKey
  11. initinit() -> CryptoKit.P521.KeyAgreement.PrivateKey
  12. typealiastypealias PK = CryptoKit.P521.KeyAgreement.PublicKey
  13. typealiastypealias PublicKey = CryptoKit.P521.KeyAgreement.PublicKey
  14. varvar derRepresentation: Foundation.Data { get }
  15. varvar pemRepresentation: String { get }
  16. varvar publicKey: CryptoKit.P521.KeyAgreement.PublicKey { get }
  17. varvar rawRepresentation: Foundation.Data { get }
  18. varvar x963Representation: Foundation.Data { get }
struct CryptoKit.P521.KeyAgreement.PrivateKey {
    let impl: CryptoKit.CoreCryptoNISTCurvePrivateKeyImpl<CryptoKit.P521>

    init<A>(derRepresentation: A) throws where A: Swift.RandomAccessCollection, A.Element == Swift.UInt8
    init(pemRepresentation: Swift.String) throws
    init<A>(rawRepresentation: A) throws where A: Foundation.ContiguousBytes
    init<A>(x963Representation: A) throws where A: Foundation.ContiguousBytes
    init(compactRepresentable: Swift.Bool)
    init(ikm: CryptoKit.SymmetricKey) throws
    init(seed: Foundation.Data, compactRepresentable: Swift.Bool) throws
    init()

    var derRepresentation: Foundation.Data {
        get
    }
    var pemRepresentation: Swift.String {
        get
    }
    var publicKey: CryptoKit.P521.KeyAgreement.PublicKey {
        get
    }
    var rawRepresentation: Foundation.Data {
        get
    }
    var x963Representation: Foundation.Data {
        get
    }

    func sharedSecretFromKeyAgreement(with: CryptoKit.P521.KeyAgreement.PublicKey) throws -> CryptoKit.SharedSecret
    func keyFromDiversification(with: Foundation.Data, seedExtractionLabel: Foundation.Data) -> CryptoKit.P521.KeyAgreement.PrivateKey
}