Revert "[CryptoModule] remove (char *) casting"
This reverts commit 411a2456aa6bbd92dd3cfb166a97bb9cfde933d8.