Inherits from PGPPacket : NSObject
Conforms to NSCopying
Declared in PGPSignaturePacket.h

Properties

canBeUsedToEncrypt

@property (assign, nonatomic, readonly) BOOL canBeUsedToEncrypt

canBeUsedToSign

@property (assign, nonatomic, readonly) BOOL canBeUsedToSign

hashAlgoritm

@property (assign) PGPHashAlgorithm hashAlgoritm

hashedSubpackets

@property (strong, readonly, nonatomic) NSArray *hashedSubpackets

publicKeyAlgorithm

@property (assign) PGPPublicKeyAlgorithm publicKeyAlgorithm

signatureMPIs

@property (strong) NSArray *signatureMPIs

signedHashValueData

@property (strong) NSData *signedHashValueData

type

@property (assign) PGPSignatureType type

unhashedSubpackets

@property (strong, readonly, nonatomic) NSArray *unhashedSubpackets

version

@property (assign) UInt8 version

Class Methods

signaturePacket:hashAlgorithm:

+ (PGPSignaturePacket *)signaturePacket:(PGPSignatureType)type hashAlgorithm:(PGPHashAlgorithm)hashAlgorithm
Discussion

Create signature packet for signing. This is convienience constructor.

Parameters

type

example: PGPSignatureBinaryDocument

hashAlgorithm

hash algorithm to be used for signature

publicKeyAlgorithm

public key algorith to be used for signature

Return Value

Packet instance ready to call signData:secretKey

Declared In

PGPSignaturePacket.h

Instance Methods

creationDate

- (NSDate *)creationDate

expirationDate

- (NSDate *)expirationDate

isExpired

- (BOOL)isExpired

isPrimaryUserID

- (BOOL)isPrimaryUserID

issuerKeyID

- (PGPKeyID *)issuerKeyID

signData:secretKey:

- (void)signData:(NSData *)inputData secretKey:(PGPKey *)secretKey

signData:secretKey:passphrase:userID:

- (void)signData:(NSData *)inputData secretKey:(PGPKey *)secretKey passphrase:(NSString *)passphrase userID:(NSString *)userID
Discussion

Build signature data (signature packet with subpackets).

Parameters

inputData

Data to sign

secretKey

Secret key used to create signature

userID

Optional. User ID

Return Value

Signature packet data

Declared In

PGPSignaturePacket.h

subpackets

- (NSArray *)subpackets

subpacketsOfType:

- (NSArray *)subpacketsOfType:(PGPSignatureSubpacketType)type

verifyData:withKey:

- (BOOL)verifyData:(NSData *)inputData withKey:(PGPKey *)publicKey

verifyData:withKey:signingKeyPacket:userID:

- (BOOL)verifyData:(NSData *)inputData withKey:(PGPKey *)publicKey signingKeyPacket:(PGPPublicKeyPacket *)signingKeyPacket userID:(NSString *)userID

verifyData:withKey:userID:

- (BOOL)verifyData:(NSData *)inputData withKey:(PGPKey *)publicKey userID:(NSString *)userID