From 923d6438f34babecfb53c3925d83afa5178641bd Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Tue, 4 Jun 2013 14:52:36 +0200 Subject: taia: move taia evaluation out of curve. This is not really related to curve functions, so move it out from there. Signed-off-by: Daniel Borkmann --- curve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'curve.c') diff --git a/curve.c b/curve.c index b7d5b4f..e45c529 100644 --- a/curve.c +++ b/curve.c @@ -254,7 +254,7 @@ ssize_t curve25519_decode(struct curve25519_struct *curve, struct curve25519_pro } taia_unpack(chipertext + crypto_box_boxzerobytes - NONCE_LENGTH, &packet_taia); - if (is_good_taia(arrival_taia, &packet_taia) == 0) { + if (taia_looks_good(arrival_taia, &packet_taia) == 0) { syslog(LOG_ERR, "Bad packet time! Dropping connection!\n"); done = 0; goto out; -- cgit v1.2.3-54-g00ecf