Searched refs:Eraser (Results 1 – 3 of 3) sorted by relevance
/system/keymaster/include/keymaster/ |
D | mem.h | 122 class Eraser { 125 template <typename T> explicit Eraser(T* t); 128 explicit Eraser(T& t) : buf_(reinterpret_cast<uint8_t*>(&t)), size_(sizeof(t)) {} in Eraser() function 130 template <size_t N> explicit Eraser(uint8_t (&arr)[N]) : buf_(arr), size_(N) {} in Eraser() function 132 Eraser(void* buf, size_t size) : buf_(static_cast<uint8_t*>(buf)), size_(size) {} in Eraser() function 133 ~Eraser() { memset_s(buf_, 0, size_); } in ~Eraser() 136 Eraser(const Eraser&); 137 void operator=(const Eraser&);
|
/system/keymaster/key_blob_utils/ |
D | ocb_utils.cpp | 79 Eraser hash_eraser(hash_buf.get(), SHA256_DIGEST_LENGTH); in InitializeKeyWrappingContext() 82 Eraser derived_key_eraser(derived_key.get(), AES_BLOCK_SIZE); in InitializeKeyWrappingContext() 88 Eraser sha256_ctx_eraser(sha256_ctx); in InitializeKeyWrappingContext() 95 Eraser aes_key_eraser(AES_KEY); in InitializeKeyWrappingContext()
|
/system/core/trusty/keymaster/ipc/ |
D | trusty_keymaster_ipc.cpp | 154 keymaster::Eraser send_buf_eraser(send_buf, TRUSTY_KEYMASTER_SEND_BUF_SIZE); in trusty_keymaster_send() 159 keymaster::Eraser recv_buf_eraser(recv_buf, TRUSTY_KEYMASTER_RECV_BUF_SIZE); in trusty_keymaster_send()
|