当前位置: 首页 > news >正文

网站推广策略ppt微信h5页面制作免费

网站推广策略ppt,微信h5页面制作免费,国家级示范校建设网站,泰安网络营销文章目录 openssl3.2 - 官方demo学习 - kdf - scrypt.c概述笔记END openssl3.2 - 官方demo学习 - kdf - scrypt.c 概述 设置 kdf-SCRYPT算法的参数, 取key 笔记 /*! \file scrypt.c \note openssl3.2 - 官方demo学习 - kdf - scrypt.c 设置 kdf-SCRYPT算法的参数, 取key */… 文章目录 openssl3.2 - 官方demo学习 - kdf - scrypt.c概述笔记END openssl3.2 - 官方demo学习 - kdf - scrypt.c 概述 设置 kdf-SCRYPT算法的参数, 取key 笔记 /*! \file scrypt.c \note openssl3.2 - 官方demo学习 - kdf - scrypt.c 设置 kdf-SCRYPT算法的参数, 取key *//** Copyright 2021-2023 The OpenSSL Project Authors. All Rights Reserved.** Licensed under the Apache License 2.0 (the License). You may not use* this file except in compliance with the License. You can obtain a copy* in the file LICENSE in the source distribution or at* https://www.openssl.org/source/license.html*/#include stdio.h #include openssl/core_names.h #include openssl/crypto.h #include openssl/kdf.h #include openssl/obj_mac.h #include openssl/params.h#include my_openSSL_lib.h/** test vector from* https://datatracker.ietf.org/doc/html/rfc7914*//** Hard coding a password into an application is very bad.* It is done here solely for educational purposes.*/ static unsigned char password[] {p, a, s, s, w, o, r, d };/** The salt is better not being hard coded too. Each password should have a* different salt if possible. The salt is not considered secret information* and is safe to store with an encrypted password.*/ static unsigned char scrypt_salt[] {N, a, C, l };/** The SCRYPT parameters can be variable or hard coded. The disadvantage with* hard coding them is that they cannot easily be adjusted for future* technological improvements appear.*/ static unsigned int scrypt_n 1024; static unsigned int scrypt_r 8; static unsigned int scrypt_p 16;static const unsigned char expected_output[] {0xfd, 0xba, 0xbe, 0x1c, 0x9d, 0x34, 0x72, 0x00,0x78, 0x56, 0xe7, 0x19, 0x0d, 0x01, 0xe9, 0xfe,0x7c, 0x6a, 0xd7, 0xcb, 0xc8, 0x23, 0x78, 0x30,0xe7, 0x73, 0x76, 0x63, 0x4b, 0x37, 0x31, 0x62,0x2e, 0xaf, 0x30, 0xd9, 0x2e, 0x22, 0xa3, 0x88,0x6f, 0xf1, 0x09, 0x27, 0x9d, 0x98, 0x30, 0xda,0xc7, 0x27, 0xaf, 0xb9, 0x4a, 0x83, 0xee, 0x6d,0x83, 0x60, 0xcb, 0xdf, 0xa2, 0xcc, 0x06, 0x40 };int main(int argc, char **argv) {int ret EXIT_FAILURE;EVP_KDF *_evp_kdf NULL;EVP_KDF_CTX *_evp_kdf_ctx NULL;unsigned char out[64];OSSL_PARAM _ossl_param_ary[6], *p_ossl_param _ossl_param_ary;OSSL_LIB_CTX *_ossl_lib_ctx NULL;_ossl_lib_ctx OSSL_LIB_CTX_new();if (_ossl_lib_ctx NULL) {fprintf(stderr, OSSL_LIB_CTX_new() returned NULL\n);goto end;}/* Fetch the key derivation function implementation */_evp_kdf EVP_KDF_fetch(_ossl_lib_ctx, SCRYPT, NULL);if (_evp_kdf NULL) {fprintf(stderr, EVP_KDF_fetch() returned NULL\n);goto end;}/* Create a context for the key derivation operation */_evp_kdf_ctx EVP_KDF_CTX_new(_evp_kdf);if (_evp_kdf_ctx NULL) {fprintf(stderr, EVP_KDF_CTX_new() returned NULL\n);goto end;}/* Set password */*p_ossl_param OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_PASSWORD, password,sizeof(password));/* Set salt */*p_ossl_param OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_SALT, scrypt_salt,sizeof(scrypt_salt));/* Set N (default 1048576) */*p_ossl_param OSSL_PARAM_construct_uint(OSSL_KDF_PARAM_SCRYPT_N, scrypt_n);/* Set R (default 8) */*p_ossl_param OSSL_PARAM_construct_uint(OSSL_KDF_PARAM_SCRYPT_R, scrypt_r);/* Set P (default 1) */*p_ossl_param OSSL_PARAM_construct_uint(OSSL_KDF_PARAM_SCRYPT_P, scrypt_p);*p_ossl_param OSSL_PARAM_construct_end();/* Derive the key */if (EVP_KDF_derive(_evp_kdf_ctx, out, sizeof(out), _ossl_param_ary) ! 1) {fprintf(stderr, EVP_KDF_derive() failed\n);goto end;}if (CRYPTO_memcmp(expected_output, out, sizeof(expected_output)) ! 0) {fprintf(stderr, Generated key does not match expected value\n);goto end;}ret EXIT_SUCCESS; end:EVP_KDF_CTX_free(_evp_kdf_ctx);EVP_KDF_free(_evp_kdf);OSSL_LIB_CTX_free(_ossl_lib_ctx);return ret; } END
http://www.zqtcl.cn/news/588196/

相关文章:

  • 国外网站建设推广iapp网站怎么做软件
  • 网站的设计步骤做网站的虚拟机怎么用
  • 游戏的网站做普通网站多少钱
  • 单位门户网站建设苏州吴中区做网站公司
  • 新网站内部优化怎么做家电网站建设
  • 怎么看网站源码用什么做的wordpress 六亩填
  • 网站建设实习报告范文闵行区邮编
  • h5网站模板免费下载怎样制作专业简历
  • php网站语言切换功能如何做263邮箱入口
  • 电商网站及企业微信订烟专门做红酒的网站
  • 大庆商城网站建设微网站建设找哪家
  • 渝快办官网seo管理平台
  • 网站建设辶金手指排名十二厦门建设局
  • 网站反链接什么seo推广优化多少钱
  • 建设工程公司采购的网站找不到网站后台怎么办
  • 江门网站seo推广湖南省建设银行网站官网
  • 网站底部关键词指向网站打开速度慢跟什么有关系
  • 网站右侧广告合肥高端网站设计
  • 漯河市郾城区网站建设wordpress文件管理
  • 网站栅格大连做网站的
  • 珠海企业网站建设报价鄂州网吧什么时候恢复营业
  • 手机制作钓鱼网站id转换为wordpress
  • 手机网站 好处信用中国 网站有那个部门支持建设
  • 模板免费网站自己如何做网站优化
  • 自适应网站做mip改造淘宝上买衣服的网站
  • 射阳做企业网站哪家好利用新冠消灭老年人
  • 网站头部修改wordpress php幻灯片代码
  • 网络违法犯罪举报网站哪里有制作网站服务
  • 临沂怎么做网站网站 单页
  • 科技信息网站系统建设方案建筑设计专业世界大学排名