comparison common-kex.c @ 1461:fb90a5ba84e0

Merge pull request #49 from fperrad/20170812_lint Some linting, const parameters
author Matt Johnston <matt@ucc.asn.au>
date Thu, 25 Jan 2018 21:55:25 +0800
parents 06d52bcb8094
children 5916af64acd4
comparison
equal deleted inserted replaced
1454:ef310db5ccec 1461:fb90a5ba84e0
712 { 712 {
713 m_burn(param->priv, CURVE25519_LEN); 713 m_burn(param->priv, CURVE25519_LEN);
714 m_free(param); 714 m_free(param);
715 } 715 }
716 716
717 void kexcurve25519_comb_key(struct kex_curve25519_param *param, buffer *buf_pub_them, 717 void kexcurve25519_comb_key(const struct kex_curve25519_param *param, const buffer *buf_pub_them,
718 sign_key *hostkey) { 718 sign_key *hostkey) {
719 unsigned char out[CURVE25519_LEN]; 719 unsigned char out[CURVE25519_LEN];
720 const unsigned char* Q_C = NULL; 720 const unsigned char* Q_C = NULL;
721 const unsigned char* Q_S = NULL; 721 const unsigned char* Q_S = NULL;
722 char zeroes[CURVE25519_LEN] = {0}; 722 char zeroes[CURVE25519_LEN] = {0};