Synss / python-mbedtls

Cryptographic library with an mbed TLS back end
MIT License
79 stars 28 forks source link

Wrap Hashing module #3

Closed Synss closed 8 years ago

Synss commented 8 years ago

Hashing Module Level Design

[...]

Component overview

The Hashing module provides one-way hashing functions. Hashing functions are used to create a fixed-length representation of a block of data so that when the data changes the hash value does not match. The hash value is also known as a (message) digest.

A hashing function is generally used for creating a hash message authentication code (HMAC) when sending a message. Such a HMAC can be used in combination with a previously exchanged symmetric key as a message integrity and authentication control.

With this module you can thus:

  • Create a hash value/message digest for a file, a stream or a buffer.
  • Create a HMAC for a stream or a buffer.

https://tls.mbed.org/module-level-design-hashing