Search:

Type: Posts; User: baffa

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    1,564

    hi gang, Thanks for all the suggestions, i...

    hi gang,

    Thanks for all the suggestions, i will begin my coding conquest!! ha!
  2. Replies
    6
    Views
    1,564

    small Diag app ideas....

    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...
  3. ok..... so heres what i was thinking on the...

    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...
  4. Processing on an input text block...how would i go about this?

    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...
  5. Thread: Returning Array

    by baffa
    Replies
    26
    Views
    7,912

    I used ptr as the pointer to the array as I...

    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?

    ...
  6. Thread: Returning Array

    by baffa
    Replies
    26
    Views
    7,912

    ye but what i wanted to do was then return the...

    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...
  7. Thread: Returning Array

    by baffa
    Replies
    26
    Views
    7,912

    woow that was awesome.....i only get this now any...

    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);
  8. Thread: Returning Array

    by baffa
    Replies
    26
    Views
    7,912

    line 57: error: expression must have arithmetic...

    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...
  9. Thread: Returning Array

    by baffa
    Replies
    26
    Views
    7,912

    you what? so i dont need to return it anyway? you...

    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...
  10. Thread: Returning Array

    by baffa
    Replies
    26
    Views
    7,912

    Returning Array

    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...
  11. Thread: Char to Hex

    by baffa
    Replies
    16
    Views
    3,436

    oh right you can ignore my last post then. i...

    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 !

    :):):):):):):)
  12. Thread: Char to Hex

    by baffa
    Replies
    16
    Views
    3,436

    there is no function. i am writing the function....

    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...
  13. Thread: Char to Hex

    by baffa
    Replies
    16
    Views
    3,436

    Cool thanks for the indentation stuff :) not...

    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...
  14. Thread: Char to Hex

    by baffa
    Replies
    16
    Views
    3,436

    ok so after a bit more reading i have found that...

    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...
  15. Thread: Char to Hex

    by baffa
    Replies
    16
    Views
    3,436

    ok so this is the example that ive been working...

    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.
    ...
  16. Thread: Char to Hex

    by baffa
    Replies
    16
    Views
    3,436

    Probably, im just starting out with this AES...

    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...
  17. Thread: Char to Hex

    by baffa
    Replies
    16
    Views
    3,436

    Yea thats what im after, im currently doing this...

    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){
    ...
  18. Thread: Char to Hex

    by baffa
    Replies
    16
    Views
    3,436

    Char to Hex

    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...
  19. Thread: malloc issues

    by baffa
    Replies
    9
    Views
    2,522

    Ok lots of talk there thats a little over my...

    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...
  20. Thread: malloc issues

    by baffa
    Replies
    9
    Views
    2,522

    Width of treados2.bmp: 256 Height of...

    Width of treados2.bmp: 256
    Height of treados2.bmp: 219043332352

    size: 196608
    planes:1
    bpp:24

    image1: 0
  21. Thread: malloc issues

    by baffa
    Replies
    9
    Views
    2,522

    ye malloc is returning null but i cant work out...

    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...
  22. Thread: malloc issues

    by baffa
    Replies
    9
    Views
    2,522

    malloc issues

    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...
Results 1 to 22 of 23