Post

Replies

Boosts

Views

Created

Use Cryptotokenkit for mail deciphering
Hello, I recently implemented the Cryptotokenkit for IOS in order to sign mails (via Apple Mail app). This part went relatively smooth. I found in the Mail settings the parameter under S/MIME that enable Signing mails. Now that this step is complete I also wanted to implement mail deciphering. I tried to run some tests but I met the following message when opening encrypted mail: This message is encrypted. Install a profile containing your encryption identity to decrypt this message I'm sure I've encrypted the mail for me. and I'm also sure the identity is saved and usable inside the Cryptotokenkit I implemented. My questions are: is it possible to use the Cryptotokenkit for mail deciphering? (I assume that since I can sign mail via Cryptotokenkit I can also do mail deciphering, right ?). If the first question's answer is yes. then how do you enable the Cryptotokenkit to do mail deciphering? (I thought the option was close to the one for enabling signing mails but I only found mail encryption)
1
1
1.1k
Feb ’22
Custom TKTokenAuthOperation inside the Cryptotokenkit API
Hello, I recently wanted to change the GUI of the TKTokenSmartCardPINAuthOperation to use my own GUI. from the documentation available on the Apple website nothing tells me that it's forbiden to create your own TKTokenAuthOperation in order to login on a card. [https://developer.apple.com/documentation/cryptotokenkit/tktokenauthoperation] I thought that making a class inherit the TKTokenAuthOperation where I could create my own Workflow and GUI would help. unfortunatly as soon as we exsit the init() function (and the calling function of a tokenSession(_:beginAuthFor:constraint:)) the operation I was doing( in my case a signature) start all over again, without waiting for the end of the authentication. I would love to use this solution since the workflow of a signature inside the tokenSession(_:sign:)) function is non blocking, therfore if I want to display my own PIN dialog since the one provoded does not enable facial recognition, or bio template aquisition. TLDR: class MyAuth : TKTokenAuthOperation { override init() { Display_My_PINDialog(completionHandler: { pin in self.finish() }) } } does not work.
1
1
1.1k
Mar ’23