Function calling method for computer system, computer system, and library

Information

  • Patent Application
  • 20070169068
  • Publication Number
    20070169068
  • Date Filed
    November 20, 2006
    17 years ago
  • Date Published
    July 19, 2007
    17 years ago
Abstract
According to one embodiment, a computer system includes a library which supplys a plurality of functions, and a program which calls the function, and the program including a function calling unit which disguises, upon calling a first function from the library, the calling process of the first function as a calling process of a second function, and a return value obtaining unit which obtains a return value of the second function from the library as a return value of the first function, and the library including, a function call reception unit which converts, receiving a request to call the second function from the program, the calling process of the second function into the calling process of the first function, and a return value send back unit which sends back, to the program, the return value of the first function as the return value of the second function.
Description

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS

A general architecture that implements the various feature of the invention will now be described with reference to the drawings. The drawings and the associated descriptions are provided to illustrate embodiments of the invention and not to limit the scope of the invention.



FIG. 1 is an exemplary block diagram showing the schematic arrangement of a computer system according to an embodiment of the present invention;



FIG. 2 is an exemplary block diagram for explaining a mechanism for calling a function in the computer system according to the embodiment;



FIG. 3 is an exemplary functional block diagram of an application program running on the computer system, and a dynamic library for supplying a function to the application program according to the embodiment; and



FIG. 4 is an exemplary timing chart showing an operation procedure between the application program running on the computer system, and the dynamic library for supplying a function to the application program according to the embodiment.


Claims
  • 1. A function calling method for a computer system in which a library for supplying a plurality of functions transmits/receives a parameter and a return value to/from a program for calling the function, comprising: holding, in advance, an identical common key for encrypting data in both the library and the program;outputting, from the program to the library, a request to generate a parameter key for encrypting the parameter and the return value;generating the parameter key in the library in response to the request from the program, encrypting the generated parameter key with the common key, and transmitting the encrypted parameter key to the program;decrypting, in the program, the parameter key from the library with the common key, encrypting, with the parameter key, the parameter for a calling process of a first function, and requesting the library to call a second function set to disguise the calling process of the first function by using the encrypted parameter as another event;decrypting, in the library, the parameter used to call the second function with the parameter key, calling the first function by using the decrypted parameter, encrypting a return value of the first function with the parameter key, and sending back the encrypted return value as the return value of the second function; anddecrypting, in the program, the return value of the second function from the library with the parameter key, and setting the decrypted return value as the return value of the first function.
  • 2. A computer system comprising: a library configured to supply a plurality of functions; anda program configured to call the function, andthe program including:a function calling unit configured to, upon calling a first function from the library, disguise the calling process of the first function as a calling process of a second function; anda return value obtaining unit configured to obtain a return value of the second function from the library as a return value of the first function, andthe library including:a function call reception unit configured to, receiving a request to call the second function from the program, convert the calling process of the second function into the calling process of the first function; anda return value send back unit configured to send back, to the program, the return value of the first function as the return value of the second function.
  • 3. The computer system according to claim 2, wherein in the program, the function calling unit encrypts a parameter for a calling process of the first function with a parameter key, and calls the second function by using the encrypted parameter, andthe return value obtaining unit decrypts the return value of the second function from the library with the parameter key, andin the library,the function call reception unit decrypts the parameter used to call the second function, with the parameter key, andthe return value send back unit encrypts the return value of the first function with the parameter key.
  • 4. The computer system according to claim 3, wherein both the library and the program hold an identical common key for encrypting data, the program further including parameter key obtaining unit configured to request the library to generate the parameter key, and to decrypt the parameter key from the library with the common key, andthe library further including parameter key generation unit configured to generate the parameter key in response to the request from the program, to encrypt the generated parameter key with the common key, and to transmit the encrypted parameter key to the program.
  • 5. A library which is arranged in a computer system, and supplies a plurality of functions to a program running on the computer system, comprising: a function call reception unit configured to, upon receiving a request to call a second function set to disguise a calling process of a first function as another event from the program, convert the calling process of the second function into the calling process of the first function; anda return value send back unit configured to send back, to the program, a return value of the first function as a return value of the second function.
  • 6. A library according to claim 5, wherein the function call reception unit decrypts, with a parameter key, a parameter used to call the second function, andthe return value send back unit encrypts the return value of the first function with the parameter key.
  • 7. The library according to claim 6, further comprising parameter key generation unit configured to generate the parameter key in response to the request from the program, to encrypt the generated parameter key with a prepared common key, and to transmit the encrypted parameter key to the program.
Priority Claims (1)
Number Date Country Kind
2005-361956 Dec 2005 JP national