Mercurial > dropbear
comparison dropbearkey.c @ 640:76097ec1a29a dropbear-tfm
- Bring in original tomsfastmath patch against 0.52 from Peter Turczak
in 2008
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 21 Nov 2011 19:19:57 +0800 |
parents | e430a26064ee |
children | 2b1bb792cd4d |
comparison
equal
deleted
inserted
replaced
518:ce104c8b0be1 | 640:76097ec1a29a |
---|---|
22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | 22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
23 * SOFTWARE. */ | 23 * SOFTWARE. */ |
24 | 24 |
25 /* The format of the keyfiles is basically a raw dump of the buffer. Data types | 25 /* The format of the keyfiles is basically a raw dump of the buffer. Data types |
26 * are specified in the transport draft - string is a 32-bit len then the | 26 * are specified in the transport draft - string is a 32-bit len then the |
27 * non-null-terminated string, mp_int is a 32-bit len then the bignum data. | 27 * non-null-terminated string, fp_int is a 32-bit len then the bignum data. |
28 * The actual functions are buf_put_rsa_priv_key() and buf_put_dss_priv_key() | 28 * The actual functions are buf_put_rsa_priv_key() and buf_put_dss_priv_key() |
29 | 29 |
30 * RSA: | 30 * RSA: |
31 * string "ssh-rsa" | 31 * string "ssh-rsa" |
32 * mp_int e | 32 * fp_int e |
33 * mp_int n | 33 * fp_int n |
34 * mp_int d | 34 * fp_int d |
35 * mp_int p (newer versions only) | 35 * fp_int p (newer versions only) |
36 * mp_int q (newer versions only) | 36 * fp_int q (newer versions only) |
37 * | 37 * |
38 * DSS: | 38 * DSS: |
39 * string "ssh-dss" | 39 * string "ssh-dss" |
40 * mp_int p | 40 * fp_int p |
41 * mp_int q | 41 * fp_int q |
42 * mp_int g | 42 * fp_int g |
43 * mp_int y | 43 * fp_int y |
44 * mp_int x | 44 * fp_int x |
45 * | 45 * |
46 */ | 46 */ |
47 #include "includes.h" | 47 #include "includes.h" |
48 #include "signkey.h" | 48 #include "signkey.h" |
49 #include "buffer.h" | 49 #include "buffer.h" |