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:
@ -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
|
||||
|
Reference in New Issue
Block a user