Updated to match Cryptolitejs.