Im trying to find a Browser (preferably using crypto-js) analogue to this native nodejs function - crypto.sign(algorithm, data, key[, callback]).
I need that function to be able to calculate and return the signature for data using the given private key and algorithm (SHA256 in mycase).