If this is your first visit, be sure to
check out the Forum Rules by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: Pyrit Cuda Nvidia Optimus Power Drain

Thank you so very much for the PERFECT guides! I tried Bumblebee, it just broke the kernel and wouldn't work right in BackTrack, and I couldn't get Cpyrit to work in Ubuntu 11.10... So pretty much boned without this post. Thanks again man.

So I got bbswitch and the drivers working great, I did find that I had to throw in a modprobe -r nvidia to get it to drop power consumption after I had used bbswitch <<<ON.

I'm assuming the Alienware you reference in this thread is the same machine as the one you reference in: this one? If that's the case, am I ok to apply "Graphics Driver fix" as well?

Yes, -r nouveau is redundant once you start using them, but it doesn't seem to hurt anything and it makes it so I don't have to do things in particular order.

I added the off script to my startup programs just to boot up on the right foot. For some reason on my rig (Asus U30SD, similar to but weaker than Snafu777's Alienware), my battery consumption is around 20000mW on Nouveau, 11000 with bbswitch off, and 16000 with bbswitch on. So it looks like Nouveau is just the devil on at least some of these machines....

*don't forget the executable bit (chmod +x) if you use those scripts*

*edit* turns out that adding the <<<OFF script to my startup programs has a pretty cool side effect. My consumption idles right around 10000 mW, right from boot, and when I run pyrit benchmark it jumps up to 50000 mW during the bench mark and then drops back down to 10000.

So loading off, at least on my system seems to automate bbswitch just fine. Only difference I've really noticed is that it takes it a bit (5-10 seconds) to get up to full speed if I let it load automatically, so the short benchmark comes out a little bit lower than it does if I manually switch the nvidia drivers on before I start the test.

Last edited by Tentatio; 03-20-2012 at 05:26 PM.
Reason: Kinda cool after effect

Re: Tentatio

Tentatio,

Happy to hear its working for you my friend =)

Yes, the same box for both posts.

V/r,
Snafu
Pffbt..[quote]I made a discovery today. I found a computer. Wait a second, this is cool. It does what I want it to. If it makes a mistake, it's because I screwed it up. Not because it doesn't like me... Or feels threatened by me.. Or thinks I'm a smart ass.. [/quote]

Re: Pyrit Cuda Nvidia Optimus Power Drain

First off Thank You for the guide. Everything is fine until step j. When I run | root@bt:~# cd pyrit/pyrit && python setup.py build && python setup.py
running build
running build_py
running build_ext
building 'cpyrit._cpyrit_cpu' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c cpyrit/_cpyrit_cpu.c -o build/temp.linux-x86_64-2.6/cpyrit/_cpyrit_cpu.o -Wall -fno-strict-aliasing -DVERSION="0.4.1-dev (svn r308)" -maes -mpclmul
cpyrit/_cpyrit_cpu.c:35:26: error: openssl/hmac.h: No such file or directory
cpyrit/_cpyrit_cpu.c:36:25: error: openssl/md5.h: No such file or directory
cpyrit/_cpyrit_cpu.c:37:25: error: openssl/sha.h: No such file or directory
cpyrit/_cpyrit_cpu.c:38:25: error: openssl/aes.h: No such file or directory
In file included from cpyrit/_cpyrit_cpu.c:42:
cpyrit/_cpyrit_cpu.h:59: error: expected specifier-qualifier-list before ‘SHA_CTX’
cpyrit/_cpyrit_cpu.c: In function ‘finalize_pmk_sse2’:
cpyrit/_cpyrit_cpu.c:109: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:110: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:111: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:112: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:113: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:115: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:116: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:117: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:118: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:119: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:125: error: ‘struct pmk_ctr’ has no member named ‘e1’
cpyrit/_cpyrit_cpu.c:126: error: ‘struct pmk_ctr’ has no member named ‘e2’
cpyrit/_cpyrit_cpu.c:153: error: ‘struct pmk_ctr’ has no member named ‘e1’
cpyrit/_cpyrit_cpu.c:154: error: ‘struct pmk_ctr’ has no member named ‘e2’
cpyrit/_cpyrit_cpu.c: In function ‘prepare_pmk_openssl’:
cpyrit/_cpyrit_cpu.c:179: warning: implicit declaration of function ‘SHA1_Init’
cpyrit/_cpyrit_cpu.c:179: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:180: warning: implicit declaration of function ‘SHA1_Update’
cpyrit/_cpyrit_cpu.c:180: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:183: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:184: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:187: warning: implicit declaration of function ‘HMAC’
cpyrit/_cpyrit_cpu.c:187: warning: implicit declaration of function ‘EVP_sha1’
cpyrit/_cpyrit_cpu.c:187: error: ‘struct pmk_ctr’ has no member named ‘e1’
cpyrit/_cpyrit_cpu.c:190: error: ‘struct pmk_ctr’ has no member named ‘e2’
cpyrit/_cpyrit_cpu.c: In function ‘finalize_pmk_openssl’:
cpyrit/_cpyrit_cpu.c:197: error: ‘SHA_CTX’ undeclared (first use in this function)
cpyrit/_cpyrit_cpu.c:197: error: (Each undeclared identifier is reported only once
cpyrit/_cpyrit_cpu.c:197: error: for each function it appears in.)
cpyrit/_cpyrit_cpu.c:197: error: expected ‘;’ before ‘ctx’
cpyrit/_cpyrit_cpu.c:200: error: ‘struct pmk_ctr’ has no member named ‘e1’
cpyrit/_cpyrit_cpu.c:201: error: ‘struct pmk_ctr’ has no member named ‘e2’
cpyrit/_cpyrit_cpu.c:204: error: ‘ctx’ undeclared (first use in this function)
cpyrit/_cpyrit_cpu.c:204: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:206: warning: implicit declaration of function ‘SHA1_Final’
cpyrit/_cpyrit_cpu.c:208: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:213: error: ‘struct pmk_ctr’ has no member named ‘e1’
cpyrit/_cpyrit_cpu.c:215: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:219: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:224: error: ‘struct pmk_ctr’ has no member named ‘e2’
cpyrit/_cpyrit_cpu.c: In function ‘CPUDevice_solve’:
cpyrit/_cpyrit_cpu.c:300: error: ‘struct pmk_ctr’ has no member named ‘e1’
cpyrit/_cpyrit_cpu.c: In function ‘fourwise_md5hmac_openssl’:
cpyrit/_cpyrit_cpu.c:655: warning: implicit declaration of function ‘EVP_md5’
cpyrit/_cpyrit_cpu.c: In function ‘fourwise_pke2tk_openssl’:
cpyrit/_cpyrit_cpu.c:1015: error: ‘SHA_CTX’ undeclared (first use in this function)
cpyrit/_cpyrit_cpu.c:1015: error: expected ‘;’ before ‘ctx’
cpyrit/_cpyrit_cpu.c:1022: error: ‘ctx’ undeclared (first use in this function)
cpyrit/_cpyrit_cpu.c:1031: error: ‘ipad_ctx’ undeclared (first use in this function)
cpyrit/_cpyrit_cpu.c:1042: error: ‘opad_ctx’ undeclared (first use in this function)
cpyrit/_cpyrit_cpu.c: In function ‘ccmp_encrypt_openssl’:
cpyrit/_cpyrit_cpu.c:1064: error: ‘AES_KEY’ undeclared (first use in this function)
cpyrit/_cpyrit_cpu.c:1064: error: expected ‘;’ before ‘aes_ctx’
cpyrit/_cpyrit_cpu.c:1070: warning: implicit declaration of function ‘AES_set_encrypt_key’
cpyrit/_cpyrit_cpu.c:1070: error: ‘aes_ctx’ undeclared (first use in this function)
cpyrit/_cpyrit_cpu.c:1071: warning: implicit declaration of function ‘AES_encrypt’
Failed to build; Compiling without AES-NI
building 'cpyrit._cpyrit_cpu' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c cpyrit/_cpyrit_cpu.c -o build/temp.linux-x86_64-2.6/cpyrit/_cpyrit_cpu.o -Wall -fno-strict-aliasing -DVERSION="0.4.1-dev (svn r308)"
cpyrit/_cpyrit_cpu.c:35:26: error: openssl/hmac.h: No such file or directory
cpyrit/_cpyrit_cpu.c:36:25: error: openssl/md5.h: No such file or directory
cpyrit/_cpyrit_cpu.c:37:25: error: openssl/sha.h: No such file or directory
cpyrit/_cpyrit_cpu.c:38:25: error: openssl/aes.h: No such file or directory
In file included from cpyrit/_cpyrit_cpu.c:42:
cpyrit/_cpyrit_cpu.h:59: error: expected specifier-qualifier-list before ‘SHA_CTX’
cpyrit/_cpyrit_cpu.c: In function ‘finalize_pmk_sse2’:
cpyrit/_cpyrit_cpu.c:109: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:110: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:111: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:112: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:113: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:115: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:116: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:117: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:118: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:119: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:125: error: ‘struct pmk_ctr’ has no member named ‘e1’
cpyrit/_cpyrit_cpu.c:126: error: ‘struct pmk_ctr’ has no member named ‘e2’
cpyrit/_cpyrit_cpu.c:153: error: ‘struct pmk_ctr’ has no member named ‘e1’
cpyrit/_cpyrit_cpu.c:154: error: ‘struct pmk_ctr’ has no member named ‘e2’
cpyrit/_cpyrit_cpu.c: In function ‘prepare_pmk_openssl’:
cpyrit/_cpyrit_cpu.c:179: warning: implicit declaration of function ‘SHA1_Init’
cpyrit/_cpyrit_cpu.c:179: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:180: warning: implicit declaration of function ‘SHA1_Update’
cpyrit/_cpyrit_cpu.c:180: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:183: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:184: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:187: warning: implicit declaration of function ‘HMAC’
cpyrit/_cpyrit_cpu.c:187: warning: implicit declaration of function ‘EVP_sha1’
cpyrit/_cpyrit_cpu.c:187: error: ‘struct pmk_ctr’ has no member named ‘e1’
cpyrit/_cpyrit_cpu.c:190: error: ‘struct pmk_ctr’ has no member named ‘e2’

Re: SP1DER

SP1DER,

Since the pyrit part is the very last part let me ask a couple questions. I'm no where near on that level of understanding the printout, but I will try to guess my way through this with you. Sorry for such a late response, been very busy irl...

Did you follow the guide in order step by step?

Do you have a Nvidia GPU, if so which type?

Have you tried more than once?

Have you repeated the steps?

Etc...

How have u tried to troubleshoot this issue....

V/r,
Snafu
Pffbt..[quote]I made a discovery today. I found a computer. Wait a second, this is cool. It does what I want it to. If it makes a mistake, it's because I screwed it up. Not because it doesn't like me... Or feels threatened by me.. Or thinks I'm a smart ass.. [/quote]

Re: Pyrit Cuda Nvidia Optimus Power Drain

I did follow your guide 3 times. I also tried purehate's guide a little while back, failed on the same command. When I do #lspci -v :01:00.0 VGA compatible controller: nVidia Corporation Device 0dcd (rev a1)
Subsystem: Dell Device 04b8
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at f0000000 (32-bit, non-prefetchable) [size=32M]
Memory at c0000000 (64-bit, prefetchable) [size=256M]
Memory at d0000000 (64-bit, prefetchable) [size=64M]
I/O ports at 4000 [size=128]
Expansion ROM at f2000000 [disabled] [size=512K]
Capabilities: [60] Power Management version 3
Capabilities: [68] Message Signalled Interrupts: Mask- 64bit+ Queue=0
I have a dell xps l702x with a 3gb nvidia card. I believe it is a gt555m. I'm not sure where to start troubleshooting as I am baffled by the error I get. I have even upgraded to a fresh install of the new kernel and I also get that same error. My best guess is that it is my card that is being difficult.

error: no commands supplied
It seems to me I am forgetting something at the end? Gonna do a little research first. Do you think I should do another install and try it again?
Running xps l702x quad core with nvidia gt555m

Fixed it!! I was typing in the command without "install" at the end. Here's my benchmark,
root@bt:~# pyrit benchmark
Pyrit 0.4.1-dev (svn r308) (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

Thanks again Snafu for a perfect working guide to get my card working. I used the new kernel, the new nvidia driver, and the cuda you specified and it worked great. I'm still not sure what the first error meant but no worries now.

Re: Pyrit Cuda Nvidia Optimus Power Drain

I have encountered an issue installing pyrit on my machine (Acer Aspire 4830tg Intel core i5 4GB RAM Nvidia Geforce gt540m). I have BT5 R2 KDE 32 bit installed, and when trying to run the cd pyrit/pyrit && python setup.py build && setup.py install i come up with this list of errors. I have searched and searched and tried many things and have not been able to find out how to get this to work any help would be appreciated.

Error:
cpyrit/_cpyrit_cpu.c:35:26: error: openssl/hmac.h: No such file or directory
cpyrit/_cpyrit_cpu.c:36:25: error: openssl/md5.h: No such file or directory
cpyrit/_cpyrit_cpu.c:37:25: error: openssl/sha.h: No such file or directory
cpyrit/_cpyrit_cpu.c:38:25: error: openssl/aes.h: No such file or directory
In file included from cpyrit/_cpyrit_cpu.c:42:
cpyrit/_cpyrit_cpu.h:59: error: expected specifier-qualifier-list before ‘SHA_CTX’
cpyrit/_cpyrit_cpu.c: In function ‘finalize_pmk_sse2’:
cpyrit/_cpyrit_cpu.c:115: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:119: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:125: error: ‘struct pmk_ctr’ has no member named ‘e1’
cpyrit/_cpyrit_cpu.c:126: error: ‘struct pmk_ctr’ has no member named ‘e2’
cpyrit/_cpyrit_cpu.c:153: error: ‘struct pmk_ctr’ has no member named ‘e1’
cpyrit/_cpyrit_cpu.c:154: error: ‘struct pmk_ctr’ has no member named ‘e2’
cpyrit/_cpyrit_cpu.c: In function ‘prepare_pmk_openssl’:
cpyrit/_cpyrit_cpu.c:179: warning: implicit declaration of function ‘SHA1_Init’
cpyrit/_cpyrit_cpu.c:179: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:180: warning: implicit declaration of function ‘SHA1_Update’
cpyrit/_cpyrit_cpu.c:180: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:183: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:184: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:187: warning: implicit declaration of function ‘HMAC’
cpyrit/_cpyrit_cpu.c:187: warning: implicit declaration of function ‘EVP_sha1’
cpyrit/_cpyrit_cpu.c:187: error: ‘struct pmk_ctr’ has no member named ‘e1’
cpyrit/_cpyrit_cpu.c:190: error: ‘struct pmk_ctr’ has no member named ‘e2’
cpyrit/_cpyrit_cpu.c: In function ‘finalize_pmk_openssl’:
cpyrit/_cpyrit_cpu.c:197: error: ‘SHA_CTX’ undeclared (first use in this function)
cpyrit/_cpyrit_cpu.c:197: error: (Each undeclared identifier is reported only once
cpyrit/_cpyrit_cpu.c:197: error: for each function it appears in.)
cpyrit/_cpyrit_cpu.c:197: error: expected ‘;’ before ‘ctx’
cpyrit/_cpyrit_cpu.c:200: error: ‘struct pmk_ctr’ has no member named ‘e1’
cpyrit/_cpyrit_cpu.c:201: error: ‘struct pmk_ctr’ has no member named ‘e2’
cpyrit/_cpyrit_cpu.c:204: error: ‘ctx’ undeclared (first use in this function)
cpyrit/_cpyrit_cpu.c:204: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:206: warning: implicit declaration of function ‘SHA1_Final’
cpyrit/_cpyrit_cpu.c:208: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:213: error: ‘struct pmk_ctr’ has no member named ‘e1’
cpyrit/_cpyrit_cpu.c:215: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:219: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:224: error: ‘struct pmk_ctr’ has no member named ‘e2’
cpyrit/_cpyrit_cpu.c: In function ‘CPUDevice_solve’:
cpyrit/_cpyrit_cpu.c:300: error: ‘struct pmk_ctr’ has no member named ‘e1’
cpyrit/_cpyrit_cpu.c: In function ‘fourwise_md5hmac_openssl’:
cpyrit/_cpyrit_cpu.c:655: warning: implicit declaration of function ‘EVP_md5’
cpyrit/_cpyrit_cpu.c: In function ‘fourwise_pke2tk_openssl’:
cpyrit/_cpyrit_cpu.c:1015: error: ‘SHA_CTX’ undeclared (first use in this function)
cpyrit/_cpyrit_cpu.c:1015: error: expected ‘;’ before ‘ctx’
cpyrit/_cpyrit_cpu.c:1022: error: ‘ctx’ undeclared (first use in this function)
cpyrit/_cpyrit_cpu.c:1031: error: ‘ipad_ctx’ undeclared (first use in this function)
cpyrit/_cpyrit_cpu.c:1042: error: ‘opad_ctx’ undeclared (first use in this function)
cpyrit/_cpyrit_cpu.c: In function ‘ccmp_encrypt_openssl’:
cpyrit/_cpyrit_cpu.c:1064: error: ‘AES_KEY’ undeclared (first use in this function)
cpyrit/_cpyrit_cpu.c:1064: error: expected ‘;’ before ‘aes_ctx’
cpyrit/_cpyrit_cpu.c:1070: warning: implicit declaration of function ‘AES_set_encrypt_key’
cpyrit/_cpyrit_cpu.c:1070: error: ‘aes_ctx’ undeclared (first use in this function)
cpyrit/_cpyrit_cpu.c:1071: warning: implicit declaration of function ‘AES_encrypt’
Failed to build; Compiling without AES-NI
building 'cpyrit._cpyrit_cpu' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c cpyrit/_cpyrit_cpu.c -o build/temp.linux-i686-2.6/cpyrit/_cpyrit_cpu.o -Wall -fno-strict-aliasing -DVERSION="0.4.1-dev (svn r308)"
cpyrit/_cpyrit_cpu.c:35:26: error: openssl/hmac.h: No such file or directory
cpyrit/_cpyrit_cpu.c:36:25: error: openssl/md5.h: No such file or directory
cpyrit/_cpyrit_cpu.c:37:25: error: openssl/sha.h: No such file or directory
cpyrit/_cpyrit_cpu.c:38:25: error: openssl/aes.h: No such file or directory
In file included from cpyrit/_cpyrit_cpu.c:42:
cpyrit/_cpyrit_cpu.h:59: error: expected specifier-qualifier-list before ‘SHA_CTX’
cpyrit/_cpyrit_cpu.c: In function ‘finalize_pmk_sse2’:
cpyrit/_cpyrit_cpu.c:109: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:110: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:111: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:112: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:113: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:115: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:116: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:117: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:118: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:119: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:125: error: ‘struct pmk_ctr’ has no member named ‘e1’
cpyrit/_cpyrit_cpu.c:126: error: ‘struct pmk_ctr’ has no member named ‘e2’
cpyrit/_cpyrit_cpu.c:153: error: ‘struct pmk_ctr’ has no member named ‘e1’
cpyrit/_cpyrit_cpu.c:154: error: ‘struct pmk_ctr’ has no member named ‘e2’
cpyrit/_cpyrit_cpu.c: In function ‘prepare_pmk_openssl’:
cpyrit/_cpyrit_cpu.c:179: warning: implicit declaration of function ‘SHA1_Init’
cpyrit/_cpyrit_cpu.c:179: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:180: warning: implicit declaration of function ‘SHA1_Update’
cpyrit/_cpyrit_cpu.c:180: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:183: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:184: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:187: warning: implicit declaration of function ‘HMAC’
cpyrit/_cpyrit_cpu.c:187: warning: implicit declaration of function ‘EVP_sha1’
cpyrit/_cpyrit_cpu.c:187: error: ‘struct pmk_ctr’ has no member named ‘e1’
cpyrit/_cpyrit_cpu.c:190: error: ‘struct pmk_ctr’ has no member named ‘e2’
cpyrit/_cpyrit_cpu.c: In function ‘finalize_pmk_openssl’:
cpyrit/_cpyrit_cpu.c:197: error: ‘SHA_CTX’ undeclared (first use in this function)
cpyrit/_cpyrit_cpu.c:197: error: (Each undeclared identifier is reported only once
cpyrit/_cpyrit_cpu.c:197: error: for each function it appears in.)
cpyrit/_cpyrit_cpu.c:197: error: expected ‘;’ before ‘ctx’
cpyrit/_cpyrit_cpu.c:200: error: ‘struct pmk_ctr’ has no member named ‘e1’
cpyrit/_cpyrit_cpu.c:201: error: ‘struct pmk_ctr’ has no member named ‘e2’
cpyrit/_cpyrit_cpu.c:204: error: ‘ctx’ undeclared (first use in this function)
cpyrit/_cpyrit_cpu.c:204: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:206: warning: implicit declaration of function ‘SHA1_Final’
cpyrit/_cpyrit_cpu.c:208: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:213: error: ‘struct pmk_ctr’ has no member named ‘e1’
cpyrit/_cpyrit_cpu.c:215: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:219: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’
cpyrit/_cpyrit_cpu.c:224: error: ‘struct pmk_ctr’ has no member named ‘e2’
cpyrit/_cpyrit_cpu.c: In function ‘CPUDevice_solve’:
cpyrit/_cpyrit_cpu.c:300: error: ‘struct pmk_ctr’ has no member named ‘e1’
cpyrit/_cpyrit_cpu.c: In function ‘fourwise_md5hmac_openssl’:
cpyrit/_cpyrit_cpu.c:655: warning: implicit declaration of function ‘EVP_md5’
cpyrit/_cpyrit_cpu.c: In function ‘fourwise_pke2tk_openssl’:
cpyrit/_cpyrit_cpu.c:1015: error: ‘SHA_CTX’ undeclared (first use in this function)
cpyrit/_cpyrit_cpu.c:1015: error: expected ‘;’ before ‘ctx’
cpyrit/_cpyrit_cpu.c:1022: error: ‘ctx’ undeclared (first use in this function)
cpyrit/_cpyrit_cpu.c:1031: error: ‘ipad_ctx’ undeclared (first use in this function)
cpyrit/_cpyrit_cpu.c:1042: error: ‘opad_ctx’ undeclared (first use in this function)
cpyrit/_cpyrit_cpu.c: In function ‘ccmp_encrypt_openssl’:
cpyrit/_cpyrit_cpu.c:1064: error: ‘AES_KEY’ undeclared (first use in this function)
cpyrit/_cpyrit_cpu.c:1064: error: expected ‘;’ before ‘aes_ctx’
cpyrit/_cpyrit_cpu.c:1070: warning: implicit declaration of function ‘AES_set_encrypt_key’
cpyrit/_cpyrit_cpu.c:1070: error: ‘aes_ctx’ undeclared (first use in this function)
cpyrit/_cpyrit_cpu.c:1071: warning: implicit declaration of function ‘AES_encrypt’
error: command 'gcc' failed with exit status 1