How to implement AES GCM 256 bytes with Key & IV but without using the tag in C# 4.7.2 or any .net version

Sanket Joshi 20 Reputation points
2025-01-22T13:13:24.65+00:00

How to implement AES GCM 256 bytes with Key & IV but without using the tag in C# 4.7.2 or any .net version

Developer technologies | .NET | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2025-01-22T14:42:41.3266667+00:00

    Hi @Sanket Joshi , Welcome to Microsoft Q&A,

    Implementing AES-GCM without using an authentication tag ("tag") can introduce security vulnerabilities. The "tag" in AES-GCM is used as an integrity check to ensure that the ciphertext has not been tampered with in transit. Skipping or ignoring the tag means you lose this protection, making the encryption vulnerable to undetected tampering, which violates secure cryptographic practices.

    Tag is an integral part of AES-GCM mode, which is one of the core design principles of AES-GCM. If you do not need integrity verification, you should choose other encryption modes, such as AES-CBC or AES-CTR, but you will need to handle authentication and integrity verification yourself.

    Best Regards,

    Jiale


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.