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

网站资源规划怎么写前端简历

网站资源规划怎么写,前端简历,网页版qq农场,电子商务搭建网站文章目录 openssl3.2 - 官方demo学习 - mac - siphash.c概述笔记END openssl3.2 - 官方demo学习 - mac - siphash.c 概述 MAC算法为 SIPHASH, 设置参数(C-rounds, D-rounds, 也可以不设置, 有默认值) 用key初始化MAC算法, 算明文的MAC值 笔记 /*! \file siphash.c \note op… 文章目录 openssl3.2 - 官方demo学习 - mac - siphash.c概述笔记END openssl3.2 - 官方demo学习 - mac - siphash.c 概述 MAC算法为 SIPHASH, 设置参数(C-rounds, D-rounds, 也可以不设置, 有默认值) 用key初始化MAC算法, 算明文的MAC值 笔记 /*! \file siphash.c \note openssl3.2 - 官方demo学习 - mac - siphash.c MAC算法为 SIPHASH, 设置参数(C-rounds, D-rounds, 也可以不设置, 有默认值) 用key初始化MAC算法, 算明文的MAC值 *//** 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 stdlib.h #include openssl/core_names.h #include openssl/evp.h #include openssl/params.h #include openssl/err.h#include my_openSSL_lib.h/** Taken from the test vector from the paper SipHash: a fast short-input PRF.* https://www.aumasson.jp/siphash/siphash.pdf*//** Hard coding the key into an application is very bad.* It is done here solely for educational purposes.*/ static unsigned char key[] {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f };static unsigned char data[] {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e };static const unsigned char expected_output[] {0xe5, 0x45, 0xbe, 0x49, 0x61, 0xca, 0x29, 0xa1 };/** A property query used for selecting the SIPHASH implementation.*/ static char* propq NULL;int main(int argc, char** argv) {int ret EXIT_FAILURE;EVP_MAC* _evp_mac NULL;EVP_MAC_CTX* _evp_mac_ctx NULL;unsigned char out[8];OSSL_PARAM params[4], * p params;OSSL_LIB_CTX* _ossl_lib_ctx NULL;unsigned int digest_len 8, c_rounds 2, d_rounds 4;size_t out_len 0;_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 SipHash implementation */_evp_mac EVP_MAC_fetch(_ossl_lib_ctx, SIPHASH, propq);if (_evp_mac NULL) {fprintf(stderr, EVP_MAC_fetch() returned NULL\n);goto end;}/* Create a context for the SipHash operation */_evp_mac_ctx EVP_MAC_CTX_new(_evp_mac);if (_evp_mac_ctx NULL) {fprintf(stderr, EVP_MAC_CTX_new() returned NULL\n);goto end;}/* SipHash can support either 8 or 16-byte digests. */*p OSSL_PARAM_construct_uint(OSSL_MAC_PARAM_SIZE, digest_len);/** The number of C-rounds and D-rounds is configurable. Standard SipHash* uses values of 2 and 4 respectively. The following lines are unnecessary* as they set the default, but demonstrate how to change these values.*/*p OSSL_PARAM_construct_uint(OSSL_MAC_PARAM_C_ROUNDS, c_rounds);*p OSSL_PARAM_construct_uint(OSSL_MAC_PARAM_D_ROUNDS, d_rounds);*p OSSL_PARAM_construct_end();/* Initialise the SIPHASH operation */if (!EVP_MAC_init(_evp_mac_ctx, key, sizeof(key), params)) {fprintf(stderr, EVP_MAC_init() failed\n);goto end;}/* Make one or more calls to process the data to be authenticated */if (!EVP_MAC_update(_evp_mac_ctx, data, sizeof(data))) {fprintf(stderr, EVP_MAC_update() failed\n);goto end;}/* Make one call to the final to get the MAC */if (!EVP_MAC_final(_evp_mac_ctx, out, out_len, sizeof(out))) {fprintf(stderr, EVP_MAC_final() failed\n);goto end;}printf(Generated MAC:\n);BIO_dump_indent_fp(stdout, out, (int)out_len, 2);putchar(\n);if (out_len ! sizeof(expected_output)) {fprintf(stderr, Generated MAC has an unexpected length\n);goto end;}if (CRYPTO_memcmp(expected_output, out, sizeof(expected_output)) ! 0) {fprintf(stderr, Generated MAC does not match expected value\n);goto end;}ret EXIT_SUCCESS; end:EVP_MAC_CTX_free(_evp_mac_ctx);EVP_MAC_free(_evp_mac);OSSL_LIB_CTX_free(_ossl_lib_ctx);if (ret ! EXIT_SUCCESS)ERR_print_errors_fp(stderr);return ret; } END
http://www.dnsts.com.cn/news/7677.html

相关文章:

  • 关于桥梁建设工程设公司网站建设个电影网站多少钱
  • 网站动态与静态西宁市城乡规划建设局网站
  • 做平台交易网站怎么收款wordpress售后主题
  • 杭州建站官网建设html编辑器的使用方法
  • 广州seo网站排名优化吉林省白山市建设局官方网站
  • 郑州网站推广公司排名东海网站建设
  • 南昌网站建设公司信息wordpress导航怎么设置
  • 河南网络洛阳网站建设河南网站建设建设工程施工合同2017
  • 网站空间和服务器的区别怎样建设凡科网站
  • 网上做网站广告投放大学生dw网页设计作业
  • 返利网app网站开发在wordpress教程视频
  • 易经网站开发公司北京seo网站优化培训
  • 个人网站尺寸商标设计logo图案设计软件
  • logo网站设计中建材建设有限公司网站
  • 如何建造免费的网站怎么样才能把网站关键词做有排名
  • python网站开发视频庆阳做网站的公司
  • 雁塔区网站建设网站上的图是怎么做的
  • 什么网站可做浏览器首页珠海公司网站制作公
  • 英文站 wordpress seo优化电销系统外呼软件
  • 佛山找人做网站p2p网站策划
  • 做盗市相关网站福建路桥建设有限公司网站
  • 叫外包公司做网站不肯给源代码的上海政务服务网官网
  • 电子商务网站开发报告目前网站建设采用什么技术
  • 网站建设公司创业计划书谷歌浏览器搜索入口
  • 北京免费网站建站模板安徽注册公司网站
  • 网站建设培训需要多少钱安卓优化大师hd
  • 做网站和app多少费用沈阳高端网站设计
  • 做电子请帖的网站网站建设步骤及推广方法
  • 青岛网站seo价格国外建设网站情况报告
  • 字体在线设计网站大数据网站建设费用