comparison common-session.c @ 502:43bbe17d6ba0

- Add Counter Mode support
author Matt Johnston <matt@ucc.asn.au>
date Mon, 29 Sep 2008 13:53:31 +0000
parents 738313e73b1c
children a3748e54273c
comparison
equal deleted inserted replaced
501:d58c478bd399 502:43bbe17d6ba0
94 /* set all the algos to none */ 94 /* set all the algos to none */
95 ses.keys = (struct key_context*)m_malloc(sizeof(struct key_context)); 95 ses.keys = (struct key_context*)m_malloc(sizeof(struct key_context));
96 ses.newkeys = NULL; 96 ses.newkeys = NULL;
97 ses.keys->recv_algo_crypt = &dropbear_nocipher; 97 ses.keys->recv_algo_crypt = &dropbear_nocipher;
98 ses.keys->trans_algo_crypt = &dropbear_nocipher; 98 ses.keys->trans_algo_crypt = &dropbear_nocipher;
99 ses.keys->recv_crypt_mode = &dropbear_mode_none;
100 ses.keys->trans_crypt_mode = &dropbear_mode_none;
99 101
100 ses.keys->recv_algo_mac = &dropbear_nohash; 102 ses.keys->recv_algo_mac = &dropbear_nohash;
101 ses.keys->trans_algo_mac = &dropbear_nohash; 103 ses.keys->trans_algo_mac = &dropbear_nohash;
102 104
103 ses.keys->algo_kex = -1; 105 ses.keys->algo_kex = -1;