Apparatus and method for computing SHA-1hash function
First Claim
1. An apparatus for computing a SHA-1 hash function, comprising:
- a first register unit including a plurality of registers that store a first bit string of predetermined lengths for generation of a hash function value;
a second register unit storing input data in units of second bit strings with predetermined lengths, and sequentially outputting the second bit strings;
a third register unit performing an operation on the first bit string of the plurality of registers and the second bit strings output from the second register unit so as to generate and store a third bit string, and updating first-bit string of the plurality of registers based on the third bit string; and
an adding unit combining the first bit string stored in the first register unit, the first bit string of the third bit string stored in the third register unit, and the original initial values stored in the first register unit so as to obtain a hash function value.
1 Assignment
0 Petitions
Accused Products
Abstract
An apparatus and method for computing a SHA-1 hash function value are provided. The apparatus includes a first register unit including a plurality of registers that store a first bit string of predetermined lengths for generation of a hash function value; a second register unit storing input data in units of second bit strings with predetermined lengths, and sequentially outputting the second bit strings; a third register unit performing an operation on the first bit string of the plurality of registers and the second bit strings output from the second register unit so as to generate and store a third bit string, and updating first-bit string of the plurality of registers based on the third bit string; and an adding unit combining the first bit string stored in the first register unit, the first bit string of the third bit string stored in the third register unit, and the original initial values stored in the first register unit so as to obtain a hash function value. Accordingly, it is possible to reduce the size of the apparatus and stably compute a hash function value at a high speed.
13 Citations
10 Claims
-
1. An apparatus for computing a SHA-1 hash function, comprising:
-
a first register unit including a plurality of registers that store a first bit string of predetermined lengths for generation of a hash function value;
a second register unit storing input data in units of second bit strings with predetermined lengths, and sequentially outputting the second bit strings;
a third register unit performing an operation on the first bit string of the plurality of registers and the second bit strings output from the second register unit so as to generate and store a third bit string, and updating first-bit string of the plurality of registers based on the third bit string; and
an adding unit combining the first bit string stored in the first register unit, the first bit string of the third bit string stored in the third register unit, and the original initial values stored in the first register unit so as to obtain a hash function value. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A method of computing a SHA-1 hash function, comprising:
-
(a) storing initial values in registers A, B, C, D, and E;
(b) dividing input data into bit strings of predetermined lengths, storing the bit strings in a register W, and outputting the stored bit strings;
(c) performing a predetermined logic operation on the respective initial values stored in the registers A, B, C, D, and E, and the bit strings stored in the register W;
(d) calculating intermediate values of the registers A, B, C, D, and E based on a result of the predetermined logic operation, updating the initial values of the registers A, B, C, D, and E with their intermediate values, and storing the updated initial values in the registers A, B, C, D, and E;
(e) repeatedly performing (a) through (e) a predetermined number of times, and obtaining final values of the registers A, B, C, D, and E by combining the respective intermediate values stored in the registers A, B, C, D, and E with their original initial values. - View Dependent Claims (7, 8, 9, 10)
-
Specification