Skip to content

Commit 5f2e9e9

Browse files
committed
Add one more patchable cargo dep
1 parent ddf92c6 commit 5f2e9e9

File tree

11 files changed

+660
-0
lines changed

11 files changed

+660
-0
lines changed

ct-codecs-1.1.1/.cargo-ok

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"v":1}

ct-codecs-1.1.1/.cargo_vcs_info.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"git": {
3+
"sha1": "9cb6ec4517ebc1e3de56f3eb1b2714ad19411d47"
4+
}
5+
}

ct-codecs-1.1.1/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*~
2+
/target
3+
Cargo.lock

ct-codecs-1.1.1/Cargo.toml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
2+
#
3+
# When uploading crates to the registry Cargo will automatically
4+
# "normalize" Cargo.toml files for maximal compatibility
5+
# with all versions of Cargo and also rewrite `path` dependencies
6+
# to registry (e.g., crates.io) dependencies
7+
#
8+
# If you believe there's an error in this file please file an
9+
# issue against the rust-lang/cargo repository. If you're
10+
# editing this file be aware that the upstream Cargo.toml
11+
# will likely look very different (and much more reasonable)
12+
13+
[package]
14+
edition = "2018"
15+
name = "ct-codecs"
16+
version = "1.1.1"
17+
authors = ["Frank Denis <[email protected]>"]
18+
description = "Constant-time hex and base64 codecs from libsodium reimplemented in Rust"
19+
homepage = "https://github.com/jedisct1/rust-ct-codecs"
20+
readme = "README.md"
21+
keywords = ["base64", "hex", "crypto"]
22+
categories = ["no-std", "cryptography", "encoding"]
23+
license = "MIT"
24+
repository = "https://github.com/jedisct1/rust-ct-codecs"
25+
[profile.release]
26+
codegen-units = 1
27+
panic = "abort"
28+
incremental = false
29+
30+
[features]
31+
default = ["std"]
32+
std = []

ct-codecs-1.1.1/Cargo.toml.orig

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ct-codecs-1.1.1/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020-2021 Frank Denis
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

ct-codecs-1.1.1/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# CT-Codecs
2+
3+
A reimplementation of the base64 and hexadecimal codecs from libsodium and libhydrogen in Rust.
4+
5+
- Constant-time for a given length, suitable for cryptographic purposes
6+
- Strict (base64 strings are not malleable)
7+
- Supports padded and unpadded, original and URL-safe base64 variants
8+
- Supports characters to be ignored by the decoder
9+
- Zero dependencies, `no_std` friendly.
10+
11+
## [API documentation](https://docs.rs/ct-codecs)
12+
13+
## Example usage
14+
15+
```rust
16+
use ct_codecs::{Base64UrlSafe, Decoder, Encoder};
17+
18+
let encoded = Base64UrlSafe::encode_to_string(x)?;
19+
let decoded = Base64UrlSafe::decode_to_vec(encoded, None)?;
20+
```
21+

0 commit comments

Comments
 (0)