Skip to content

Commit

Permalink
Refactor SKESK writing and check for possible incorrect password try …
Browse files Browse the repository at this point in the history
…by GnuPG.
  • Loading branch information
ni4 committed Jan 24, 2025
1 parent 33332f4 commit ad944fa
Show file tree
Hide file tree
Showing 2 changed files with 155 additions and 113 deletions.
6 changes: 6 additions & 0 deletions src/lib/crypto/mem.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ template <typename T, std::size_t N> struct secure_array {
return &data_[0];
}

const T *
data() const
{
return &data_[0];
}

std::size_t
size() const
{
Expand Down
Loading

0 comments on commit ad944fa

Please sign in to comment.