Got all of the crypto math for the primary key generation code meeting the unit tests.

Still need to update the sign and verify functions, but code coverage for this is now at almost 59%.