Lines Matching refs:Out
130 The library serves as a toolkit for developers who have to solve cryptographic problems. Out of the box LibTomCrypt
139 \item I am too lazy to figure out someone else's API. I'd rather invent my own simpler API and use that.
154 configurable in terms of its build options. Out of the box the library will build with any modern version of GCC
194 They can be removed from a build by simply commenting out the two appropriate lines in \textit{tomcrypt\_custom.h}. The rest
932 The XXX\_getiv() functions will read the IV out of the chaining mode and store it into \textit{IV} along with the length of the IV
971 /* somehow fill out key and IV */
1236 then stores how many bytes of the tag were written out back in to \textit{taglen}.
1780 unsigned char *out);
1783 This function will finish up the hash and store the result in the \textit{out} array. You must ensure that \textit{out} is long
1800 unsigned char *in = "hello world", out[16];
1808 /* get the hash in out[0..15] */
1809 md5_done(&md, out);
1832 int (*done) (hash_state *hash, unsigned char *out);
1911 unsigned char *out,
1916 digest is stored in \textit{out}, and the \textit{outlen} parameter is updated to hold the message digest size.
1923 unsigned char *out,
1929 when it is called. The message digest is stored in \textit{out}, and the \textit{outlen} parameter is updated to hold the message digest size.
1935 unsigned char *out,
1941 when it is called. The message digest is stored in \textit{out}, and the \textit{outlen} parameter is updated to hold the message digest size.
1951 unsigned char out[MAXBLOCKSIZE];
1963 len = sizeof(out);
1965 hash_memory(idx, "hello world", 11, out, &len)) != CRYPT_OK) {
2107 unsigned char *out,
2110 The \textit{hmac} parameter is the HMAC state you are working with. The \textit{out} parameter is the array of octets where the HMAC code should be stored.
2125 unsigned char *out, unsigned long *outlen);
2129 The result is stored in the array of octets \textit{out} and the length in \textit{outlen}. The value of \textit{outlen} must be set
2137 unsigned char *out, unsigned long *outlen);
2140 \textit{key} is the array of octets to use as the key of length \textit{keylen}. \textit{out} is the array of octets where the
2243 unsigned char *out,
2246 Which will terminate the OMAC and output the \textit{tag} (MAC) to \textit{out}. Note that unlike the HMAC and other code
2261 unsigned char *out, unsigned long *outlen);
2264 specified by the \textit{cipher}'th entry in the cipher\_descriptor table. It will store the MAC in \textit{out} with the same
2274 unsigned char *out, unsigned long *outlen);
2278 and the cipher specified by the \textit{cipher}'th entry in the cipher\_descriptor table. It will store the MAC in \textit{out} with
2380 unsigned char *out,
2383 This will store up to \textit{outlen} bytes of the tag for the given \textit{state} into \textit{out}. Note that if \textit{outlen} is larger
2384 than the size of the tag it is set to the amount of bytes stored in \textit{out}.
2395 unsigned char *out, unsigned long *outlen);
2398 specified by the \textit{cipher}'th entry in the cipher\_descriptor table. It will store the MAC in \textit{out} with the same
2408 unsigned char *out, unsigned long *outlen);
2412 and the cipher specified by the \textit{cipher}'th entry in the cipher\_descriptor table. It will store the MAC in \textit{out} with
2447 int pelican_done(pelican_state *pelmac, unsigned char *out);
2449 This terminates a Pelican MAC and writes the 16--octet tag to \textit{out}.
2531 unsigned char *out,
2535 This will retrieve the XCBC--MAC tag from the state pointed to by \textit{state}, and store it in the array pointed to by \textit{out}. The \textit{outlen} parameter
2546 unsigned char *out, unsigned long *outlen);
2549 specified by the \textit{cipher}'th entry in the cipher\_descriptor table. It will store the MAC in \textit{out} with the same rules as xcbc\_done().
2558 unsigned char *out, unsigned long *outlen);
2562 specified by the \textit{cipher}'th entry in the cipher\_descriptor table. It will store the MAC in \textit{out} with the same rules as xcbc\_done().
2616 unsigned char *out,
2620 This will retrieve the F9--MAC tag from the state pointed to by \textit{state}, and store it in the array pointed to by \textit{out}. The \textit{outlen} parameter
2632 unsigned char *out, unsigned long *outlen);
2635 specified by the \textit{cipher}'th entry in the cipher\_descriptor table. It will store the MAC in \textit{out} with the same rules as f9\_done().
2644 unsigned char *out, unsigned long *outlen);
2648 specified by the \textit{cipher}'th entry in the cipher\_descriptor table. It will store the MAC in \textit{out} with the same rules as f9\_done().
2689 unsigned long XXX_read(unsigned char *out,
2707 int XXX_export(unsigned char *out,
2712 This will write a \textit{PRNG state} to the buffer \textit{out} of length \textit{outlen} bytes. The idea of
3077 unsigned char *out,
3083 parameter indicates the length of the modulus in bits. The padded data is stored in \textit{out} with a length of \textit{outlen} octets. The output will not be
3097 unsigned char *out,
3102 This will remove the PKCS padding data pointed to by \textit{msg} of length \textit{msglen}. The decoded data is stored in \textit{out} of length
3125 unsigned char *out,
3137 The padded message is stored in \textit{out} along with the length in \textit{outlen}.
3156 unsigned char *out,
3167 If the function succeeds it decodes the OAEP encoded message into \textit{out} of length \textit{outlen} and stores a
3186 unsigned char *out,
3287 unsigned char *out,
3293 in \textit{out} and the size of the result in \textit{outlen}. \textit{which} is set to {\bf PK\_PUBLIC} to use \textit{e}
3307 unsigned char *out,
3317 in \textit{out} of length \textit{outlen} octets. The \textit{lparam} and \textit{lparamlen} are the same parameters you would pass
3329 unsigned char *out,
3352 unsigned char *out,
3361 \textit{out
3375 unsigned char *out,
3399 unsigned char *out,
3409 \textit{signed} and the output stored in the buffer pointed to by \textit{out} of length \textit{outlen} octets.
3425 unsigned char *out,
3436 \textit{signed} and the output stored in the buffer pointed to by \textit{out} of length \textit{outlen} octets. The \textit{padding} parameter
3497 unsigned char pt[16], pt2[16], out[1024];
3528 l1 = sizeof(out);
3531 out, /* where to store ciphertext */
3546 if ((err = rsa_decrypt_key(out, /* encrypted data */
3574 int rsa_export(unsigned char *out,
3768 int ecc_export(unsigned char *out,
3773 This will export the key with the given \textit{type} (\textbf{PK\_PUBLIC} or \textbf{PK\_PRIVATE}), and store it to \textit{out}.
3806 unsigned char *out,
3809 The ECC key pointed to by \textit{key} is exported in public fashion to the array pointed to by \textit{out}. The ANSI X9.63 format used is from
3843 unsigned char *out,
3859 unsigned char *out,
3870 the output buffer pointed to by \textit{out} of length \textit{outlen} octets.
3880 unsigned char *out,
3913 unsigned char *out,
3921 will be stored in the array pointed to by \textit{out} of length \textit{outlen} octets. The function requires a properly seeded PRNG, and
4079 unsigned char *out,
4086 Which will sign the data in \textit{in} of length \textit{inlen} bytes. The signature is stored in \textit{out} and the size
4117 unsigned char *out,
4125 This will encrypt the payload in \textit{in} of length \textit{inlen} and store the ciphertext in the output buffer \textit{out}. The
4135 unsigned char *out,
4139 This will decrypt the ciphertext \textit{in} of length \textit{inlen}, and store the original payload in \textit{out} of length \textit{outlen}.
4148 int dsa_export(unsigned char *out,
4153 This will export the DSA \textit{key} to the buffer \textit{out} and set the length in \textit{outlen} (which must have been previously
4264 unsigned char *out,
4267 This encodes a sequence of items pointed to by \textit{list} where the list has \textit{inlen} items in it. The SEQUENCE will be encoded to \textit{out} and of length \textit{outlen}. The
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}.
4289 This will decode upto \textit{outlen} items from the input buffer \textit{in} of length \textit{inlen} octets. The function will stop (gracefully) when it runs out of items to decode.
4290 It will fail (for among other reasons) when it runs out of input bytes to read, a data type is invalid or a heap failure occurred.
4322 int der_encode_sequence_multi(unsigned char *out,
4372 unsigned char *out,
4376 This will encode the list of ASN.1 objects in \textit{list} of length \textit{inlen} objects, and store the output in \textit{out} of length \textit{outlen} bytes.
4410 unsigned char *out,
4414 This will encode a \textit{SET OF} containing the \textit{list} of \textit{inlen} ASN.1 objects and store the encoding in the output buffer \textit{out} of length \textit{outlen}.
4432 unsigned char *out,
4449 unsigned char *out,
4469 unsigned char *out,
4474 unsigned char *out,
4481 These will encode or decode a BIT STRING data type. The bits are passed in (or read out) using one \textbf{char} per bit. A non--zero value will be interpreted
4490 unsigned char *out,
4495 unsigned char *out,
4510 unsigned char *out,
4532 unsigned char *out,
4537 unsigned char *out,
4556 unsigned char *out,
4561 unsigned char *out,
4580 unsigned char *out,
4585 wchar_t *out,
4625 unsigned char *out,
4630 ltc_utctime *out);
4677 ltc_asn1_list **out);
4680 This will decode items in the \textit{in} buffer of max input length \textit{inlen} and store the newly created pointer to the list in \textit{out}. This function allocates
4684 normally. The decoded list \textit{out} will point to the very first element of the list (e.g. both parent and prev pointers will be \textbf{NULL}).
4782 unsigned char *out,
4789 The output of length up to \textit{outlen} is stored in \textit{out}. If \textit{outlen} is initially larger than the size of the hash functions output
4790 it is set to the number of bytes stored. If it is smaller than not all of the hash output is stored in \textit{out}.
4806 unsigned char *out,
4812 \textit{outlen} is stored in \textit{out}.
4868 unsigned char *out,
4871 Where \textit{in} is the binary string and \textit{out} is where the ASCII output is placed. You must set the value of \textit{outlen} prior
4877 unsigned char *out,
5144 This will install the library using the TomsFastMath library and link the \textit{libtfm.a} library out of the default library search path. The two
5346 The entire API was designed with plug and play in mind at the low level. That is you can swap out any cipher, hash, PRNG or bignum library and the dependent API will not
5348 to be highly portable and easy to build out of the box on pretty much any platform. As such there are no assembler inlines throughout the code, I make no assumptions
5388 @param skey [out] The destination of the scheduled key
5398 @param ct [out] The ciphertext
5408 @param pt [out] The plaintext
5428 @param keysize [in/out] The size of the key desired
5543 @param pt [out] The plaintext
5545 @param ct [out] The ciphertext
5546 @param tag [out] The destination tag
5547 @param taglen [in/out] The max size and resulting size
5572 @param tag [out] The MAC tag
5573 @param taglen [in/out] The MAC tag length
5591 @param out [out] Destination for tag
5592 @param outlen [in/out] Initial and final size of out
5598 unsigned char *out, unsigned long *outlen);
5605 @param out [out] Destination for tag
5606 @param outlen [in/out] Initial and final size of out
5612 unsigned char *out, unsigned long *outlen);
5619 @param out [out] Destination for tag
5620 @param outlen [in/out] Initial and final size of out
5627 unsigned char *out, unsigned long *outlen);
5799 @param out [out] The destination of the digest
5803 unsigned char *out);
5819 unsigned char *out,
5871 @param prng [out] The state to initialize
5893 @param out [out] Where to store the data
5898 unsigned long (*read)(unsigned char *out,
5909 @param out [out] The destination for the state
5910 @param outlen [in/out] The max size and resulting size
5914 int (*pexport)(unsigned char *out,
6348 @param C [out] Destination point (can overlap with A or B)
6366 @param key [out] Destination of a newly created private key pair
6378 @param out The destination (to be stored in an octet array format)
6386 unsigned char *out, unsigned long *outlen, int which,
6426 over how the ECC math will be implemented. Out of the box you only have three parameters per point to use $(x, y, z)$ however, these are just void pointers. They
6476 to the \textit{out} buffer. The output must be zero padded (leading bytes) so that the length of the output matches the length of the modulus (in bytes). For example,