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 Jan 4, 2024
1 parent 3d5ab87 commit 2872146
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 2872146

Please sign in to comment.