| 
    KiCad PCB EDA Suite
    
   | 
 
#include <md5_hash.h>
Classes | |
| struct | MD5_CTX | 
Public Member Functions | |
| MD5_HASH () | |
| MD5_HASH (const MD5_HASH &aOther) | |
| ~MD5_HASH () | |
| void | Init () | 
| void | Hash (uint8_t *data, uint32_t length) | 
| void | Hash (int value) | 
| void | Finalize () | 
| bool | IsValid () const | 
| void | SetValid (bool aValid) | 
| MD5_HASH & | operator= (const MD5_HASH &aOther) | 
| bool | operator== (const MD5_HASH &aOther) const | 
| bool | operator!= (const MD5_HASH &aOther) const | 
| std::string | Format (bool aCompactForm=false) | 
Private Member Functions | |
| void | md5_transform (MD5_CTX *ctx, uint8_t data[]) | 
| void | md5_init (MD5_CTX *ctx) | 
| void | md5_update (MD5_CTX *ctx, uint8_t data[], uint32_t len) | 
| void | md5_final (MD5_CTX *ctx, uint8_t hash[]) | 
Private Attributes | |
| bool | m_valid | 
| MD5_CTX | m_ctx | 
| uint8_t | m_hash [16] | 
Definition at line 11 of file md5_hash.h.
| MD5_HASH::MD5_HASH | ( | ) | 
Definition at line 30 of file md5_hash.cpp.
References Init().
Referenced by MD5_HASH(), operator!=(), operator=(), and operator==().
| MD5_HASH::MD5_HASH | ( | const MD5_HASH & | aOther | ) | 
Definition at line 36 of file md5_hash.cpp.
References m_ctx, m_hash, m_valid, and MD5_HASH().
| MD5_HASH::~MD5_HASH | ( | ) | 
Definition at line 44 of file md5_hash.cpp.
| void MD5_HASH::Finalize | ( | ) | 
Definition at line 78 of file md5_hash.cpp.
References m_ctx, m_hash, m_valid, and md5_final().
| std::string MD5_HASH::Format | ( | bool | aCompactForm = false | ) | 
| aCompactForm | = false to generate a string with spaces between each byte (2 chars) = true to generate a string filled with 32 hexadecimal chars | 
Definition at line 97 of file md5_hash.cpp.
References m_hash.
| void MD5_HASH::Hash | ( | int | value | ) | 
Definition at line 72 of file md5_hash.cpp.
References m_ctx, and md5_update().
| void MD5_HASH::Hash | ( | uint8_t * | data, | 
| uint32_t | length ) | 
Definition at line 66 of file md5_hash.cpp.
References m_ctx, and md5_update().
| void MD5_HASH::Init | ( | ) | 
Definition at line 58 of file md5_hash.cpp.
References m_ctx, m_hash, m_valid, and md5_init().
Referenced by MD5_HASH().
      
  | 
  inline | 
Definition at line 24 of file md5_hash.h.
References m_valid.
      
  | 
  private | 
Definition at line 245 of file md5_hash.cpp.
References MD5_HASH::MD5_CTX::bitlen, MD5_HASH::MD5_CTX::data, MD5_HASH::MD5_CTX::datalen, DBL_INT_ADD, md5_transform(), and MD5_HASH::MD5_CTX::state.
Referenced by Finalize().
      
  | 
  private | 
Definition at line 215 of file md5_hash.cpp.
References MD5_HASH::MD5_CTX::bitlen, MD5_HASH::MD5_CTX::data, MD5_HASH::MD5_CTX::datalen, and MD5_HASH::MD5_CTX::state.
Referenced by Init().
      
  | 
  private | 
Definition at line 125 of file md5_hash.cpp.
References FF, GG, HH, II, and MD5_HASH::MD5_CTX::state.
Referenced by md5_final(), and md5_update().
      
  | 
  private | 
Definition at line 228 of file md5_hash.cpp.
References MD5_HASH::MD5_CTX::bitlen, MD5_HASH::MD5_CTX::data, MD5_HASH::MD5_CTX::datalen, DBL_INT_ADD, and md5_transform().
| bool MD5_HASH::operator!= | ( | const MD5_HASH & | aOther | ) | const | 
Definition at line 91 of file md5_hash.cpp.
References m_hash, and MD5_HASH().
Definition at line 48 of file md5_hash.cpp.
References m_ctx, m_hash, m_valid, and MD5_HASH().
| bool MD5_HASH::operator== | ( | const MD5_HASH & | aOther | ) | const | 
Definition at line 85 of file md5_hash.cpp.
References m_hash, and MD5_HASH().
      
  | 
  inline | 
Definition at line 26 of file md5_hash.h.
References m_valid.
      
  | 
  private | 
Definition at line 54 of file md5_hash.h.
Referenced by Finalize(), Hash(), Hash(), Init(), MD5_HASH(), and operator=().
      
  | 
  private | 
Definition at line 55 of file md5_hash.h.
Referenced by Finalize(), Format(), Init(), MD5_HASH(), operator!=(), operator=(), and operator==().
      
  | 
  private | 
Definition at line 53 of file md5_hash.h.
Referenced by Finalize(), Init(), IsValid(), MD5_HASH(), operator=(), and SetValid().