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