12345678910111213141516171819202122232425 |
- #!/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
- # <http://cryptowars2011.forumfree.it/?t=58954862>
- 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 <p, q> and the public exponent."
- exit 1
- fi
|