Lines Matching defs:decrypted
158 struct wpabuf *decrypted;
171 decrypted = wpabuf_alloc(encr_len - block_size);
172 if (decrypted == NULL)
176 wpabuf_put_data(decrypted, encr + block_size, encr_len - block_size);
177 if (aes_128_cbc_decrypt(wps->keywrapkey, encr, wpabuf_mhead(decrypted),
178 wpabuf_len(decrypted))) {
179 wpabuf_clear_free(decrypted);
183 wpa_hexdump_buf_key(MSG_MSGDUMP, "WPS: Decrypted Encrypted Settings",
184 decrypted);
186 pos = wpabuf_head_u8(decrypted) + wpabuf_len(decrypted) - 1;
188 if (pad > wpabuf_len(decrypted)) {
190 wpabuf_clear_free(decrypted);
197 wpabuf_clear_free(decrypted);
201 decrypted->used -= pad;
203 return decrypted;