Skip to content

Commit

Permalink
Fix bridge-cast error. (#24801)
Browse files Browse the repository at this point in the history
kSecAttrKeyTypeECSECPrimeRandom is a CFStringRef, not a number.
  • Loading branch information
itf authored and pull[bot] committed Feb 6, 2024
1 parent 904e3ec commit 1043380
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
};
Expand Down

0 comments on commit 1043380

Please sign in to comment.