Update signature requirement to v1.0.0-pre.5

Changelog here: https://github.com/RustCrypto/traits/pull/90
This commit is contained in:
Tony Arcieri
2020-03-16 09:43:43 -07:00
parent 99650e4935
commit 50aee81e3a
8 changed files with 10 additions and 15 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ DIRS=`ls -d */`
TARGET="thumbv7em-none-eabi"
for dir in $DIRS; do
if [ $dir = "target/" -o $dir = "signature-crate/" ]
if [ $dir = "target/" ]
then
continue
fi
+1 -1
View File
@@ -44,7 +44,7 @@ optional = true
default-features = false
[dependencies.signature]
version = "= 1.0.0-pre.3"
version = "= 1.0.0-pre.5"
default-features = false
[features]
+2 -2
View File
@@ -46,8 +46,8 @@ where
MaxSize<C::ScalarSize>: ArrayLength<u8>,
<C::ScalarSize as Add>::Output: ArrayLength<u8> + Add<MaxOverhead>,
{
fn from_bytes(bytes: impl AsRef<[u8]>) -> Result<Self, Error> {
bytes.as_ref().try_into()
fn from_bytes(bytes: &[u8]) -> Result<Self, Error> {
bytes.try_into()
}
}
+1 -1
View File
@@ -59,7 +59,7 @@ where
// support only integers of less than 127 bytes each (signed
// encoding) so the resulting raw signature will have length
// at most 254 bytes.
let mut bytes = signature.as_slice();
let mut bytes = signature.as_bytes();
// First byte is SEQUENCE tag.
if bytes[0] != Asn1Tag::Sequence as u8 {
+2 -2
View File
@@ -28,8 +28,8 @@ impl<C: Curve> signature::Signature for FixedSignature<C>
where
Size<C::ScalarSize>: ArrayLength<u8>,
{
fn from_bytes(bytes: impl AsRef<[u8]>) -> Result<Self, Error> {
bytes.as_ref().try_into()
fn from_bytes(bytes: &[u8]) -> Result<Self, Error> {
bytes.try_into()
}
}
+1 -1
View File
@@ -12,7 +12,7 @@ categories = ["cryptography", "no-std"]
keywords = ["crypto", "curve25519", "ecc", "signature", "signing"]
[dependencies.signature]
version = "= 1.0.0-pre.3"
version = "= 1.0.0-pre.5"
default-features = false
[dependencies.serde]
+2 -2
View File
@@ -52,8 +52,8 @@ impl Signature {
}
impl signature::Signature for Signature {
fn from_bytes(bytes: impl AsRef<[u8]>) -> Result<Self, Error> {
bytes.as_ref().try_into()
fn from_bytes(bytes: &[u8]) -> Result<Self, Error> {
bytes.try_into()
}
}
-5
View File
@@ -1,5 +0,0 @@
# MOVED
The `signature` crate has moved to:
https://github.com/RustCrypto/traits/tree/master/signature