| 2664 | { } |
| 2665 | |
| 2666 | void CryptHash::assign(ICryptKeyCallback* callback) |
| 2667 | { |
| 2668 | fb_assert(!isValid()); |
| 2669 | |
| 2670 | FbLocalStatus status; |
| 2671 | |
| 2672 | int len = callback->getHashLength(&status); |
| 2673 | if (len > 0 && status.isSuccess()) |
| 2674 | callback->getHashData(&status, m_value.getBuffer(len)); |
| 2675 | |
| 2676 | m_valid = (len >= 0) && status.isSuccess(); |
| 2677 | } |
| 2678 | |
| 2679 | bool CryptHash::operator==(const CryptHash& h) const |
| 2680 | { |
no test coverage detected