Home | History | Annotate | Download | only in libtomcrypt

Lines Matching defs:LTC

886 increment then encrypt is also supported.  By OR'ing \textbf{LTC\_CTR\_RFC3686} with the CTR \textit{mode} value, ctr\_start() will increment
940 first incrementing it (regardless of the LTC\_RFC\_3686 flag presence). In F8 mode, the IV is encrypted and becomes the new pad. It does not change
1928 user owning the process performing the request. This function can be omitted by the \textbf{LTC\_NO\_FILE} define, which forces it to return \textbf{CRYPT\_NOP}
1940 will not rewind the file pointer when finished. This function can be omitted by the \textbf{LTC\_NO\_FILE} define, which forces it to return \textbf{CRYPT\_NOP}
2015 applicable block ciphers (such as AES) can be turned into hash functions that other LTC functions can use. In
2061 /* now you can use chc_hash in any LTC function
3082 \textbf{LTC\_PKCS\_1\_EME} to perform encryption padding. It must be set to \textbf{LTC\_PKCS\_1\_EMSA} to perform signature padding. The \textit{modulus\_bitlen}
3101 \index{LTC\_PKCS\_1\_EME} \index{LTC\_PKCS\_1\_EMSA}
3104 \textbf{LTC\_PKCS\_1\_EME} or \textbf{LTC\_PKCS\_1\_EMSA} depending on whether encryption or signature padding is being removed.
3340 \index{LTC\_PKCS\_1\_OAEP} \index{LTC\_PKCS\_1\_V1\_5}
3342 \textbf{LTC\_PKCS\_1\_V1\_5} to perform v1.5 encryption, or set to \textbf{LTC\_PKCS\_1\_OAEP} to perform v2.1 encryption.
3386 It must be set to \textbf{LTC\_PKCS\_1\_V1\_5} to perform v1.5 decryption, or set to \textbf{LTC\_PKCS\_1\_OAEP} to perform v2.1 decryption.
3437 must be set to \textbf{LTC\_PKCS\_1\_V1\_5} to produce a v1.5 signature, otherwise, it must be set to \textbf{LTC\_PKCS\_1\_PSS} to produce a
3486 The \textit{padding} parameter must be set to \textbf{LTC\_PKCS\_1\_V1\_5} to perform a v1.5 verification. Otherwise, it must be set to
3487 \textbf{LTC\_PKCS\_1\_PSS} to perform a v2.1 verification. When performing a v1.5 verification the \textit{hash\_idx} parameter is ignored.
3636 which will build LTC using the TFM math library and enabling this new feature. The feature is not enabled by default as it is \textbf{NOT} thread
3637 safe (by default). It supports the LTC locking macros (such as by enabling LTC\_PTHREAD), but by default is not locked.
3641 cache (of FP\_ENTRIES entries) which it uses to hold recent bases passed to ltc\_ecc\_mulmod(). Any base detected to be used twice is sent through the
3696 \index{ltc\_ecc\_set\_type}
4177 in the same manner as the other data types except they use list of objects known as the \textbf{ltc\_asn1\_list} structure. It is defined as the following:
4179 \index{ltc\_asn1\_list structure}
4191 \index{LTC\_SET\_ASN1 macro}
4195 \textit{LTC\_SET\_ASN1(list, index, Type, Data, Size)} has been provided.
4230 \hline LTC\_ASN1\_EOL & End of a ASN.1 list structure. \\
4231 \hline LTC\_ASN1\_BOOLEAN & BOOLEAN type \\
4232 \hline LTC\_ASN1\_INTEGER & INTEGER (uses mp\_int) \\
4233 \hline LTC\_ASN1\_SHORT\_INTEGER & INTEGER (32--bit using unsigned long) \\
4234 \hline LTC\_ASN1\_BIT\_STRING & BIT STRING (one bit per char) \\
4235 \hline LTC\_ASN1\_OCTET\_STRING & OCTET STRING (one octet per char) \\
4236 \hline LTC\_ASN1\_NULL & NULL \\
4237 \hline LTC\_ASN1\_OBJECT\_IDENTIFIER & OBJECT IDENTIFIER \\
4238 \hline LTC\_ASN1\_IA5\_STRING & IA5 STRING (one octet per char) \\
4239 \hline LTC\_ASN1\_UTF8\_STRING & UTF8 STRING (one wchar\_t per char) \\
4240 \hline LTC\_ASN1\_PRINTABLE\_STRING & PRINTABLE STRING (one octet per char) \\
4241 \hline LTC\_ASN1\_UTCTIME & UTCTIME (see ltc\_utctime structure) \\
4242 \hline LTC\_ASN1\_SEQUENCE & SEQUENCE (and SEQUENCE OF) \\
4243 \hline LTC\_ASN1\_SET & SET \\
4244 \hline LTC\_ASN1\_SETOF & SET OF \\
4245 \hline LTC\_ASN1\_CHOICE & CHOICE \\
4257 To encode a sequence a \textbf{ltc\_asn1\_list} array must be initialized with the members of the sequence and their respective pointers. The encoding is performed
4268 function will terminate when it reads all the items out of the list (upto \textit{inlen}) or it encounters an item in the list with a type of \textbf{LTC\_ASN1\_EOL}.
4272 the \textit{data} pointer is simply a pointer to another \textbf{ltc\_asn1\_list}.
4278 Decoding a SEQUENCE is similar to encoding. You set up an array of \textbf{ltc\_asn1\_list} where in this case the \textit{size} member is the maximum size
4332 and \textit{data} is \textbf{void} pointer. The list of items must be terminated with an item with the type \textbf{LTC\_ASN1\_EOL}.
4366 SETs use the same array structure of ltc\_asn1\_list that the SEQUENCE functions use. They are encoded with the following function:
4403 used to store objects deterministically based solely on their encoding. It uses the same array structure of ltc\_asn1\_list that the SEQUENCE functions
4603 \index{ltc\_utctime structure}
4643 The CHOICE ASN.1 type represents a union of ASN.1 types all of which are stored in a \textit{ltc\_asn1\_list}. There is no encoder for the CHOICE type, only a
4645 type\footnote{Except it cannot have LTC\_ASN1\_INTEGER and LTC\_ASN1\_SHORT\_INTEGER simultaneously.} except for other CHOICE types.
4666 The flexi decoder uses the same \textit{ltc\_asn1\_list} but instead of being stored in an array it uses the linked list pointers \textit{prev}, \textit{next}, \textit{parent}
4670 When a SEQUENCE or SET has been encountered a SEQUENCE (or SET resp.) item will be added as a sibling (e.g. list.type == LTC\_ASN1\_SEQUENCE) and the child
5024 \index{LTC\_PTHREAD}
5025 The only sticky issue is a shared PRNG which can be alleviated with the careful use of mutex devices. Defining LTC\_PTHREAD for instance, enables
5196 This lets you control how the LTC\_ARGCHK macro will behave. The macro is used to check pointers inside the functions against
5229 \subsection{LTC\_NO\_FILE}
5230 During the build if LTC\_NO\_FILE is defined then any function in the library that uses file I/O will not call the file I/O
5234 \subsection{LTC\_CLEAN\_STACK}
5238 \subsection{LTC\_TEST}
5240 If LTC\_NO\_TEST has been defined, the testing routines will be compacted and only return CRYPT\_NOP.
5242 \subsection{LTC\_NO\_FAST}
5246 \subsection{LTC\_FAST}
5252 it has been enabled by default only for the x86 class of processors where unaligned accesses are allowed. Technically LTC\_FAST
5266 \index{LTC\_FAST\_TYPE}
5267 If you do plan on using the \textit{LTC\_FAST} mode you have to also define a \textit{LTC\_FAST\_TYPE} macro which resolves to an optimal sized
5272 \subsection{LTC\_NO\_ASM}
5284 \subsection{LTC\_EASY}
5310 \subsection{LTC\_SMALL\_CODE}
5314 \subsection{LTC
5321 \subsection{LTC\_ECC\_TIMING\_RESISTANT}
5360 The ciphers in LibTomCrypt are accessed through the ltc\_cipher\_descriptor structure.
5758 The hash functions are accessed through the ltc\_hash\_descriptor structure.
5859 The pseudo--random number generators are accessible through the ltc\_prng\_descriptor structure.
6441 \index{ltc\_ecc\_mul2add()}
6442 To accelerate EC--DSA verification the library provides a built--in function called ltc\_ecc\_mul2add(). This performs two point multiplications and an addition in