added javadoc to crypto library