kSecAttrCanDecrypt
A key whose value is a Boolean that indicates whether the cryptographic key can be used for decryption.
Declaration
let kSecAttrCanDecrypt: CFStringDiscussion
The corresponding value is of type CFBoolean and indicates whether this cryptographic key can be used to decrypt data.
On key creation, if not explicitly specified, this attribute defaults to kCFBooleanTrue for private keys and kCFBooleanFalse for public keys.