Home | History | Annotate | Download | only in base

Lines Matching refs:sha

13 // Implementation of SHA-1. Only handles data in byte-sized blocks,
22 // SecureHashAlgorithm sha;
24 // sha.Update(moredata, size of data);
25 // sha.Final();
26 // memcpy(somewhere, sha.Digest(), 20);
28 // to reuse the instance of sha, call sha.Init();
208 SecureHashAlgorithm sha;
209 sha.Update(data, len);
210 sha.Final();
212 memcpy(hash, sha.Digest(), SecureHashAlgorithm::kDigestSizeBytes);