passforios-gopenpgp/helper
marinthiercelin c46ed8ed9e
Add a streaming api to KeyRing and SessionKey (#131)
* barebone streaming functionality

* encryption needs to return a writecloser

* added eof check

* workaround for reader problem with copies

* separate mobile wrappers from main api

* add a clone in the read result to avoid memory corruption

* refactor to reuse code, and fix verification

* have to give the verify key at the start of the decryption

* enfore readAll before signature verification

* streaming api for SessionKey

* add split message stream apis

* name interface params

* fix streaming api so it's supported by go-mobile

* hide internal writeCloser

* fix nil access

* added detached sigs methods

* started unit testing

* unit testing and fixed a bug where key and data packets where inverted

* remove unecessary error wrapping

* figured out closing order and error handling

* add GC calls to mobile writer and reader

* remove debugging values and arrays

* writer with builtin sha256

* unit testing the mobile helpers

* comments and linting

* Typo in error

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

* Add GetKeyPacket doc

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

* Add rfc reference in comments

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

* small improvements

* add compatibility tests with normal methods

* remove unecessary copies in the tests

* update go-crypto to the merged changes commit

* update comments of core internal functions

* remove unused nolint comment

* group message metadata in a struct

* fix comments

* change default values for metadata

* change the mobile reader wrapper to fit the behavior of java

* remove gc calls in the wrappers to avoid performance penalties

* bring back the former Go2MobileReader to be used for ios

* Update crypto/keyring_streaming.go

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

* return an error when verifying an embedded sig with no keyring

* Update crypto/sessionkey_streaming.go

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

* linter error

* update changelog

* update changelog

Co-authored-by: wussler <aron@wussler.it>
2021-06-30 16:49:30 +02:00
..
base_test.go Implement GetArmoredWithCustomHeaders (#48) 2020-05-06 18:50:18 +02:00
cleartext.go Drop regex for canonicalization (#102) 2020-12-01 18:09:25 +01:00
cleartext_test.go Drop regex for canonicalization (#102) 2020-12-01 18:09:25 +01:00
helper.go Added helpers with encrypted signatures and unarmored binary ciphertexts (#83) 2020-10-29 14:20:39 +01:00
helper_test.go Fix AES tests for helpers (#122) 2021-03-30 11:46:32 +02:00
key.go Improve error handling, fix linter (#92) 2020-10-29 12:42:32 +01:00
key_test.go Add SHA256 fingerprint utils and helpers (#41) 2020-04-07 14:59:25 +02:00
mobile.go Add methods for embedded signatures using session keys (#128) 2021-04-27 17:38:25 +02:00
mobile_stream.go Add a streaming api to KeyRing and SessionKey (#131) 2021-06-30 16:49:30 +02:00
mobile_stream_test.go Add a streaming api to KeyRing and SessionKey (#131) 2021-06-30 16:49:30 +02:00
mobile_test.go Add methods for embedded signatures using session keys (#128) 2021-04-27 17:38:25 +02:00
sign_detached.go Added helpers with encrypted signatures and unarmored binary ciphertexts (#83) 2020-10-29 14:20:39 +01:00