Searched refs:checkSize (Results 1 – 1 of 1) sorted by relevance
84 static bool checkSize(const std::string& kind, size_t actual, size_t expected) { in checkSize() function286 if (!checkSize("nonce", nonce.size(), GCM_NONCE_BYTES)) return false; in encryptWithKeymasterKey()292 if (!checkSize("mac", mac.size(), GCM_MAC_BYTES)) return false; in encryptWithKeymasterKey()