Home
last modified time | relevance | path

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

/openbmc/qemu/crypto/
H A Dsecret_common.c41 size_t keylen, ciphertextlen, ivlen; in qcrypto_secret_decrypt() local
89 &ciphertextlen, in qcrypto_secret_decrypt()
94 plaintext = g_new0(uint8_t, ciphertextlen + 1); in qcrypto_secret_decrypt()
96 ciphertextlen = inputlen; in qcrypto_secret_decrypt()
102 ciphertextlen, in qcrypto_secret_decrypt()
107 if (plaintext[ciphertextlen - 1] > 16 || in qcrypto_secret_decrypt()
108 plaintext[ciphertextlen - 1] > ciphertextlen) { in qcrypto_secret_decrypt()
111 (int)plaintext[ciphertextlen - 1]); in qcrypto_secret_decrypt()
119 ciphertextlen -= plaintext[ciphertextlen - 1]; in qcrypto_secret_decrypt()
120 plaintext[ciphertextlen] = '\0'; in qcrypto_secret_decrypt()
[all …]