passforios-gopenpgp/crypto
Aditya Wasan 3dd1711707
Add methods to get key capabilities (#125)
* Add methods to get key capabilities

Signed-off-by: Aditya Wasan <adityawasan55@gmail.com>

* Use correct indetity to check for flags

Signed-off-by: Aditya Wasan <adityawasan55@gmail.com>

* Fix lint

Signed-off-by: Aditya Wasan <adityawasan55@gmail.com>

* Remove CanCertify and update CanSign to use SigningKey

Signed-off-by: GitHub <noreply@github.com>

* keyring: implement CanSign and CanEncrypt

Signed-off-by: GitHub <noreply@github.com>

* key/keyring: add tests for key capabilities

Signed-off-by: GitHub <noreply@github.com>

* Apply suggestions from code review

Renames CanSign to CanVerify and adds an extended test for public-only keys to confirm CanVerify is true for them.

Co-authored-by: wussler <aron@wussler.it>

Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
Co-authored-by: wussler <aron@wussler.it>
2021-04-09 12:32:10 +02:00
..
testdata Add new attachment processor that uses pre-allocated buffer (#120) 2021-03-29 20:46:47 +02:00
attachment.go Removed the cloning of the final data in the attachment processor (#114) 2021-02-19 14:54:31 +01:00
attachment_manual.go Add new attachment processor that uses pre-allocated buffer (#120) 2021-03-29 20:46:47 +02:00
attachment_manual_test.go Add new attachment processor that uses pre-allocated buffer (#120) 2021-03-29 20:46:47 +02:00
attachment_test.go Fix various keys issues (#117) 2021-03-09 19:06:35 +01:00
base_test.go Update x/crypto fork to github.com/ProtonMail/go-crypto (#106) 2020-12-08 18:34:39 +01:00
gopenpgp.go Add key generation offset (#104) 2020-12-01 19:44:49 +01:00
key.go Add methods to get key capabilities (#125) 2021-04-09 12:32:10 +02:00
key_clear.go WIP: Add tests for attachments (#116) 2021-03-08 17:59:03 +01:00
key_test.go Add methods to get key capabilities (#125) 2021-04-09 12:32:10 +02:00
keyring.go Add methods to get key capabilities (#125) 2021-04-09 12:32:10 +02:00
keyring_message.go add signcryption methods to the keyrings (#109) 2020-12-17 12:58:25 +01:00
keyring_session.go Fix various keys issues (#117) 2021-03-09 19:06:35 +01:00
keyring_test.go Add methods to get key capabilities (#125) 2021-04-09 12:32:10 +02:00
message.go WIP: Add tests for attachments (#116) 2021-03-08 17:59:03 +01:00
message_getters.go Move getters to file excluded from android build (#88) 2020-10-14 18:28:12 +02:00
message_test.go Update x/crypto fork to github.com/ProtonMail/go-crypto (#106) 2020-12-08 18:34:39 +01:00
mime.go Update x/crypto fork to github.com/ProtonMail/go-crypto (#106) 2020-12-08 18:34:39 +01:00
mime_test.go Implement GetArmoredWithCustomHeaders (#48) 2020-05-06 18:50:18 +02:00
password.go Update x/crypto fork to github.com/ProtonMail/go-crypto (#106) 2020-12-08 18:34:39 +01:00
sessionkey.go Update x/crypto fork to github.com/ProtonMail/go-crypto (#106) 2020-12-08 18:34:39 +01:00
sessionkey_test.go Fix various keys issues (#117) 2021-03-09 19:06:35 +01:00
signature.go Update x/crypto fork to github.com/ProtonMail/go-crypto (#106) 2020-12-08 18:34:39 +01:00
signature_collector.go Update x/crypto fork to github.com/ProtonMail/go-crypto (#106) 2020-12-08 18:34:39 +01:00
signature_test.go Improve error handling, fix linter (#92) 2020-10-29 12:42:32 +01:00
time.go Add key generation offset (#104) 2020-12-01 19:44:49 +01:00
time_test.go Change time global handling (#29) 2019-10-22 18:44:45 +02:00