1 /**************************************************************************/
2 /*                                                                        */
3 /*       Copyright (c) Microsoft Corporation. All rights reserved.        */
4 /*                                                                        */
5 /*       This software is licensed under the Microsoft Software License   */
6 /*       Terms for Microsoft Azure RTOS. Full text of the license can be  */
7 /*       found in the LICENSE file at https://aka.ms/AzureRTOS_EULA       */
8 /*       and in the root directory of this software.                      */
9 /*                                                                        */
10 /**************************************************************************/
11 
12 
13 /**************************************************************************/
14 /**************************************************************************/
15 /**                                                                       */
16 /** NetX Crypto Component                                                 */
17 /**                                                                       */
18 /**   Module Self Test                                                    */
19 /**                                                                       */
20 /**************************************************************************/
21 /**************************************************************************/
22 
23 #ifndef NX_CRYPTO_METHOD_SELF_TEST_H
24 #define NX_CRYPTO_METHOD_SELF_TEST_H
25 
26 /* Determine if a C++ compiler is being used.  If so, ensure that standard
27    C is used to process the API information.  */
28 #ifdef __cplusplus
29 
30 /* Yes, C++ compiler is present.  Use standard C.  */
31 extern   "C" {
32 
33 #endif
34 
35 #include "nx_crypto.h"
36 
37 #ifdef NX_CRYPTO_SELF_TEST
38 
39 UINT _nx_crypto_method_self_test_aes(NX_CRYPTO_METHOD *crypto_method_aes,
40                                             VOID *metadata, UINT metadata_size);
41 UINT _nx_crypto_method_self_test_des(NX_CRYPTO_METHOD *crypto_method_des,
42                                             VOID *metadata, UINT metadata_size);
43 UINT _nx_crypto_method_self_test_3des(NX_CRYPTO_METHOD *crypto_method_3des,
44                                              VOID *metadata, UINT metadata_size);
45 UINT _nx_crypto_method_self_test_sha(NX_CRYPTO_METHOD *crypto_method_sha,
46                                             VOID *metadata, UINT metadata_size);
47 UINT _nx_crypto_method_self_test_md5(NX_CRYPTO_METHOD *crypto_method_md5,
48                                             VOID *metadata, UINT metadata_size);
49 UINT _nx_crypto_method_self_test_rsa(NX_CRYPTO_METHOD *crypto_method,
50                                             VOID *metadata, UINT metadata_size);
51 UINT _nx_crypto_method_self_test_hmac_sha(NX_CRYPTO_METHOD *crypto_method_hmac_sha,
52                                                  VOID *metadata, UINT metadata_size);
53 UINT _nx_crypto_method_self_test_hmac_md5(NX_CRYPTO_METHOD *crypto_method_hmac_md5,
54                                                  VOID *metadata, UINT metadata_size);
55 UINT _nx_crypto_method_self_test_prf(NX_CRYPTO_METHOD *crypto_method_prf,
56                                             VOID *metadata, UINT metadata_size);
57 UINT _nx_crypto_method_self_test_drbg(NX_CRYPTO_METHOD *crypto_method_drbg,
58                                       VOID *metadata, UINT metadata_size);
59 UINT _nx_crypto_method_self_test_ecdsa(NX_CRYPTO_METHOD *crypto_method_ecdsa,
60                                        VOID *metadata, UINT metadata_size);
61 UINT _nx_crypto_method_self_test_pkcs1(NX_CRYPTO_METHOD *crypto_method_pkcs1,
62                                        VOID *metadata, UINT metadata_size);
63 UINT _nx_crypto_method_self_test_ecdh(NX_CRYPTO_METHOD *crypto_method_ecdh,
64                                       VOID *metadata, UINT metadata_size);
65 
66 #endif
67 #endif /* NX_CRYPTO_METHOD_SELF_TEST_H  */
68 
69