Patent ID: 8229114

Claim:
A device for generating an asymmetrical key pair based on a user identity, including: at least one processor and memory positioned in a key management center, the processor configured for generating a private key calculation parameter and a public key calculation parameter corresponding to each other, storing the private key calculation parameter in the memory, calculating a first user's private key based on an identity provided by the first user, providing the calculated private key to the first user by writing into a media, and publishing the public key calculation parameter, so that a second user can calculate a public key of the first user based on the published public key calculation parameter and the first user's identity by running the public key calculation program stored in a media, in which when calculating the public key and private key, besides the public key calculation parameter and private key calculation parameter, a domain parameter with a layered structure is implemented, in which: elliptic curve cryptography or discrete logarithm cryptography is used by the processor when generating the public key calculation parameter and the private key calculation parameter; the public key calculation parameter and private key calculation parameter each is in the form of a matrix; and when calculating the public key/private key, the identity being transformed, and one or more elements in the public/private key calculation parameter matrix being oriented, are combined by the processor to obtain the public/private key.