shithub: drawterm

Download patch

ref: f5683254d71662c2dc536dba1d2f6fbf5bf10af3
parent: 24964a29696f5463e947e6c6716e4f5327c2b50d
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Feb 4 23:18:45 EST 2017

libsec: have rsagen() always produce postive !dk to avoid confusion

--- a/libsec/rsagen.c	Sat Feb  4 21:02:48 2017
+++ b/libsec/rsagen.c	Sat Feb  4 23:18:45 2017
@@ -39,6 +39,8 @@
 			break;
 		mpadd(mpone, e, e);
 	}
+	if(d->sign < 0)
+		mpadd(phi, d, d);
 	mpfree(t1);
 	mpfree(t2);