Lines Matching refs:integer
3226 factorization. Normally the difficulty of breaking RSA is associated with the integer factoring problem but they are
3231 $\mbox{lcm}(p - 1, q - 1)$. The public key consists of the composite $N$ and some integer $e$ such that
3235 A person who wants to encrypt with your public key simply forms an integer (the plaintext) $M$ such that
3292 This will load the bignum from \textit{in} as a big endian integer in the format PKCS \#1 specifies, raises it to either \textit{e} or \textit{d} and stores the result
3671 keySize INTEGER, -- Curve size (in bits) divided by eight
3673 pubkey.x INTEGER, -- The X co-ordinate of the public key point
3674 pubkey.y INTEGER, -- The Y co-ordinate of the public key point
3679 keySize INTEGER, -- Curve size (in bits) divided by eight
3681 pubkey.x INTEGER, -- The X co-ordinate of the public key point
3682 pubkey.y INTEGER, -- The Y co-ordinate of the public key point
3683 secret.k INTEGER, -- The secret key scalar
3723 The curve must be of the form $y^2 = x^3 - 3x + b$, and all of the integer parameters are encoded in hexadecimal format.
3964 g INTEGER , -- base generator
3967 p INTEGER , -- prime modulus
3968 q INTEGER , -- order of sub-group
3970 y INTEGER , -- public key, specifically,
3978 g INTEGER , -- base generator
3981 p INTEGER , -- prime modulus
3982 q INTEGER , -- order of sub-group
3984 y INTEGER , -- public key, specifically,
3988 x INTEGER -- private key
4034 \item $p = qr + 1$ a large prime of magnitude $256^{modulus\_size}$ where $r$ is a random even integer.
4232 \hline LTC\_ASN1\_INTEGER & INTEGER (uses mp\_int) \\
4233 \hline LTC\_ASN1\_SHORT\_INTEGER & INTEGER (32--bit using unsigned long) \\
4425 \subsection{ASN.1 INTEGER}
4427 To encode or decode INTEGER data types use the following functions.
4443 These will encode or decode a signed INTEGER data type using the bignum data type to store the large INTEGER. To encode smaller values without allocating
4444 a bignum to store the value, the \textit{short} INTEGER functions were made available.
4460 These will encode or decode an unsigned \textbf{unsigned long} type (only reads upto 32--bits). For values in the range $0 \dots 2^{32} - 1$ the integer
4461 and short integer functions can encode and decode each others outputs.
4919 \textit{len = -128} to the function. Upon success it will return {\bf CRYPT\_OK} and \textit{N} will contain an integer which
5268 data type you can perform integer operations with. Ideally it should be four or eight bytes since it must properly divide the size
5668 pointer to an integer
5669 example, if the input is $25$ and $24$ is valid then it stores $24$ back in the pointed to integer. It must not round up and must return an error if the keysize
6019 @return The lower bits_per_digit of the integer (unsigned)
6037 @param a The left side integer
6038 @param b The right side integer
6046 @param a The left side integer
6047 @param b The right side integer (upto bits_per_digit)
6054 /** Count the number of bits used to represent the integer
6055 @param a The integer to count
6056 @return The number of bits required to represent the integer
6061 @param a The integer to count
6067 @param a The integer to store the power in
6076 @param a The integer to store into
6078 @param radix The radix the integer has been represented in (2-64)
6084 @param a The integer to store
6086 @param radix The radix the integer is to be represented in (2-64)
6092 @param a The integer to get the size
6093 @return The length of the integer in octets
6097 /** store an integer as an array of octets
6098 @param src The integer to store
6099 @param dst The buffer to store the integer in
6104 /** read an array of octets and store as integer
6105 @param dst The integer to load
6117 @param a The first source integer
6118 @param b The second source integer
6125 @param a The first source integer
6126 @param b The second source integer
6134 @param a The first source integer
6135 @param b The second source integer
6142 @param a The first source integer
6143 @param b The second source integer
6151 @param a The first source integer
6152 @param b The second source integer
6160 @param a The first source integer
6161 @param b The second source integer
6168 /** Square an integer
6169 @param a The integer to square
6175 /** Divide an integer
6185 @param a The integer to divide (shift right)
6192 @param a The integer to reduce
6200 @param a The first integer
6201 @param b The second integer
6208 @param a The first integer
6209 @param b The second integer
6273 @param a The base integer
6274 @param b The power (can be negative) integer
6275 @param c The modulus integer
6282 @param a The integer to test
6291 @param k The integer to multiply the point by