MSProtector encryptAlignedBlocksWithStartingBlockNumber method

[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]

Used to encrypt a block of unencrypted data.

Signature

- (NSData *)encryptAlignedBlocksWithStartingBlockNumber:(NSUInteger)startingBlockNumber 
                                        unEncryptedData:(NSData *)unEncryptedData 
                                                isFinal:(BOOL)isFinal 
                                                  error:(NSError **)errorPtr;

Parameters

Name Datatype Notes
startingBlockNumber
NSUInteger
unEncryptedData
NSData *
isFinal
BOOL
Set to TRUE for the last block, otherwise FALSE.
errorPtr
NSError **

Returns

Pointer to an NSData object containing the block of encrypted data.

Defined in

MSProtection.h

Supported Platforms

Minimum supported OS versions
iOS 7.0 and OS X 10.8

Remarks

templateListWithUserId should be invoked from the main thread.