passforios-gopenpgp/crypto
M. Thiercelin a2fd1c6a3b
Sanitize non utf8 strings before returning them to iOS apps
In swift, strings must be strictly utf8, and when golang
returns a string with non utf8 characters, it gets translated to
an empty string for utf8.
To avoid this situation, we sanitize strings before returning them.
This behavior is only enabled when building with the "ios" build tag.
2022-11-03 12:31:05 +01:00
..
testdata Add unit tests for decryption of aead packets 2022-06-14 16:49:16 +02:00
attachment.go Create SplitMessage() to replace SeparateKeyAndData(...int) 2022-02-28 18:50:01 +01:00
attachment_manual.go [codespell] Fix typos (#190) 2022-07-11 10:27:59 +02:00
attachment_manual_test.go
attachment_test.go
base_test.go Update go-crypto 2022-08-19 11:20:08 +02:00
gopenpgp.go Lint fixes 2021-10-19 09:06:09 +02:00
key.go Do not return error on empty name or email key generation 2022-04-26 10:21:28 +02:00
key_clear.go Update go-crypto 2022-08-19 11:20:08 +02:00
key_test.go Release 2.3.0: Update go-crypto, add Key.IsRevoked and fix key.IsExpired 2021-11-15 15:46:42 +01:00
keyring.go Add methods to get key capabilities (#125) 2021-04-09 12:32:10 +02:00
keyring_message.go Add keyRing.GetVerifiedSignatureTimestamp() 2021-12-21 10:02:23 +01:00
keyring_message_test.go Add unit tests for decryption of aead packets 2022-06-14 16:49:16 +02:00
keyring_session.go
keyring_streaming.go Fix: use verifyTime in the config time instead of Now() 2021-09-23 17:14:19 +02:00
keyring_streaming_test.go Improve golang CI 2022-05-17 17:06:18 +02:00
keyring_test.go Update go-crypto 2022-08-19 11:20:08 +02:00
message.go Sanitize non utf8 strings before returning them to iOS apps 2022-11-03 12:31:05 +01:00
message_getters.go Fix linter 2021-09-21 11:34:17 +02:00
message_test.go Create SplitMessage() to replace SeparateKeyAndData(...int) 2022-02-28 18:50:01 +01:00
mime.go Sanitize non utf8 strings before returning them to iOS apps 2022-11-03 12:31:05 +01:00
mime_test.go Fix verification of signature for PGP/MIME messages 2021-12-15 11:01:04 +01:00
password.go Update error messages in passwordDecrypt (#124) 2021-07-05 10:42:18 +02:00
sanitize_string.go Sanitize non utf8 strings before returning them to iOS apps 2022-11-03 12:31:05 +01:00
sanitize_string_ios.go Sanitize non utf8 strings before returning them to iOS apps 2022-11-03 12:31:05 +01:00
sessionkey.go Decrypt AEAD encrypted data packets with a session key 2022-06-14 16:10:25 +02:00
sessionkey_streaming.go Add a streaming api to KeyRing and SessionKey (#131) 2021-06-30 16:49:30 +02:00
sessionkey_streaming_test.go Improve golang CI 2022-05-17 17:06:18 +02:00
sessionkey_test.go Add unit tests for decryption of aead packets 2022-06-14 16:49:16 +02:00
signature.go Fix signature status when verifying unsigned message 2021-07-16 12:17:18 +02:00
signature_collector.go Canonicalize PGP/MIME content before verifying signatures 2022-03-17 10:17:34 +01:00
signature_test.go Add keyRing.GetVerifiedSignatureTimestamp() 2021-12-21 10:02:23 +01:00
time.go Replace Mutex with RWMutex 2021-10-19 08:09:59 +02:00
time_test.go Remove monotonic clock (#133) 2021-06-16 14:06:07 +02:00