SHA1.hpp

This File On Github
Ask A Question

API: latest
module: oatpp-websocket
#include "oatpp-websocket/SHA1.hpp"

SHA1

SHA1 implementation needed for websocket handshake key.

namespace oatpp { namespace websocket { 
  class SHA1 {}
}}

Methods

Return Type Name Summary
[none] SHA1 Constructor.
void update Multiple implementations:
  1. Update digest.
  2. Update digest from std::istream.
oatpp::String finalBinary Add padding and return the message digest.
oatpp::String fromFile Get digest of the file content.

SHA1::SHA1

Constructor.

SHA1()

SHA1::update

  1. Update digest.
    void update(const oatpp::String& s)
    
  2. Update digest from std::istream.
    • @param is - std::istream.
    void update(std::istream& is)
    

SHA1::finalBinary

Add padding and return the message digest.

oatpp::String finalBinary()

SHA1::fromFile

Get digest of the file content.

static oatpp::String fromFile(const oatpp::String& filename)