mirror of
https://github.com/RustCrypto/signatures
synced 2026-06-21 13:45:42 +00:00
Update signature requirement to v1.0.0-pre.5
Changelog here: https://github.com/RustCrypto/traits/pull/90
This commit is contained in:
+1
-1
@@ -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
@@ -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]
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
@@ -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
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
# MOVED
|
||||
|
||||
The `signature` crate has moved to:
|
||||
|
||||
https://github.com/RustCrypto/traits/tree/master/signature
|
||||
Reference in New Issue
Block a user