nerves_key v0.1.0 NervesKey.Data View Source
This module handles Data Zone data stored in the Nerves Key.
Link to this section Summary
Functions
Create a public/private key pair
Determine what’s in all of the data slots
Write all of the slots
Link to this section Functions
Link to this function
genkey(transport)
View Source
genkey(ATECC508A.Transport.t()) :: {:ok, X509.PublicKey.t()} | {:error, atom()}
Create a public/private key pair
The public key is returned on success. This can only be called on devices that have their configuration locked, but not their data.
Link to this function
lock(transport, otp_data, slot_data)
View Source
lock(ATECC508A.Transport.t(), binary(), [{ATECC508A.Request.slot(), binary()}]) :: :ok | {:error, atom()}
Link to this function
slot_data(device_sn, device_cert, signer_cert)
View Source
slot_data(ATECC508A.serial_number(), X509.Certificate.t(), X509.Certificate.t()) :: [{ATECC508A.Request.slot(), binary()}]
Determine what’s in all of the data slots
Link to this function
write_slots(transport, slot_data)
View Source
write_slots(ATECC508A.Transport.t(), [{ATECC508A.Request.slot(), binary()}]) :: :ok | {:error, atom()}
Write all of the slots