sm: move SM common crypto procedures to the dedicated library

rename 'sm' source directory