mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-07 20:50:39 +00:00
Merge branch 'fix/found-argument-alloc' into develop
This commit is contained in:
commit
91426a2306
3 changed files with 10 additions and 8 deletions
14
.travis.yml
14
.travis.yml
|
|
@ -6,26 +6,26 @@ rust:
|
||||||
- nightly
|
- nightly
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- TEST_COMMAND=test FEATURES=''
|
- TEST_COMMAND=test EXTRA_FLAGS='' FEATURES=''
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
# We use the 64-bit optimised curve backend by default, so also test with
|
# We use the 64-bit optimised curve backend by default, so also test with
|
||||||
# the 32-bit backend (this also exercises testing with `no_std`):
|
# the 32-bit backend (this also exercises testing with `no_std`):
|
||||||
- rust: nightly
|
- rust: nightly
|
||||||
env: TEST_COMMAND=build FEATURES='--no-default-features --features=u32_backend'
|
env: TEST_COMMAND=build EXTRA_FLAGS='--no-default-features' FEATURES='u32_backend alloc'
|
||||||
# Also test the `alloc` feature with `no_std`:
|
# Also test the batch feature:
|
||||||
- rust: nightly
|
- rust: nightly
|
||||||
env: TEST_COMMAND=build FEATURES='--no-default-features --features="u64_backend alloc"'
|
env: TEST_COMMAND=build EXTRA_FLAGS='--no-default-features' FEATURES='u64_backend alloc batch'
|
||||||
# Test any nightly gated features on nightly:
|
# Test any nightly gated features on nightly:
|
||||||
- rust: nightly
|
- rust: nightly
|
||||||
env: TEST_COMMAND=test FEATURES='--features=nightly'
|
env: TEST_COMMAND=test EXTRA_FLAGS='' FEATURES='nightly'
|
||||||
# Test serde support on stable, assuming that if it works there it'll work everywhere:
|
# Test serde support on stable, assuming that if it works there it'll work everywhere:
|
||||||
- rust: stable
|
- rust: stable
|
||||||
env: TEST_COMMAND=test FEATURE='--features=serde'
|
env: TEST_COMMAND=test EXTRA_FLAGS='' FEATURES='serde'
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- cargo $TEST_COMMAND $FEATURES
|
- cargo $TEST_COMMAND --features="$FEATURES" $EXTRA_FLAGS
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
slack:
|
slack:
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,7 @@ pub fn verify_batch(
|
||||||
public_keys: &[PublicKey],
|
public_keys: &[PublicKey],
|
||||||
) -> Result<(), SignatureError>
|
) -> Result<(), SignatureError>
|
||||||
{
|
{
|
||||||
const ASSERT_MESSAGE: &'static [u8] = b"The number of messages, signatures, and public keys must be equal.";
|
const ASSERT_MESSAGE: &'static str = "The number of messages, signatures, and public keys must be equal.";
|
||||||
assert!(signatures.len() == messages.len(), ASSERT_MESSAGE);
|
assert!(signatures.len() == messages.len(), ASSERT_MESSAGE);
|
||||||
assert!(signatures.len() == public_keys.len(), ASSERT_MESSAGE);
|
assert!(signatures.len() == public_keys.len(), ASSERT_MESSAGE);
|
||||||
assert!(public_keys.len() == messages.len(), ASSERT_MESSAGE);
|
assert!(public_keys.len() == messages.len(), ASSERT_MESSAGE);
|
||||||
|
|
|
||||||
|
|
@ -255,6 +255,8 @@
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate std;
|
extern crate std;
|
||||||
|
|
||||||
|
#[cfg(all(feature = "alloc", not(feature = "std")))]
|
||||||
|
extern crate alloc;
|
||||||
extern crate clear_on_drop;
|
extern crate clear_on_drop;
|
||||||
extern crate curve25519_dalek;
|
extern crate curve25519_dalek;
|
||||||
extern crate failure;
|
extern crate failure;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue