Modifying ASiC containers
To add or remove files to/from an already signed ASiC container, first create a new TElASiCContainer object, and use its Open() method to open the existing container. Then use AddCAdESSignature, AddXAdESSignature, and AddManifest methods as in the new container.
You can use the inherited Add method to add entries to the container. However, direct removal of certain entries (signatures and manifests) is prohibited, as it can cause inconsistency and lead to crash. Use DeleteSignature / DeleteAllSignatures and DeleteManifest methods in such case.