Skip to content
Snippets Groups Projects
Select Git revision
  • be0222cd3966686d9832d7b51aa9e4ccbc59c11b
  • dev default protected
  • 316-tracking-estimator
  • Thesis_hannes_merge_ready_versuch1
  • InboxWithNewOverview
  • 298-missing-backend-features-connections-for-ui
  • 293-integrate-attachment-functionality-in-new-composeview
  • 299-add-pull-to-refresh-to-maillistview
  • 290+Dev
  • 290-redesign-the-ContactView
  • 291-add-research-face-prototype
  • 292-add-comments-to-attachmentviewmain-swift
  • 302-fix-bug-attachment-previews-of-incoming-mails
  • 288-make-folders-list-slide-in-from-the-left-instead-of-from-the-right
  • 295-inboxview-maillistview-improvements
  • 294-fix-bugs-in-new-composeview
  • 287-redesign-composeview
  • updatePGP
  • 282-Implement-missing-functions-in-reply-button
  • 286-update-openssl
  • ThesisHannesV2_
  • runnable
  • optional_UI_change
  • dep
  • NoTestCase
25 results

PGPSecretKeyPacket.h

Blame
  • user avatar
    Oliver Wiese authored
    8106dcc8
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    PGPSecretKeyPacket.h 987 B
    //
    //  PGPSecretKeyPacket.h
    //  ObjectivePGP
    //
    //  Created by Marcin Krzyzanowski on 07/05/14.
    //  Copyright (c) 2014 Marcin Krzyżanowski. All rights reserved.
    //
    
    #import "PGPPublicKeyPacket.h"
    #import "PGPS2K.h"
    
    NS_ASSUME_NONNULL_BEGIN
    
    @interface PGPSecretKeyPacket : PGPPublicKeyPacket <NSCopying, PGPExportable>
    
    @property (nonatomic, readonly) PGPS2KUsage s2kUsage;
    @property (nonatomic, readonly) PGPS2K *s2k;
    @property (nonatomic, readonly) PGPSymmetricAlgorithm symmetricAlgorithm;
    @property (nonatomic, nullable, copy, readonly) NSData *ivData;
    @property (nonatomic, getter=isEncryptedWithPassphrase, readonly) BOOL encryptedWithPassphrase;
    
    /**
     *  Decrypt packet
     *
     *  @param passphrase Passphrase
     *  @param error      error
     *
     *  @return Decrypted key on success
     */
    - (nullable PGPSecretKeyPacket *)decryptedKeyPacket:(NSString *)passphrase error:(NSError *__autoreleasing *)error;
    
    - (nullable PGPMPI *)secretMPI:(NSString *)identifier;
    
    @end
    
    NS_ASSUME_NONNULL_END