Skip to content

Commit

Permalink
Address review comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
bzbarsky-apple committed May 26, 2023
1 parent c155871 commit 80aae43
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/darwin/Framework/CHIP/MTRP256KeypairBridge.mm
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@

#import "MTRKeypair.h"
#import "MTRLogging_Internal.h"
#import "NSDataSpanConversion.h"

#include <lib/support/Span.h>

using namespace chip::Crypto;

Expand Down Expand Up @@ -85,7 +82,7 @@
MTR_LOG_ERROR("ECDSA sign msg failure: no keypair to sign with.");
return CHIP_ERROR_INCORRECT_STATE;
}
NSData * msgData = AsData(chip::ByteSpan(msg, msg_length));
NSData * msgData = [NSData dataWithBytes:msg length:msg_length];
NSData * signature;
if ([mKeypair respondsToSelector:@selector(signMessageECDSA_DER:)]) {
signature = [mKeypair signMessageECDSA_DER:msgData];
Expand Down

0 comments on commit 80aae43

Please sign in to comment.