comparison libtomcrypt/src/pk/ecc/ltc_ecc_points.c @ 1511:5916af64acd4 fuzz

merge from main
author Matt Johnston <matt@ucc.asn.au>
date Sat, 17 Feb 2018 19:29:51 +0800
parents 6dba84798cd5
children
comparison
equal deleted inserted replaced
1457:32f990cc96b1 1511:5916af64acd4
3 * LibTomCrypt is a library that provides various cryptographic 3 * LibTomCrypt is a library that provides various cryptographic
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 *
9 * Tom St Denis, [email protected], http://libtom.org
10 */ 8 */
11 9
12 /* Implements ECC over Z/pZ for curve y^2 = x^3 - 3x + b 10 /* Implements ECC over Z/pZ for curve y^2 = x^3 - 3x + b
13 * 11 *
14 * All curves taken from NIST recommendation paper of July 1999 12 * All curves taken from NIST recommendation paper of July 1999
17 #include "tomcrypt.h" 15 #include "tomcrypt.h"
18 16
19 /** 17 /**
20 @file ltc_ecc_points.c 18 @file ltc_ecc_points.c
21 ECC Crypto, Tom St Denis 19 ECC Crypto, Tom St Denis
22 */ 20 */
23 21
24 #ifdef LTC_MECC 22 #ifdef LTC_MECC
25 23
26 /** 24 /**
27 Allocate a new ECC point 25 Allocate a new ECC point
28 @return A newly allocated point or NULL on error 26 @return A newly allocated point or NULL on error
29 */ 27 */
30 ecc_point *ltc_ecc_new_point(void) 28 ecc_point *ltc_ecc_new_point(void)
31 { 29 {
32 ecc_point *p; 30 ecc_point *p;
33 p = XCALLOC(1, sizeof(*p)); 31 p = XCALLOC(1, sizeof(*p));
52 XFREE(p); 50 XFREE(p);
53 } 51 }
54 } 52 }
55 53
56 #endif 54 #endif
57 /* $Source$ */ 55 /* ref: $Format:%D$ */
58 /* $Revision$ */ 56 /* git commit: $Format:%H$ */
59 /* $Date$ */ 57 /* commit time: $Format:%ai$ */
60 58