SwiftprotocolCryptoKit

protocol CryptoKit.KEMOneTimePrivateKey

Members 4

  1. funcmethod descriptor for static generate() throws -> A
  2. associatedtypeassociatedtype PublicKey
  3. funcmethod descriptor for decapsulate(Foundation.Data) throws -> CryptoKit.SymmetricKey
  4. varvar publicKey: A.PublicKey { get }
protocol KEMOneTimePrivateKey where Self.PublicKey: CryptoKit.KEMPublicKey, Self: ~Swift.Copyable {
    associatedtype PublicKey

    var publicKey: Self.PublicKey {
        get
    }

    func decapsulate(_: Foundation.Data) throws -> CryptoKit.SymmetricKey

    static func generate() throws -> Self
}