主权项 |
1. A cryptography processing device, comprising:
an input device configured to obtain from an external environment an input of a dimension of a key generation vector, in which each element is equal to or smaller than a maximum bit length and elements except for a first element are integers that are multiples of a plain text space size, an input of the maximum bit length and an input of the plain text space size, the plain text space size being a number of types of symbols that a plain text to be encrypted may take; and a processor configured to
generate the key generation vector using the dimension, the maximum bit length and the plain text space size,generate a secret key matrix from the key generation vector,generate a public key matrix from the secret key matrix,generate public key data including a first public key matrix element, which is a discriminant of the public key matrix, a second public key matrix element, which is an integer, the dimension, and the plain text space size,generate secret key data that includes, as a secret key, an integer that is an element of a matrix obtained as a product of the first public key matrix element and an inverse matrix of the secret key matrix and that is not a multiple of the plain text space size,encrypt the plain text using the public key data so as to obtain cryptography data, andoutput the obtained cryptography data. |