本文介绍了如何加密dicom iamge?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Dicom图像有两部分:标题数据和像素数据。

对于加密,我使用的是AES-GCM算法。它有:



输入:明文,键,初始化矢量

输出:密文,标签



这些是用于加密的AES GCM算法的输入和输出。



现在,我想将DICOM图像输入到该算法中。所以首先,我采用DICOM图像的标题部分,使用SHA-256算法对其进行哈希处理。因此我获得了密钥和初始化向量。然后我拿出像素数据部分,我从中得到纯文本。



如何在matlab中分别获取标题数据和像素数据?有人可以帮帮我吗?



我尝试过:



直到现在,我可以输入整个dicom图像并执行哈希函数(SHA-256)并获得值。

但这不是我想要的。我想单独访问标题和像素数据?

必须做什么?有什么办法吗?

Dicom image has 2 parts: header data and pixel data.
For encryption, I am using an AES-GCM algorithm. It has :

Inputs: Plaintext, key, initialization vector
Outputs: Cipher text, Tag

These are the inputs and outputs of AES GCM algorithm used for encryption.

Now, I want to input DICOM image to this algorithm. So for that first, I take the header part of DICOM image, hash it using SHA-256 algorithm. Hence I get key and Initialization vector. Then I take the pixel data part and I get the plain text from this.

How to separately get the header data and pixel data separately in matlab?. Can somebody help me out?

What I have tried:

Till now, I could input the entire dicom image and perform hash function (SHA-256) and got the value.
But that is not what I want.I want to separately access the header and pixel dat?
What must be done? is there any way?

推荐答案


这篇关于如何加密dicom iamge?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 17:25