Merge pull request #3820 from shelib01/regularize_k_restore

Restore tinycrypt implementation of regularize_k()