hi gang,
Thanks for all the suggestions, i will begin my coding conquest!! ha!
Type: Posts; User: baffa
hi gang,
Thanks for all the suggestions, i will begin my coding conquest!! ha!
Hi all,
I would like to implement an application that will return some diagnostic information of the pc. Ideally i would like it to be run on some client machines on a network to display info such...
ok.....
so heres what i was thinking on the basis of what u guy were saying...
once the file has been loaded into the array in memory :P;
have a pointer to the begining of the memory...
HI all,
I have loaded a text file into memory and would like to do various processing on 16 characters and then once the output of that is complete move on to the next 16 and repeat this till the...
I used ptr as the pointer to the array as I thought that i needed to use that to reference the array and return it.
can there be a case where i can have this in my main function?
...
ye but what i wanted to do was then return the data in the mixcolumns function to the current_state column. sorry thats my fault for being a bit vague. I did wonder how having a void function would...
woow that was awesome.....i only get this now any ideas? i dont what an lvalue is?...
error: expression must be a modifiable lvalue
current_state = MixColumns(ptr);
line 57: error: expression must have arithmetic or enum type
r[0] = ptr[0]*2 + ptr[12] + ptr[8] + ptr[4]*3;
^
im getting a lot of...
you what? so i dont need to return it anyway? you saying to just use a void function or somthing because when the array data is modified in the function?
Oh poo ive realised i put void instead...
Hi all,
please correct me if i make a stupid statement....
I know/think i know its not possible to explicitly return an array within C. However i am undert the impression that it is possible to...
oh right
you can ignore my last post then. i didnt see your edit ah right!!! AHHHAAAA i get it now!! whoop!!! thanks!!!! i was going about this totally the wrong way! cheers !
:):):):):):):)
there is no function. i am writing the function. ive gtta make my own implementation of AES. thats my point. I dont know if im coming across right or not but im writing everything from scratch...
Cool thanks for the indentation stuff :)
not going to lie my coding skills are in need of a bit of improvement!
But, i still cant see how else im going to encrypt the characters im reading...
ok so after a bit more reading i have found that its probably a good idea to convert to binary and work at that level.
However i cannot use itoa as im intending to run the code as part of a CUDA...
ok so this is the example that ive been working from. it seems to be pretty comprehensive so i guessed it was a good source.
...
Probably, im just starting out with this AES stuff so you probably know better than me looking at your info on your user account ;P
now that you have said that tho, i have been looking at...
Yea thats what im after, im currently doing this to just test the input of my text which works:
FILE* inputfile;
inputfile=fopen(INPUT_FILE_NAME, "r");
if (inputfile != NULL){
...
Hi all,
I am trying to read chars in from a text file and then convert them into hex so that i can use the text with my S-box for the AES encryption algorithm.
But i have no idea how to...
Ok lots of talk there thats a little over my head. Thanks for the responses so far. Sounds like u guys know your stuff. Ok ye i am running 64-bit fedora 7 Linux.
I changed my height type from...
Width of treados2.bmp: 256
Height of treados2.bmp: 219043332352
size: 196608
planes:1
bpp:24
image1: 0
ye malloc is returning null but i cant work out why. Im trying to allocate the same number of bits as the size of the image data. IE the size of the file from the current position in the file to the...
Hi all,
Got a problem with this code allocating memory. In the "//read the data" part of the code, the image->data =(char*)malloc(size) refuses to allocate memory. is this a problem with my code...