These are chat archives for gwydirsam/DickGrayson

24th
Apr 2015
Sam Gwydir
@gwydirsam
Apr 24 2015 00:36
martin when you're done with your stuff please merge develop into your branch, and if that passes, merge your branch into develop. I'd like to have an accurate coverage to look at tomorrow
Martin Fracker, Jr.
@Towerism
Apr 24 2015 00:44
Sure I'm technically done with my sprint. So I'll do that now.
OKay I merged and pushed
Sam Gwydir
@gwydirsam
Apr 24 2015 00:51
ok -- please clean up those warnings though
@Towerism
Martin Fracker, Jr.
@Towerism
Apr 24 2015 01:55
Oh I'll get right on that
Martin Fracker, Jr.
@Towerism
Apr 24 2015 02:10
@ralphie9224 RSACrypt.RsaKeysConstructor test is stuck in an infinite loop on my computer.
Martin Fracker, Jr.
@Towerism
Apr 24 2015 02:49
I don't remember, but that may have been due to an outdated local repo. It works fine currently.
Martin Fracker, Jr.
@Towerism
Apr 24 2015 03:01
Getting errors:
[ 86%] [ 91%] [ 91%] Built target dgtype-test
Built target dgsnd-test
Built target rsa-attack-test
Built target libgnump-test
make[3]: Entering directory `/home/mfracker/csce/315-15/DickGrayson/debug'
make[3]: Entering directory `/home/mfracker/csce/315-15/DickGrayson/debug'
make[3]: Entering directory `/home/mfracker/csce/315-15/DickGrayson/debug'
make[3]: Leaving directory `/home/mfracker/csce/315-15/DickGrayson/debug'
make[3]: Leaving directory `/home/mfracker/csce/315-15/DickGrayson/debug'
make[3]: Leaving directory `/home/mfracker/csce/315-15/DickGrayson/debug'
make[3]: Entering directory `/home/mfracker/csce/315-15/DickGrayson/debug'
Linking CXX executable rsa-crypt-test
[ 97%] [ 97%] Built target stego-crypt-test
Built target stego-attack-test
gtest/src/gtest-build/libgtest_main.a(gtest_main.cc.o): In function `main':
gtest_main.cc:(.text+0x28): undefined reference to `testing::InitGoogleTest(int*, char**)'
gtest/src/gtest-build/libgtest_main.a(gtest_main.cc.o): In function `RUN_ALL_TESTS()':
gtest_main.cc:(.text._Z13RUN_ALL_TESTSv[_Z13RUN_ALL_TESTSv]+0x5): undefined reference to `testing::UnitTest::GetInstance()'
gtest_main.cc:(.text._Z13RUN_ALL_TESTSv[_Z13RUN_ALL_TESTSv]+0xd): undefined reference to `testing::UnitTest::Run()'
collect2: error: ld returned 1 exit status
make[3]: *** [test/rsa-crypt-test] Error 1
make[3]: Target `test/CMakeFiles/rsa-crypt-test.dir/build' not remade because of errors.
make[3]: Leaving directory `/home/mfracker/csce/315-15/DickGrayson/debug'
make[2]: *** [test/CMakeFiles/rsa-crypt-test.dir/all] Error 2
make[2]: Target `all' not remade because of errors.
make[2]: Leaving directory `/home/mfracker/csce/315-15/DickGrayson/debug'
make[1]: *** [all] Error 2
make[1]: Target `default_target' not remade because of errors.
make[1]: Leaving directory `/home/mfracker/csce/315-15/DickGrayson/debug'
make: *** [debug] Error 2
make: Target `test-all' not remade because of errors.
No such file or directory
make: *** [test-all] Error 1
This is only an excerpt. I had to scroll up to see this.
The commands were:
$ make clean-build-dirs
$ make -k all test-all
Martin Fracker, Jr.
@Towerism
Apr 24 2015 09:29
I fixed it. Turns out it was caused by a rsa-crypt-test.cc which was missing any tests (one was commented out), just had to add a stub until the other one can be uncommented.
Rafael Moreno
@ralphie9224
Apr 24 2015 19:02
for your sakes and mine. can i call in the the meeting today?
Christopher Findeisen
@Atrus7
Apr 24 2015 19:02
@gwydirsam I need to add linking for the my libs stuff in the bin
What should I change?
Sam Gwydir
@gwydirsam
Apr 24 2015 19:02
what do you want to link?
Christopher Findeisen
@Atrus7
Apr 24 2015 19:03
rsa-attack-lib.cc & a few others in the same directory
Sam Gwydir
@gwydirsam
Apr 24 2015 19:03
rsa-attack-lib -> bin/rsa-crypt?
Christopher Findeisen
@Atrus7
Apr 24 2015 19:03
ye
Sam Gwydir
@gwydirsam
Apr 24 2015 19:03
or i mean rsa-attack-lib -> bin/rsa-attack
Christopher Findeisen
@Atrus7
Apr 24 2015 19:03
Basically I'm calling some of my library functions in my main.cc
And it's calling undefined symbols
Sam Gwydir
@gwydirsam
Apr 24 2015 19:04
hmmmm
have you pushed all this?
I think I see the issue
Christopher Findeisen
@Atrus7
Apr 24 2015 19:06
no
I can now
Sam Gwydir
@gwydirsam
Apr 24 2015 19:06
ok also the thing I saw before is wrong
as in, I didn't find an issue
let me know when you have pushed
Christopher Findeisen
@Atrus7
Apr 24 2015 19:11
pushed
What do we want to do about Review today w/Rafa
?
Sam Gwydir
@gwydirsam
Apr 24 2015 19:13
ah also, the way we set up the other libs is to have, in your case, rsa-attack-lib.hh include all the others
Christopher Findeisen
@Atrus7
Apr 24 2015 19:14
mmk
Sam Gwydir
@gwydirsam
Apr 24 2015 19:14
well if he's sick -- that's excuseable
Christopher Findeisen
@Atrus7
Apr 24 2015 19:15
I think he desires to call in remotely? @ralphie9224 is that right?
Rafael Moreno
@ralphie9224
Apr 24 2015 19:16
sure
i desire that
Sam Gwydir
@gwydirsam
Apr 24 2015 19:17
@Atrus7 in rsa-attack-lib.cc you only have:
RSA_data parse_rsa_file(std::fstream& fname);
no implementation
Christopher Findeisen
@Atrus7
Apr 24 2015 19:20
Not the issue. I fixed that, but the error is with your building of the bin I think
Basically, I need to link the .ccs in lib with my main.cc bin.
Sam Gwydir
@gwydirsam
Apr 24 2015 19:22
yeah they should be
try make clean-force; make -k all test-all
Christopher Findeisen
@Atrus7
Apr 24 2015 19:32
Hm..I still got linking errors.
Sam Gwydir
@gwydirsam
Apr 24 2015 19:32
lets check it out in lab
Christopher Findeisen
@Atrus7
Apr 24 2015 19:32
kk
Sam Gwydir
@gwydirsam
Apr 24 2015 19:32
meeting in lab a?
Martin Fracker, Jr.
@Towerism
Apr 24 2015 19:48
How are we meeting today?
Sam Gwydir
@gwydirsam
Apr 24 2015 19:48
in person I believe
rdmc no?
Martin Fracker, Jr.
@Towerism
Apr 24 2015 19:49
I'm gonna be there soon.
Sam Gwydir
@gwydirsam
Apr 24 2015 19:49
@/all are we meeting in person?
Ok I'm saying lab a
Martin Fracker, Jr.
@Towerism
Apr 24 2015 19:56
That's what I say as well. I'm there now
Christopher Findeisen
@Atrus7
Apr 24 2015 20:07
@bluyam Donde
Rafael Moreno
@ralphie9224
Apr 24 2015 20:08
let me know whenever you need me to call someone on skype
Christopher Findeisen
@Atrus7
Apr 24 2015 20:23
@bluyam WHERE ARE YOU????????
Christopher Findeisen
@Atrus7
Apr 24 2015 20:34
@ralphie9224 Are you dtSkype?
Rafael Moreno
@ralphie9224
Apr 24 2015 20:36
yes. i'm bout to throw something away. two min
who do i call
Rafael Moreno
@ralphie9224
Apr 24 2015 21:39
for anyone who is curious I think i found the problem. I shall illustrate using an example
the value generated for phi was 3256. it tests coprimality against it by checking with a while loop if there is a coprime value. ```
while ((e.get_mpz_class() < totient) ||
         !is_coprime(e.get_mpz_class(), totient)) {
     std::cerr<<e.get_mpz_class()<< " is not coprime with "<<totient<<std::endl;
    e.reroll();
  }
i print out the value that is randomly generated and long story short, i ran it 5 minutes ago, and it's still printing out values.
i'm currently posting on stack overflow and researching if there is a way to check if a number has any sort of x amount of coprime values before i actually release phi n and try to find it's coprime values
Rafael Moreno
@ralphie9224
Apr 24 2015 21:45
also @gwi
oops
@gwydirsam something that will make it go faster is if there is a way to guarantee that e.reroll() will give me a value that hasn't already been rerolled. I can research it but if off the top of your head you know the answer then that'd be faster
Sam Gwydir
@gwydirsam
Apr 24 2015 22:02
I think you'd have to add that
random is random
Rafael Moreno
@ralphie9224
Apr 24 2015 22:04
I was thinking of sticking the numbers in a hash and just checking wether they are there or not until there are phi amount of numbers in the hash, but if we're using 1024 bit numbers that would take so damn long.
I think the other alternative is figure out a way to check if totient has a coprime counterpart before we throw it in there
i'm asking on SO
Sam Gwydir
@gwydirsam
Apr 24 2015 22:09
sounds good
Rafael Moreno
@ralphie9224
Apr 24 2015 22:09
not the hash table that sounds good right?
Sam Gwydir
@gwydirsam
Apr 24 2015 22:09
whatever you come up with
if it works...it works