These are chat archives for gwydirsam/DickGrayson

15th
Apr 2015
Sam Gwydir
@gwydirsam
Apr 15 2015 04:36

 -- Function: mpz_class abs (mpz_class OP)
 -- Function: int cmp (mpz_class OP1, type OP2)
 -- Function: int cmp (type OP1, mpz_class OP2)
 -- Function: bool mpz_class::fits_sint_p (void)
 -- Function: bool mpz_class::fits_slong_p (void)
 -- Function: bool mpz_class::fits_sshort_p (void)
 -- Function: bool mpz_class::fits_uint_p (void)
 -- Function: bool mpz_class::fits_ulong_p (void)
 -- Function: bool mpz_class::fits_ushort_p (void)
 -- Function: double mpz_class::get_d (void)
 -- Function: long mpz_class::get_si (void)
 -- Function: string mpz_class::get_str (int BASE = 10)
 -- Function: unsigned long mpz_class::get_ui (void)
 -- Function: int mpz_class::set_str (const char *STR, int BASE)
 -- Function: int mpz_class::set_str (const string& STR, int BASE)
 -- Function: int sgn (mpz_class OP)
 -- Function: mpz_class sqrt (mpz_class OP)
 -- Function: void mpz_class::swap (mpz_class& OP)
 -- Function: void swap (mpz_class& OP1, mpz_class& OP2)
there is atleast that
Sam Gwydir
@gwydirsam
Apr 15 2015 18:31
@Atrus7 you can use: `<rsa-attack-lib/rsa-attack-lib.hh>' instead of the long "../" version
    if((n % i) == 0) {
      mpz_class first_factor = i;
      mpz_class other_factor = (n/i);
      //Do we want to keep 2 factors if they're the same? (i.e. 5*5)
      factors.push_back(pair<mpz_class, mpz_class>(first_factor, other_factor));
    }
  }
@Atrus7 don't optimize for them being the same, because for the most part you would want (as the encryptor) different primes
otherwise a square root works...and that is bad news
as the attacker, I guess try a square root...but man have they fucked up if it works
Rafael Moreno
@ralphie9224
Apr 15 2015 19:15
sambubs. did you ever push the file we worked on Monday? I'm trying to find it, but I can't. I'm looking in test/dgcrypto
Sam Gwydir
@gwydirsam
Apr 15 2015 19:16
lib/dgcrypto
Rafael Moreno
@ralphie9224
Apr 15 2015 19:16
awesome. thanks. you're not modifying that now right?
Sam Gwydir
@gwydirsam
Apr 15 2015 19:16
I seperated it out into dgrandomprime, dgrandominteger and dginteger
nope, just make sure you're in feature/dgprime and go for it
Rafael Moreno
@ralphie9224
Apr 15 2015 19:37
I got a table in the annex we can use for our meeting if that's what everyone is feeling
please feel it
Sam Gwydir
@gwydirsam
Apr 15 2015 19:37
annex is so loud though
We could probably use the lecture hall
The class books the time
but also we need to talk to the TA
Rafael Moreno
@ralphie9224
Apr 15 2015 19:39
if we need the TA then we would need to meet at 4. unless we know where the TA is at 3
Christopher Findeisen
@Atrus7
Apr 15 2015 19:39
I think we're in the lab
isn't that where we meet?
Sam Gwydir
@gwydirsam
Apr 15 2015 19:39
nah, we meet then he shows up at the normal time
yeah see you in lab
I'm heading there now
Rafael Moreno
@ralphie9224
Apr 15 2015 19:39
if by "where we meet" you mean, where we met that one time, then yes. that is where we meet
Sam Gwydir
@gwydirsam
Apr 15 2015 19:40
where you met with us one time
haha
Rafael Moreno
@ralphie9224
Apr 15 2015 19:40
damn
when did we meet there before then?
Christopher Findeisen
@Atrus7
Apr 15 2015 19:40
Kk. Hey @gwydirsam regarding your earlier message. I don't think we should optimise that way in the findFactors function..
findFactors is brute force
Sam Gwydir
@gwydirsam
Apr 15 2015 19:52
Meeting in A
Sam Gwydir
@gwydirsam
Apr 15 2015 20:06
Yeah I was saying don't optimize
You guys coming?
Christopher Findeisen
@Atrus7
Apr 15 2015 20:08
You guy coming?
We're in lab bro
Sam Gwydir
@gwydirsam
Apr 15 2015 20:08
come to A
Christopher Findeisen
@Atrus7
Apr 15 2015 20:08
What is "A"?
Sam Gwydir
@gwydirsam
Apr 15 2015 20:08
lab a
It's cooler and there isn't a class in here
Sam Gwydir
@gwydirsam
Apr 15 2015 23:34
so travis times have mysteriously dropped a lot
ooh they we're doing major work today