1.1 --- a/MYSymmetricKey.h Sun Apr 19 00:01:41 2009 -0700
1.2 +++ b/MYSymmetricKey.h Sun Apr 19 21:19:35 2009 -0700
1.3 @@ -27,6 +27,17 @@
1.4 + (MYSymmetricKey*) generateSymmetricKeyOfSize: (unsigned)keySizeInBits
1.5 algorithm: (CCAlgorithm)algorithm;
1.6
1.7 +/** The key's algorithm. */
1.8 +@property (readonly) CCAlgorithm algorithm;
1.9 +
1.10 +/** The key's size/length, in bits. */
1.11 +@property (readonly) unsigned keySizeInBits;
1.12 +
1.13 +
1.14 +#if !TARGET_OS_IPHONE
1.15 +
1.16 +- (NSData*) exportWrappedKeyWithPassphrasePrompt: (NSString*)prompt;
1.17 +
1.18 /** Converts a passphrase into a symmetric key.
1.19 The same passphrase (and salt) will always return the same key, so you can use this method
1.20 to encrypt and decrypt data using a user-entered passphrase, without having to store the key
1.21 @@ -47,15 +58,6 @@
1.22 creating: (BOOL)creating
1.23 salt: (id)saltObj;
1.24
1.25 -/** The key's algorithm. */
1.26 -@property (readonly) CCAlgorithm algorithm;
1.27 -
1.28 -/** The key's size/length, in bits. */
1.29 -@property (readonly) unsigned keySizeInBits;
1.30 -
1.31 -- (NSData*) exportWrappedKeyWithPassphrasePrompt: (NSString*)prompt;
1.32 -
1.33 -
1.34 /** A utility that prompts for a passphrase, using the Security agent's nice modal panel,
1.35 and returns the raw passphrase as a string.
1.36 @param alertTitle A title for the alert (this seems to be ignored by the OS).
1.37 @@ -65,5 +67,6 @@
1.38 + (NSString*) promptForPassphraseWithAlertTitle: (NSString*)alertTitle
1.39 alertPrompt: (NSString*)prompt
1.40 creating: (BOOL)creating;
1.41 +#endif TARGET_OS_IPHONE
1.42
1.43 @end