#include <stdlib.h>
#include <string.h>
-#include <stdio.h> /* FIXME */
-#include <stdarg.h> /* FIXME */
-#include <windows.h> /* FIXME */
-#include "putty.h" /* FIXME */
-
#include "ssh.h"
unsigned short bnZero[1] = { 0 };
b = (w+7)/8; /* bits -> bytes */
w = (w+15)/16; /* bits -> words */
+ if (!result) /* just return length */
+ return b + 2;
+
bn = newbn(w);
for (i=1; i<=w; i++)