Lines Matching refs:outlen
325 int outlen; in encryptWithoutKeymaster() local
327 reinterpret_cast<uint8_t*>(&(*ciphertext)[0] + GCM_NONCE_BYTES), &outlen, in encryptWithoutKeymaster()
332 if (outlen != static_cast<int>(plaintext.size())) { in encryptWithoutKeymaster()
333 LOG(ERROR) << "GCM ciphertext length should be " << plaintext.size() << " was " << outlen; in encryptWithoutKeymaster()
337 … reinterpret_cast<uint8_t*>(&(*ciphertext)[0] + GCM_NONCE_BYTES + plaintext.size()), &outlen)) { in encryptWithoutKeymaster()
341 if (outlen != 0) { in encryptWithoutKeymaster()
342 LOG(ERROR) << "GCM EncryptFinal should be 0, was " << outlen; in encryptWithoutKeymaster()
374 int outlen; in decryptWithoutKeymaster() local
376 reinterpret_cast<uint8_t*>(&(*plaintext)[0]), &outlen, in decryptWithoutKeymaster()
381 if (outlen != static_cast<int>(plaintext->size())) { in decryptWithoutKeymaster()
382 LOG(ERROR) << "GCM plaintext length should be " << plaintext->size() << " was " << outlen; in decryptWithoutKeymaster()
392 reinterpret_cast<uint8_t*>(&(*plaintext)[0] + plaintext->size()), &outlen)) { in decryptWithoutKeymaster()
396 if (outlen != 0) { in decryptWithoutKeymaster()
397 LOG(ERROR) << "GCM EncryptFinal should be 0, was " << outlen; in decryptWithoutKeymaster()