# 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:
|
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
- Update digest.
- @param s - oatpp::String.
void update(const oatpp::String& s)
- Update digest from
std::istream
.- @param is -
std::istream
.
void update(std::istream& is)
- @param is -
# SHA1::finalBinary
Add padding and return the message digest.
- @return - oatpp::String.
oatpp::String finalBinary()
# SHA1::fromFile
Get digest of the file content.
- @param filename - name of the file. oatpp::String.
- @return - oatpp::String.
static oatpp::String fromFile(const oatpp::String& filename)