a biometric authentication system according to a best mode ( which will hereinafter be termed an embodiment ) for carrying out the present invention will be described with reference to the drawings . a configuration of the embodiment is an exemplification , and the present invention is not limited to the configuration of the embodiment . fig1 is a view of architecture of a biometric authentication system in the embodiment of the present invention . the embodiment will exemplify a case of utilizing the biometric authentication system according to the present invention for banking services . the system architecture will be explained together with a mode of utilizing this system for the banking services . note that the biometric authentication system according to the present invention is not specialized in the banking services . a user , on the occasion of getting a variety of services of a bank , at first , establishes a bank account and gets issuance of an ic card 10 used as a cash card . upon the issuance of the ic card 10 , the user registers user &# 39 ; s own biometric information in the ic card 10 at a bank window . given herein is a case of adopting venous information based on an image of blood vessels of a hand as the biometric information , and also exemplified herein is a case of utilizing the ic card as a biometric authentication device . when making registration thereof , the user inserts the ic card 10 into a window terminal ( which will hereinafter simply be called a terminal ) ( corresponding to a processing device according to the present invention ) 40 , and puts the hand over an imaging unit 41 provided on the terminal 40 , thus registering the venous information of the user &# 39 ; s hand in the ic card 10 . note that the biometric information may involve using , e . g ., fingerprint information , iris information , face information , etc . in addition to the venous information . further , the biometric authentication device may involve using a portable information terminal such as a pda ( personal digital assistant ), etc ., a cellular phone , etc . in addition to the ic card . thereafter , the user , in the case of depositing and paying money to and from an atm ( automatic teller machine ), etc ., inserts the ic card 10 registered with the biometric information into the atm ( which will hereinafter be referred to as a terminal ) ( corresponding to a processing device according to the present invention ) 30 , and puts the hand over an imaging unit 31 provided on the terminal 30 , thus verifying user &# 39 ; s identity , whereby the user gets the services such as paying - in , paying - out , etc . each of the terminals 30 and , 40 is connected via a network to a bank on - line system ( un - illustrated ) for processing a variety of banking operations . herein , the banking operations will be explained as functions of the terminals 30 and 40 , including processes executed by the bank on - line system connected to the terminals 30 and 40 . further , the terminal 30 serving as the atm is distinguished from the terminal 40 used for bank window operations , however , the respective processes may also be conducted on one single terminal . each of the terminals 30 and 40 , when the ic card 10 is inserted via an insertion port ( un - illustrated ) thereof , performs communications with the ic card 10 , and exchanges various pieces of information stored on the ic card 10 . the communications between the ic card 10 and the respective terminals 30 and 40 utilize a contact technique specified in , e . g ., iso / iec7816 , etc . and a non - contact technique utilizing radio waves , etc . moreover , the terminals 30 and 40 have the imaging units 31 and 41 for acquiring the venous information respectively . the imaging units 31 and 41 , when putting the hand over these imaging units , capture images of the blood vessels , and create venous information from the image information thereof . next , an internal configuration of the ic card 10 will be explained with reference to fig2 . fig2 is a view showing the internal configuration of the ic card 10 . the ic card 10 is constructed of a cpu 11 , a ram 12 , a rom 13 , an interface ( not shown ), etc .. then , the cpu 11 reads and operates a variety of programs stored on the rom 13 , thereby executing a variety of processes . applications stored on the ic card 10 include a variety of applets , such as a biometric authentication applet ( which will hereinafter be simply termed a biometric authentication ap ) 14 , based on services supported by the ic card 10 . the biometric authentication ap 14 executes a process ( which will hereinafter be called a biometric information registering process ) of registering the venous information of the user ( which will hereinafter be called the user biometric information ) in the ic card 10 , and a process ( which will hereinafter be termed a biometric information authenticating process ) of verifying the user identity from the user biometric information registered in the ic card 10 . the biometric authentication ap 14 is constructed of a program module 141 , a first data module 142 , a second data module 143 , etc . in order to execute the processes given above . the program module 141 is stored with a program for executing the variety of processes of the biometric authentication ap 14 . the program stored therein executes the biometric information registering process between the terminal 40 and the ic card 10 ( which corresponds to mutual authentication module according to the present invention ), the biometric information authenticating process ( which corresponds to biometric information authenticating module according to the present invention ) between the terminal 30 and the ic card 10 , controls operating and stopping the respective processes ( which corresponds to authentication control module according to the present invention ), and so on . the first data module 142 is constructed of a biometric information storage module 147 for storing the venous information of the user , and so forth . the second data module 143 exists in a memory area unreadable from outside and is constructed of a registration counter 144 , an authentication counter 145 , a stoppage flag 146 , etc . the registration counter 144 is a counter counted up if the terminal 40 is unable to authenticate the ic card 10 or if the ic card 10 is unable to authenticate the terminal 40 in the mutual authentication between the terminal 40 and the ic card 10 when in the biometric information registering process . the authentication counter 145 is a counter counted up if the user biometric information registered in the ic card 10 is not coincident with the user biometric information acquired in the imaging unit of the terminal 30 in the authentication conducted when in the biometric information authenticating process . the stoppage flag 146 is a flag referred to which the biometric authentication ap stored in the program module 141 refers . the stoppage flag 146 is expressed by a numerical value of , e . g ., 0 or 1 , and may be so defined as to be used in the way that “ 0 ” represents a non - set state , and “ 1 ” represents a set state . the stoppage flag 146 is the flag set by the biometric authentication ap when the registration counter 144 or the authentication counter 145 comes to a predetermined value . the biometric authentication ap judges from the stoppage flag 146 whether the biometric information registering process and the biometric information authenticating process are executed or not . namely , in the state where the stoppage flag 146 is set , it follows that the biometric authentication ap stops all the processes . note that other applets may operate irrespective of the stoppage flag 146 . next , the processes of the biometric authentication ap will be explained with reference to fig3 to 6 . in the following discussion , for clarity of the explanation , the processes of the biometric authentication ap will be described as the operations of the ic card 10 . the ic card 10 ( the biometric authentication ap ) executes roughly the two processes ( the biometric information registering process and the biometric information authenticating process ) described above . to start with , the operation of the ic card 10 when registering the biometric information will be explained with reference to fig3 and 4 . fig3 is a sequence chart , when registering the biometric information , showing how the information is exchanged between the terminal 40 and the ic card 10 that configure the biometric authentication system according to the present invention . when the terminal 40 and the ic card 10 come to a state of getting communicable with each other , the terminal 40 and the ic card 10 perform the mutual authentication . namely , the terminal 40 verifies validity of the ic card 10 , while the ic card 10 verifies validity of the terminal 40 . to be specific , the terminal 40 and the ic card 10 each have a common key and mutually authenticate the validity by verifying that both of them share this common key with each other . the terminal 40 transmits a terminal authentication code and first authentication data ( 303 ) to the ic card 10 . this terminal authentication code is , for instance , a hash code generated on the terminal 40 and is generated by encrypting the first authentication data with the common key held by the terminal 40 . the first authentication data is , for example , a random number generated on the terminal 40 . the ic card receiving the terminal authentication code and the first authentication data generates , by the same method as the terminal 40 does , a terminal authentication code as well as the first authentication data by use of the common key held by the ic card 10 . then , the ic card 10 collates the terminal authentication code received from the terminal 40 with the terminal authentication code generated by the card 10 itself , thereby authenticating the validity of the terminal 40 ( s 310 : terminal authentication ). the ic card 10 sends a result ( 304 ) of the terminal authentication ( s 310 ) to the terminal 40 . the terminal 40 receiving the result ( 304 ) of the terminal authentication ( s 310 ) generates second authentication data ( 305 ) and sends to the ic card 10 . the second authentication data ( 305 ) is , e . g ., a random number generated on the terminal 40 . further , herein , the second authentication data ( 305 ) is generated on the terminal 40 and may also be generated on the ic card 10 . the ic card 10 generates a hash code by encrypting the received second authentication data ( 305 ) with the common key held by the ic card 10 itself , and transmits the hash code as an ic card authentication code ( 306 ) to the terminal 40 . the terminal 40 receiving the ic card authentication code generates an ic card authentication code by use of the self - generated second authentication data ( 305 ) and the self - held common key , and collates the thus generated ic card authentication code with the received ic card authentication code ( 306 ). thus , the terminal 40 authenticates the validity of the received ic card authentication code ( s 320 : ic card authentication ). the terminal 40 transmits a result ( 307 ) of the ic card authentication ( s 320 ) to the ic card 10 . upon completion of mutually authenticating the validity through the mutual authentication , the terminal 40 acquires and generates the biometric information of the user from the imaging unit 41 ( s 321 ). then , the terminal 40 sends , to the ic card 10 , the biometric information ( 308 ) together with a biometric information registering instruction in order to register this piece of biometric information in the ic card 10 . finally , the ic card 10 registers the biometric information received from the terminal 40 ( s 311 ). ( explanation of operation flow of ic card 10 in registration of biometric information ) fig4 is a processing flowchart in the biometric information registration of the ic card 10 , and shows an operation of the ic card 10 in the process sequence described above . note that the same processes as those of the ic card 10 shown in fig3 are given the same numerals and symbols also in fig4 ( s 310 , and s 311 ). the ic card 10 , upon executing the biometric information registering process , at first checks whether the stoppage flag 146 is set or not ( s 402 ). in the case where the stoppage flag 146 has already been set ( s 402 : yes ), the terminal 40 is notified of a purport that the biometric information can not be registered ( s 414 ). the ic card 10 , if the stoppage flag 146 is not set ( s 402 : no ), receives the terminal authentication code and the first authentication data that will be sent from the terminal 40 later on ( s 403 ). then , the ic card 10 authenticates the validity of this terminal authentication code by use of the self - held common key and the authentication data ( s 310 ). when the validity of the received terminal authentication code is authenticated as a result of the terminal authentication ( s 310 ) ( s 405 : yes ), the ic card 10 generates the ic card authentication code by using the second authentication data received from the terminal 40 and the self - held common key , and sends the thus - generated code to the terminal 40 ( s 406 ). thereafter , the ic card 10 receives a result of the ic card authentication ( s 320 ) made by the terminal 40 ( s 407 ). then , when the validity of the ic card authentication code is authenticated as a result of the ic card authentication ( s 408 : yes ), the ic card 10 registers the biometric information transmitted from the terminal 40 ( s 311 ). finally , the ic card 10 notifies the terminal 40 of a purport that the biometric information is normally registered ( s 410 ). whereas if not normally authenticated through the mutual authentication , i . e ., if the validity of the received terminal authentication code is not authenticated as a result of the terminal authentication ( s 310 ) ( s 405 : no ), or if the validity of the ic card authentication code is not authenticated as a result of the ic card authentication ( s 320 ) by the terminal 40 ( s 408 ; no ), the registration counter 144 is counted up in both cases ( s 411 ). then , as a result , when a value of the registration counter 144 becomes larger than a predetermined value ( s 412 ; no ), the ic card 10 sets the stoppage flag 146 ( s 413 ), and notifies the terminal 40 of a purport that the biometric information can not be registered ( s 414 ). note that if the value of the registration counter 144 is equal to or smaller than the predetermined value ( s 412 ; yes ), the ic card 10 directly notifies the terminal 40 of the purport that the biometric information can not be registered ( s 414 ). next , an operation of the ic card 10 when authenticating the biometric information will be described with reference to fig5 and 6 . fig5 is a sequence chart showing , when authenticating the biometric information , how the information is exchanged between the terminal 30 and the ic card 10 that configure the biometric authentication system according to the present invention . when the terminal 30 and the ic card 10 comes to a state of getting communicable with each other , the terminal 30 acquires and generates the present user biometric information from the imaging unit 31 ( s 511 ). then , the terminal 30 sends the thus - generated present user biometric information to the ic card 10 ( 503 ). the ic card 10 authenticates the received present user biometric information and the biometric information stored in the biometric information storage module 147 ( s 512 : biometric information authentication ). then , the ic card 10 notifies the terminal 30 of a result ( 504 ) of the biometric information authentication ( s 512 ). when the validity of the biometric information is authenticated on both sides through this biometric information authentication , the user hereafter can get the variety of banking services . ( explanation of operation flow of ic card 10 in biometric information authentication ) fig6 is a processing flowchart in the biometric information authentication of the ic card 10 , and shows an operation of the ic card 10 in the processing sequence described above . note that the same processes as those of the ic card 10 shown in fig5 are given the same symbols and numerals also in fig6 ( s 512 ). the ic card 10 , upon executing the biometric information authentication process , to start with , checks whether the stoppage flag 146 is set or not ( s 602 ). in the case where the stoppage flag 146 has already been set ( s 602 : yes ), the terminal 30 is notified of a purport that the biometric information authentication can not be completed ( s 609 ). the ic card 10 , if the stoppage flag 146 is not set ( s 602 : no ), receives the present user biometric information that will be sent from the terminal 30 later on ( s 603 ). then , the ic card 10 authenticates the received present user biometric information and the biometric information stored in the biometric information storage module 147 ( s 512 : biometric information authentication ). when the validity of the biometric information on both sides is authenticated as a result of the biometric information authentication ( s 512 ) ( s 604 ; yes ), the ic card 10 sends , to the terminal 30 , a purport that the validity of the biometric information is authenticated ( s 608 ). conversely , when the validity of the biometric information on both sides is not authenticated as a result of the biometric information authentication ( s 512 ) ( s 604 ; no ), the authentication counter 145 is counted up ( s 605 ). then , as the result , if the value of the authentication counter 145 becomes larger than the predetermined value ( s 606 ; no ), the ic card 10 sets the stoppage flag 146 ( s 607 ), and notifies the terminal 30 of a purport that the biometric information can not be authenticated ( s 609 ). note that if the value of the authentication counter 145 is equal to or smaller than the predetermined value ( s 606 ; yes ), the ic card 10 directly notifies the terminal 30 of a purport that the biometric information can not be authenticated ( s 609 ). as described above , in the biometric information authentication system according to the embodiment of the present invention , the ic card 10 performs , between the terminals 30 and 40 at the bank and the ic card 10 itself , the mutual authentication and the present user biometric information authentication after registering the biometric information , and notifies , when the validity is authenticated , the terminals 30 and 40 of this purport , whereby the user can be hereafter provided with the variety of banking services through the terminals 30 and 40 . the ic card 10 provides the stoppage flag 146 in the memory area unreadable from outside , and controls the execution of the authentication process depending on the state of this stoppage flag 146 . further , the ic card 10 also has the memory area unreadable from outside with the registration counter 144 and the authentication counter 145 , which correspond to the mutual authentication and the biometric information authentication , respectively . the ic card 10 , if unable to authenticate the validity as the result of the authentication , counts up the registration counter 144 and the authentication counter 145 each corresponding to the authentication given above . then , the stoppage flag 146 is set when the value of the registration counter 144 or the authentication counter 145 becomes larger than the predetermined value . thus , the ic card 10 in the embodiment retains each authentication error count by itself and sets , based on this counter ( value ), the stoppage flag 146 as to whether the subsequent authentication process is to be executed or not . this contrivance eliminates a necessity of outputting the information such as a remaining number of permissible authentication errors to the terminals 30 and 40 from the ic card 10 , and enables prevention of leakage of the information in the ic card . moreover , as described above , the ic card 10 in the embodiment sets the single stoppage flag 146 in both of the authentication error occurred when registering the biometric information on the ic card 10 and the authentication error , i . e ., the biometric information authentication error about the biometric information registered in the ic card 10 and about the present user biometric information . with this contrivance , it is possible to batch - check unlawful actions , from different sides , such as unlawful registration of the biometric information , unlawful authentication of the biometric information , and so on . moreover , as explained above , the ic card 10 in the embodiment , when the stoppage flag 146 is set , stops all the authentication processes . namely , an unlawful user is , even when stopping the service once , then removing the ic card 10 from the terminals 30 and 40 and trying to restart the services , unable to any services hereafter . this contrivance makes it possible to reduce the number of unlawful attacks from the unlawful user . in the ic card 10 in the embodiment of the present invention , the registration counter 144 and the authentication counter 145 are provided on an authentication - by - authentication basis , and are updated when the respective authentication errors occur . these counters may , however , be united into one counter , wherein this counter is counted up for each authentication , and the stoppage flag 146 may be set by comparing this counter value with the predetermined value . with this contrivance , it is possible to control as to whether the authentication processes are to be stopped or not on the basis of a total value of all the authentication errors . moreover , in the ic card 10 in the embodiment of the present invention , the mutual authentication method when registering the biometric information involves using the common key encryption method , and may also involve using a public key encryption method such as rsa encryption , etc . the disclosures of japanese patent application no . jp2004 - 296960 filed on oct . 8 , 2004 including the specification , drawings and abstract are incorporated herein by reference .