Symmetric Cryptographic Accelerator Hard IP User Guide
ID
714305
Date
11/28/2025
Public
4.1. Installing and Licensing IP Cores
4.2. Specifying the IP Parameters and Options
4.3. Generated File Structure
4.4. Symmetric Cryptographic Accelerator Hard IP Flow
4.5. Dynamically Disabling the SM4 Capability
4.6. Error Handling
4.7. Error Reporting
4.8. Resetting the IP
4.9. Channel Definition and Allocation
4.10. Byte Ordering
4.11. AXI-ST Single Packet Mode
4.12. AXI-ST Multiple Packet Mode
5.5.2. GCM Depadding
This block implements the idle byte depadding to the AAD, Bypass, Text, and MAC fields, which are 16 bytes aligned if you turn on Enable Gen. GCM egress depadding in the IP parameter editor. You must send in the real AAD and Bypass field lengths, regardless of whether the GCM padding on ingress is enabled or disabled. If the GCM padding on ingress is disabled, the AAD and Bypass fields are 16 byte-aligned, and the IP routes the real AAD and Bypass lengths to Crypto egress logic for depadding.
The egress decryption MAC is dropped if you also turn on Drop the MAC on applicable profile decryption in the IP parameter editor.
If you do not turn on Enable Gen. GCM egress depaddingin the IP parameter editor, the depadding logic within the IP is optimized away to save device resources. In this case, the egress data still passes through the ICV and MAC packing blocks.
Figure 16. GCM Depadding
Note: The MAC(16B) in the dash-line box indicates that the MAC is removed from the decryption packets if you turn on Drop the MAC on applicable profile decryptionin the IP parameter editor.