1. #61
    Originally Posted by DanAmrich Go to original post
    It's not Silversun Pickups. But if you speak code...


    uint32_t P[18]; // P-array uint32_t S[4][256]; // S-boxes uint32_t f (uint32_t x) { uint32_t h = S[0][x >> 24] + S[1][x >> 16 & 0xff]; return ( h ^ S[2][x >> 8 & 0xff] ) + S[3][x & 0xff]; } void encrypt (uint32_t & L, uint32_t & R) { for (int i=0 ; i<16 ; i += 2) { L ^= P[i]; R ^= f(L); R ^= P[i+1]; L ^= f(R); } L ^= P[16]; R ^= P[17]; swap (L, R); } void decrypt (uint32_t & L, uint32_t & R) { for (int i=16 ; i > 0 ; i -= 2) { L ^= P[i+1]; R ^= f(L); R ^= P[i]; L ^= f(R); } L ^= P[1]; R ^= P[0]; swap (L, R); } void key_schedule (uint32_t key[], int keylen) { // ... // initializing the P-array and S-boxes with values derived from pi; omitted in the example // ... for (int i=0 ; i<18 ; ++i) P[i] ^= key[i % keylen]; uint32_t L = 0, R = 0; for (int i=0 ; i<18 ; i+=2) { encrypt (L, R); P[i] = L; P[i+1] = R; } for (int i=0 ; i<4 ; ++i) for (int j=0 ; j<256; j+=2) { encrypt (L, R); S[i][j] = L; S[i][j+1] = R; } }
    = Blowfish
    Share this post

  2. #62
    Danny-Ramone's Avatar Senior Member
    Join Date
    Oct 2013
    Location
    Lancashire, UK
    Posts
    1,893
    I think we stopped making sense now.
    Share this post

  3. #63
    dm_gsxr's Avatar Senior Member
    Join Date
    Dec 2011
    Location
    Nederland CO
    Posts
    3,160
    Hootie and the Blowfish

    Edit: Darn, SL1mehunter beat me to it..

    Carl
    Share this post

  4. #64
    Steel_Nirvana's Avatar Senior Member
    Join Date
    Jan 2012
    Location
    Waterloo, Belgium
    Posts
    4,496


    Now black as a clue makes sense.

    Edit: now with correct link.
    Share this post

  5. #65
    Dang it how did you all figure that out. I feel dumb now. :|
    Share this post

  6. #66
    DanAmrich's Avatar Rocksmith Dev Team
    Join Date
    Jul 2013
    Location
    Studio SF, California
    Posts
    3,611
    Originally Posted by futile67 Go to original post

    Sorry,no falling on suns in holes this week.
    Share this post

  7. #67
    DanAmrich's Avatar Rocksmith Dev Team
    Join Date
    Jul 2013
    Location
    Studio SF, California
    Posts
    3,611
    Originally Posted by futile67 Go to original post

    Sorry,no falling on suns in holes this week.
    Share this post

  8. #68
    DanAmrich's Avatar Rocksmith Dev Team
    Join Date
    Jul 2013
    Location
    Studio SF, California
    Posts
    3,611
    It is not Hootie & the Blowfish. Darius Rucker is not involved.
    Share this post

  9. #69
    DanAmrich's Avatar Rocksmith Dev Team
    Join Date
    Jul 2013
    Location
    Studio SF, California
    Posts
    3,611
    It is not Hootie & the Blowfish. Darius Rucker is not involved.
    Share this post

  10. #70
    Originally Posted by DanAmrich Go to original post
    It is not Hootie & the Blowfish. Darius Rucker is not involved.
    Alright, fine, well, Blowfish could also mean Breaking Bad pack. Don't let me down.
    Share this post

  11. #71
    toymachinesh's Avatar Senior Member
    Join Date
    Oct 2011
    Location
    Toronto, ON
    Posts
    8,128


    is Blowfish a Breaking Bad reference >_>
    Share this post

  12. #72
    Gabivad's Avatar Member
    Join Date
    Mar 2014
    Location
    Dijon, France
    Posts
    127
    This is going a bit far isn't it?
    Share this post