博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
About Common Crypto
阅读量:7067 次
发布时间:2019-06-28

本文共 1084 字,大约阅读时间需要 3 分钟。

The Common Crypto library, also known as CCCrypt and 3CC, provide access to a number of types and flavors of encryption algorithms. The Common Crypto library of functions supports AES, DES, 3DES, and other encryption standards. Depending on the encryption algorithm used, block and/or stream ciphers are available.

在OS X v10.5 and later and iOS 5.0 and later 的系统中,Common Crypto成为用于加解密的被推荐的API。而之前的CDSA/CSSM则不被推荐使用。Apple的官方文档对Common Crypto介绍不多,只有manpage。现在我要从结构的角度介绍一下Common Crypto。

简单说Common Crypto就是一组API提供symmetric加解密相关的APIs。更具体而言,Common Crypto提供的API按照功能类别被声明在5个header file中,分别是:

  • CommonCryptor.h: 由CCCryptoRef对象提供使用AES128,DES,3DES,CAST,RC4,RC2算法的block cipher或者stream cipher;
  • CommonDigest.h:支持MD2、MD4、MD5、SHA1、SHA224、SHA256、SHA384和SHA512等hash算法;
  • CommonHMAC.h:HMAC是Hash-based message authentication code,
  • CommonKeyDerivation.h:提供derive key的API;
  • CommonSymmetricKeywrap.h: 提供wrap/unwrap a symmetric key with a Key Encription Key(KEK is key used to protect other keys);

应该来说,Common Crypto提供的功能还是很丰富的,类似于一个CSP提供的功能。

转载于:https://www.cnblogs.com/whyandinside/archive/2013/03/21/2973912.html

你可能感兴趣的文章
文件修改较优方式
查看>>
oracle导入导出exp,imp
查看>>
oracle check if the display variable is set
查看>>
一键部署Openstack R版
查看>>
《JAVA——帮你解决高并发秒杀》
查看>>
国家级期刊发表要求注意事项
查看>>
C文件操作
查看>>
观察转小写的操作-字符函数
查看>>
Oracle查询访问同一表的两个以上索引(二)
查看>>
office 2016 下载地址
查看>>
Go语言之调试
查看>>
Go语言之 unsafe 包之内存布局
查看>>
Spring Cloud Config 入门
查看>>
rhce第二天笔记
查看>>
oneproxy中间件架构及注意事项
查看>>
phpweb解析不当加上传漏洞
查看>>
CentOS自动挂载NTFS分区的U盘或者移动硬盘
查看>>
2018-2019-1 20165226 20165310 20165315 实验二 固件程序设计
查看>>
安装windows后grub的恢复
查看>>
android学习总结(20120721)
查看>>