publicKey
TypeScriptget publicKey(): MLKEM1024_PublicKeySwift declarationlet publicKey: MLKEM1024.PublicKeyThe corresponding public key.
struct · iOS 26.0+ · SDK 27.1
struct PrivateKeyget publicKey(): MLKEM1024_PublicKeySwift declarationlet publicKey: MLKEM1024.PublicKeyThe corresponding public key.
decapsulate(encapsulated: ArrayBuffer): SymmetricKeySwift declarationfunc decapsulate<D>(_ encapsulated: D) throws -> SymmetricKey where D : DataProtocolDecapsulates the encapsulated shared secret - Parameter encapsulated: The encapsulated shared secret - Returns: The decapsulated shared secret
static initAccessControlAuthenticationContext(accessControl?: _Security_SecAccessControl, authenticationContext?: (_LocalAuthentication_LAContext) | null): SecureEnclave_MLKEM1024_PrivateKeySwift declarationinit(accessControl: SecAccessControl = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly, [], nil)!, authenticationContext: LAContext? = nil) throwsget dataRepresentation(): ArrayBufferSwift declarationlet dataRepresentation: DataA data representation of the private key.
static initDataRepresentationAuthenticationContext(dataRepresentation: ArrayBuffer, authenticationContext?: (_LocalAuthentication_LAContext) | null): SecureEnclave_MLKEM1024_PrivateKeySwift declarationinit<D>(dataRepresentation: D, authenticationContext: LAContext? = nil) throws where D : DataProtocolstatic generate(): SecureEnclave_MLKEM1024_PrivateKeySwift declarationstatic func generate() throws -> SecureEnclave.MLKEM1024.PrivateKeyGenerates a new random private key. This method implements the required interface for the KEMPrivateKey extension, in this case invoking the initializer with a default SecAccessControl and no LAContext. - Returns: The generated private key
No declarations were skipped in this snapshot.