Conforms to NSObject
Declared in AGEncryptionService.h

Overview

An AGEncryptionService represents an abstraction layer for a encryption provider.

Tasks

Instance Methods

decrypt:

Decrypts the data object(cipher) passed in.

- (NSData *)decrypt:(NSData *)data

Parameters

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.h

decrypt:IV:

Decrypts the data object(cipher) passed in.

- (NSData *)decrypt:(NSData *)data IV:(NSData *)IV

Parameters

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.h

encrypt:

Encrypts the data object passed in.

- (NSData *)encrypt:(NSData *)data

Parameters

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.h

encrypt:IV:

Encrypts the data object passed in.

- (NSData *)encrypt:(NSData *)data IV:(NSData *)IV

Parameters

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