crypto: add sync methods, deprecate optional callbacks