From 1043380111da594b822fe1ccfd8c3a119f32db00 Mon Sep 17 00:00:00 2001 From: Ivan Tadeu Ferreira Antunes Filho Date: Thu, 2 Feb 2023 01:55:57 -0500 Subject: [PATCH] Fix bridge-cast error. (#24801) kSecAttrKeyTypeECSECPrimeRandom is a CFStringRef, not a number. --- src/darwin/CHIPTool/CHIPTool/Framework Helpers/FabricKeys.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/darwin/CHIPTool/CHIPTool/Framework Helpers/FabricKeys.m b/src/darwin/CHIPTool/CHIPTool/Framework Helpers/FabricKeys.m index b7ff690604fe6c..55f6655b053b63 100644 --- a/src/darwin/CHIPTool/CHIPTool/Framework Helpers/FabricKeys.m +++ b/src/darwin/CHIPTool/CHIPTool/Framework Helpers/FabricKeys.m @@ -110,7 +110,7 @@ + (NSDictionary *)privateKeyCreationParams return @{ (__bridge NSString *) kSecAttrKeyClass : (__bridge NSString *) kSecAttrKeyClassPrivate, - (__bridge NSString *) kSecAttrKeyType : (__bridge NSNumber *) kSecAttrKeyTypeECSECPrimeRandom, + (__bridge NSString *) kSecAttrKeyType : (__bridge NSString *) kSecAttrKeyTypeECSECPrimeRandom, (__bridge NSString *) kSecAttrKeySizeInBits : @(keySizeInBits), (__bridge NSString *) kSecAttrIsPermanent : @(NO) };