| 167 | } |
| 168 | |
| 169 | void |
| 170 | SipHash_Final(uint8_t dst[static SIPHASH_DIGEST_LENGTH], SIPHASH_CTX *ctx) |
| 171 | { |
| 172 | uint64_t r; |
| 173 | |
| 174 | KASSERT(ctx->initialized == 2, |
| 175 | ("%s: context %p not properly initialized", __func__, ctx)); |
| 176 | |
| 177 | r = SipHash_End(ctx); |
| 178 | le64enc(dst, r); |
| 179 | } |
| 180 | |
| 181 | uint64_t |
| 182 | SipHash_End(SIPHASH_CTX *ctx) |