Skip to content

Conversation

@isoos
Copy link
Collaborator

@isoos isoos commented Jul 5, 2022

  • Allow publishing from github #5769
  • Only the RSA algorithm is recognized/implemented, other algorithms will not be verified.
  • Uses the ASN.1 encoder to create a PEM public key, and openssl to verify the text input + signature with the key.

@isoos isoos requested a review from sigurdm July 5, 2022 15:39
return false;
}
return await verifyTextWithRsaSignature(
input: input,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it have made more sense for verifyTextWithRsaSignature to take a Uint8list - i guess the thing is base64-encoded and thus it should not matter much - it just seems fragile to decode and reencode when you verify a signature...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

verifyTextWithRsaSignature is using openssl, and there is no further encoding: the input will be written into a file, and the file is being verified. We could use Uint8List too, but here the input is really the concatenated token parts, without further coding with base64... I think we should keep it like this for now.

@sigurdm sigurdm requested a review from jonasfj July 7, 2022 10:02
isoos and others added 2 commits July 7, 2022 13:48
@isoos isoos merged commit 16926f4 into dart-lang:master Jul 7, 2022
@isoos isoos deleted the jwk-signature branch July 7, 2022 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants