Blame view

RIOT/tests/unittests/tests-tweetnacl/tests-tweetnacl.h 1003 Bytes
a752c7ab   elopes   add first test an...
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
  /*
   * Copyright (C) 2016 Martin Landsmann
   *
   * This file is subject to the terms and conditions of the GNU Lesser
   * General Public License v2.1. See the file LICENSE in the top level
   * directory for more details.
   */
  
  /**
   * @addtogroup  unittests
   * @{
   *
   * @file
   * @brief       Unittests for the ``tweetnacl`` package
   *
   * @author      Martin Landsmann <Martin.Landsmann@HAW-Hamburg.de>
   */
  #ifndef TESTS_TWEETNACL_H
  #define TESTS_TWEETNACL_H
  
  #include "embUnit/embUnit.h"
  #include "random.h"
  
  #ifdef __cplusplus
  extern "C" {
  #endif
  
  /**
   * @brief MANDATORY function for collecting random Bytes
   *        required by the tweetnacl package
   */
  extern void randombytes(uint8_t *target, uint64_t n);
  
  /**
  *  @brief   The entry point of this test suite.
  */
  void tests_tweetnacl(void);
  
  /**
   * @brief   Generates tests for tweetnacl
   *
   * @return  embUnit tests if successful, NULL if not.
   */
  Test *tests_tweetnacl_tests(void);
  
  #ifdef __cplusplus
  }
  #endif
  
  #endif /* TESTS_TWEETNACL_H */
  /** @} */