comparison ecc.c @ 755:b07eb3dc23ec ecc

refactor kexdh code a bit, start working on ecdh etc
author Matt Johnston <matt@ucc.asn.au>
date Tue, 26 Mar 2013 01:35:22 +0800
parents
children bf9dc2d9c2b1
comparison
equal deleted inserted replaced
725:49f68a7b7a55 755:b07eb3dc23ec
1 #ifdef DROPBEAR_ECC
2
3 void buf_put_ecc_key_string(buffer *buf, ecc_key *key) {
4 int len = key->dp->size*2 + 1;
5 buf_putint(len);
6 int err = ecc_ansi_x963_export(key, buf_getwriteptr(buf, len), &len);
7 if (err != CRYPT_OK) {
8 dropbear_exit("ECC error");
9 }
10 buf_incrwritepos(buf, len);
11 }
12
13 int buf_get_ecc_key_string(buffer *buf, ecc_key *key) {
14 }
15
16
17 #endif