Lines Matching refs:bytes_
27 Digest::Digest() : ctx_{nullptr}, bytes_{0}, ref_count_(0) {}
29 Digest::Digest(const uint8_t* other) : ctx_{nullptr}, bytes_{0}, ref_count_(0) {
39 memcpy(bytes_, o.bytes_, kLength);
45 memcpy(bytes_, o.bytes_, kLength);
51 memcpy(bytes_, rhs, kLength);
74 SHA256_Final(bytes_, &ctx_->impl);
75 return bytes_;
86 if (len < sizeof(bytes_) * 2) {
91 for (size_t j = 0; j < sizeof(bytes_) * 2; ++j) {
98 bytes_[i] = static_cast<uint8_t>(c << 4);
100 bytes_[i++] |= c;
107 if (len < sizeof(bytes_) * 2 + 1) {
112 for (size_t i = 0; i < sizeof(bytes_); ++i) {
113 sprintf(p, "%02x", bytes_[i]);
120 if (len < sizeof(bytes_)) {
124 memcpy(out, bytes_, sizeof(bytes_));
131 return bytes_;
140 return memcmp(bytes_, rhs.bytes_, kLength) == 0;
148 return rhs ? memcmp(bytes_, rhs, kLength) == 0 : false;