Lines Matching defs:decrypted
159 struct wpabuf *decrypted;
172 decrypted = wpabuf_alloc(encr_len - block_size);
173 if (decrypted == NULL)
177 wpabuf_put_data(decrypted, encr + block_size, encr_len - block_size);
178 if (aes_128_cbc_decrypt(wps->keywrapkey, encr, wpabuf_mhead(decrypted),
179 wpabuf_len(decrypted))) {
180 wpabuf_free(decrypted);
184 wpa_hexdump_buf_key(MSG_MSGDUMP, "WPS: Decrypted Encrypted Settings",
185 decrypted);
187 pos = wpabuf_head_u8(decrypted) + wpabuf_len(decrypted) - 1;
189 if (pad > wpabuf_len(decrypted)) {
191 wpabuf_free(decrypted);
198 wpabuf_free(decrypted);
202 decrypted->used -= pad;
204 return decrypted;