LCOV - code coverage report
Current view: top level - externals/compact25519/src - compact_wipe.c (source / functions) Hit Total Coverage
Test: lcov.info Lines: 0 5 0.0 %
Date: 2024-09-16 20:15:30 Functions: 0 1 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 2 0.0 %

           Branch data     Line data    Source code
       1                 :            : #include "compact_wipe.h"
       2                 :            : #include <stdlib.h>
       3                 :            : #include <string.h>
       4                 :            : 
       5                 :          0 : void *compact_wipe(void *data, size_t length) {
       6                 :            : // simplification of: https://www.cryptologie.net/article/419/zeroing-memory-compiler-optimizations-and-memset_s/
       7                 :          0 :          volatile unsigned char *p = data;
       8         [ #  # ]:          0 :          while (length--){
       9                 :          0 :                  *p++ = 0;
      10                 :            :          }
      11                 :          0 :         return data;
      12                 :            : }

Generated by: LCOV version 1.14