Code Monkey home page Code Monkey logo

Comments (3)

BrianGladman avatar BrianGladman commented on June 30, 2024 1

That is not a helpful comment since you give no details of the circumstances in which the code is not working. On what system are you using the code, what compiler are you using, what configuration are you using, do all the standard tests pass? What are the details of the failure you are experiencing?

from aes.

rams76 avatar rams76 commented on June 30, 2024

Thanks for consideration and sorry for not providing the details. I wish to use AES with 256 bit key. I have initialized the key by using the function aes_encrypt_key256 for encryption and aes_decrypt_key256 for decryption and used input/output buffer with 32 byte long array since key is 32 byte long. The result was loss of data. Subsequently I checked the project details and found that aes_encrypt() and aes_decrypt() is coded for 16 byte long input array.

from aes.

BrianGladman avatar BrianGladman commented on June 30, 2024

The aes_encrypt_key256 and aes_decrypt_key256 functions both handle 32 byte input buffers without any data loss. The aes_encrypt and aes_decrypt functions both have fixed length 16 byte buffers that are used for the input and output of data to be encrypted or decrypted. These functions are NOT used for key input and do not therefore limit or cause any loss of key data.

from aes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.