大网数据广告活动
账户与安全

CryptoAPI System Architecture

· 52CE 我爱测

Explains the CryptoAPI system architecture.

The CryptoAPI system architecture is composed of five major functional areas:

Base Cryptographic Functions

Certificate Encode/Decode Functions

Certificate Store Functions

Simplified Message Functions

  • Functions used to encrypt and decrypt messages and data.
  • Functions used to sign messages and data.
  • Functions used to verify the authenticity of signatures on received messages and related data.

For more information, see Simplified Messages and Simplified Message Functions.

Low-level Message Functions

  • Functions used to perform all of the tasks performed by the simplified message functions. The low-level message functions provide more flexibility than the simplified message functions but require more function calls. For more information, see Low-level Messages and Low-level Message Functions.

cryptoapi architecture

Each of the functional areas has a key word in its function name that indicates its functional area.

Functional area Function name convention
Base cryptographic functions Crypt
Encoding/decoding functions Crypt
Certificate store functions Store
Simplified message functions Message
Low-level message functions Msg

Applications use functions in all of these areas. These functions, taken together, make up CryptoAPI. The base cryptographic functions use the CSPs for the necessary cryptographic algorithms and for the generation and secure storage of cryptographic keys.

Two different kinds of cryptographic keys are used: session keys, which are used for a single encryption/decryption, and public/private key pairs, which are used on a more permanent basis.

Note:
Although an application can communicate directly with any of the five functional areas, it cannot communicate directly with a CSP. All application-to-CSP communications occur through the base cryptographic functions. Base cryptographic functions have a parameter that specifies which CSP to use. This parameter can be set to NULL to select a default CSP.

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。