AGEncryptionService Protocol Reference
| Conforms to | NSObject | 
| Declared in | AGEncryptionService.h | 
Tasks
- 
	
		– encrypt:required method
- 
	
		– encrypt:IV:required method
- 
	
		– decrypt:required method
- 
	
		– decrypt:IV:required method
Instance Methods
decrypt:
Decrypts the data object(cipher) passed in.
- (NSData *)decrypt:(NSData *)dataParameters
- data
- The data object(cipher) to decrypt. 
Return Value
An NSData object that holds the decrypted data.
Discussion
Decrypts the data object(cipher) passed in.
Declared In
AGEncryptionService.hdecrypt:IV:
Decrypts the data object(cipher) passed in.
- (NSData *)decrypt:(NSData *)data IV:(NSData *)IVParameters
- data
- The data object(cipher) to decrypt. 
- IV
- A randomly chosen value used as the initialization vector during decrypt. 
Return Value
An NSData object that holds the decrypted data.
Discussion
Decrypts the data object(cipher) passed in.
Declared In
AGEncryptionService.hencrypt:
Encrypts the data object passed in.
- (NSData *)encrypt:(NSData *)dataParameters
- data
- The data object to encrypt. 
Return Value
An NSData object that holds the encrypted(cipher) data.
Discussion
Encrypts the data object passed in.
Declared In
AGEncryptionService.hencrypt:IV:
Encrypts the data object passed in.
- (NSData *)encrypt:(NSData *)data IV:(NSData *)IVParameters
- data
- The data object to encrypt. 
- IV
- A randomly chosen value used as the initialization vector during encrypt. 
Return Value
An NSData object that holds the encrypted(cipher) data.
Discussion
Encrypts the data object passed in.
Declared In
AGEncryptionService.h