Reland "Move webrtc/{base => rtc_base}" (https://codereview.webrtc.org/2877023002)
Reland the base->rtc_base without adding stub headers (will be done in follow-up CL). This preserves git blame history of all files. BUG=webrtc:7634 NOTRY=True TBR=kwiberg@webrtc.org Change-Id: Iea3bb6f3f67b8374c96337b63e8f5aa3e6181012 Reviewed-on: https://chromium-review.googlesource.com/554611 Reviewed-by: Henrik Kjellander <kjellander@webrtc.org> Cr-Commit-Position: refs/heads/master@{#18821}
This commit is contained in:
@ -1,33 +0,0 @@
|
||||
/*
|
||||
* SHA-1 in C
|
||||
* By Steve Reid <sreid@sea-to-sky.net>
|
||||
* 100% Public Domain
|
||||
*
|
||||
*/
|
||||
|
||||
// Ported to C++, Google style, under namespace rtc.
|
||||
|
||||
#ifndef WEBRTC_BASE_SHA1_H_
|
||||
#define WEBRTC_BASE_SHA1_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
namespace rtc {
|
||||
|
||||
struct SHA1_CTX {
|
||||
uint32_t state[5];
|
||||
// TODO: Change bit count to uint64_t.
|
||||
uint32_t count[2]; // Bit count of input.
|
||||
uint8_t buffer[64];
|
||||
};
|
||||
|
||||
#define SHA1_DIGEST_SIZE 20
|
||||
|
||||
void SHA1Init(SHA1_CTX* context);
|
||||
void SHA1Update(SHA1_CTX* context, const uint8_t* data, size_t len);
|
||||
void SHA1Final(SHA1_CTX* context, uint8_t digest[SHA1_DIGEST_SIZE]);
|
||||
|
||||
#endif // WEBRTC_BASE_SHA1_H_
|
||||
|
||||
} // namespace rtc
|
||||
Reference in New Issue
Block a user