WebDec 27, 2024 · struct crypto_ahash *tfm = crypto_ahash_reqtfm(hdev->req); @@ -263,13 +278,19 @@ static void stm32_hash_write_ctrl(struct stm32_hash_dev *hdev) reg = HASH_CR_ALGO_MD5; break; case HASH_FLAGS_SHA1: - reg = HASH_CR_ALGO_SHA1; + if (hdev->pdata->ux500) + reg = HASH_CR_UX500_ALGO_SHA1; + else + reg = … WebAsynchronous Hash Request Handle .. kernel-doc:: include/crypto/hash.h :doc: Asynchronous Hash Request Handle .. kernel-doc:: include/crypto/hash.h :functions: …
Block Cipher Algorithm Definitions — The Linux Kernel …
WebNetdev Archive on lore.kernel.org help / color / mirror / Atom feed From: Dmitry Safonov To: [email protected], David Ahern , Eric Dumazet , Herbert Xu , Jakub Kicinski , "David S. Miller" Cc: Dmitry Safonov … Webstatic struct crypto_shash *chcr_alloc_shash (unsigned int ds) { - struct crypto_shash *base_hash = NULL; + struct crypto_shash *base_hash = ERR_PTR (-EINVAL); switch (ds) { case SHA1_DIGEST_SIZE: @@ -2259,7 +2259,7 @@ static int chcr_authenc_setkey (struct crypto_aead *authenc, const u8 *key, int err = 0, i, key_ctx_len = 0; grace church riverview mi
[PATCH] kernel crypto API interface specification - IU
Web25 static int shash_setkey_unaligned(struct crypto_shash *tfm, const u8 *key, WebJul 29, 2024 · This might look very interesting at first, and it surely is. Now, let’s explore two examples where we will learn how we can generate a SHA256 hash on the linux command … WebDec 27, 2024 · struct crypto_ahash *tfm = crypto_ahash_reqtfm(hdev->req); @@ -263,13 +279,19 @@ static void stm32_hash_write_ctrl(struct stm32_hash_dev *hdev) reg = HASH_CR_ALGO_MD5; break; case HASH_FLAGS_SHA1: - reg = HASH_CR_ALGO_SHA1; + if (hdev->pdata->ux500) + reg = HASH_CR_UX500_ALGO_SHA1; + else + reg = … chill beauty cbd