I was reading "Jeffrey Hoffstein, Jill Pipher, Joseph H. Silverman, An Introduction to Mathematical Cryptography, Second Edition". I understand the basic Diffie-Hellman Key Exchange. Though, I was interested in reading about what is wrong with picking a primitive root/multiplicative generator $g$ with a small order. The book on page 68, second line, says:
For various reasons to be discussed later, it is best if they (Alice and Bob) choose $g$ such that its order in $\mathbb F_p$ is a large prime.
I don't understand this. By definition, a primitive root is an element of $\mathbb F_p$ with order $\varphi(p) = p - 1$. Here $p$ is a large prime and $\varphi$ is the Euler's phi function. So, if the order of $g \mod p$ is $p-1$ how can it ever be a "large prime"?
$ord(g) \mid p-1$ and, as you said, $p-1$ is never prime. Since you want the order of $g$ to be prime, you choose $g$ such that its order is a large prime divisor of $p-1.$ In particular, notice that $g$ can't be a primitive element of $\mathbb{F}_p$.