diff options
author | Damien Miller <djm@mindrot.org> | 2010-08-31 22:41:14 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2010-08-31 22:41:14 +1000 |
commit | eb8b60e320cdade9f4c07e2abacfb92c52e01348 (patch) | |
tree | 4e5bc25790566402e5b7ae00cefd2c57e867ef09 /packet.h | |
parent | da108ece6843f1268aa36d7c8ed0030dc53acd15 (diff) |
- djm@cvs.openbsd.org 2010/08/31 11:54:45
[PROTOCOL PROTOCOL.agent PROTOCOL.certkeys auth2-jpake.c authfd.c]
[authfile.c buffer.h dns.c kex.c kex.h key.c key.h monitor.c]
[monitor_wrap.c myproposal.h packet.c packet.h pathnames.h readconf.c]
[ssh-add.1 ssh-add.c ssh-agent.1 ssh-agent.c ssh-keygen.1 ssh-keygen.c]
[ssh-keyscan.1 ssh-keyscan.c ssh-keysign.8 ssh.1 ssh.c ssh2.h]
[ssh_config.5 sshconnect.c sshconnect2.c sshd.8 sshd.c sshd_config.5]
[uuencode.c uuencode.h bufec.c kexecdh.c kexecdhc.c kexecdhs.c ssh-ecdsa.c]
Implement Elliptic Curve Cryptography modes for key exchange (ECDH) and
host/user keys (ECDSA) as specified by RFC5656. ECDH and ECDSA offer
better performance than plain DH and DSA at the same equivalent symmetric
key length, as well as much shorter keys.
Only the mandatory sections of RFC5656 are implemented, specifically the
three REQUIRED curves nistp256, nistp384 and nistp521 and only ECDH and
ECDSA. Point compression (optional in RFC5656 is NOT implemented).
Certificate host and user keys using the new ECDSA key types are supported.
Note that this code has not been tested for interoperability and may be
subject to change.
feedback and ok markus@
Diffstat (limited to 'packet.h')
-rw-r--r-- | packet.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: packet.h,v 1.53 2010/08/31 09:58:37 djm Exp $ */ | 1 | /* $OpenBSD: packet.h,v 1.54 2010/08/31 11:54:45 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -19,6 +19,7 @@ | |||
19 | #include <termios.h> | 19 | #include <termios.h> |
20 | 20 | ||
21 | #include <openssl/bn.h> | 21 | #include <openssl/bn.h> |
22 | #include <openssl/ec.h> | ||
22 | 23 | ||
23 | void packet_set_connection(int, int); | 24 | void packet_set_connection(int, int); |
24 | void packet_set_timeout(int, int); | 25 | void packet_set_timeout(int, int); |
@@ -42,6 +43,7 @@ void packet_put_int(u_int value); | |||
42 | void packet_put_int64(u_int64_t value); | 43 | void packet_put_int64(u_int64_t value); |
43 | void packet_put_bignum(BIGNUM * value); | 44 | void packet_put_bignum(BIGNUM * value); |
44 | void packet_put_bignum2(BIGNUM * value); | 45 | void packet_put_bignum2(BIGNUM * value); |
46 | void packet_put_ecpoint(const EC_GROUP *, const EC_POINT *); | ||
45 | void packet_put_string(const void *buf, u_int len); | 47 | void packet_put_string(const void *buf, u_int len); |
46 | void packet_put_cstring(const char *str); | 48 | void packet_put_cstring(const char *str); |
47 | void packet_put_raw(const void *buf, u_int len); | 49 | void packet_put_raw(const void *buf, u_int len); |
@@ -59,6 +61,7 @@ u_int packet_get_int(void); | |||
59 | u_int64_t packet_get_int64(void); | 61 | u_int64_t packet_get_int64(void); |
60 | void packet_get_bignum(BIGNUM * value); | 62 | void packet_get_bignum(BIGNUM * value); |
61 | void packet_get_bignum2(BIGNUM * value); | 63 | void packet_get_bignum2(BIGNUM * value); |
64 | void packet_get_ecpoint(const EC_GROUP *, EC_POINT *); | ||
62 | void *packet_get_raw(u_int *length_ptr); | 65 | void *packet_get_raw(u_int *length_ptr); |
63 | void *packet_get_string(u_int *length_ptr); | 66 | void *packet_get_string(u_int *length_ptr); |
64 | char *packet_get_cstring(u_int *length_ptr); | 67 | char *packet_get_cstring(u_int *length_ptr); |