#cryptography #tink #protobuf

tink-proto

Protocol buffer message definitions for Rust port of Google’s Tink cryptography library

7 releases

0.2.4 Mar 25, 2022
0.2.3 Jan 3, 2022
0.2.2 Oct 9, 2021
0.2.0 May 24, 2021
0.1.0 Jan 21, 2021

#764 in Cryptography

Download history 339/week @ 2022-06-06 524/week @ 2022-06-13 337/week @ 2022-06-20 298/week @ 2022-06-27 323/week @ 2022-07-04 205/week @ 2022-07-11 369/week @ 2022-07-18 351/week @ 2022-07-25 630/week @ 2022-08-01 342/week @ 2022-08-08 387/week @ 2022-08-15 236/week @ 2022-08-22 161/week @ 2022-08-29 250/week @ 2022-09-05 333/week @ 2022-09-12 271/week @ 2022-09-19

1,020 downloads per month
Used in 12 crates (9 directly)

Apache-2.0

93KB
1.5K SLoC

Tink-Rust: Protobuf Definitions

Docs MSRV

This crate holds Rust structures auto-generated (using prost) from the protocol buffer message definitions in the proto/ subdirectory. These .proto files are copies from the upstream Tink project.

The version of prost used by the library is re-exported as tink_proto::prost, to allow library users to get a precise version match.

Features

The json feature enables serde_json based serialization of the structures.

License

Apache License, Version 2.0

Disclaimer

This is not an officially supported Google product.


lib.rs:

Protocol buffer message definitions for Tink.

Almost all of the code in this crate is auto-generated (using prost) from the protocol buffer message definitions in the proto/ subdirectory. These .proto files are copies from the upstream Tink project. Manual keyset serialization implementations that map enums onto strings rather than the i32 values used by prost. Manual JSON serialization for KeyStatusType enums. Manual JSON serialization for OutputPrefixType enums. Manual JSON serialization for KeyMaterialType enums. Manual serialization implementations for base64-encoded binary data.

Dependencies

~0.9–1.8MB
~39K SLoC