CryptXML defines the following global limits in the Cryptxml.h header file.
| Constant/value | Description |
|---|---|
| CRYPT_XML_BLOB_MAX 0x7FFFFFF8 | Encoded data cannot exceed 2 gigabytes (GB). |
| CRYPT_XML_ID_MAX 256 | Id length cannot exceed 256 characters. |
| CRYPT_XML_URI_MAX 8*1024 | URI length cannot exceed 8192 characters. |
| CRYPT_XML_SIGNATURES_MAX 16 | The default maximum number of Signature elements per document. This value can be overridden by specifying a new maximum when passing property values as CRYPT_XML_PROPERTY structures. |
| CRYPT_XML_TRANSFORM_MAX 16 | The maximum number of transforms, represented by CRYPT_XML_ALGORITHM structures, per reference, represented by a CRYPT_XML_REFERENCE structure. |
| CRYPT_XML_SIGNATURE_VALUE_MAX 2048 | The maximum length, in bytes, of a CRYPT_XML_SIGNATURE structure. |
| CRYPT_XML_DIGEST_VALUE_MAX 128 | The maximum length, in bytes, of a digest. |
| CRYPT_XML_OBJECTS_MAX 256 | Used internally to specify the maximum number of Object elements allowed per signature. |
| CRYPT_XML_REFERENCES_MAX 0x7FF8 | The maximum number of Reference elements allowed. |
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 7 [desktop apps only] |
| Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
| Header | Cryptxml.h |
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
