concept same key in category cryptography

appears as: same key
Real-World Cryptography

This is an excerpt from Manning's book Real-World Cryptography.

By the way, symmetric encryption is part of a larger category of cryptography algorithms called symmetric cryptography or secret-key cryptography. This is due to the same key being used by the different functions exposed by the primitive.

  • Message Authentication Codes (MACs) are symmetric cryptographic algorithms that allow one or more parties who share the same key to verify the integrity and authenticity of messages.

    • To verify the authenticity of a message and its associated authentication tag, one can re-compute the authentication tag of the message (and a secret key) and match the two authentication tags. If they differ, the message has been tampered with.
    • Always compare a received authentication tag with a computed one in constant-time.
  • Message Authentication Codes (MACs) are symmetric cryptographic algorithms that allow one or more parties who share the same key to verify the integrity and authenticity of messages.

    Figure 4.4. Alice (top right) can encrypt the plaintext "hello" with the key 0x8866… (abbreviated hexadecimal). The ciphertext produced can be sent to Bob. Bob (bottom right) can decrypt the received ciphertext by using the same key and a decryption algorithm.
    fullflow