Skip to content

Conversation

@roblabla
Copy link
Contributor

This crate has some checks on signed attributes that are much stricter than what is required by windows. For instance:

  1. Windows accepts having no signed attributes. In this case, it assumes the signature is done over the embedded message data instead of the signed attributes.

  2. Windows accepts a signed-attributes with no content-type attr. In fact, it even accepts one with an invalid/mismatched content-type - it looks like windows completely ignores that attribute.

The only check really necessary is that, if signed attributes are present, it must contain a message-digest attribute.

Fixes #238
Fixes #237

This crate has some checks on signed attributes that are much stricter
than what is required by windows. For instance:

1. Windows accepts having no signed attributes. In this case, it
   assumes the signature is done over the embedded message data instead
   of the signed attributes.

2. Windows accepts a signed-attributes with no content-type attr. In
   fact, it even accepts one with an invalid/mismatched content-type -
   it looks like windows completely ignores that attribute.

The only check really necessary is that, if signed attributes _are_
present, it must contain a message-digest attribute.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant