Started by ACagliano, July 15, 2021, 02:47:58 PM
0 Members and 1 Guest are viewing this topic.
Quote from: DJ Omnimaga on February 05, 2022, 06:27:57 PMI'm glad to see this worked on still , I wonder how much of this will be of use for your other project TI-Trek? (eg server credentials)
csrand_init(); initializes the entropy source internallycsrand_get(); returns a random 32-bit unsigned int csrand_fill(); fills a buffer to a size with random bytes
hash_ctx hash;uint8_t out;hash_init(&hash, ALG_NAME) initializes a context of type ALG_NAMEhash_update(&hash, data, len)hash_final(&hash, out)hash_mgf1(..., ALG_NAME)/* Due to the structure of the hash context, the following areviable alternatives to hash_update and hash_final:uint8_t out;hash_ctx hash;hash_init(&hash, SHA256);hash.update(&hash.Hash, data, len);hash.final(&hash.Hash, out);
rsa_encrypt()// The RSA encryptor takes a hash ID specifier so that, if other hashes// are added at some point, they can be used with OAEP internal to RSA.
Page created in 0.043 seconds with 32 queries.