New in v3.0:
Perform C14N transformation of XML document (memory-to-memory, deprecated).
Public Function sc14nBytes2Bytes ( _ lpDataIn() As Byte, _ nDataLen As Long, _ Optional szNameOrId As String = "", _ Optional szParams As String = "", _ Optional nOptions As Long = 0 _ ) As Byte()
PrefixList
parameter (exclusive C14n only). Use ""
or vbNullString
to ignore.SC14N_TRAN_ENTIRE
to transform the entire document (default)SC14N_TRAN_OMITBYTAG
to exclude the element with tag name specified in szNameOrId
SC14N_TRAN_SUBSETBYTAG
to transform subset with tag name specified in szNameOrId
SC14N_TRAN_OMITBYID
to exclude the element with Id specified in szNameOrId
SC14N_TRAN_SUBSETBYID
to transform subset with Id specified in szNameOrId
Or
operator to combine:SC14N_METHOD_EXCLUSIVE
to use exclusive c14n method (default is inclusive c14n method)SC14N_METHOD_WITHCOMMENTS
to include comments in c14n form (#WithComments
)SC14N_OPT_FLATTEN
to flatten the XMLPerform C14N transformation of XML document (memory-to-memory).
Public Function sc14nBytes2Bytes2 ( _ lpDataIn() As Byte, _ Optional szNameOrId As String = "", _ Optional eTran As Tran = Tran.Entire, _ Optional eTranMethod As TranMethod = TranMethod.Inclusive, _ Optional szExclParams As String = "", _ Optional eAdvOpts As AdvOpts = AdvOpts.None _ ) As Byte()
Tran.Entire
).TranMethod.Inclusive
).PrefixList
parameter for exclusive c14n.Compute digest value of C14N transformation (memory-to-digest, deprecated).
Public Function sc14nBytes2Digest ( _ lpDataIn() As Byte, _ nDataLen As Long, _ Optional szNameOrId As String = "", _ Optional szParams As String = "", _ Optional nOptions As Long = 0 _ ) As String
PrefixList
parameter (exclusive C14n only). Use ""
or vbNullString
to ignore.SC14N_TRAN_ENTIRE
to transform the entire document (default)SC14N_TRAN_OMITBYTAG
to exclude the element with tag name specified in szNameOrId
SC14N_TRAN_SUBSETBYTAG
to transform subset with tag name specified in szNameOrId
SC14N_TRAN_OMITBYID
to exclude the element with Id specified in szNameOrId
SC14N_TRAN_SUBSETBYID
to transform subset with Id specified in szNameOrId
SC14N_DIG_SHA1
to use SHA-1 algorithm (default) orSC14N_DIG_SHA256
to use SHA-256.SC14N_DIG_SHA384
to use SHA-384.SC14N_DIG_SHA512
to use SHA-512.Or
operator to combine:SC14N_METHOD_EXCLUSIVE
to use exclusive c14n method (default is inclusive c14n method)SC14N_METHOD_WITHCOMMENTS
to include comments in c14n form (#WithComments
)SC14N_OPT_FLATTEN
to flatten the XMLCompute digest value of C14N transformation (memory-to-digest).
Public Function sc14nBytes2Digest2 ( _ lpDataIn() As Byte, _ Optional szNameOrId As String = "", _ Optional eTran As Tran = Tran.Entire, _ Optional eDigAlg As DigAlg = DigAlg.Default, _ Optional eTranMethod As TranMethod = TranMethod.Inclusive, _ Optional szExclParams As String = "", _ Optional eAdvOpts As AdvOpts = AdvOpts.None _ ) As String
Tran.Entire
).DigAlg.Sha1
).TranMethod.Inclusive
).PrefixList
parameter for exclusive c14n.Get length of byte array.
Public Function sc14nBytesLength ( _ lpBytes() As Byte _ ) As Long
Look up description for error code.
Public Function sc14nErrErrorLookup ( _ nErrCode As Long _ ) As String
Retrieve the last error message (if available).
Public Function sc14nErrLastError() As String
Perform C14N transformation of XML document (file-to-memory, deprecated).
Public Function sc14nFile2Bytes ( _ szInputFile As String, _ Optional szNameOrId As String = "", _ Optional szParams As String = "", _ Optional nOptions As Long = 0 _ ) As Byte()
PrefixList
parameter (exclusive C14n only). Use ""
or vbNullString
to ignore.SC14N_TRAN_ENTIRE
to transform the entire document (default)SC14N_TRAN_OMITBYTAG
to exclude the element with tag name specified in szNameOrId
SC14N_TRAN_SUBSETBYTAG
to transform subset with tag name specified in szNameOrId
SC14N_TRAN_OMITBYID
to exclude the element with Id specified in szNameOrId
SC14N_TRAN_SUBSETBYID
to transform subset with Id specified in szNameOrId
Or
operator to combine:SC14N_METHOD_EXCLUSIVE
to use exclusive c14n method (default is inclusive c14n method)SC14N_METHOD_WITHCOMMENTS
to include comments in c14n form (#WithComments
)SC14N_OPT_FLATTEN
to flatten the XMLPerform C14N transformation of XML document (file-to-memory).
Public Function sc14nFile2Bytes2 ( _ szInputFile As String, _ Optional szNameOrId As String = "", _ Optional eTran As Tran = Tran.Entire, _ Optional eTranMethod As TranMethod = TranMethod.Inclusive, _ Optional szExclParams As String = "", _ Optional eAdvOpts As AdvOpts = AdvOpts.None _ ) As Byte()
Tran.Entire
).TranMethod.Inclusive
).PrefixList
parameter for exclusive c14n.Compute digest value of C14N transformation (file-to-digest, deprecated).
Public Function sc14nFile2Digest ( _ szInputFile As String, _ Optional szNameOrId As String = "", _ Optional szParams As String = "", _ Optional nOptions As Long = 0 _ ) As String
PrefixList
parameter (exclusive C14n only). Use ""
or vbNullString
to ignore.SC14N_TRAN_ENTIRE
to transform the entire document (default)SC14N_TRAN_OMITBYTAG
to exclude the element with tag name specified in szNameOrId
SC14N_TRAN_SUBSETBYTAG
to transform subset with tag name specified in szNameOrId
SC14N_TRAN_OMITBYID
to exclude the element with Id specified in szNameOrId
SC14N_TRAN_SUBSETBYID
to transform subset with Id specified in szNameOrId
SC14N_DIG_SHA1
to use SHA-1 algorithm (default) orSC14N_DIG_SHA256
to use SHA-256.SC14N_DIG_SHA384
to use SHA-384.SC14N_DIG_SHA512
to use SHA-512.Or
operator to combine:SC14N_METHOD_EXCLUSIVE
to use exclusive c14n method (default is inclusive c14n method)SC14N_METHOD_WITHCOMMENTS
to include comments in c14n form (#WithComments
)SC14N_OPT_FLATTEN
to flatten the XMLCompute digest value of C14N transformation (file-to-digest).
Public Function sc14nFile2Digest2 ( _ szInputFile As String, _ Optional szNameOrId As String = "", _ Optional eTran As Tran = Tran.Entire, _ Optional eDigAlg As DigAlg = DigAlg.Default, _ Optional eTranMethod As TranMethod = TranMethod.Inclusive, _ Optional szExclParams As String = "", _ Optional eAdvOpts As AdvOpts = AdvOpts.None _ ) As String
Tran.Entire
).DigAlg.Sha1
).TranMethod.Inclusive
).PrefixList
parameter for exclusive c14n.Perform C14N transformation of XML document (file-to-file, deprecated).
Public Function sc14nFile2File ( _ szOutputFile As String, _ szInputFile As String, _ Optional szNameOrId As String = "", _ Optional szParams As String = "", _ Optional nOptions As Long = 0 _ ) As Long
PrefixList
parameter (exclusive C14n only). Use ""
or vbNullString
to ignore.SC14N_TRAN_ENTIRE
to transform the entire document (default)SC14N_TRAN_OMITBYTAG
to exclude the element with tag name specified in szNameOrId
SC14N_TRAN_SUBSETBYTAG
to transform subset with tag name specified in szNameOrId
SC14N_TRAN_OMITBYID
to exclude the element with Id specified in szNameOrId
SC14N_TRAN_SUBSETBYID
to transform subset with Id specified in szNameOrId
Or
operator to combine:SC14N_METHOD_EXCLUSIVE
to use exclusive c14n method (default is inclusive c14n method)SC14N_METHOD_WITHCOMMENTS
to include comments in c14n form (#WithComments
)SC14N_OPT_FLATTEN
to flatten the XMLPerform C14N transformation of XML document (file-to-file).
Public Function sc14nFile2File2 ( _ szOutputFile As String, _ szInputFile As String, _ Optional szNameOrId As String = "", _ Optional eTran As Tran = Tran.Entire, _ Optional eTranMethod As TranMethod = TranMethod.Inclusive, _ Optional szExclParams As String = "", _ Optional eAdvOpts As AdvOpts = AdvOpts.None _ ) As Long
Tran.Entire
).TranMethod.Inclusive
).PrefixList
parameter for exclusive c14n.Get date and time the core DLL module was last compiled.
Public Function sc14nGenCompileTime() As String
Get licence type as a string.
Public Function sc14nGenLicenceType() As String
"D"
= Developer "T"
= Trial.Get full path name of core DLL module.
Public Function sc14nGenModuleName() As String
Get platform for which the core DLL is compiled
Public Function sc14nGenPlatform() As String
Win32
or Win64
.Get version number of core native DLL.
Public Declare Function SC14N_Gen_Version() As Long
Major*10000 + Minor*100 + Release
. For example, version 2.10.3 would return 21003.diSc14n.dll
.]Convert a VBA "Unicode" string to a UTF-8-encoded byte array.
Public Function sc14nUtf8BytesFromString ( _ strInput As String _ ) As Byte()
Convert a byte array containing UTF-8-encoded data to a VBA "Unicode" string.
Public Function sc14nUtf8BytesToString ( _ lpUtf8Array() As Byte _ ) As String
Advanced option flags.
Public Enum AdvOpts
Member name | Description | |
---|---|---|
None | No options. | |
Flatten | Flatten the XML - remove all ignorable whitespace between tags. |
Digest Algorithm.
Public Enum DigAlg
Member name | Description | |
---|---|---|
Default | Use default digest algorithm (SHA-1). | |
Sha1 | Use SHA-1 digest algorithm (default). | |
Sha256 | Use SHA-256 digest algorithm. | |
Sha384 | Use SHA-384 digest algorithm. | |
Sha512 | Use SHA-512 digest algorithm. |
Transformation options to specify the document part to be canonicalized.
Public Enum Tran
Member name | Description | |
---|---|---|
Entire | Transform the entire document. | |
OmitByTag | Omit the element with the given tag name. | |
OmitById | Omit the element with the given Id. | |
SubsetByTag | Transform the subset with the given tag name. | |
SubsetById | Transform the subset with the given Id. |
Transformation methods.
Public Enum TranMethod
Member name | Description | |
---|---|---|
Inclusive | Inclusive C14N without comments from RFC 3076. | |
Exclusive | Exclusive C14N without comments from RFC 3741. | |
InclusiveWithComments | Inclusive C14N with comments from RFC 3076. | |
ExclusiveWithComments | Exclusive C14N with comments from RFC 3741. |
#WithComments
).