Lines Matching refs:outlen
396 int outlen; in encryptWithoutKeymaster() local
399 &outlen, reinterpret_cast<const uint8_t*>(plaintext.data()), plaintext.size())) { in encryptWithoutKeymaster()
403 if (outlen != static_cast<int>(plaintext.size())) { in encryptWithoutKeymaster()
404 LOG(ERROR) << "GCM ciphertext length should be " << plaintext.size() << " was " << outlen; in encryptWithoutKeymaster()
410 &outlen)) { in encryptWithoutKeymaster()
414 if (outlen != 0) { in encryptWithoutKeymaster()
415 LOG(ERROR) << "GCM EncryptFinal should be 0, was " << outlen; in encryptWithoutKeymaster()
449 int outlen; in decryptWithoutKeymaster() local
450 if (1 != EVP_DecryptUpdate(ctx.get(), reinterpret_cast<uint8_t*>(&(*plaintext)[0]), &outlen, in decryptWithoutKeymaster()
456 if (outlen != static_cast<int>(plaintext->size())) { in decryptWithoutKeymaster()
457 LOG(ERROR) << "GCM plaintext length should be " << plaintext->size() << " was " << outlen; in decryptWithoutKeymaster()
468 &outlen)) { in decryptWithoutKeymaster()
472 if (outlen != 0) { in decryptWithoutKeymaster()
473 LOG(ERROR) << "GCM EncryptFinal should be 0, was " << outlen; in decryptWithoutKeymaster()