Finished the base crypto interface functions. Added constants file.

Need to move to build system soon. Need to add DSA support once it is ported.