| 362 | } |
| 363 | |
| 364 | void FSCryptKeyHandler::reset(int64_t _epoch, FSCryptKeyRef k) |
| 365 | { |
| 366 | std::unique_lock wl{lock}; |
| 367 | |
| 368 | // clear any previous crypto key with overwrite of 0s |
| 369 | key->get_key().zero(); |
| 370 | epoch = _epoch; |
| 371 | key = k; |
| 372 | } |
| 373 | |
| 374 | int64_t FSCryptKeyHandler::get_epoch() |
| 375 | { |
no test coverage detected