58 bool findByTitle(
const char* title, uint16_t* logicalSlotOut)
const;
61 uint16_t
capacity()
const {
return slots_.capacity(); }
63 return slots_.toPhysicalSlot(logicalIndex, slotOut);
66 return slots_.toLogicalSlot(slot, logicalIndexOut);
69 uint8_t
moduleId()
const {
return slots_.moduleId(); }
70 uint16_t
rmemStart()
const {
return slots_.rmemStart(); }
71 uint16_t
rmemEnd()
const {
return slots_.rmemEnd(); }
76 static int compareTitles(
const char* a,
const char* b);
Manages logical-to-physical RMEM slot mapping for module storage layers.
static constexpr uint16_t RMEM_SLOT_SIZE
bool hasSlotRange() const
bool toPhysicalSlot(uint16_t logicalIndex, uint16_t *slotOut) const
static constexpr uint8_t PASSWORD_LEN
bool updateEntry(uint16_t slot, const PasswordEntry &entry)
Updates existing password entry.
uint16_t rmemStart() const
static constexpr uint8_t TITLE_LEN
bool addEntry(const PasswordEntry &entry)
Adds a new password entry into first free slot.
static constexpr size_t NOTES_LEN
static constexpr uint8_t TOTP_SLOT_NONE
static constexpr size_t FIXED_PAYLOAD
bool findFreeLogicalSlot(uint16_t *logicalSlotOut) const
Finds first free logical slot in this module's range.
static constexpr uint8_t USERNAME_LEN
static PasswordStore & instance()
Returns singleton password store instance.
bool listEntriesSorted(EntryIndex *entries, uint16_t maxEntries, uint16_t *countOut) const
Lists entries sorted alphabetically by title.
bool deleteEntry(uint16_t slot)
Deletes entry at logical slot index.
static constexpr uint8_t URL_LEN
bool toLogicalSlot(uint16_t slot, uint16_t *logicalIndexOut) const
static constexpr size_t PAYLOAD_MAX
bool findByTitle(const char *title, uint16_t *logicalSlotOut) const
Finds the logical slot of an entry with a matching title.
bool readEntry(uint16_t slot, PasswordEntry *out) const
Reads one password entry from secure-element storage.
void setSlotRange(const cdc::core::IModule::SlotRange &range)
Configures logical-to-physical slot mapping for password entries.
uint16_t capacity() const
constexpr uint8_t PASSWORD_URL_LEN
constexpr uint8_t PASSWORD_USERNAME_LEN
constexpr size_t PASSWORD_FIXED_PAYLOAD
constexpr size_t PASSWORD_PAYLOAD_MAX
constexpr size_t PASSWORD_NOTES_LEN
constexpr uint8_t PASSWORD_PASSWORD_LEN
constexpr uint8_t PASSWORD_TITLE_LEN
char password[PASSWORD_PASSWORD_LEN+1]
char url[PASSWORD_URL_LEN+1]
char title[PASSWORD_TITLE_LEN+1]
char notes[PASSWORD_NOTES_LEN+1]
char username[PASSWORD_USERNAME_LEN+1]