File: crypto_declassify.h

package info (click to toggle)
tinyssh 20250501-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,388 kB
  • sloc: ansic: 20,245; sh: 1,582; python: 1,449; makefile: 913
file content (25 lines) | stat: -rw-r--r-- 436 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef crypto_declassify_h
#define crypto_declassify_h

#include "hasvalgrind.h"
#ifdef HASVALGRIND

#include <valgrind/memcheck.h>

#define crypto_declassify_uses_valgrind 1

static void crypto_declassify(void *xv, long long xlen) {
    VALGRIND_MAKE_MEM_DEFINED(xv, xlen);
}

#else

#define crypto_declassify_uses_valgrind 0

static void crypto_declassify(void *xv, long long xlen) {
    (void) xv;
    (void) xlen;
}

#endif
#endif