Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: memset_explicit new to C23

...

Code Block
languagebash
% strings a.out
...
AUATL
[]A\A]A^A_
correct code
Authentication error
Authentication successful
...
%

Compliant Solution (C23, memset_explicit())

This compliant solution requires the user to supply the authentication code, and securely erases it when done, using memset_explicit().

...