Energy Efficient Mixed Signal Circuit Techniques For Machine Learning And Security Applications