#!/bin/sh # N = 11 * 13 # e = 103 # d = 7 ./gen pub -N 143 -e 103 | grep -q PUBLIC if [ $? -ne 0 ] then echo "should accept public exponent and public modulus." exit 1 fi # p='5596931086554284281185296406554840964858720713572245165038844132225787390922\ 226340619345603534845283511495476913891096668345376424228245705523358529690689' q='5596931086554284281185296406554840964858720713572245165038844132225787390922\ 226340619345603534845283511495476913891096668345376424228245705523358529692809' ./gen pub -p $p -q $q -e 29 if [ $? -ne 0 ] then echo "should accept the pair of primes and the public exponent." exit 1 fi