Giter VIP home page Giter VIP logo

Comments (3)

angelo-RSVP avatar angelo-RSVP commented on July 3, 2024

Same. The fix for #29 worked but when I'm sending data from iOS 13 (fixed) to iOS 11 (pre-fixed) version, iOS 11 (the pre-fixed version) crashes.

Breakpointing, I can see that status == kCCSuccess, but the returned data is (null)

from cross-platform-aes.

angelo-RSVP avatar angelo-RSVP commented on July 3, 2024

I managed to fix it by doing the alternative approach here.

use this function and replace NSString *hash=[out debugDescription]; with NSString *hash = [self hex: out];

 -(NSString*)hex:(NSData*)data{
      NSMutableData *result = [NSMutableData dataWithLength:2*data.length];
      unsigned const char* src = data.bytes;
      unsigned char* dst = result.mutableBytes;
      unsigned char t0, t1;
 
      for (int i = 0; i < data.length; i ++ ) {
           t0 = src[i] >> 4;
           t1 = src[i] & 0x0F;
 
           dst[i*2] = 48 + t0 + (t0 / 10) * 39;
           dst[i*2+1] = 48 + t1 + (t1 / 10) * 39;
      }
 
      return [[NSString alloc] initWithData:result encoding:NSASCIIStringEncoding];
 }

I'm still on testing phase but the results so far looks positive.

from cross-platform-aes.

skavinvarnan avatar skavinvarnan commented on July 3, 2024

This issue has been fixed

from cross-platform-aes.

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.