Skip to content
Snippets Groups Projects
Select Git revision
  • 7150ad6f9f926125a5ad9326ed86ef64cfd52b2c
  • 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

PGPCompressedPacket.h

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    PGPCompressedPacket.h 677 B
    //
    //  PGPCompressedPacket.h
    //  ObjectivePGP
    //
    //  Created by Marcin Krzyzanowski on 02/06/14.
    //  Copyright (c) 2014 Marcin Krzyżanowski. All rights reserved.
    //
    
    #import "PGPPacket.h"
    
    // 9.3.  Compression Algorithms
    typedef NS_ENUM(UInt8, PGPCompressionAlgorithm) {
        PGPCompressionUncompressed = 0,
        PGPCompressionZIP = 1, // TODO: Unsupported
        PGPCompressionZLIB = 2,
        PGPCompressionBZIP2 = 3
    };
    
    @interface PGPCompressedPacket : PGPPacket
    @property (nonatomic, readonly) PGPCompressionAlgorithm compressionType;
    @property (nonatomic) NSData *decompressedData;
    
    - (instancetype)initWithData:(NSData *)dataToCompress type:(PGPCompressionAlgorithm)type;
    
    @end