Get rid of crypto warnings

Get rid of crypto warnings and  R14 compatible