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 Oct 5, 2023
1 parent 07d9efe commit 1292056
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 1292056

Please sign in to comment.