shithub: drawterm-fdroid

Download patch

ref: f5683254d71662c2dc536dba1d2f6fbf5bf10af3
parent: 24964a29696f5463e947e6c6716e4f5327c2b50d
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Feb 5 00:18:45 EST 2017

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

--- a/libsec/rsagen.c
+++ b/libsec/rsagen.c
@@ -39,6 +39,8 @@
 			break;
 		mpadd(mpone, e, e);
 	}
+	if(d->sign < 0)
+		mpadd(phi, d, d);
 	mpfree(t1);
 	mpfree(t2);