comparison libtomcrypt/src/pk/ecc/ltc_ecc_points.c @ 1471:6dba84798cd5

Update to libtomcrypt 1.18.1, merged with Dropbear changes
author Matt Johnston <matt@ucc.asn.au>
date Fri, 09 Feb 2018 21:44:05 +0800
parents f849a5ca2efc
children
comparison
equal deleted inserted replaced
1470:8bba51a55704 1471:6dba84798cd5
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