Home
last modified time | relevance | path

Searched refs:Eraser (Results 1 – 4 of 4) sorted by relevance

/system/keymaster/include/keymaster/
Dandroid_keymaster_utils.h164 class Eraser {
167 template <typename T> explicit Eraser(T* t);
170 explicit Eraser(T& t) : buf_(reinterpret_cast<uint8_t*>(&t)), size_(sizeof(t)) {} in Eraser() function
172 template <size_t N> explicit Eraser(uint8_t (&arr)[N]) : buf_(arr), size_(N) {} in Eraser() function
174 Eraser(void* buf, size_t size) : buf_(static_cast<uint8_t*>(buf)), size_(size) {} in Eraser() function
175 ~Eraser() { memset_s(buf_, 0, size_); } in ~Eraser()
178 Eraser(const Eraser&);
179 void operator=(const Eraser&);
/system/keymaster/key_blob_utils/
Docb_utils.cpp83 Eraser hash_eraser(hash_buf.get(), SHA256_DIGEST_LENGTH); in InitializeKeyWrappingContext()
87 Eraser derived_key_eraser(derived_key.get(), AES_BLOCK_SIZE); in InitializeKeyWrappingContext()
93 Eraser sha256_ctx_eraser(sha256_ctx); in InitializeKeyWrappingContext()
100 Eraser aes_key_eraser(AES_KEY); in InitializeKeyWrappingContext()
/system/core/trusty/keymaster/ipc/
Dtrusty_keymaster_ipc.cpp154 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()
/system/keymaster/legacy_support/
Dkeymaster0_engine.cpp320 Eraser eraser(signature.get(), signature_length); in RsaPrivateTransform()
365 Eraser eraser(signature.get(), signature_length); in EcdsaSign()