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
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
keyring.go
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
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
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
password.go
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
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
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
time_test.go