mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-05 20:30:57 +00:00
Fix no_std+alloc builds.
This commit is contained in:
parent
52ee801022
commit
1342e2a3a4
2 changed files with 3 additions and 1 deletions
|
|
@ -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