Click here to Skip to main content
15,897,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?
Posted
Updated 5-Mar-18 21:41pm

1 solution

If you need to access (that is decrypt) them separately than encrypt them separately.
 
Share this answer
 
Comments
Member 13710872 6-Mar-18 9:27am    
Yes exactly. But how to do the programming part. That is how to get the header and pixel data from the dicom image?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900