Lines Matching refs:decrypt

142 	struct cipher_pkt decrypt = {  in ecb_mode()  local
179 if (cipher_block_op(&ini, &decrypt)) { in ecb_mode()
184 LOG_INF("Output length (decryption): %d", decrypt.out_len); in ecb_mode()
186 if (memcmp(decrypt.out_buf, ecb_plaintext, sizeof(ecb_plaintext))) { in ecb_mode()
189 print_buffer_comparison(ecb_plaintext, decrypt.out_buf, in ecb_mode()
224 struct cipher_pkt decrypt = { in cbc_mode() local
267 if (cipher_cbc_op(&ini, &decrypt, encrypted)) { in cbc_mode()
272 LOG_INF("Output length (decryption): %d", decrypt.out_len); in cbc_mode()
274 if (memcmp(decrypt.out_buf, plaintext, sizeof(plaintext))) { in cbc_mode()
277 print_buffer_comparison(plaintext, decrypt.out_buf, in cbc_mode()
315 struct cipher_pkt decrypt = { in ctr_mode() local
356 if (cipher_ctr_op(&ini, &decrypt, iv)) { in ctr_mode()
361 LOG_INF("Output length (decryption): %d", decrypt.out_len); in ctr_mode()
363 if (memcmp(decrypt.out_buf, plaintext, sizeof(plaintext))) { in ctr_mode()
367 decrypt.out_buf, sizeof(plaintext)); in ctr_mode()
427 struct cipher_pkt decrypt = { in ccm_mode() local
465 ccm_op.pkt = &decrypt; in ccm_mode()
471 LOG_INF("Output length (decryption): %d", decrypt.out_len); in ccm_mode()
473 if (memcmp(decrypt.out_buf, ccm_data, sizeof(ccm_data))) { in ccm_mode()
477 decrypt.out_buf, sizeof(ccm_data)); in ccm_mode()
539 struct cipher_pkt decrypt = { in gcm_mode() local
577 gcm_op.pkt = &decrypt; in gcm_mode()
583 LOG_INF("Output length (decryption): %d", decrypt.out_len); in gcm_mode()
585 if (memcmp(decrypt.out_buf, gcm_data, sizeof(gcm_data))) { in gcm_mode()
589 decrypt.out_buf, sizeof(gcm_data)); in gcm_mode()