Research and prototype algorithmic optimizations for elliptic curve and lattice based cryptography design security and privacy protocols for automotive iot