US11444789B2ActiveUtilityA1

Decrypted packet padding removal

56
Assignee: CANON KKPriority: Apr 4, 2017Filed: Oct 2, 2019Granted: Sep 13, 2022
Est. expiryApr 4, 2037(~10.7 yrs left)· nominal 20-yr term from priority
Inventors:Akiyoshi Momoi
H04L 63/166H04L 9/3242H04L 9/36H04L 2209/34H04L 63/0485H04L 9/0844
56
PatentIndex Score
0
Cited by
16
References
29
Claims

Abstract

In order to improve the efficiency of transfer to outside devices while necessary buffer memory is suppressed, the present invention is an information processing apparatus for decoding a packet that is encrypted in accordance with Transport Layer Security (TLS) protocols and in which a padding portion has a variable length, the information processing apparatus including acquisition means for acquiring an encrypted packet on a unit data basis, decoding means for decoding the encrypted packet on the unit data basis, output means for outputting decoded data obtained through the decoding performed by the decoding means to an external device in accordance with an order in which the decoding is performed by the decoding means, and control means for restricting output to be performed by the output means in a case where a padding pattern is detected from the decoded data obtained through the decoding performed by the decoding means.

Claims

exact text as granted — not AI-modified
The invention claimed is: 
     
       1. An information processing apparatus for decoding a packet that is encrypted in accordance with Transport Layer Security (TLS) protocols and in which a padding portion has a variable length, the information processing apparatus comprising:
 at least one circuit configured to function as:
 an acquisition unit configured to acquire an encrypted packet on a unit data basis; 
 a decoding unit configured to decode the encrypted packet on the unit data basis; 
 an output unit configured to output decoded data obtained through the decoding performed by the decoding unit to an external device in accordance with an order in which the decoding is performed by the decoding unit; and 
 a restricting unit configured to restrict output to be performed by the output unit in a case where a padding pattern is detected from the decoded data obtained through the decoding performed by the decoding unit, and to keep restricting the output to be performed by the output unit until a pattern different from the padding pattern is detected from the decoded data obtained through the decoding performed by the decoding unit. 
 
 
     
     
       2. The information processing apparatus according to  claim 1 , wherein the restricting unit
 includes a transfer unit for acquiring the decoded data obtained through the decoding performed by the decoding unit and transferring the acquired decoded data obtained through the decoding performed by the decoding unit to the output unit, and 
 restricts, in a case where the decoded data obtained through the decoding performed by the decoding unit contains the padding pattern, the output to be performed by the output unit by restricting transfer to be performed by the transfer unit. 
 
     
     
       3. The information processing apparatus according to  claim 2 , wherein the restricting unit allows the transfer unit to perform the transfer in a case where the padding pattern is detected from the decoded data obtained through the decoding performed by the decoding unit and where, after the padding pattern, a pattern different from the padding pattern is detected from the decoded data obtained through the decoding performed by the decoding unit. 
     
     
       4. The information processing apparatus according to  claim 2 , wherein the restricting unit does not perform transfer using the transfer unit in a case where the padding pattern is detected from the decoded data obtained through the decoding performed by the decoding unit and where a size of a padding pattern contained after the padding pattern is greater than a threshold. 
     
     
       5. The information processing apparatus according to  claim 1 , wherein the padding pattern is formed by repeating a value of zero. 
     
     
       6. The information processing apparatus according to  claim 5 , wherein the padding pattern is a pattern subsequent to a value indicating a type of the packet. 
     
     
       7. The information processing apparatus according to  claim 1 , wherein the padding pattern is a padding pattern defined in accordance with protocols. 
     
     
       8. The information processing apparatus according to  claim 7 , wherein the padding pattern is a padding pattern defined in accordance with TLS protocols. 
     
     
       9. The information processing apparatus according to  claim 1 , wherein the padding pattern is formed by repeating a fixed value a predetermined number of times. 
     
     
       10. The information processing apparatus according to  claim 1 , wherein the encrypted packet is a portion of image pickup data generated by an image capturing device. 
     
     
       11. An information processing method for decoding a packet that is encrypted in accordance with Transport Layer Security (TLS) protocols and in which a padding portion has a variable length, the information processing method comprising:
 acquiring, by an acquisition unit, an encrypted packet on a unit data basis; 
 decoding, by a decoding unit, the encrypted packet on the unit data basis; 
 outputting, by an output unit, decoded data obtained through the decoding performed by the decoding unit to an external device in accordance with an order in which the decoding is performed by the decoding unit; and 
 restricting, by a restricting unit, output to be performed by the output unit in a case where a padding pattern is detected from the decoded data obtained through the decoding performed by the decoding unit and keep restricting the output to be performed by the output unit until a pattern different from the padding pattern is detected from the decoded data obtained through the decoding performed by the decoding unit. 
 
     
     
       12. The information processing method according to  claim 11 , wherein
 the restricting includes transferring, by a transfer unit, in which the decoded data obtained through the decoding performed in the decoding is acquired and the acquired decoded data obtained through the decoding performed in the decoding is transferred to the output unit, and 
 in a case where the decoded data obtained through the decoding performed in the decoding unit contains the padding pattern, the output to be performed by the output unit is restricted by restricting transfer to be performed in the transferring. 
 
     
     
       13. The information processing method according to  claim 12 , wherein in the restricting, the transfer in the transferring is allowed in a case where the padding pattern is detected from the decoded data obtained through the decoding performed in the decoding and where, after the padding pattern, a pattern different from the padding pattern is detected from the decoded data obtained through the decoding performed in the decoding step. 
     
     
       14. The information processing method according to  claim 12 , wherein in the restricting, the transfer in the transferring is not performed in a case where the padding pattern is detected from the decoded data obtained through the decoding performed in the decoding and where a size of a padding pattern contained after the padding pattern is greater than a threshold. 
     
     
       15. The information processing method according to  claim 11 , wherein the padding pattern is formed by repeating a value of zero. 
     
     
       16. The information processing method according to  claim 15 , wherein the padding pattern is a pattern subsequent to a value indicating a type of the packet. 
     
     
       17. The information processing method according to  claim 11 , wherein the padding pattern is a padding pattern defined in accordance with protocols. 
     
     
       18. The information processing method according to  claim 17 , wherein the padding pattern is a padding pattern defined in accordance with TLS protocols. 
     
     
       19. The information processing method according to  claim 11 , wherein the padding pattern is formed by repeating a fixed value. 
     
     
       20. A non-transitory storage medium storing a program causing an information processing apparatus for decoding a packet that is encrypted in accordance with Transport Layer Security (TLS) protocols and in which a padding portion has a variable length to execute an information processing method, the information processing method comprising:
 acquiring, by an acquisition unit, an encrypted packet on a unit data basis; 
 decoding, by a decoding unit, the encrypted packet on the unit data basis; 
 outputting, by an output unit, decoded data obtained through the decoding performed by the decoding unit to an external device in accordance with an order in which the decoding is performed by the decoding unit; and 
 restricting, by a restricting unit, output to be performed by the output unit in a case where a padding pattern is detected from the decoded data obtained through the decoding performed by the decoding unit and keep restricting the output to be performed by the output unit until a pattern different from the padding pattern is detected from the decoded data obtained through the decoding performed by the decoding unit. 
 
     
     
       21. An information processing apparatus for decoding a packet that is encrypted in accordance with Transport Layer Security (TLS) protocols and in which a padding portion has a variable length, the information processing apparatus comprising:
 at least one circuit configured to function as:
 an acquisition unit configured to acquire an encrypted packet on a unit data basis; 
 a decoding unit configured to decode the encrypted packet on the unit data basis; 
 an output unit configured to output decoded data obtained through the decoding performed by the decoding unit to an external device in accordance with an order in which the decoding is performed by the decoding unit; and 
 a restricting unit configured to restrict output to be performed by the output unit in a case where a first padding pattern is detected from the decoded data obtained through the decoding performed by the decoding unit, and to keep restricting the output to be performed by the output unit until a pattern different from a second padding pattern is detected from the decoded data obtained through the decoding performed by the decoding unit. 
 
 
     
     
       22. The information processing apparatus according to  claim 21 , wherein the first padding pattern is a value indicating a type of the packet. 
     
     
       23. The information processing apparatus according to  claim 22 , wherein the second padding pattern is a value of zero. 
     
     
       24. The information processing apparatus according to  claim 21 , wherein the first padding pattern and the second padding pattern are defined in accordance with TLS protocols. 
     
     
       25. An information processing method for decoding a packet that is encrypted in accordance with Transport Layer Security (TLS) protocols and in which a padding portion has a variable length, the information processing method comprising:
 acquiring, by an acquisition unit, an encrypted packet on a unit data basis; 
 decoding, by a decoding unit, the encrypted packet on the unit data basis; 
 outputting, by an output unit, decoded data obtained through the decoding performed by the decoding unit to an external device in accordance with an order in which the decoding is performed by the decoding unit; and 
 restricting, by a restricting unit, output to be performed by the output unit in a case where a first padding pattern is detected from the decoded data obtained through the decoding performed by the decoding unit and keep restricting the output to be performed by the output unit until a pattern different from a second padding pattern is detected from the decoded data obtained through the decoding performed by the decoding unit. 
 
     
     
       26. The information processing method according to  claim 25 , wherein the first padding pattern is a value indicating a type of the packet. 
     
     
       27. The information processing method according to  claim 26 , wherein the second padding pattern is a value of zero. 
     
     
       28. The information processing method according to  claim 25 , wherein the first padding pattern and the second padding pattern are defined in accordance with TLS protocols. 
     
     
       29. A non-transitory storage medium storing a program causing an information processing apparatus for decoding a packet that is encrypted in accordance with Transport Layer Security (TLS) protocols and in which a padding portion has a variable length to execute an information processing method, the information processing method comprising:
 acquiring, by an acquisition unit, an encrypted packet on a unit data basis; 
 decoding, by a decoding unit, the encrypted packet on the unit data basis; 
 outputting, by an output unit, decoded data obtained through the decoding performed by the decoding unit to an external device in accordance with an order in which the decoding is performed by the decoding unit; and 
 restricting, by a restricting unit, output to be performed by the output unit in a case where a first padding pattern is detected from the decoded data obtained through the decoding performed by the decoding unit and keep restricting the output to be performed by the output unit until a pattern different from a second padding pattern is detected from the decoded data obtained through the decoding performed by the decoding unit.

Cited by (0)

No later patents cite this yet.

References (0)

No backward citations on record.