123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- /*
- Software License
- Copyright (C) 2021-05-24 Xoronos
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, version 3.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <https://www.gnu.org/licenses/>.
- */
- /*
- Liabilities
- The software is provided "AS IS" without any warranty of any kind, either expressed,
- implied, or statutory, including, but not limited to, any warranty that the software
- will conform to specifications, any implied warranties of merchantability, fitness
- for a particular purpose, and freedom from infringement, and any warranty that the
- documentation will conform to the software, or any warranty that the software will
- be error free.
- In no event shall Xoronos be liable for any damages, including, but not limited to,
- direct, indirect, special or consequential damages, arising out of, resulting from,
- or in any way connected with this software, whether or not based upon warranty,
- contract, tort, or otherwise, whether or not injury was sustained by persons or
- property or otherwise, and whether or not loss was sustained from, or arose out of
- the results of, or use of, the software or services provided hereunder.
- To request the provided software under a different license you can contact us at
- support@xoronos.com
- */
- #ifndef XORON_TEST_KEYS_H
- #define XORON_TEST_KEYS_H
- #include <stdio.h>
- #include <stdint.h>
- #include <stdlib.h>
- #include <time.h>
- #include "xrn_settings.h"
- #include "xrn_common.h"
- #include "xrn_arithmetic.h"
- #include "xrn_arithmetic_backend.h"
- #include "xrn_core.h"
- #include "xrn_core_backend.h"
- #include "xrn_crypto.h"
- #include "xrn_crypto_backend.h"
- #include "xgenesis_bases_init.h"
- #include "xrn_encoder.h"
- int test_monomial_key_io(
- );
- int test_binomial_key_io(
- );
- int test_monomial_key_checksum(
- );
- int test_binomial_key_checksum(
- );
- int test_all_keys( FILE * fp, int runs, int non_block
- );
- #endif
|