mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Merge "Have generateKey() treat additional entropy as optional"
This commit is contained in:
committed by
Android (Google) Code Review
commit
da1773c3ce
@@ -375,6 +375,7 @@ Return<void> KeymasterDevice::getHardwareFeatures(getHardwareFeatures_cb _hidl_c
|
||||
}
|
||||
|
||||
Return<ErrorCode> KeymasterDevice::addRngEntropy(const hidl_vec<uint8_t>& data) {
|
||||
if (!data.size()) return ErrorCode::OK;
|
||||
return legacy_enum_conversion(
|
||||
keymaster_device_->add_rng_entropy(keymaster_device_, &data[0], data.size()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user