diff --git a/CoseSign1/DetachedSignatureFactory.cs b/CoseSign1/DetachedSignatureFactory.cs
index c73ca84f..13a10b14 100644
--- a/CoseSign1/DetachedSignatureFactory.cs
+++ b/CoseSign1/DetachedSignatureFactory.cs
@@ -85,6 +85,7 @@ public CoseSign1Message CreateDetachedSignature(
/// A media type string following https://datatracker.ietf.org/doc/html/rfc6838.
/// A CoseSign1Message which can be used as a detached signature validation of the payload.
/// The contentType parameter was empty or null
+ /// Hash size does not correspond to any known hash algorithms
public CoseSign1Message CreateDetachedSignatureFromHash(
ReadOnlyMemory rawHash,
ICoseSigningKeyProvider signingKeyProvider,
@@ -121,6 +122,7 @@ public Task CreateDetachedSignatureAsync(
/// A media type string following https://datatracker.ietf.org/doc/html/rfc6838.
/// A CoseSign1Message which can be used as a detached signature validation of the payload.
/// The contentType parameter was empty or null
+ /// Hash size does not correspond to any known hash algorithms
public Task CreateDetachedSignatureFromHashAsync(
ReadOnlyMemory rawHash,
ICoseSigningKeyProvider signingKeyProvider,
@@ -157,6 +159,7 @@ public CoseSign1Message CreateDetachedSignature(
/// A media type string following https://datatracker.ietf.org/doc/html/rfc6838.
/// A CoseSign1Message which can be used as a detached signature validation of the payload.
/// The contentType parameter was empty or null
+ /// Hash size does not correspond to any known hash algorithms
public CoseSign1Message CreateDetachedSignatureFromHash(
Stream rawHash,
ICoseSigningKeyProvider signingKeyProvider,
@@ -193,6 +196,7 @@ public Task CreateDetachedSignatureAsync(
/// A media type string following https://datatracker.ietf.org/doc/html/rfc6838.
/// A CoseSign1Message which can be used as a detached signature validation of the payload.
/// The contentType parameter was empty or null
+ /// Hash size does not correspond to any known hash algorithms
public Task CreateDetachedSignatureFromHashAsync(
Stream rawHash,
ICoseSigningKeyProvider signingKeyProvider,
@@ -229,6 +233,7 @@ public ReadOnlyMemory CreateDetachedSignatureBytes(
/// A media type string following https://datatracker.ietf.org/doc/html/rfc6838.
/// A byte[] representation of a CoseSign1Message which can be used as a detached signature validation of the payload.
/// The contentType parameter was empty or null
+ /// Hash size does not correspond to any known hash algorithms
public ReadOnlyMemory CreateDetachedSignatureBytesFromHash(
ReadOnlyMemory rawHash,
ICoseSigningKeyProvider signingKeyProvider,
@@ -265,6 +270,7 @@ public Task> CreateDetachedSignatureBytesAsync(
/// A media type string following https://datatracker.ietf.org/doc/html/rfc6838.
/// A Task which when completed returns a byte[] representation of a CoseSign1Message which can be used as a detached signature validation of the payload.
/// The contentType parameter was empty or null
+ /// Hash size does not correspond to any known hash algorithms
public Task> CreateDetachedSignatureBytesFromHashAsync(
ReadOnlyMemory rawHash,
ICoseSigningKeyProvider signingKeyProvider,
@@ -301,6 +307,7 @@ public ReadOnlyMemory CreateDetachedSignatureBytes(
/// A media type string following https://datatracker.ietf.org/doc/html/rfc6838.
/// A byte[] representation of a CoseSign1Message which can be used as a detached signature validation of the payload.
/// The contentType parameter was empty or null
+ /// Hash size does not correspond to any known hash algorithms
public ReadOnlyMemory CreateDetachedSignatureBytesFromHash(
Stream rawHash,
ICoseSigningKeyProvider signingKeyProvider,
@@ -337,6 +344,7 @@ public Task> CreateDetachedSignatureBytesAsync(
/// A media type string following https://datatracker.ietf.org/doc/html/rfc6838.
/// A Task which when completed returns a byte[] representation of a CoseSign1Message which can be used as a detached signature validation of the payload.
/// The contentType parameter was empty or null
+ /// Hash size does not correspond to any known hash algorithms
public Task> CreateDetachedSignatureBytesFromHashAsync(
Stream rawHash,
ICoseSigningKeyProvider signingKeyProvider,
@@ -356,8 +364,10 @@ public Task> CreateDetachedSignatureBytesFromHashAsync(
/// The user specified content type.
/// If not null, then Stream API's on the CoseSign1MessageFactory are used.
/// If streamPayload is null then this must be specified and must not be null and will use the Byte API's on the CoseSign1MesssageFactory
+ /// True if the payload represents the raw hash
/// Either a CoseSign1Message or a ReadOnlyMemory{byte} representing the CoseSign1Message object.
/// The contentType parameter was empty or null
+ /// payloadHashed is set, but hash size does not correspond to any known hash algorithms
private object CreateDetachedSignatureWithChecksInternal(
bool returnBytes,
ICoseSigningKeyProvider signingKeyProvider,