Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. AES Encryption Help

AES Encryption Help

Scheduled Pinned Locked Moved C / C++ / MFC
questionsecurityhelptutorial
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vishalgpt
    wrote on last edited by
    #1

    Hi to all, I am trying to implement Brian Gladman's AES Encryption in my program. But as i am new to Encryption, please guide which mode is good to use.

    AES_RETURN aes_ecb_encrypt(const unsigned char *ibuf, unsigned char *obuf,
    int len, const aes_encrypt_ctx cx[1]);

    AES_RETURN aes_cbc_encrypt(const unsigned char *ibuf, unsigned char *obuf,
    int len, unsigned char *iv, const aes_encrypt_ctx cx[1]);

    AES_RETURN aes_mode_reset(aes_encrypt_ctx cx[1]);

    AES_RETURN aes_cfb_encrypt(const unsigned char *ibuf, unsigned char *obuf,
    int len, unsigned char *iv, aes_encrypt_ctx cx[1]);

    #define aes_ofb_encrypt aes_ofb_crypt

    AES_RETURN aes_ofb_crypt(const unsigned char *ibuf, unsigned char *obuf,

    and i am confused on *iv what is this? I had to encrypt files as well as strings. :zzz: :~

    Regards, Vishal

    L 1 Reply Last reply
    0
    • V vishalgpt

      Hi to all, I am trying to implement Brian Gladman's AES Encryption in my program. But as i am new to Encryption, please guide which mode is good to use.

      AES_RETURN aes_ecb_encrypt(const unsigned char *ibuf, unsigned char *obuf,
      int len, const aes_encrypt_ctx cx[1]);

      AES_RETURN aes_cbc_encrypt(const unsigned char *ibuf, unsigned char *obuf,
      int len, unsigned char *iv, const aes_encrypt_ctx cx[1]);

      AES_RETURN aes_mode_reset(aes_encrypt_ctx cx[1]);

      AES_RETURN aes_cfb_encrypt(const unsigned char *ibuf, unsigned char *obuf,
      int len, unsigned char *iv, aes_encrypt_ctx cx[1]);

      #define aes_ofb_encrypt aes_ofb_crypt

      AES_RETURN aes_ofb_crypt(const unsigned char *ibuf, unsigned char *obuf,

      and i am confused on *iv what is this? I had to encrypt files as well as strings. :zzz: :~

      Regards, Vishal

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Try asking Brian Gladman, we cannot guess which of the above is the right choice.

      V 1 Reply Last reply
      0
      • L Lost User

        Try asking Brian Gladman, we cannot guess which of the above is the right choice.

        V Offline
        V Offline
        vishalgpt
        wrote on last edited by
        #3

        perhaps you had not understand my question, my question was related to modes and iv. Anyways thanks. :)

        Regards, Vishal

        L 1 Reply Last reply
        0
        • V vishalgpt

          perhaps you had not understand my question, my question was related to modes and iv. Anyways thanks. :)

          Regards, Vishal

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          vishalgpt wrote:

          perhaps you had not understand my question, my question was related to modes and iv.

          I understand your question perfectly well. The problem is that you are referring to someone else's code and we do not have access to it, so how can we tell you which function to use? Those function definitions on their own provide no useful information. All I can tell you is that iv is a pointer to a character string, but how that fits in with these functions is anyone's guess.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups