kSecAttrKeyTypeEC swift
I try to get sha384 with ECDSA keys. I follow up with this article: https://digitalleaves.com/blog/2015/10/asymmetric-cryptography-in-swift/?replytocom=52690#respond but I change RSA to EC, of course. and keys are generated, but encryptMessageWithPublicKey doesn't work :( Variable "status" in method: encryptMessageWithPublicKey return -50 ... Here is my code: import UIKit import Security private let _singletonInstance = AsymmetricCryptoManager() private let kAsymmetricCryptoManagerApplicationTag = "com.AsymmetricCrypto.keypair" private let kAsymmetricCryptoManagerKeyType = kSecAttrKeyTypeEC/