Inherits from NSObject
Conforms to NSCopying
Declared in PGPS2K.h

Properties

hashAlgorithm

@property (nonatomic, readonly) PGPHashAlgorithm hashAlgorithm

iterationsCount

@property (nonatomic) UInt32 iterationsCount

salt

@property (nonatomic, copy, readonly) NSData *salt

specifier

@property (nonatomic, readonly) PGPS2KSpecifier specifier

Class Methods

S2KFromData:atPosition:length:

+ (PGPS2K *)S2KFromData:(NSData *)data atPosition:(NSUInteger)position length:(nullable NSUInteger *)length

Instance Methods

buildKeyDataForPassphrase:prefix:salt:codedCount:

- (nullable NSData *)buildKeyDataForPassphrase:(NSData *)passphrase prefix:(nullable NSData *)prefix salt:(NSData *)salt codedCount:(UInt32)codedCount

export:

- (nullable NSData *)export:(NSError *__autoreleasing *)error

initWithSpecifier:hashAlgorithm:

- (instancetype)initWithSpecifier:(PGPS2KSpecifier)specifier hashAlgorithm:(PGPHashAlgorithm)hashAlgorithm

produceSessionKeyWithPassphrase:symmetricAlgorithm:

- (nullable NSData *)produceSessionKeyWithPassphrase:(NSString *)passphrase symmetricAlgorithm:(PGPSymmetricAlgorithm)symmetricAlgorithm