ZDCSymmetricKey

@interface ZDCSymmetricKey <NSCoding, NSCopying>

The SymmetricKey class holds the information necessary to create a symmetric key within the S4Crypto library.

  • Generates a random symmetic key.

    Declaration

    Objective-C

    + (nonnull instancetype)keyWithAlgorithm:(id)algorithm
                                  storageKey:(id)storageKey;

    Swift

    convenience init!(algorithm: Any!, storageKey: Any!)
  • Undocumented

    Declaration

    Objective-C

    + (instancetype)keyWithString:(NSString *)inKeyJSON
                         passCode:(NSString *)passCode;

    Swift

    convenience init!(string inKeyJSON: Any!, passCode: Any!)
  • Undocumented

    Declaration

    Objective-C

    + (instancetype)keyWithS4Key:(S4KeyContextRef)symCtx
                      storageKey:(S4KeyContextRef)storageKey;

    Swift

    convenience init!(s4Key symCtx: Any!, storageKey: Any!)
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithUUID:(NSString *)uuid
    			            keyJSON:(NSString *)keyJSON;

    Swift

    init!(uuid: Any!, keyJSON: Any!)
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString * uuid

    Swift

    var uuid: UnsafeMutablePointer<Int32>! { get }
  • A string that contains the serialized JSON parameters that can be used to create the symmetic key.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull keyJSON;

    Swift

    var keyJSON: UnsafeMutablePointer<Int32>! { get }
  • Returns a parsed version of pubKeyJSON. The parsed version is kept cached in memory for performance.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSDictionary *_Nonnull keyDict;

    Swift

    var keyDict: UnsafeMutablePointer<Int32>! { get }