Contents

generate()

Generates a new random private key.

Declaration

static func generate() throws -> SecureEnclave.MLKEM1024.PrivateKey

Return Value

The generated private key

Discussion

This method implements the required interface for the KEMPrivateKey extension, in this case invoking the initializer with a default SecAccessControl and no LAContext.

See Also

Creating a private key