mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
Remove signature asserts
This commit is contained in:
1 parent
b7b858dbf3
commit
24963abfb0
1 file changed
-2
Vendored
-2
@@ -62,7 +62,6 @@ static SUSigningInputStatus decode(NSString *str, NSData * __strong *outData) {
|
||||
NSData *data = nil;
|
||||
_ed25519SignatureStatus = decode(maybeEd25519, &data);
|
||||
if (data) {
|
||||
assert(64 == sizeof(_ed25519_signature));
|
||||
if ([data length] == sizeof(_ed25519_signature)) {
|
||||
[data getBytes:_ed25519_signature length:sizeof(_ed25519_signature)];
|
||||
} else {
|
||||
@@ -163,7 +162,6 @@ static BOOL decodeStatus(NSCoder *decoder, NSString *key, SUSigningInputStatus *
|
||||
NSData *ed = nil;
|
||||
_ed25519PubKeyStatus = decode(maybeEd25519, &ed);
|
||||
if (ed) {
|
||||
assert(32 == sizeof(_ed25519_public_key));
|
||||
if ([ed length] == sizeof(_ed25519_public_key)) {
|
||||
[ed getBytes:_ed25519_public_key length:sizeof(_ed25519_public_key)];
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user