[java] add simple tests for digital signatures
cryptofunc (js): add digital signatures