MYKey.h
changeset 16 c409dbc4f068
parent 2 8982b8fada63
child 17 90a70925562b
     1.1 --- a/MYKey.h	Tue Apr 07 10:56:58 2009 -0700
     1.2 +++ b/MYKey.h	Tue Jun 02 13:16:28 2009 -0700
     1.3 @@ -54,13 +54,6 @@
     1.4   The user can edit this, so don't expect it to be immutable. */
     1.5  @property (copy) NSString *comment;
     1.6  
     1.7 -/** Converts the key into a data blob in one of several standard formats, suitable for storing in
     1.8 -    a file or sending over the network.
     1.9 -    @param format  The data format: kSecFormatOpenSSL, kSecFormatSSH, kSecFormatBSAFE or kSecFormatSSHv2.
    1.10 -    @param withPEM  YES if the data should be encoded in PEM format, which converts into short lines
    1.11 -        of printable ASCII characters, suitable for sending in email. */
    1.12 -- (NSData*) exportKeyInFormat: (SecExternalFormat)format withPEM: (BOOL)withPEM;
    1.13 -
    1.14  #endif
    1.15  //@}
    1.16  
    1.17 @@ -84,6 +77,8 @@
    1.18  /** The underlying CSSM_CSP_HANDLE structure; used with low-level crypto APIs. */
    1.19  @property (readonly) intptr_t /*CSSM_CSP_HANDLE*/ cssmCSPHandle;
    1.20  
    1.21 +@property (readonly) CSSM_ALGORITHMS cssmAlgorithm;
    1.22 +
    1.23  /** Gets CSSM authorization credentials for a specified operation, such as
    1.24      CSSM_ACL_AUTHORIZATION_ENCRYPT. This pointer is necessary for creating some CSSM operation
    1.25      contexts.