Changes for #89

Now it does not fetch the PGP signature, because validation was broken anyway.
Instead it validates multipart/signed according to RFC 3156 section 5 and returns details for the signed part:
* BodyPartId
* SigPartId
* MicAlg

So in the future several implementations (GnuPG, OpenPGP.js, etc.) can use the correct data for verification.
This commit is contained in:
the-djmaze 2022-01-17 15:58:23 +01:00
parent ba49d06d1a
commit 8dcd0cf833
14 changed files with 514 additions and 356 deletions

View file

@ -429,27 +429,28 @@ html.rl-no-preview-pane {
}
}
*/
.b-openpgp-control {
}
color: #FA0;
cursor: pointer;
display: block;
opacity: 0.5;
margin: 15px;
.b-openpgp-control {
&:hover {
opacity: 1;
}
color: #FA0;
cursor: pointer;
display: block;
opacity: 0.5;
margin: 15px;
&.success {
color: green;
opacity: 1;
}
&:hover {
opacity: 1;
}
&.error {
color: red;
opacity: 1;
}
&.success {
color: green;
opacity: 1;
}
&.error {
color: red;
opacity: 1;
}
}
}