comparison libtomcrypt/src/math/gmp_desc.c @ 1435:f849a5ca2efc

update to libtomcrypt 1.17 (with Dropbear changes)
author Matt Johnston <matt@ucc.asn.au>
date Sat, 24 Jun 2017 17:50:50 +0800
parents 0cbe8f6dbf9e
children 6dba84798cd5
comparison
equal deleted inserted replaced
1434:27b9ddb06b09 1435:f849a5ca2efc
4 * algorithms in a highly modular and flexible manner. 4 * algorithms in a highly modular and flexible manner.
5 * 5 *
6 * The library is free for all purposes without any express 6 * The library is free for all purposes without any express
7 * guarantee it works. 7 * guarantee it works.
8 * 8 *
9 * Tom St Denis, [email protected], http://libtomcrypt.com 9 * Tom St Denis, [email protected], http://libtom.org
10 */ 10 */
11 11
12 #define DESC_DEF_ONLY 12 #define DESC_DEF_ONLY
13 #include "tomcrypt.h" 13 #include "tomcrypt.h"
14 14
437 &montgomery_deinit, 437 &montgomery_deinit,
438 438
439 &exptmod, 439 &exptmod,
440 &isprime, 440 &isprime,
441 441
442 #ifdef MECC 442 #ifdef LTC_MECC
443 #ifdef MECC_FP 443 #ifdef LTC_MECC_FP
444 &ltc_ecc_fp_mulmod, 444 &ltc_ecc_fp_mulmod,
445 #else 445 #else
446 &ltc_ecc_mulmod, 446 &ltc_ecc_mulmod,
447 #endif /* MECC_FP */ 447 #endif /* LTC_MECC_FP */
448 &ltc_ecc_projective_add_point, 448 &ltc_ecc_projective_add_point,
449 &ltc_ecc_projective_dbl_point, 449 &ltc_ecc_projective_dbl_point,
450 &ltc_ecc_map, 450 &ltc_ecc_map,
451 #ifdef LTC_ECC_SHAMIR 451 #ifdef LTC_ECC_SHAMIR
452 #ifdef MECC_FP 452 #ifdef LTC_MECC_FP
453 &ltc_ecc_fp_mul2add, 453 &ltc_ecc_fp_mul2add,
454 #else 454 #else
455 &ltc_ecc_mul2add, 455 &ltc_ecc_mul2add,
456 #endif /* MECC_FP */ 456 #endif /* LTC_MECC_FP */
457 #else 457 #else
458 NULL, 458 NULL,
459 #endif /* LTC_ECC_SHAMIR */ 459 #endif /* LTC_ECC_SHAMIR */
460 #else 460 #else
461 NULL, NULL, NULL, NULL, NULL 461 NULL, NULL, NULL, NULL, NULL
462 #endif /* MECC */ 462 #endif /* LTC_MECC */
463 463
464 #ifdef MRSA 464 #ifdef LTC_MRSA
465 &rsa_make_key, 465 &rsa_make_key,
466 &rsa_exptmod, 466 &rsa_exptmod,
467 #else 467 #else
468 NULL, NULL 468 NULL, NULL
469 #endif 469 #endif
471 }; 471 };
472 472
473 473
474 #endif 474 #endif
475 475
476 /* $Source: /cvs/libtom/libtomcrypt/src/math/gmp_desc.c,v $ */ 476 /* $Source$ */
477 /* $Revision: 1.14 $ */ 477 /* $Revision$ */
478 /* $Date: 2006/12/03 00:39:56 $ */ 478 /* $Date$ */