SFCryptoStreamTestUtils Class Reference
Inherits from | NSObject |
---|---|
Declared in | SFCryptoStreamTestUtils.h |
+ defaultKeyWithSize:
The default test key bounded by a size.
+ (NSData *)defaultKeyWithSize:(size_t)keySize
Parameters
keySize |
the key size. |
---|
Return Value
the default test key data.
Declared In
SFCryptoStreamTestUtils.h
+ defaultInitializationVectorWithBlockSize:
The default initialization vector bounded by a size.
+ (NSData *)defaultInitializationVectorWithBlockSize:(size_t)blockSize
Parameters
blockSize |
the iv size. |
---|
Return Value
the default test iv data.
Declared In
SFCryptoStreamTestUtils.h
+ defaultTestDataWithSize:
The default test data bounded by a size.
+ (NSData *)defaultTestDataWithSize:(size_t)testDataSize
Parameters
testDataSize |
the test data size. |
---|
Return Value
the default test data.
Declared In
SFCryptoStreamTestUtils.h
+ encryptDecryptData:usingCrypto:withInitializationVector:
Encrypt or decrypted in one-shot, based on the operation type of crypto
.
+ (NSData *)encryptDecryptData:(NSData *)data usingCrypto:(CCCryptorRef)crypto withInitializationVector:(NSData *)iv
Parameters
data |
the data to be encrypted/decrypted. |
---|---|
crypto |
a crypto reference to be used in the operation. |
iv |
the initialization vector desired to be used. |
Return Value
the encrypted/decrypted result.
Declared In
SFCryptoStreamTestUtils.h
+ filePathForFileName:
A file path where test files are stored.
+ (NSString *)filePathForFileName:(NSString *)fileName
Parameters
fileName |
the file name. |
---|
Return Value
the complete path to reach the test file name passed.
Declared In
SFCryptoStreamTestUtils.h