Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在分组密码模式中,引入了 nonce / iv 和计数器(http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation)。它们也应该作为密钥是私有的吗?为什么?
不,nonce/IV 只是在提供相同输入明文的情况下提供不同的输出。
没有要求对它们保密(但它们通常不应被猜测或重复使用),并且在大多数协议中,例如 TLS >= 1.1,它是在每条加密消息的开头明确发送的。