What is the main purpose of using a hash with an AES cipher?

What is the main purpose of using a hash with an AES cipher? Is the hash used for increased security or
to maintain data integrity?
Who is Participating?
btanConnect With a Mentor Exec ConsultantCommented:
AES is for encryption and not for standard hashing. Digital signature (private key signed hash) is used for ensuring integrity instead of just hashing. Some may loosely state the signing is encryption (not using symmetric key like AES) which technically the operation for signing using private key (like using asymmetric key like RSA) is indeed encryption. Most of the time, the crypto algorithm for signing is used e.g. RSA-based signature schemes, such as RSA-PSS or DSA and its elliptic curve variant ECDSA
Kyle AbrahamsConnect With a Mentor Senior .Net DeveloperCommented:
It's used to maintain data integrity.  Basically that what you have is actually what I sent.
furunoAuthor Commented:
Thanks KA and btan.
btanExec ConsultantCommented:
It is answered.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.