Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark some S.S.C.Algorithms APIs as unsupported on ios/tvos #49762

Conversation

MaximLipnin
Copy link
Contributor

@MaximLipnin MaximLipnin commented Mar 17, 2021

#47910

The affected APIs :

  • AppleCryptoNative_EccGenerateKey
  • AppleCryptoNative_SecKeychainItemCopyKeychain
  • AppleCryptoNative_SecKeychainCreate
  • AppleCryptoNative_SecKeychainDelete
  • AppleCryptoNative_SetKeychainNeverLock
  • AppleCryptoNative_RsaGenerateKey
  • AppleCryptoNative_RsaEncryptOaep
  • AppleCryptoNative_RsaEncryptPkcs
  • AppleCryptoNative_RsaDecryptOaep
  • AppleCryptoNative_RsaDecryptPkcs
  • AppleCryptoNative_SecKeyImportEphemeral
  • AppleCryptoNative_GenerateSignature
  • AppleCryptoNative_GenerateSignatureWithHashAlgorithm
  • AppleCryptoNative_VerifySignature
  • AppleCryptoNative_VerifySignatureWithHashAlgorithm
  • AppleCryptoNative_SecKeyExport

I tried re-enabling some native part (e.g. RSA operations) but it seems to be more time consuming/ requiring more experience and outside of the bound of the current task for annotating.

I had to use warning suppression in managed code (mostly in private/internal classes/methods) where the unsupported APIs are invoked in order to fix the build.

Also, I excluded the unsupported methods from the build on iOS/tvOS by adding Interop.*.Mobile.cs files.

@ghost
Copy link

ghost commented Mar 17, 2021

Tagging subscribers to this area: @bartonjs, @vcsjones, @krwq, @GrabYourPitchforks
See info in area-owners.md if you want to be subscribed.

Issue Details

#47910

Author: MaximLipnin
Assignees: -
Labels:

area-System.Security

Milestone: -

@MaximLipnin MaximLipnin force-pushed the mark_SSCA_apis_as_unsupported_on_ios_tvos branch 2 times, most recently from 3d459d1 to cd4e553 Compare March 19, 2021 12:55
@MaximLipnin MaximLipnin force-pushed the mark_SSCA_apis_as_unsupported_on_ios_tvos branch 4 times, most recently from 6a77a33 to c64f827 Compare March 23, 2021 11:46
@MaximLipnin MaximLipnin force-pushed the mark_SSCA_apis_as_unsupported_on_ios_tvos branch from c64f827 to a5b2bfa Compare March 24, 2021 13:02
@MaximLipnin MaximLipnin force-pushed the mark_SSCA_apis_as_unsupported_on_ios_tvos branch 3 times, most recently from bee5bac to e714512 Compare April 5, 2021 09:13
@MaximLipnin MaximLipnin force-pushed the mark_SSCA_apis_as_unsupported_on_ios_tvos branch from e714512 to 2461b34 Compare April 6, 2021 07:10
@MaximLipnin MaximLipnin force-pushed the mark_SSCA_apis_as_unsupported_on_ios_tvos branch 2 times, most recently from ce89593 to 86c8865 Compare April 21, 2021 12:25
@MaximLipnin MaximLipnin force-pushed the mark_SSCA_apis_as_unsupported_on_ios_tvos branch from 86c8865 to 2777fe2 Compare April 21, 2021 13:24
@akoeplinger
Copy link
Member

Looks like some of these APIs will actually work after @filipnavara's #51620 so we should wait for that to land and then update this one.

@filipnavara
Copy link
Member

Please hold on with this. I have pretty much the whole S.S.C.Algorithms working on iOS (main...filipnavara:ios-crypto-003) and I'll clean it up and start submitting as individual PRs for review.

@MaximLipnin
Copy link
Contributor Author

The respective S.S.C.Algorithms APIs were enabled in other PR so this work is no longer needed and I'm closing it.

@MaximLipnin MaximLipnin deleted the mark_SSCA_apis_as_unsupported_on_ios_tvos branch April 30, 2021 06:22
@karelz karelz added this to the 6.0.0 milestone May 20, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Jun 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants