mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-03-06 09:01:29 +00:00
Add support for creating critical signature subpackets (#1599)
Assign most signature subpacket types a criticality based on whether failing to interpret their meaning would negatively impact security. For Notation Data subpackets, let the user indicate their criticality using the `signatureNotations[*].critical` property.
This commit is contained in:
@@ -138,7 +138,8 @@ import {
|
||||
const textSignedWithNotations: string = await sign({ signingKeys: privateKeys, message: textMessage, signatureNotations: [{
|
||||
name: 'test@example.org',
|
||||
value: new TextEncoder().encode('test'),
|
||||
humanReadable: true
|
||||
humanReadable: true,
|
||||
critical: false
|
||||
}] });
|
||||
expect(textSignedWithNotations).to.include('-----BEGIN PGP MESSAGE-----');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user