MongoDB C++ Driver  legacy-1.1.2
crypto.h
1 
17 #pragma once
18 
19 #include <cstddef>
20 
21 namespace mongo {
22 namespace crypto {
23 /*
24  * Computes a SHA-1 hash of 'input'.
25  */
26 bool sha1(const unsigned char* input, const size_t inputLen, unsigned char* output);
27 
28 /*
29  * Computes a HMAC SHA-1 keyed hash of 'input' using the key 'key'
30  */
31 bool hmacSha1(const unsigned char* key,
32  const size_t keyLen,
33  const unsigned char* input,
34  const size_t inputLen,
35  unsigned char* output,
36  unsigned int* outputLen);
37 
38 } // namespace crypto
39 } // namespace mongo
Utility functions for parsing numbers from strings.
Definition: compare_numbers.h:20