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DD, 0x59, 0xD3, 0xF5, 0xB4, 0xAD, 0xEC, 0x36, 0x04, 0xEA, 0x6F, 0xB4, 0x88, 0x15, 0x26, 0xAD } },
{ { 0x16, 0x94, 0x7E, 0x03, 0x59, 0x97, 0x4A, 0x5A, 0x5F, 0xA5, 0x04, 0xC3, 0xA5, 0x93, 0x39, 0x61 }, { 0xE5, 0x50, 0x60, 0xC2, 0xD8, 0xE8, 0x6C, 0xA7, 0x5C, 0xA7, 0x62, 0x3F, 0x93, 0x26, 0xB4, 0x7E } }
}; //return dog_status_t();
dog_status_t status;
dog_handle_t hDog; unsigned char *bufData = NULL;
int nStatus = 0;
int i, j;
i = j = 0; /************************************************************************
* dog_login
* establishes a context for SuperDog
*/
//登录到某个特征从而建立会话环境。
status = dog_login(GENARR_FEATUREID1, //[输入]特征ID,储存于超级狗中特征的唯一标识符。
vendor_code, //[输入]指向开发商代码的指针
&hDog); //[输出]指向产生的会话句柄的指针
if (DOG_STATUS_OK != status)
{
switch (status)
{
case DOG_INV_VCODE:
//printf("Invalid vendor code.\n");
MessageBox("Invalid vendor code");
break; case DOG_UNKNOWN_VCODE:
// printf("Vendor Code not recognized by API.\n");
MessageBox("Vendor Code not recognized by API");
break; default:
//printf("Login to feature: %d failed with status %d\n", GENARR_FEATUREID1, status )
MessageBox(" failed with status");
}
return status;
} srand( (unsigned)time( NULL ) );//srand函数是随机数发生器的初始化函数
bufData = (unsigned char *)malloc(ENCRYPTDATA_LEN1);
memset(bufData, 0, ENCRYPTDATA_LEN1); //Generate a random index number
i = rand() % GENERATE_COUNT1; //number[i] = rand() % 100;/*产生100以内的随机整数*/3
//c和c++使用的内存拷贝函数,memcpy函数的功能是从源src所指的内存地址的起始位置开
//始拷贝n个字节到目标dest所指的内存地址的起始位置中。 参数依次是:目的 源 长度
memcpy(bufData,encryptionArray1[i][0],ENCRYPTDATA_LEN1); /*
* dog_encrypt
* encrypts a block of data using SuperDog
* (minimum buffer size is 16 bytes)
*/
//使用AES加密算法加密指定的数据缓冲区。
status = dog_encrypt(hDog,//[输入]指向会话句柄的指针
bufData,//[输入]要被加密的数据
ENCRYPTDATA_LEN1); //[输入]将被加密的数据缓冲区的字节大小,要求最少有16个字节。
/*该函数使用超级狗内的加密引擎,所指定的会话句柄决定特定的超级狗对数据缓冲区执行加密,
密钥驻留在超级狗内。如果加密操作失败,数据缓冲区不被改变。
要对数据缓冲区执行解密,使用dog_decrypt()。*/ if (DOG_STATUS_OK != status)
{
SAFE_FREE(bufData);
dog_logout(hDog);
return status;
} //Check the encrypted data is right or wrong
for(j = 0; j < ENCRYPTDATA_LEN1; ++j)
{
if(bufData[j] ^ encryptionArray1[i][1][j])
{
//printf( "Encrypted data is wrong.\n" )
MessageBox("Encrypted data is wrong");
SAFE_FREE(bufData);
dog_logout(hDog);
return -1;
}
} SAFE_FREE(bufData);
dog_logout(hDog); //printf( "Check Dog using encryption array success.\n" )
MessageBox("Check Dog using encryption array success"); return 0;

  测试:safenet提供的CheckKey函数 内存泄漏。具体来说是句柄.

测试:safenet提供的CheckKey函数 内存泄漏。具体来说是句柄.的更多相关文章

  1. Web 2.0 浏览器端可靠性测试第2部分(如何发现和分析 Web 2.0 浏览器端的内存泄漏)

    介绍浏览器端的可靠性测试 在上一编文章中我们介绍了浏览器端可靠性测试的概念.测试方法.以及常用的测试和分析工具.我们知道,浏览器端可靠性测试,就是以浏览器为测试平台,通过模拟用户在真实场景下的页面操作 ...

  2. [转载]浅谈C/C++内存泄漏及其检测工具

    http://dev.yesky.com/147/2356147_3.shtml 对于一个c/c++程序员来说,内存泄漏是一个常见的也是令人头疼的问题.已经有许多技术被研究出来以应对这个问题,比如Sm ...

  3. (转)从内存管 理、内存泄漏、内存回收探讨C++内存管理

    http://www.cr173.com/html/18898_all.html 内存管理是C++最令人切齿痛恨的问题,也是C++最有争议的问题,C++高手从中获得了更好的性能,更大的自由,C++菜鸟 ...

  4. 【c++】内存检查工具Valgrind介绍,安装及使用以及内存泄漏的常见原因

    转自:https://www.cnblogs.com/LyndonYoung/articles/5320277.html Valgrind是运行在Linux上一套基于仿真技术的程序调试和分析工具,它包 ...

  5. 【内存泄漏】 C/C++内存泄漏及其检测工具

    对于一个c/c++程序员来说,内存泄漏是一个常见的也是令人头疼的问题.已经有许多技术被研究出来以应对这个问题,比如 Smart Pointer,Garbage Collection等.Smart Po ...

  6. Linux下内存泄漏工具【转】

    转自:http://www.cnblogs.com/guochaoxxl/p/6970090.html 概述 内存泄漏(memory leak)指由于疏忽或错误造成程序未能释放已经不再使用的内存的情况 ...

  7. Linux下内存泄漏工具

    概述 内存泄漏(memory leak)指由于疏忽或错误造成程序未能释放已经不再使用的内存的情况,在大型的.复杂的应用程序中,内存泄漏是常见的问题.当以前分配的一片内存不再需要使用或无法访问时,但是却 ...

  8. 内存泄漏(Memory Leak)

    内存泄露检测工具Valgrind   内存泄露简介 回到顶部 什么是内存泄漏 内存泄漏(Memory Leak)是指程序中已动态分配的堆内存由于某种原因,程序未释放或无法释放,造成系统内存的浪费,导致 ...

  9. axios 内存泄漏

    有一个项目需要post后台几万条数据,每次只能请求三五条,所以只能在每次请求成功后自调用这个请求函数. 但这样请求了成千上万次后,浏览器会崩溃并报出 out of Memory 错误,经查询,这是内存 ...

随机推荐

  1. 关于Unity5.5中2D动画的制作

    1.首先要创建一个精灵 GameProject--2Dproject--Sprite 叫bird 2.给这个精灵附加纹理,并让它显示自己想让它显示的场景层中,一般它的静止纹理就是动画的第一张图片 3. ...

  2. SSM,即Spring+SpringMVC+MyBatis三个开源框架的整合框架集。

    SSM(Spring+SpringMVC+MyBatis)框架集由Spring.SpringMVC.MyBatis三个开源框架整合而成,常作为数据源较简单的web项目的框架. 其中spring是一个轻 ...

  3. elasticsearch中mapping的_source和store的笔记

    0.故事引入 无意中看到了ES的mapping中有store字段,作为一个ES菜鸡,有必要对这个字段进行下笔记. 1._source _source字段我在们进行检索时相当重要, ES默认检索只会返回 ...

  4. npoi导出excel_asp.net MVC

    下载路径: http://files.cnblogs.com/files/gaocong/npoi_for_mysql_mvc.rar

  5. Loadrunner如何遍历一个页面中的url并进行访问?

    最近在网上到一个关于loadrunner遍历一个页面中的url并进行访问的脚本,就把它用我们自己的项目实践了一下,发现有一点不完善. 原始版本: Action(){char temp[64];int ...

  6. 常用的jQuery前端技巧收集

    调试时巧用console.log(),这比用alert()方便多了. jquery易错点:元素拼接的时候,元素还未添加到DOM,就用该预添加元素操作. ajax动态获取的数据,还没有装载html元素, ...

  7. 搭建jsp运行环境

    一:搭建jsp服务器端运行环境的步骤: a,下载并按照JDK(JavaDevelopmentKit),这其中就包含了编译器,虚拟机,类库:. b,配置操作系统的环境变量PATH; 补充:编辑变量  添 ...

  8. Django学习笔记第七篇--实战练习三--关于更有层级的url请求、404错误以及其他响应函数

    一.关于更有层级的URL: 可以实现每一个APP一个子URL目录,例如app1的所有操作都在http://www.localhost1.com:5443/app1/xxxx 在工程主文件夹下的工程同名 ...

  9. Java项目使用oh-my-email发送邮件

    本文使用Github开源项目oh-my-email进行测试邮件发送,并未进行更为深度的测试,如果想要快速使用,的确是一个很好的邮件发送组件.https://github.com/biezhi/oh-m ...

  10. Jquery 中 .trigger 的用法

    项目中有个需求,数据加载完成后,默认模拟点击某个元素节点(选中某个元素节点)并触发事件 $('.course_list dd').on('click', function () {     //取当前 ...