These are chat archives for gwydirsam/DickGrayson

25th
Apr 2015
Sam Gwydir
@gwydirsam
Apr 25 2015 12:37
notprime.png
yo raf, this could be part of your issue...10440 is not prime
Sam Gwydir
@gwydirsam
Apr 25 2015 12:43
nice [ci skip] martin
I haven't had enough forthought to do it yet haha
Rafael Moreno
@ralphie9224
Apr 25 2015 15:37
so 10440 is the totient which is the result of (p-1)*(q-1) p and q are prime, but the totient is not necessarily prime
@gwydirsam
Sam Gwydir
@gwydirsam
Apr 25 2015 15:37
ah ok
then is that message a little misleading? or no?
Rafael Moreno
@ralphie9224
Apr 25 2015 16:27
it is. did it ever stop running and return a value?
Sam Gwydir
@gwydirsam
Apr 25 2015 16:28
nah I stopped it because I thought it would never return
Rafael Moreno
@ralphie9224
Apr 25 2015 16:29
i need that way to figure out before hand if it has any number of coprimes. i'll do it in a bit. i got a little worse yesterday and started throwing up so i wasn't able to work on it as much as i would have liked
Sam Gwydir
@gwydirsam
Apr 25 2015 16:29
oh man
Rafael Moreno
@ralphie9224
Apr 25 2015 18:32
This message was deleted
Rafael Moreno
@ralphie9224
Apr 25 2015 18:52
sam. run my program again passing in just 5 bits
Rafael Moreno
@ralphie9224
Apr 25 2015 18:58
if you notice, none of the numbers generated for coprimality are above 5 bits even though the totient is much higher than just the 5 bits at this point. I think that's what's causing some of the problem
Rafael Moreno
@ralphie9224
Apr 25 2015 19:18
dgrandint e(bits_);
  while ((e.get_mpz_class() < totient) ||
         !is_coprime(e.get_mpz_class(), totient)) {
     std::cerr<<e.get_mpz_class()<< " is not coprime with totient value: "<<totient<<std::endl;
    e.reroll();
  }
  return e.get_mpz_class();
Rafael Moreno
@ralphie9224
Apr 25 2015 19:26
regardless of that though something here isn't working. I've tested is_coprime, that works for sure, and everything before this works.
Martin Fracker, Jr.
@Towerism
Apr 25 2015 20:06
Sam how best can i test stego-crypt main?
Martin Fracker, Jr.
@Towerism
Apr 25 2015 20:27
I found aruba, but haven't looked into it much
Rafael Moreno
@ralphie9224
Apr 25 2015 20:44
works now.
high fives everywhere
Sam Gwydir
@gwydirsam
Apr 25 2015 20:46
well done
just got home
Rafael Moreno
@ralphie9224
Apr 25 2015 20:46
i pushed. check it out
still need that skype sesh for a different reason though
Sam Gwydir
@gwydirsam
Apr 25 2015 20:47
ok I have to eat quick
Rafael Moreno
@ralphie9224
Apr 25 2015 20:48
take your time. send me a text when you're ready. I won't be by my computer
Sam Gwydir
@gwydirsam
Apr 25 2015 20:48
looks good -- get rid of those couts now