CngKeyUsages 열거형
정의
CNG(Cryptography Next Generation) 키와 함께 사용할 수 있는 암호화 작업을 지정합니다.Specifies the cryptographic operations that a Cryptography Next Generation (CNG) key may be used with.
이 열거형에는 멤버 값의 비트 조합을 허용하는 FlagsAttribute 특성이 있습니다.
public enum class CngKeyUsages
[System.Flags]
public enum CngKeyUsages
type CngKeyUsages =
Public Enum CngKeyUsages
- 상속
- 특성
필드
AllUsages | 16777215 | 키를 모든 용도로 사용할 수 있습니다.The key can be used for all purposes. |
Decryption | 1 | 키를 암호화 및 암호 해독에 사용할 수 있습니다.The key can be used for encryption and decryption. |
KeyAgreement | 4 | 키를 비밀 계약 생성 및 키 교환에 사용할 수 있습니다.The key can be used for secret agreement generation and key exchange. |
None | 0 | 키에 용도 값이 할당되지 않았습니다.No usage values are assigned to the key. |
Signing | 2 | 키를 서명 및 확인에 사용할 수 있습니다.The key can be used for signing and verification. |
설명
일부 작업은 각 키에 적용 됩니다.Not all operations apply to each key. 예를 들어, 타원 곡선 디지털 서명 알고리즘 (ECDSA) 키를 암호 해독 사용 설정 된 경우에 암호 해독에 사용할 수 없습니다.For example, an Elliptic Curve Digital Signature Algorithm (ECDSA) key cannot be used for decryption even if the Decryption usage is set.