[os_crypto] change timestamp type to time_t