Replace Entropy with RAND_bytes
/dev/urandom is not an approved random number generator
for NIAP certification. Changing to use BoringSSL's
RAND_bytes(), which is approved.
Bug: 121272336
Test: Ran Keystore CTS tests against Walleye
Change-Id: I579d140ef56c90b477b0d8989e3b02375681aee8
diff --git a/keystore/blob.h b/keystore/blob.h
index 92e4514..86f367f 100644
--- a/keystore/blob.h
+++ b/keystore/blob.h
@@ -89,7 +89,6 @@
TYPE_KEY_CHARACTERISTICS_CACHE = 6,
} BlobType;
-class Entropy;
class LockedKeyBlobEntry;
/**
@@ -263,7 +262,7 @@
[](uid_t, const std::string&) -> bool { return true; });
ResponseCode writeBlobs(Blob keyBlob, Blob characteristicsBlob, const uint8_t* aes_key,
- State state, Entropy* entorpy) const;
+ State state) const;
std::tuple<ResponseCode, Blob, Blob> readBlobs(const uint8_t* aes_key, State state) const;
ResponseCode deleteBlobs() const;