Skip to content

Commit

Permalink
Merge pull request #289 from DaGenix/fixups
Browse files Browse the repository at this point in the history
Remove all uses of unstable Rust features
  • Loading branch information
cosmycoder committed Apr 3, 2015
2 parents 0b68a12 + 196136f commit c6df44e
Show file tree
Hide file tree
Showing 29 changed files with 630 additions and 537 deletions.
8 changes: 7 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
[package]
name = "rust-crypto"
version = "0.2.29"
version = "0.2.30"
authors = ["The Rust-Crypto Project Developers"]
license = "MIT/Apache-2.0"
homepage = "https://github.com/DaGenix/rust-crypto/"
repository = "https://github.com/DaGenix/rust-crypto/"
description = "A (mostly) pure-Rust implementation of various common cryptographic algorithms."
keywords = [ "Crypto", "MD5", "Sha1", "Sha2", "AES" ]
readme = "README.md"
build = "build.rs"

[lib]
name = "crypto"

[build-dependencies]
gcc = "*"

[dependencies]
libc = "*"
time = "*"
rand = "*"
rustc-serialize = "*"

14 changes: 14 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

extern crate gcc;

fn main() {
gcc::compile_library(
"lib_rust_crypto_helpers.a",
&["src/util_helpers.c", "src/aesni_helpers.c"]);
}

2 changes: 1 addition & 1 deletion src/aes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ mod test {
let mut result: Vec<u8> = repeat(0).take(test.plain.len()).collect();
aes_enc.process(&test.plain[..], &mut result[..]);
let res: &[u8] = result.as_ref();
assert!(res == test.cipher);
assert!(res == &test.cipher[..]);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/aes_gcm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use aes::{ctr, KeySize};
use aead::{AeadEncryptor,AeadDecryptor};
use std::slice::bytes::copy_memory;
use cryptoutil::copy_memory;
use symmetriccipher::SynchronousStreamCipher;
use ghash::{Ghash};
use util::fixed_time_eq;
Expand Down
Loading

0 comments on commit c6df44e

Please sign in to comment.