Your mission
Return the smallest key size on the server's list.
today's brief
May 2015. Logjam showed that a server still carrying 1990s export grade Diffie-Hellman could be talked down to a 512 bit group by anyone sitting in the middle. Those ciphers existed because of a US export rule that had been dead since 2000. Nobody swept them off the menu. A server is only as strong as the weakest thing it will still agree to.
See it in action
weakest({2048,1024,512}, 3)512weakest({2048,2048}, 2)2048weakest({}, 0)-1
Your checklist
Constraints
- Expected file
logjam.c- Allowed functions
- None. Write every helper yourself.
