fork-openpgpjs/test/general
Wiktor Kwapisiewicz 19e3c344fd
Fix verification of User Attributes
This change corrects verification of certifications over User Attributes
(such as photos).

Before this change the code did not differentiate between User IDs and
User Attributes as both of them were stored in `data.userid` [0] and
incorrectly used the User ID constant (0xB4) for both cases.

This change fixes the bug by storing User IDs in `userId` property and
User Attributes in `userAttribute` property. The check for property
existence has been modified to avoid comparisons with `undefined` as the
`User` class sets `null` for not assigned packets instead of
`undefined`.

Only data structures for signing and verification were modified and not
the properties used in the `User` class.

[0]: 11b2d2de3c/src/key.js (L872)
2018-07-24 13:03:46 +02:00
..
armor.js Use let and const ES6 features. 2018-02-13 23:33:09 +01:00
brainpool.js Add key/subKey.getKeyId, getFingerprint, getAlgorithmInfo, getCreationTime, isDecrypted 2018-07-19 15:03:25 +02:00
decompression.js Fix #607 - Add support for bzip2 de/compression 2018-02-14 14:14:07 +01:00
ecc_nist.js Add key/subKey.getKeyId, getFingerprint, getAlgorithmInfo, getCreationTime, isDecrypted 2018-07-19 15:03:25 +02:00
hkp.js Use let and const ES6 features. 2018-02-13 23:33:09 +01:00
index.js Add Web Key Directory lookup 2018-05-29 21:21:24 +02:00
key.js Replace get(Sub)KeyPackets with get(Sub)Keys 2018-07-19 15:03:25 +02:00
keyring.js Add key/subKey.getKeyId, getFingerprint, getAlgorithmInfo, getCreationTime, isDecrypted 2018-07-19 15:03:25 +02:00
oid.js OID's stored as Uint8Array 2018-03-01 11:35:16 -08:00
openpgp.js Add key/subKey.getKeyId, getFingerprint, getAlgorithmInfo, getCreationTime, isDecrypted 2018-07-19 15:03:25 +02:00
packet.js Fix verification of User Attributes 2018-07-24 13:03:46 +02:00
signature.js Fix verification of User Attributes 2018-07-24 13:03:46 +02:00
testInputs.js Run tests with randomly generated strings 2018-05-17 12:40:30 +02:00
util.js Add ZBase32 encoding function 2018-05-29 09:55:47 +02:00
wkd.js Add Web Key Directory lookup 2018-05-29 21:21:24 +02:00
x25519.js Fix verification of User Attributes 2018-07-24 13:03:46 +02:00