PACKET ENCRYPTION METHOD, PACKET DECRYPTION METHOD AND DECRYPTION DEVICE
A packet encryption method for encrypting an IP packet communicated based on an internet protocol is provided. The packet encryption saves fragment information included in an IP header in an area other than the IP header, clears the fragment information included in the IP header, encrypts the IP packet in which the fragment information included in the IP header is cleared, and outputs the encrypted IP packet.
1 . A packet encryption method for encrypting an IP packet communicated based on an internet protocol, the method comprising:
saving fragment information included in an IP header in an area other than the IP header;
clearing the fragment information included in the IP header;
encrypting the IP packet in which the fragment information included in the IP header is cleared; and
outputting the encrypted IP packet.
2 . The packet encryption method according to claim 1 , further comprising:
saving the fragment information included in the IP header in a portion of an encryption header attached when encrypting.
3 . The packet encryption method according to claim 1 , further comprising:
saving the fragment information included in the IP header in a portion of a padding area attached when encrypting.
4 . The packet encryption method according to claim 1 , wherein the fragment information includes offset information that indicates a position from a head of original data of divided data and identification information that indicates whether the divided data is followed by subsequent data.
5 . The packet encryption method according to claim 1 , further comprising:
saving information regarding an area of the IP header in which the fragment information is stored in an area other than the IP header regardless of whether the IP packet is a divided packet or not.
6 . The packet encryption method according to claim 1 , further comprising:
saving the fragment information included in the IP header in one of an SPI field of an ESP header and an SPI field of an AH header.
7 . A packet decryption method for decrypting an encrypted packet obtained by encrypting an IP packet including fragment information in a portion other than an IP header of an IP packet that is communicated based on an internet protocol, the packet decryption method comprising:
decrypting the encrypted packet;
returning the fragment information to the IP header of the decrypted IP packet; and
outputting the IP packet including the fragment information in the IP header.
8 . The packet decryption method according to claim 7 , further comprising:
returning the fragment information included in a portion of an encryption header attached when encrypting to the IP header of the decrypted IP packet.
9 . The packet decryption method according to claim 7 , further comprising:
returning the fragment information included in a portion of a padding area attached when encrypting to the IP header of the decrypted IP packet.
10 . The packet decryption method according to claim 7 , wherein the fragment information includes offset information which indicates a position from a head of original data of divided data and identification information which indicates whether the divided data is followed by subsequent data.
11 . The packet decryption method according to claim 7 , further comprising:
returning the fragment information to the IP header of the IP packet regardless of whether the decrypted IP packet is a divided packet or not.
12 . The packet decryption method according to claim 7 , further comprising:
returning the fragment information included in one of an SPI field of an ESP header and an SPI field of an AH header of the encrypted packet to the IP header of the decrypted IP packet.
13 . A decryption device which decrypts an encrypted packet obtained by encrypting an IP packet including fragment information in a portion other than an IP header of an IP packet communicated based on an internet protocol, the decryption device comprising:
a decryption unit that decrypts the encrypted packet;
a setting unit that sets the fragment information in an IP header of the decrypted IP packet; and
an output unit that outputs the decrypted IP packet including the fragment information in the IP header.
14 . The decryption device according to claim 13 , wherein the setting unit sets the fragment information included in a portion of an encryption header attached when encrypting in the IP header of the decrypted IP packet.
15 . The decryption device according to claim 13 , wherein the setting unit sets the fragment information included in a portion of a padding area attached when encrypting in the IP header of the decrypted IP packet.
16 . The decryption device according to claim 13 , wherein the fragment information includes offset information that indicates a position from a head of original data of divided data and identification information that indicates whether the divided data is followed by subsequent data.
17 . The decryption device according to claim 13 , wherein the setting unit sets the fragment information in the IP header of the IP packet regardless of whether the decrypted IP packet is a divided packet or not.
18 . The decryption device according to claim 13 , wherein the setting unit sets the fragment information included in one of an SPI field of an ESP header and an SPI field of an AH header of the encrypted packet in the IP header of the decrypted IP packet.