Skip to content

Commit 265f27b

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 7274119 + c6df44e commit 265f27b

29 files changed

+630
-537
lines changed

Diff for: Cargo.toml

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
[package]
22
name = "rust-crypto"
3-
version = "0.2.29"
3+
version = "0.2.30"
44
authors = ["The Rust-Crypto Project Developers"]
55
license = "MIT/Apache-2.0"
66
homepage = "https://github.com/DaGenix/rust-crypto/"
77
repository = "https://github.com/DaGenix/rust-crypto/"
88
description = "A (mostly) pure-Rust implementation of various common cryptographic algorithms."
99
keywords = [ "Crypto", "MD5", "Sha1", "Sha2", "AES" ]
1010
readme = "README.md"
11+
build = "build.rs"
1112

1213
[lib]
1314
name = "crypto"
1415

16+
[build-dependencies]
17+
gcc = "*"
18+
1519
[dependencies]
20+
libc = "*"
1621
time = "*"
1722
rand = "*"
1823
rustc-serialize = "*"
24+

Diff for: build.rs

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
2+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
3+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
4+
// option. This file may not be copied, modified, or distributed
5+
// except according to those terms.
6+
7+
extern crate gcc;
8+
9+
fn main() {
10+
gcc::compile_library(
11+
"lib_rust_crypto_helpers.a",
12+
&["src/util_helpers.c", "src/aesni_helpers.c"]);
13+
}
14+

Diff for: src/aes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ mod test {
700700
let mut result: Vec<u8> = repeat(0).take(test.plain.len()).collect();
701701
aes_enc.process(&test.plain[..], &mut result[..]);
702702
let res: &[u8] = result.as_ref();
703-
assert!(res == test.cipher);
703+
assert!(res == &test.cipher[..]);
704704
}
705705
}
706706
}

Diff for: src/aes_gcm.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
use aes::{ctr, KeySize};
88
use aead::{AeadEncryptor,AeadDecryptor};
9-
use std::slice::bytes::copy_memory;
9+
use cryptoutil::copy_memory;
1010
use symmetriccipher::SynchronousStreamCipher;
1111
use ghash::{Ghash};
1212
use util::fixed_time_eq;

0 commit comments

Comments
 (0)