本文整理汇总了C++中crypto_register_template函数的典型用法代码示例。如果您正苦于以下问题:C++ crypto_register_template函数的具体用法?C++ crypto_register_template怎么用?C++ crypto_register_template使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了crypto_register_template函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: crypto_ccm_module_init
int __init crypto_ccm_module_init(void)
{
int err;
err = crypto_register_template(&crypto_ccm_base_tmpl);
if (err)
goto out;
err = crypto_register_template(&crypto_ccm_tmpl);
if (err)
goto out_undo_base;
err = crypto_register_template(&crypto_rfc4309_tmpl);
if (err)
goto out_undo_ccm;
out:
return err;
out_undo_ccm:
crypto_unregister_template(&crypto_ccm_tmpl);
out_undo_base:
crypto_unregister_template(&crypto_ccm_base_tmpl);
goto out;
}
开发者ID:Kanel,项目名称:CloudMAC-VAP-Driver,代码行数:25,代码来源:crypto-ccm.c
示例2: crypto_gcm_module_init
static int __init crypto_gcm_module_init(void)
{
int err;
gcm_zeroes = kzalloc(16, GFP_KERNEL);
if (!gcm_zeroes)
return -ENOMEM;
err = crypto_register_template(&crypto_gcm_base_tmpl);
if (err)
goto out;
err = crypto_register_template(&crypto_gcm_tmpl);
if (err)
goto out_undo_base;
err = crypto_register_template(&crypto_rfc4106_tmpl);
if (err)
goto out_undo_gcm;
return 0;
out_undo_gcm:
crypto_unregister_template(&crypto_gcm_tmpl);
out_undo_base:
crypto_unregister_template(&crypto_gcm_base_tmpl);
out:
kfree(gcm_zeroes);
return err;
}
开发者ID:mikuhatsune001,项目名称:linux2.6.32,代码行数:30,代码来源:gcm.c
示例3: pcrypt_init
static int __init pcrypt_init(void)
{
int err = -ENOMEM;
pcrypt_kset = kset_create_and_add("pcrypt", NULL, kernel_kobj);
if (!pcrypt_kset)
goto err;
err = pcrypt_init_padata(&pencrypt, "pencrypt");
if (err)
goto err_unreg_kset;
err = pcrypt_init_padata(&pdecrypt, "pdecrypt");
if (err)
goto err_deinit_pencrypt;
padata_start(pencrypt.pinst);
padata_start(pdecrypt.pinst);
return crypto_register_template(&pcrypt_tmpl);
err_deinit_pencrypt:
pcrypt_fini_padata(&pencrypt);
err_unreg_kset:
kset_unregister(pcrypt_kset);
err:
return err;
}
开发者ID:AlexShiLucky,项目名称:linux,代码行数:28,代码来源:pcrypt.c
示例4: crypto_ctr_module_init
static int __init crypto_ctr_module_init(void)
{
int err;
err = crypto_register_template(&crypto_ctr_tmpl);
if (err)
goto out;
err = crypto_register_template(&crypto_rfc3686_tmpl);
if (err)
goto out_drop_ctr;
out:
return err;
out_drop_ctr:
crypto_unregister_template(&crypto_ctr_tmpl);
goto out;
}
开发者ID:03199618,项目名称:linux,代码行数:19,代码来源:ctr.c
示例5: cryptd_init
static int __init cryptd_init(void)
{
int err;
err = cryptd_create_thread(&state, cryptd_thread, "cryptd");
if (err)
return err;
err = crypto_register_template(&cryptd_tmpl);
if (err)
kthread_stop(state.task);
return err;
}
开发者ID:274914765,项目名称:C,代码行数:14,代码来源:cryptd.c
示例6: crypto_ofb_module_init
static int __init crypto_ofb_module_init(void)
{
return crypto_register_template(&crypto_ofb_tmpl);
}
开发者ID:avagin,项目名称:linux,代码行数:4,代码来源:ofb.c
示例7: echainiv_module_init
static int __init echainiv_module_init(void)
{
return crypto_register_template(&echainiv_tmpl);
}
开发者ID:quadcores,项目名称:cbs_4.2.4,代码行数:4,代码来源:echainiv.c
示例8: eseqiv_module_init
int __init eseqiv_module_init(void)
{
return crypto_register_template(&eseqiv_tmpl);
}
开发者ID:LouZiffer,项目名称:m900_kernel_cupcake-SDX,代码行数:4,代码来源:eseqiv.c
示例9: crypto_fpu_init
int __init crypto_fpu_init(void)
{
return crypto_register_template(&crypto_fpu_tmpl);
}
开发者ID:CSCLOG,项目名称:beaglebone,代码行数:4,代码来源:fpu.c
注:本文中的crypto_register_template函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论