crypto_hash_init() function
crypto_hash_init - Initialize hash/HMAC function @alg: Hash algorithm @key: Key for keyed hash (e.g., HMAC) or %NULL if not needed @key_len: Length of the key in bytes Returns: Pointer to hash context to use with other hash functions or %NULL on failure This function is only used with internal TLSv1 implementation (CONFIG_TLS=internal). If that is not used, the crypto wrapper does not need to implement this.
![]()
ctx = crypto_hash_init(alg, NULL, 0);
crypto_hash_init() is called by 5 functions and calls 8 functions:
![]()
crypto_hash_init()
crypto_hash_init() reads 13 variables:
![]()
crypto_hash_init()
crypto_hash_init() allocates 1 types and frees 1 types:
![]()
crypto_hash_init()