mirror of
https://github.com/signalapp/libsignal.git
synced 2024-09-20 12:02:18 +02:00
0904a624dd
Handle encrypted & compressed message backup files with additional padding after the compressed contents (the padding bytes are encrypted, but not compressed). Update the example encrypter binary to add padding by default.
74 lines
1.8 KiB
TOML
74 lines
1.8 KiB
TOML
#
|
|
# Copyright (C) 2023 Signal Messenger, LLC.
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
#
|
|
[package]
|
|
name = "libsignal-message-backup"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
authors = ["Signal Messenger LLC"]
|
|
license = "AGPL-3.0-only"
|
|
|
|
[features]
|
|
# Enables code to allow conversion of backups to and from JSON.
|
|
json = ["dep:serde_json", "dep:protobuf-json-mapping"]
|
|
|
|
[[example]]
|
|
name = "json_to_binproto"
|
|
required-features = ["json"]
|
|
|
|
[[example]]
|
|
name = "binproto_to_json"
|
|
required-features = ["json"]
|
|
|
|
[dependencies]
|
|
libsignal-message-backup-macros = { path = "macros" }
|
|
libsignal-protocol = { path = "../protocol" }
|
|
signal-crypto = { path = "../crypto" }
|
|
usernames = { path = "../usernames" }
|
|
zkgroup = { path = "../zkgroup" }
|
|
|
|
aes = "0.8.3"
|
|
arrayvec = "0.7.4"
|
|
async-compression = { version = "0.4.5", features = ["futures-io", "gzip"] }
|
|
async-trait = "0.1.41"
|
|
cbc = "0.1.2"
|
|
clap = { version = "4.2.1", features = ["derive"] }
|
|
clap-stdin = "0.3.0"
|
|
derive-where = "1.2.5"
|
|
displaydoc = "0.2.4"
|
|
env_logger = "0.10.0"
|
|
futures = "0.3.29"
|
|
hex = "0.4.3"
|
|
hkdf = "0.12"
|
|
hmac = "0.12"
|
|
log = "0.4"
|
|
mediasan-common = "0.5.0"
|
|
num_enum = "0.6.1"
|
|
protobuf = "3.3.0"
|
|
protobuf-json-mapping = { version = "3.3.0", optional = true }
|
|
serde_json = { version = "1.0", optional = true }
|
|
sha2 = "0.10"
|
|
strum = { version = "0.26", features = ["derive"] }
|
|
subtle = "2.5.0"
|
|
thiserror = "1.0.50"
|
|
uuid = "1.1.2"
|
|
|
|
[dev-dependencies]
|
|
libsignal-message-backup = { path = "./", features = ["json"] }
|
|
signal-crypto = { path = "../crypto" }
|
|
|
|
array-concat = "0.5.2"
|
|
assert_cmd = "2.0.13"
|
|
assert_matches = "1.5.0"
|
|
dir-test = "0.2.0"
|
|
futures = { version = "0.3.29", features = ["executor"] }
|
|
hex-literal = "0.4.1"
|
|
test-case = "3.3.1"
|
|
test-log = "0.2.14"
|
|
testing_logger = "0.1.1"
|
|
|
|
[build-dependencies]
|
|
protobuf = "3.3.0"
|
|
protobuf-codegen = "3.3.0"
|