RichieV1Cryptor
Objective-C
@interface RichieV1Cryptor : NSObject <RichieCryptor>
Swift
class RichieV1Cryptor : NSObject, RichieCryptor
RichieV1Cryptor
creates an AES encryptor or decryptor that implements RichieCryptor
.
-
Create an encryptor.
Declaration
Objective-C
+ (nullable id<RichieCryptor>)encryptorForAESWithKey:(nonnull NSData *)key iv:(nullable NSData *)iv;
Swift
class func encryptorForAES(withKey key: Data, iv: Data?) -> (any RichieCryptor)?
-
Create a decryptor.
Declaration
Objective-C
+ (nullable id<RichieCryptor>)decryptorForAESWithKey:(nonnull NSData *)key iv:(nullable NSData *)iv;
Swift
class func decryptorForAES(withKey key: Data, iv: Data?) -> (any RichieCryptor)?