-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expiration parameter #145
Expiration parameter #145
Commits on Mar 14, 2018
-
if user has no hash prefs in signature, default to sha1/sha256/sha512…
… options
Sanjana Rajan committedMar 14, 2018 Configuration menu - View commit details
-
Copy full SHA for d86a2b9 - Browse repository at this point
Copy the full SHA d86a2b9View commit details -
Export contents of sym encrypted packet
Sanjana Rajan committedMar 14, 2018 Configuration menu - View commit details
-
Copy full SHA for b9c3c61 - Browse repository at this point
Copy the full SHA b9c3c61View commit details
Commits on Mar 28, 2018
-
Add secp256k1 / x25519 / brainpool curves to openpgp
Sanjana Rajan committedMar 28, 2018 Configuration menu - View commit details
-
Copy full SHA for 570d0c5 - Browse repository at this point
Copy the full SHA 570d0c5View commit details
Commits on Mar 29, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 53f119a - Browse repository at this point
Copy the full SHA 53f119aView commit details
Commits on Apr 5, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 42d0a4f - Browse repository at this point
Copy the full SHA 42d0a4fView commit details
Commits on Apr 6, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 3d5ae49 - Browse repository at this point
Copy the full SHA 3d5ae49View commit details
Commits on Apr 16, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 845885a - Browse repository at this point
Copy the full SHA 845885aView commit details
Commits on Apr 17, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 10058cf - Browse repository at this point
Copy the full SHA 10058cfView commit details
Commits on Apr 18, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 94acb36 - Browse repository at this point
Copy the full SHA 94acb36View commit details
Commits on Apr 19, 2018
-
Configuration menu - View commit details
-
Copy full SHA for a34213f - Browse repository at this point
Copy the full SHA a34213fView commit details
Commits on May 7, 2018
-
Merge pull request #3 from ProtonMail/canonizing
Fix: canonizing of literal data for encrypted messages
Configuration menu - View commit details
-
Copy full SHA for b7621a1 - Browse repository at this point
Copy the full SHA b7621a1View commit details
Commits on May 9, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 687d2b3 - Browse repository at this point
Copy the full SHA 687d2b3View commit details
Commits on May 25, 2018
-
Configuration menu - View commit details
-
Copy full SHA for e504ad0 - Browse repository at this point
Copy the full SHA e504ad0View commit details -
Configuration menu - View commit details
-
Copy full SHA for cef4d89 - Browse repository at this point
Copy the full SHA cef4d89View commit details -
Merge pull request #4 from ProtonMail/private_key_encryption
Private key encryption
Configuration menu - View commit details
-
Copy full SHA for f32898e - Browse repository at this point
Copy the full SHA f32898eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a94ee5 - Browse repository at this point
Copy the full SHA 9a94ee5View commit details -
Merge pull request #5 from ProtonMail/private_key_encryption
add SerializePrivate without sign function
Configuration menu - View commit details
-
Copy full SHA for 6d7576e - Browse repository at this point
Copy the full SHA 6d7576eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2029d42 - Browse repository at this point
Copy the full SHA 2029d42View commit details
Commits on Jun 4, 2018
-
Merge pull request #6 from ProtonMail/private_key_encryption
update private key serializer
Configuration menu - View commit details
-
Copy full SHA for 0b735be - Browse repository at this point
Copy the full SHA 0b735beView commit details
Commits on Jun 6, 2018
-
refactoring to prepare for new keygen
Sanjana Rajan committedJun 6, 2018 Configuration menu - View commit details
-
Copy full SHA for 1807512 - Browse repository at this point
Copy the full SHA 1807512View commit details -
Sanjana Rajan committed
Jun 6, 2018 Configuration menu - View commit details
-
Copy full SHA for 29411dc - Browse repository at this point
Copy the full SHA 29411dcView commit details -
Sanjana Rajan committed
Jun 6, 2018 Configuration menu - View commit details
-
Copy full SHA for 77a676d - Browse repository at this point
Copy the full SHA 77a676dView commit details -
Sanjana Rajan committed
Jun 6, 2018 Configuration menu - View commit details
-
Copy full SHA for dcc2718 - Browse repository at this point
Copy the full SHA dcc2718View commit details
Commits on Jun 9, 2018
-
Configuration menu - View commit details
-
Copy full SHA for c460db4 - Browse repository at this point
Copy the full SHA c460db4View commit details -
Configuration menu - View commit details
-
Copy full SHA for e7c1c8c - Browse repository at this point
Copy the full SHA e7c1c8cView commit details
Commits on Jun 12, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 7b468c2 - Browse repository at this point
Copy the full SHA 7b468c2View commit details
Commits on Jun 14, 2018
-
move rsa and rand packages into library
Sanjana Rajan committedJun 14, 2018 Configuration menu - View commit details
-
Copy full SHA for 2b200e9 - Browse repository at this point
Copy the full SHA 2b200e9View commit details
Commits on Jun 15, 2018
-
Sanjana Rajan committed
Jun 15, 2018 Configuration menu - View commit details
-
Copy full SHA for f9ef011 - Browse repository at this point
Copy the full SHA f9ef011View commit details -
Sanjana Rajan committed
Jun 15, 2018 Configuration menu - View commit details
-
Copy full SHA for cbc96a9 - Browse repository at this point
Copy the full SHA cbc96a9View commit details -
step after first random number generated
Sanjana Rajan committedJun 15, 2018 Configuration menu - View commit details
-
Copy full SHA for 0b5f176 - Browse repository at this point
Copy the full SHA 0b5f176View commit details
Commits on Jun 18, 2018
-
Sanjana Rajan committed
Jun 18, 2018 Configuration menu - View commit details
-
Copy full SHA for 83c70fd - Browse repository at this point
Copy the full SHA 83c70fdView commit details -
don't support sym enc with no MDC
Sanjana Rajan committedJun 18, 2018 Configuration menu - View commit details
-
Copy full SHA for 685acb5 - Browse repository at this point
Copy the full SHA 685acb5View commit details -
Sanjana Rajan committed
Jun 18, 2018 Configuration menu - View commit details
-
Copy full SHA for 9e42511 - Browse repository at this point
Copy the full SHA 9e42511View commit details
Commits on Jan 7, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 2636381 - Browse repository at this point
Copy the full SHA 2636381View commit details
Commits on Feb 4, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 44302ed - Browse repository at this point
Copy the full SHA 44302edView commit details -
Merge pull request #12 from twiss/ecdh-workaround
Work around OpenPGP.js bug encrypting ECDH messages
Configuration menu - View commit details
-
Copy full SHA for 02c1a38 - Browse repository at this point
Copy the full SHA 02c1a38View commit details
Commits on Feb 5, 2019
-
Configuration menu - View commit details
-
Copy full SHA for c8eb4ef - Browse repository at this point
Copy the full SHA c8eb4efView commit details -
Merge pull request #13 from twiss/sessionkey-decrypt-panic
Fix panic when decrypting session key with the wrong private key
Configuration menu - View commit details
-
Copy full SHA for 2379f60 - Browse repository at this point
Copy the full SHA 2379f60View commit details
Commits on Feb 10, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 5bcbe46 - Browse repository at this point
Copy the full SHA 5bcbe46View commit details
Commits on Feb 11, 2019
-
Buffer partialLengthWriter to write in chunks of >= 512 bytes
The first chunk has to be at least 512 bytes per spec, and very large amounts (e.g. 10MB) of tiny chunks hang both this library and OpenPGP.js when reading.
Configuration menu - View commit details
-
Copy full SHA for 0978818 - Browse repository at this point
Copy the full SHA 0978818View commit details
Commits on Feb 20, 2019
-
Merge pull request #14 from twiss/buffered-streaming
Buffer partialLengthWriter to write in chunks of >= 512 bytes
Configuration menu - View commit details
-
Copy full SHA for 25f88b7 - Browse repository at this point
Copy the full SHA 25f88b7View commit details
Commits on Mar 3, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 64ba000 - Browse repository at this point
Copy the full SHA 64ba000View commit details
Commits on Mar 4, 2019
-
Merge pull request #15 from twiss/fix-ecdh
Fix missing leading zeros in ECDH messages
Configuration menu - View commit details
-
Copy full SHA for 1bfafb5 - Browse repository at this point
Copy the full SHA 1bfafb5View commit details
Commits on Mar 28, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 5756cae - Browse repository at this point
Copy the full SHA 5756caeView commit details -
Merge pull request #17 from twiss/use-latest-self-sig
Use latest-created valid self-signature
Configuration menu - View commit details
-
Copy full SHA for 3ab2feb - Browse repository at this point
Copy the full SHA 3ab2febView commit details
Commits on Apr 10, 2019
-
Configuration menu - View commit details
-
Copy full SHA for fc5a2b7 - Browse repository at this point
Copy the full SHA fc5a2b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for a05b07e - Browse repository at this point
Copy the full SHA a05b07eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5173560 - Browse repository at this point
Copy the full SHA 5173560View commit details
Commits on Apr 11, 2019
-
Add higher-level function to verify clearsigned messages
Also, verify that the algorithm mentioned in the header matches the algorithm used in the signature.
Configuration menu - View commit details
-
Copy full SHA for 01f2cca - Browse repository at this point
Copy the full SHA 01f2ccaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 27c95c8 - Browse repository at this point
Copy the full SHA 27c95c8View commit details
Commits on Apr 12, 2019
-
Configuration menu - View commit details
-
Copy full SHA for bb79d83 - Browse repository at this point
Copy the full SHA bb79d83View commit details -
Configuration menu - View commit details
-
Copy full SHA for ea6ef6c - Browse repository at this point
Copy the full SHA ea6ef6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7abb221 - Browse repository at this point
Copy the full SHA 7abb221View commit details -
Configuration menu - View commit details
-
Copy full SHA for b110f49 - Browse repository at this point
Copy the full SHA b110f49View commit details -
Configuration menu - View commit details
-
Copy full SHA for 309e5a9 - Browse repository at this point
Copy the full SHA 309e5a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 68a1e81 - Browse repository at this point
Copy the full SHA 68a1e81View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3431f2e - Browse repository at this point
Copy the full SHA 3431f2eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 31f8b48 - Browse repository at this point
Copy the full SHA 31f8b48View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6909f06 - Browse repository at this point
Copy the full SHA 6909f06View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a07e4a - Browse repository at this point
Copy the full SHA 3a07e4aView commit details
Commits on Apr 23, 2019
-
Configuration menu - View commit details
-
Copy full SHA for c45e2a1 - Browse repository at this point
Copy the full SHA c45e2a1View commit details
Commits on Apr 27, 2019
-
Merge pull request #19 from twiss/fix-tests
Fix tests; merge golang/master
Configuration menu - View commit details
-
Copy full SHA for 33a45b6 - Browse repository at this point
Copy the full SHA 33a45b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4acdaca - Browse repository at this point
Copy the full SHA 4acdacaView commit details -
Accept multiple Hash headers / header values in clearsigned messages
Also, accept no headers at all, defaulting to MD5.
Configuration menu - View commit details
-
Copy full SHA for efb430e - Browse repository at this point
Copy the full SHA efb430eView commit details
Commits on May 13, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 7627031 - Browse repository at this point
Copy the full SHA 7627031View commit details -
Configuration menu - View commit details
-
Copy full SHA for b36c0eb - Browse repository at this point
Copy the full SHA b36c0ebView commit details
Commits on May 14, 2019
-
Configuration menu - View commit details
-
Copy full SHA for ebf3fa0 - Browse repository at this point
Copy the full SHA ebf3fa0View commit details -
Configuration menu - View commit details
-
Copy full SHA for a36a95c - Browse repository at this point
Copy the full SHA a36a95cView commit details
Commits on May 23, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 504a3e8 - Browse repository at this point
Copy the full SHA 504a3e8View commit details
Commits on Jun 4, 2019
-
Fix serialization and handling of MPIs with leading zeros (#22)
* Fix for KeyID digest generation ProtonMail/gopenpgp#10 * Better solution * Fix bitLength when first byte is zero * Use encoding.NewMPI in NewECDSAPublicKey; remove NewMPIWithBitLength * Use Len8 instead of Len to get the bit length of a byte * Don't serialize leading zeros in MPIs * Properly handle MPIs with leading zeros * Remove unused MPI functions
Configuration menu - View commit details
-
Copy full SHA for d3d8a14 - Browse repository at this point
Copy the full SHA d3d8a14View commit details
Commits on Aug 14, 2019
-
Configuration menu - View commit details
-
Copy full SHA for b5b07a6 - Browse repository at this point
Copy the full SHA b5b07a6View commit details
Commits on Aug 28, 2019
-
Configuration menu - View commit details
-
Copy full SHA for ef109c6 - Browse repository at this point
Copy the full SHA ef109c6View commit details
Commits on Sep 3, 2019
-
Configuration menu - View commit details
-
Copy full SHA for ac9b7da - Browse repository at this point
Copy the full SHA ac9b7daView commit details
Commits on Nov 4, 2019
-
openpgp: support GNU dummy S2K for missing private keys
GNU defines an extension to the S2K algorithms where the private key of a PGP is missing and only subkeys are present. These incomplete keys are useful in scenarios where a user distributes various subkeys to individual places (e.g. various build servers) while retaining the master key. Picking up https://go-review.googlesource.com/c/crypto/+/32797/ after it was abandoned. The extension is described at: http://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=blob;f=doc/DETAILS;h=fe55ae16ab4e26d8356dc574c9e8bc935e71aef1;hb=23191d7851eae2217ecdac6484349849a24fd94a#l1109 Change-Id: I2de52a4f86b113eb7debf92579a6f79836d86c3c
Configuration menu - View commit details
-
Copy full SHA for 15a616a - Browse repository at this point
Copy the full SHA 15a616aView commit details
Commits on Nov 9, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 60837c4 - Browse repository at this point
Copy the full SHA 60837c4View commit details
Commits on Nov 20, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 53909a3 - Browse repository at this point
Copy the full SHA 53909a3View commit details
Commits on Nov 22, 2019
-
Support re-serializing parsed encrypted private keys (#42)
Store S2K parameters in a new s2k.Params struct, instead of in a s2k.Config, so that we can properly re-serialize them.
Configuration menu - View commit details
-
Copy full SHA for 18fc5a7 - Browse repository at this point
Copy the full SHA 18fc5a7View commit details -
Add support for AEAD Encrypted Data Packets (#36)
And V5 Symmetrically Encrypted Data Packets (which use AEAD as well). To enable AEAD when encrypting messages symmetrically, pass: &packet.Config{ AEADConfig: &packet.AEADConfig{} } to `openpgp.EncryptSymmetrically`. To enable AEAD when using public-key cryptography, pass the same config to `openpgp.NewEntity` to announce support for AEAD in the newly generated key. This library will automatically use AEAD when encrypting to keys that claim to support it. It is also possible to change the AEAD mode that is used when encrypting symmetrically, or the preferred AEAD mode when generating a key, by passing: AEADConfig: &packet.AEADConfig{ DefaultMode: packet.AEADModeEAX } `AEADModeEAX` is the default. The other options are `AEADModeOCB` and `AEADModeExperimentalGCM`. The latter is a private/experimental algorithm, and not defined in the spec. It is also supported by OpenPGP.js, but not, at the moment, GPG. It is typically the most performant option, as GCM is implemented in asm. And finally, when encrypting (either symmetrically or asymmetrically), it is also possible to pass the chunk size that is used: ChunkSize: 1 << 10 // 1KiB A smaller chunk size means that, when en/decrypting a stream, you'll receive data sooner (and more often). It also means a marginally bigger overhead (16 bytes per chunk). The default is 256KiB, which we feel strikes a decent balance, although that might not be the case for gigantic messages. The passed chunk size is rounded down to the closest power of two and clamped between 64 bytes and 128 MiB. (According to the spec, chunk sizes larger than 128 MiB (1 << 27 bytes) SHOULD NOT be used, although the packet format allows it.) Note: when using SerializeSymmetricKeyEncryptedReuseKey, one must now set a non-nil config.AEADConfig when used with an AEAD Encrypted Data Packet, and similarly one must call SerializeAEADEncrypted after calling SerializeSymmetricKeyEncryptedReuseKey with a non-nil config.AEADConfig. See https://tools.ietf.org/html/draft-ietf-openpgp-rfc4880bis-08.
Configuration menu - View commit details
-
Copy full SHA for e77a1f0 - Browse repository at this point
Copy the full SHA e77a1f0View commit details
Commits on Apr 6, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 3e71139 - Browse repository at this point
Copy the full SHA 3e71139View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e8bf1c - Browse repository at this point
Copy the full SHA 1e8bf1cView commit details
Commits on Apr 14, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 142ca78 - Browse repository at this point
Copy the full SHA 142ca78View commit details -
Go 1.10 fails because it's missing golang/go@4d44a87.
Configuration menu - View commit details
-
Copy full SHA for af60022 - Browse repository at this point
Copy the full SHA af60022View commit details
Commits on Apr 15, 2020
-
Merge branch 'change-191658-4' from https://go-review.googlesource.com/c/crypto/+/191658. Note: on our side, this merge commit also: - Removes SerializePrivateNoSign in favor of the new SerializePrivateWithoutSigning. - Removes SelfSign (NewEntity already self-signs, although it used to be buggy, but this has been fixed). - Un-exports SerializeEncrypted and SerializeUnEncrypted. - Adds a serializeDummy function, and reorders the serializeEncrypted and serializeUnencrypted functions. On the incoming side, this merge commit also: - Replaces PrivateKey.Dummy with a PrivateKey.Dummy() function, which reads from the stored s2kParams property (which upstream doesn't have). - Reorders the serializePrivate, SerializePrivate and SerializePrivateWithoutSigning functions, and updates the comments of the latter two.
Configuration menu - View commit details
-
Copy full SHA for a103d74 - Browse repository at this point
Copy the full SHA a103d74View commit details
Commits on Apr 16, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 1fa7f40 - Browse repository at this point
Copy the full SHA 1fa7f40View commit details
Commits on Apr 20, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 71bec36 - Browse repository at this point
Copy the full SHA 71bec36View commit details
Commits on May 27, 2020
-
openpgp: Always generate preferred algorithms at key generation (#50)
Also, refactor NewEntity, separating signing/encryption key generation. This way, we can reuse the code for adding subkeys. Also, use NewSignerPrivateKey instead of New{RSA,EdDSA}PrivateKey, and add NewDecrypterPrivateKey to replace New{RSA,ECDH}PrivateKey. Also, use pointers instead of values for EdDSA PrivateKey and PublicKey, for consistency with the other algorithms.
zugzwang authoredMay 27, 2020 Configuration menu - View commit details
-
Copy full SHA for 00945d6 - Browse repository at this point
Copy the full SHA 00945d6View commit details
Commits on Jun 5, 2020
-
openpgp: add RevokeKey, RevokeSubkey, AddSigningSubkey and AddEncrypt…
…ionSubkey methods to Entity (#53) The existing implementation does not support operations on subkeys using the library, so the following changes have been made to support subkey interactions as per RFC 4880 (https://tools.ietf.org/html/rfc4880). 1. AddSigningSubkey and AddEncryptionSubkey add support for generating new subkeys associated with an entity. 2. RevokeKey generates a key revocation signature for an entity. 3. RevokeSubkey generates a subkey revocation signature for a subkey. 4. Add Revocation reason subpacket and EmbeddedSignature subpacket to output subpackets with corresponding tests. 5. Re-sign the embedded signatures for subkeys in entity.SerializePrivate(). Fixes golang/go#29301 Change-Id: If8ee111e825c17ccaa19e4afbac4a756671d9bf5
Configuration menu - View commit details
-
Copy full SHA for 11f6ee2 - Browse repository at this point
Copy the full SHA 11f6ee2View commit details