Skip to content

Commit

Permalink
Adding braces
Browse files Browse the repository at this point in the history
  • Loading branch information
woody-apple committed Oct 30, 2024
1 parent 4789980 commit e3735b2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ - (NSData *)signMessageECDSA_RAW:(NSData *)message
{
chip::Crypto::P256ECDSASignature signature;
NSData * out_signature;
CHIP_ERROR signing_error = _mKeyPair.ECDSA_sign_msg((const uint8_t *) [message bytes], (size_t)[message length], signature);
CHIP_ERROR signing_error = _mKeyPair.ECDSA_sign_msg((const uint8_t *) [message bytes], (size_t) [message length], signature);
if (signing_error != CHIP_NO_ERROR)
return nil;
out_signature = [NSData dataWithBytes:signature.Bytes() length:signature.Length()];
Expand All @@ -80,8 +80,9 @@ - (SecKeyRef)copyPublicKey
_mPublicKey = SecKeyCreateWithData((__bridge CFDataRef) publicKeyNSData, (__bridge CFDictionaryRef) attributes, nullptr);
}

if (_mPublicKey)
if (_mPublicKey) {
return CFRetain(_mPublicKey);
}

return NULL;
}
Expand Down

0 comments on commit e3735b2

Please sign in to comment.