diff --git a/src/crypt.c b/src/crypt.c index ac09beb..baab383 100644 --- a/src/crypt.c +++ b/src/crypt.c @@ -141,8 +141,8 @@ unsigned char *crypt_hello_get_nonce(const unsigned char *const own_hello, const const unsigned char *first = NULL, *second = NULL; - first = (is_client ? own_hello : remote_hello) + CRYPT_PKEY_HEXLEN+CRYPT_SIGN_LEN; - second = (is_client ? remote_hello : own_hello) + CRYPT_PKEY_HEXLEN+CRYPT_SIGN_LEN; + first = (is_client ? own_hello : remote_hello) + CRYPT_PKEY_HEXLEN; + second = (is_client ? remote_hello : own_hello) + CRYPT_PKEY_HEXLEN; memcpy(nonce, first, CRYPT_NONCEHALF_LEN); memcpy(nonce+CRYPT_NONCEHALF_LEN, second, CRYPT_NONCEHALF_LEN);