comparison keyimport.c @ 848:6c69e7df3621 ecc

curve25519
author Matt Johnston <matt@ucc.asn.au>
date Fri, 08 Nov 2013 23:11:43 +0800
parents 774ad9b112ef
children 754d7bee1068
comparison
equal deleted inserted replaced
845:774ad9b112ef 848:6c69e7df3621
1016 parameters [0] ECDomainParameters {{ SECGCurveNames }} OPTIONAL, 1016 parameters [0] ECDomainParameters {{ SECGCurveNames }} OPTIONAL,
1017 publicKey [1] BIT STRING OPTIONAL 1017 publicKey [1] BIT STRING OPTIONAL
1018 } 1018 }
1019 */ 1019 */
1020 buffer *seq_buf = buf_new(400); 1020 buffer *seq_buf = buf_new(400);
1021 ecc_key **eck = signkey_ecc_key_ptr(key, key->type); 1021 ecc_key **eck = (ecc_key**)signkey_key_ptr(key, key->type);
1022 const unsigned long curve_size = (*eck)->dp->size; 1022 const unsigned long curve_size = (*eck)->dp->size;
1023 int curve_oid_len = 0; 1023 int curve_oid_len = 0;
1024 const void* curve_oid = NULL; 1024 const void* curve_oid = NULL;
1025 unsigned long pubkey_size = 2*curve_size+1; 1025 unsigned long pubkey_size = 2*curve_size+1;
1026 1026