Reconfigurable physical unclonable cryptographic primitives based on current-induced nanomagnets switching