1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Improve docs for zeroize.c and test_zeroize.gdb

This commit is contained in:
Andres Amaya Garcia
2018-03-08 21:21:40 +00:00
parent 1e8ea5fa68
commit 42defd10a6
2 changed files with 36 additions and 2 deletions

View File

@ -1,5 +1,14 @@
/*
* Zeroize demonstration program
* Zeroize application for debugger-driven testing
*
* This is a simple test application used for debbuger-driven testing to check
* whether calls to mbedtls_zeroize() are being eliminated by compiler
* optimizations. This application is used by the GDB script at
* tests/scripts/test_zeroize.gdb under the assumption that line numbers do not
* change often (as opposed to the library code) because the script sets a
* breakpoint at the last return statement in the main() function of this
* program. The debugger facilities are then used to manually inspect the
* memory and verify that the call to mbedtls_zeroize() was not eliminated.
*
* Copyright (C) 2017, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0