对称与非对称密钥
Symmetric or Asymmetric Key(s).
The concept of symmetry and asymmetry refers to the keys distribution in 2 parties (sender and receiver). If the information is encoded and decoded with the same key
Private Key Encryption and MAC
Private key encryption scheme and message authentication code (MAC) are symmetric primitives. In fact, private key encryption scheme is also called symmetric encryption.
Private key encryption: Alice encrypts the message
Message authentication code (MAC): Alice authenticates
Message Authentication Code (MAC) provides integrity, which ensures that the information is not tampered during transmission.
Alice applies the MAC algorithm to
Public Key Encryption and Digital Signature
Public key encryption scheme and digital signature are asymmetric primitives. Public key encryption scheme is also called asymmetric encryption.
In asymmetric primitives, the key-generation algorithm
Public key encryption: Alice encrypts the message
Digital signature: Alice signs
Note that in public key encryption, receriver Bob holds the private key; while in digital signature, sender Alice holds the private key.
MAC Versus Digital Signature
MAC and digital signature both provide integrity. However, the asymmetry of digital signature guarentees more than that.
-
Public Verifiability
A third party not directly participating in the protocol should also be able to verify the generated values. It is based on the publicity of
. MAC cannot achieve this since must be kept secret for the defence of a malicious third party. -
Transferability
-
Non-repudiation
Once the signer signs a message
, he can NOT deny having done so afterwards. It is based on the secrecy of : is only known by signer and is paired up with . Anyone with could convince that signer holds with zero-knowledge of .