Protocols

The following protocols are available globally.

  • The RNCryptorType protocol defines generic API to a mutable, incremental, password-based encryptor or decryptor. Its generic usage is as follows:

    let cryptor = Encryptor(password: "mypassword")
    // or Decryptor()
    
    var result = Data()
    for data in datas {
        result.appendData(try cryptor.update(data))
    }
    result.appendData(try cryptor.final())
    

    After calling finalData(), the cryptor is no longer valid.

    See more

    Declaration

    Swift

    public protocol RNCryptorType
  • MapContext is available for developers who wish to pass information around during the mapping process.

    Declaration

    Swift

    public protocol MapContext
  • BaseMappable should not be implemented directly. Mappable or StaticMappable should be used instead

    See more

    Declaration

    Swift

    public protocol BaseMappable