摘要 |
<P>PROBLEM TO BE SOLVED: To provide a communication device and a program which simplify structure of the communication device and perform authentication of a target device. <P>SOLUTION: A communication device communicates with an external device via a host device, and comprises: a main processing unit; and a key generation unit. The main processing unit receives a data authentication request including authentication target data, first key specifications, and a message authentication algorithm identifier from the host device. The key generation unit holds key hierarchy utilized by an authentication protocol used between the host device and the external device, and generates a first key by using the key hierarchy and the first key specifications. The main processing unit generates a message authentication code for the authentication target data by using message authentication algorithm identified by the message authentication algorithm identifier and the first key, and transmits a data authentication response including the message authentication code to the host device. <P>COPYRIGHT: (C)2013,JPO&INPIT |