[sr-dev] git:master:70fc8569: crypto: set flags to encrypt/decrypt and functions for direction