tag:blogger.com,1999:blog-3989307033081636506.post1678017176923205516..comments2024-02-13T18:29:14.519+08:00Comments on Study Swift: Store/Retrieve/Delete RSA public/private keys with keychainE Huanghttp://www.blogger.com/profile/10227771781740044253noreply@blogger.comBlogger14125tag:blogger.com,1999:blog-3989307033081636506.post-23142563039106859092022-01-12T14:02:03.635+08:002022-01-12T14:02:03.635+08:00This comment has been removed by the author.YourFriendhttps://www.blogger.com/profile/00485549082155438371noreply@blogger.comtag:blogger.com,1999:blog-3989307033081636506.post-76064283688787219672017-05-20T10:48:41.322+08:002017-05-20T10:48:41.322+08:00It should delete keys of this app only. It should delete keys of this app only. E Huanghttps://www.blogger.com/profile/10227771781740044253noreply@blogger.comtag:blogger.com,1999:blog-3989307033081636506.post-89079912203172028222017-05-19T17:55:43.473+08:002017-05-19T17:55:43.473+08:00Hi, delete function remove all keys? Even if these...Hi, delete function remove all keys? Even if these keys doesn't from my app?MaNiAkhttps://www.blogger.com/profile/04262368115341301849noreply@blogger.comtag:blogger.com,1999:blog-3989307033081636506.post-40207923208849991812017-01-03T16:32:38.179+08:002017-01-03T16:32:38.179+08:00Hello. Please see if this helps:
Communication bet...Hello. Please see if this helps:<br /><a href="http://studyswift.blogspot.com/2016/03/communication-between-ios-device-client.html" rel="nofollow">Communication between iOS device (Client) and Raspberry Pi (Server)</a>E Huanghttps://www.blogger.com/profile/10227771781740044253noreply@blogger.comtag:blogger.com,1999:blog-3989307033081636506.post-53467477756826442182017-01-03T14:36:48.840+08:002017-01-03T14:36:48.840+08:00Thx Enoch, very helpful. Any code sample on how to...Thx Enoch, very helpful. Any code sample on how to format the public Key in order to share it with a server (written in node.js) ?Frank Bowhttps://www.blogger.com/profile/12952401670359188015noreply@blogger.comtag:blogger.com,1999:blog-3989307033081636506.post-57719960877980928522016-11-29T09:57:26.896+08:002016-11-29T09:57:26.896+08:00Perhaps the problem is with the block size, which ...Perhaps the problem is with the block size, which should be the size of the encrypted message, but not be the size of the public key:<br /><br />let blockSize = SecKeyGetBlockSize(publicKey!)<br />var messageEncrypted = [UInt8](count: blockSize, repeatedValue: 0)<br /><br />Please try define blockSize as a larger value.<br /><br />E Huanghttps://www.blogger.com/profile/10227771781740044253noreply@blogger.comtag:blogger.com,1999:blog-3989307033081636506.post-45858400956192859802016-11-28T18:22:52.717+08:002016-11-28T18:22:52.717+08:00Yes I have try encrypt a messaga >= key size, b...Yes I have try encrypt a messaga >= key size, but return always errSecParam<br />Do you have any idea why? <br />ThanksFabio Benedettihttps://www.blogger.com/profile/09814338993455376672noreply@blogger.comtag:blogger.com,1999:blog-3989307033081636506.post-57435854878671365892016-11-28T15:44:21.720+08:002016-11-28T15:44:21.720+08:00This comment has been removed by the author.Fabio Benedettihttps://www.blogger.com/profile/09814338993455376672noreply@blogger.comtag:blogger.com,1999:blog-3989307033081636506.post-37555408591497571962016-11-28T15:33:37.894+08:002016-11-28T15:33:37.894+08:00Yes, just try it :)Yes, just try it :)E Huanghttps://www.blogger.com/profile/10227771781740044253noreply@blogger.comtag:blogger.com,1999:blog-3989307033081636506.post-45645804385720746372016-11-28T15:24:32.222+08:002016-11-28T15:24:32.222+08:00Yes. SecKeyGeneratePair() automatically stores gen...Yes. SecKeyGeneratePair() automatically stores generated keys in keychain when I called it. So SecItemAdd() is not required.E Huanghttps://www.blogger.com/profile/10227771781740044253noreply@blogger.comtag:blogger.com,1999:blog-3989307033081636506.post-70272055194799503972016-11-27T01:29:29.028+08:002016-11-27T01:29:29.028+08:00And Can i encrypt and decrypt a message much bigge...And Can i encrypt and decrypt a message much bigger the key size?<br />ThanksFabio Benedettihttps://www.blogger.com/profile/09814338993455376672noreply@blogger.comtag:blogger.com,1999:blog-3989307033081636506.post-89439886470006798702016-11-26T17:05:25.301+08:002016-11-26T17:05:25.301+08:00Hi when we create a pair keychain, the keys are st...Hi when we create a pair keychain, the keys are store automatically in the keychain? is for it that you commented the method StoreInKeychain?<br />ThanksFabio Benedettihttps://www.blogger.com/profile/09814338993455376672noreply@blogger.comtag:blogger.com,1999:blog-3989307033081636506.post-34716112808446402942016-11-25T10:51:30.183+08:002016-11-25T10:51:30.183+08:00I hope I could answer you, but unfortunately I hav...I hope I could answer you, but unfortunately I have no experience with EC. Can you ask in Stackoverflow or Apple Developer Forums?E Huanghttps://www.blogger.com/profile/10227771781740044253noreply@blogger.comtag:blogger.com,1999:blog-3989307033081636506.post-29589172773102785762016-11-24T18:58:35.532+08:002016-11-24T18:58:35.532+08:00Hi, how i can use this code to generate EC instead...Hi, how i can use this code to generate EC instead of RSA ???<br />can i do that by replace kSecAttrKeyTypeRSA to kSecAttrKeyTypeEC <br />and kSecAttrKeySizeInBits as String: 1024 to kSecAttrKeySizeInBits as String: 192 ???<br /><br />i search on the internet for any tutorial talking about EC but i found nothing <br />please help me with that ??<br />boodehttps://www.blogger.com/profile/08707320215958105185noreply@blogger.com