OfficeIMO.Provenance.C2pa 3.4.0

Prefix Reserved
dotnet add package OfficeIMO.Provenance.C2pa --version 3.4.0
                    
NuGet\Install-Package OfficeIMO.Provenance.C2pa -Version 3.4.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OfficeIMO.Provenance.C2pa" Version="3.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OfficeIMO.Provenance.C2pa" Version="3.4.0" />
                    
Directory.Packages.props
<PackageReference Include="OfficeIMO.Provenance.C2pa" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OfficeIMO.Provenance.C2pa --version 3.4.0
                    
#r "nuget: OfficeIMO.Provenance.C2pa, 3.4.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package OfficeIMO.Provenance.C2pa@3.4.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OfficeIMO.Provenance.C2pa&version=3.4.0
                    
Install as a Cake Addin
#tool nuget:?package=OfficeIMO.Provenance.C2pa&version=3.4.0
                    
Install as a Cake Tool

OfficeIMO.Provenance.C2pa

OfficeIMO.Provenance.C2pa is the optional process adapter between OfficeIMO's provider-neutral provenance contracts and the official c2patool command-line application. Install it only in applications that need cryptographic C2PA Content Credential verification or signing.

dotnet add package OfficeIMO.Provenance.C2pa

Structural inspection, lifecycle policy, claims, Unicode evidence, and carrier removal remain in OfficeIMO.Core and the format packages. This package does not depend on OfficeIMO.Security, and ordinary OfficeIMO format packages do not depend on this package.

Supply c2patool explicitly

OfficeIMO does not download, bundle, or auto-discover c2patool. Install a supported build from the official c2pa-rs releases, then supply either an absolute executable path or a command name already available through your application's controlled PATH:

On Unix hosts, the adapter also requires setsid so the external tool and any descendants remain in a process group that OfficeIMO can terminate on timeout or disposal. Linux distributions normally provide it through util-linux. On macOS, install the Homebrew util-linux formula (brew install util-linux); the adapter recognizes its standard Apple Silicon and Intel keg paths even when the formula is not linked into PATH. If setsid is unavailable, verification and signing fail closed without launching c2patool.

using OfficeIMO.Provenance;
using OfficeIMO.Provenance.C2pa;

IOfficeProvenanceVerifier verifier = new C2paToolProvenanceVerifier("c2patool");
OfficeProvenanceVerificationResult result = verifier.Verify("image.jpg");

Console.WriteLine(result.Status);
foreach (string finding in result.Findings) {
    Console.WriteLine(finding);
}

Use an absolute path in services, build agents, and other controlled deployments where executable selection must not depend on the ambient environment.

Remote manifest and OCSP fetching are disabled by default. Local trust material can be supplied without enabling network access:

var options = new OfficeProvenanceVerificationOptions {
    TrustAnchorsPath = "/etc/my-app/c2pa-trust-anchors.pem",
    AllowedListPath = "/etc/my-app/c2pa-allowed-list.pem",
    IncludeRawReport = false
};

OfficeProvenanceVerificationResult result = verifier.Verify("image.jpg", options);

Valid means the configured provider found a manifest, verified it, and produced no validation findings. Untrusted distinguishes trust-list failures from content or signature failures reported as Invalid. NotPresent, ProviderUnavailable, Indeterminate, and Error remain separate outcomes. Provider output is bounded and omitted unless IncludeRawReport is enabled.

Production signing

The signer requires c2patool 0.27.0 or newer. Keep private keys outside OfficeIMO and c2patool; supply a signer subprocess backed by your HSM, KMS, key vault, or signing service:

IOfficeProvenanceSigner signer = new C2paToolProvenanceSigner(
    executablePath: "/opt/c2pa/c2patool",
    signerPath: "/opt/my-app/c2pa-kms-signer --profile production");

var claim = new OfficeProvenanceClaim(
    $"OfficeIMO/{typeof(OfficeProvenanceClaim).Assembly.GetName().Version}",
    new[] {
        new OfficeProvenanceAction(OfficeProvenanceActionKind.Opened),
        new OfficeProvenanceAction(
            OfficeProvenanceActionKind.Edited,
            OfficeProvenanceDigitalSourceKind.CompositeWithTrainedAlgorithmicMedia)
    },
    title: "Edited image");

OfficeProvenanceSigningResult signed = signer.Sign(
    new OfficeProvenanceSigningRequest(
        inputPath: "edited.png",
        outputPath: "signed.png",
        claim: claim,
        parentPath: "original.png"));

The adapter writes manifests and provider output to temporary staging paths, requires an embedded C2PA manifest before commit, and atomically installs the finished asset. A provider error or partial output cannot replace the source or an existing destination. CreateWithBuiltInTestCredentials(...) is an explicit development-only path; its successful results carry a warning that they are not production credentials.

New claims begin with a concrete Created intent. Parent-derived claims begin with Opened, and c2patool creates the matching parentOf ingredient reference. Later actions use c2pa.actions.v2. The adapter does not emit a watermark action because those actions require matching soft-binding assertions that OfficeIMO does not currently create.

Dependency footprint

  • NuGet: OfficeIMO.Core and System.Text.Json.
  • Runtime tool: a host-supplied official c2patool executable; never downloaded or bundled by this package.
  • Not required by: OfficeIMO.Security, OfficeIMO.Word, OfficeIMO.Pdf, OfficeIMO.Email, or other format packages.
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.4.0 0 9/6/2026
3.3.0 70 9/2/2026
3.2.7 83 8/29/2026
3.2.6 95 8/22/2026
3.2.5 95 8/21/2026