Thread: AES encryption limitation

  1. #1
    Shibby willc0de4food's Avatar
    Join Date
    Mar 2005
    Location
    MI
    Posts
    378

    AES encryption limitation

    hey, i found some source that will encrypt a certain amount of data (128 bits). File: http://www.angelfire.com/droid/willc...d/source/aes.c
    i know how to use the functions contained w/in the file, but what i dont know is how to have it encrypt > 128 bits. ? should i break up the segments into 16 bytes a piece and then send them to the function or what? b/c that seems like it would take longer.. and if so, how would i break up a string to be in 16 byte segments?

    thanks.
    Registered Linux User #380033. Be counted: http://counter.li.org

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Gee, that's tough. I've never heard of copying data any place else. for the life of me I can't think of what to do, so it may be a while before you get an answer.

    If that was too subtle for you, consider memcpy et al.


    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Shibby willc0de4food's Avatar
    Join Date
    Mar 2005
    Location
    MI
    Posts
    378
    good idea ;]


    but will memcpy know to move on to the next 16 bytes after i have it do the first 16? like, how will that work? b/c i could put it in a for loop while i <= length and then after sending 16 bytes, add 16 to i and go on from there but i'm not sure if thatd be a good way to do it and idk how to specify where memcpy should start copying. ? if i can...


    thanks.lol


    ...
    ...
    ...
    ...
    !WOWIMANIDIOT!
    ...
    ...
    *shakes head*
    so if i can only pass 16 chars at a time, how do i pass 16 chars at a time. ........woooow.....

    i'm sorry, my brain has temporarily left on a vacation. it will *HOPEFULLY* be back soon.

    ..its sad to think, that i've written a TempConverter, Hangman and Yahtzee program using Win32 API and i can't figure out how to deal with 16 characters at a time..

    i'm sorry for this thread, lol.
    Last edited by willc0de4food; 10-20-2005 at 03:17 PM.
    Registered Linux User #380033. Be counted: http://counter.li.org

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Execution Time - Rijandael encryption
    By gamer4life687 in forum C++ Programming
    Replies: 5
    Last Post: 09-20-2008, 09:25 PM
  2. AES Encryption error code.
    By deevrielk in forum C++ Programming
    Replies: 1
    Last Post: 06-30-2008, 08:37 PM
  3. Replies: 16
    Last Post: 11-23-2007, 01:48 PM
  4. abt encryption algorithm
    By purIn in forum C Programming
    Replies: 9
    Last Post: 12-22-2003, 10:16 PM
  5. File Encryption & Read/Write in Binary Mode
    By kuphryn in forum C++ Programming
    Replies: 5
    Last Post: 11-30-2001, 06:45 PM