Code Monkey home page Code Monkey logo

Comments (4)

billabt avatar billabt commented on May 17, 2024

Thanks for the heads up. I'll incorporate the enhanced error checking.

from bluecryptor.

iosdevzone avatar iosdevzone commented on May 17, 2024

You're welcome!

The change you made near line 643 of StreamCryptor.swift is not correct. It should be:

    iv.utf8.count

iv.count will give you the number of Characters not bytes.

from bluecryptor.

billabt avatar billabt commented on May 17, 2024

Thanks for the catch. Unfortunately, I’ve got a nasty habit of making that particular mistake. Thanks again for catching it.

from bluecryptor.

iosdevzone avatar iosdevzone commented on May 17, 2024

Happens to us all! Actually this made me aware of the fact that we're relying on some possibly undocumented behavior in how String is passed as an UnsafeRawPointer. Will be checking it out and let you know my conclusion. This route was to avoid the possible performance hit of explicitly converting to [UInt8]. I'll open a separate issue/PR when appropriate.

from bluecryptor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.