Lines Matching defs:ctx

36 	sha1_context *ctx = malloc(sizeof(sha1_context));  in hash_init_sha1()  local
42 static int hash_update_sha1(struct hash_algo *algo, void *ctx, const void *buf, in hash_update_sha1()
49 static int hash_finish_sha1(struct hash_algo *algo, void *ctx, void *dest_buf, in hash_finish_sha1()
64 sha256_context *ctx = malloc(sizeof(sha256_context)); in hash_init_sha256() local
70 static int hash_update_sha256(struct hash_algo *algo, void *ctx, in hash_update_sha256()
77 static int hash_finish_sha256(struct hash_algo *algo, void *ctx, void in hash_finish_sha256()
92 sha512_context *ctx = malloc(sizeof(sha512_context)); in hash_init_sha384() local
98 static int hash_update_sha384(struct hash_algo *algo, void *ctx, in hash_update_sha384()
105 static int hash_finish_sha384(struct hash_algo *algo, void *ctx, void in hash_finish_sha384()
120 sha512_context *ctx = malloc(sizeof(sha512_context)); in hash_init_sha512() local
126 static int hash_update_sha512(struct hash_algo *algo, void *ctx, in hash_update_sha512()
133 static int hash_finish_sha512(struct hash_algo *algo, void *ctx, void in hash_finish_sha512()
148 uint16_t *ctx = malloc(sizeof(uint16_t)); in hash_init_crc16_ccitt() local
154 static int hash_update_crc16_ccitt(struct hash_algo *algo, void *ctx, in hash_update_crc16_ccitt()
162 static int hash_finish_crc16_ccitt(struct hash_algo *algo, void *ctx, in hash_finish_crc16_ccitt()
175 uint32_t *ctx = malloc(sizeof(uint32_t)); in hash_init_crc32() local
181 static int hash_update_crc32(struct hash_algo *algo, void *ctx, in hash_update_crc32()
188 static int hash_finish_crc32(struct hash_algo *algo, void *ctx, void *dest_buf, in hash_finish_crc32()