密码学基础

https://textbook.cs161.org/crypto/

目的:

  1. Confidentiality 保密性

    严格定义:IND-CPA (Indistinguishability under chosen-plaintext attack) 选择明文攻击下的不可区分性

  2. Integrity and Authentication 完整性,无篡改

常用加密算法:

  1. 对称加密算法

  2. 哈希函数

  3. MAC (Message Authentication Codes) 消息验证码

  4. 公钥加密算法

  5. 数字签名

  6. HashKDF

  7. PBKDF

  8. Random Byte Generator