(4)crypto_aes_ctx 特定算法驱动的上下文,每个驱动可以自行实现该结构体。如本结构体为aes_generic算法的实现 (5)crypto_skcipher skcipher类型的动态实例,它除了包含加解密核心的动态实例结构体crypto_tfm之外,还包含该算法类型特定的属性。每种算法类型可自行实现该结构体 (6)crypto_async_request 当crypto_tfm初始...
crypto core是最基本骨架 ,它提供crypto的核心组件(包括crypto_alg,crypto_template的管理,cryptd内核线程等);基于crypto core,内核实现了8类常用的算法,DRBG伪随机数算法,Hash算法,SKCIPHER对称加解密算法,AKCIPHER非对称加解密算法,AEAD认证加密算法,HMAC算法,COMPRESS压缩算法,KPP密钥协商算法。 一些用于secure的硬件模块...
static int skcipher_setkey_blkcipher(struct crypto_skcipher *tfm, @@ -216,32 +221,209 @@ static int crypto_init_skcipher_ops_ablkcipher(struct crypto_tfm *tfm) return 0; }static void crypto_skcipher_exit_tfm(struct crypto_tfm *tfm)...
return sm4_expandkey(ctx, key, key_len); }static int sm4_ecb_do_crypt(struct skcipher_request *req, const u32 *rkey) { struct skcipher_walk walk; unsigned int nbytes; int err;err = skcipher_walk_virt(&walk, req, false);while ((nbytes = walk.nbytes) > 0) {...
*/ 9 void *priv; 10 11 void *__ctx[] CRYPTO_MINALIGN_ATTR; 12}; 13 14int crypto_ahash_digest(struct ahash_request *req); 从API中可以看到参数一率改成struct ahash_request,ahash_request结构中包含重要的成员struct scatterlist *,struct scatterlist用来描述一段连续physical memory区段,而它可以...
2 int (*setkey)(struct crypto_skcipher *tfm, const u8 *key, 3 unsigned int keylen); 4 int (*encrypt)(struct skcipher_request *req); 5 int (*decrypt)(struct skcipher_request *req); 6 int (*init)(struct crypto_skcipher *tfm); ...
.type = CRYPTO_ALG_TYPE_SKCIPHER, .tfmsize = offsetof(struct crypto_skcipher, base), }; const struct crypto_type crypto_blkcipher_type = { .ctxsize = crypto_blkcipher_ctxsize, .init = crypto_init_blkcipher_ops, #ifdef CONFIG_PROC_FS .show = crypto_blkcipher_show, #endif .report =...
essiv.ccrypto: essiv - Handle lskcipher spawns 1 year ago fcrypt.ccrypto: Prepare to move crypto_tfm_ctx 2 years ago fips.ccrypto: fips - Remove the now superfluous sentinel element from ctl_table array 11 months ago gcm.ccrypto: gcm - stop using alignmask of ahash ...
nx_crypto_ctx_skcipher_exit+0x2c/0x60 [nx_crypto] [ 79.135034] [c00000000ed67ce0] [c000000000884d58] crypto_skcipher_exit_tfm+0x38/0x50 [ 79.135045] [c00000000ed67d00] [c00000000087d8d8] crypto_destroy_tfm+0x98/0x140 [ 79.135053] [c00000000ed67d40] [c000000000897c14] ...
tcrypt.c crypto: tcrypt - add skcipher speed for given alg 7 months ago tcrypt.h crypto: tcrypt - include larger key sizes in RFC4106 benchmark 2 years ago tea.c crypto: Prepare to move crypto_tfm_ctx 2 years ago testmgr.c module: Convert symbol namespace to string literal 2...