Rfc2898DeriveBytes.CryptDeriveKey(String, String, Int32, Byte[]) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
주의
Rfc2898DeriveBytes.CryptDeriveKey is obsolete and is not supported. Use PasswordDeriveBytes.CryptDeriveKey instead.
개체에서 암호화 키를 파생합니다 Rfc2898DeriveBytes .
public:
cli::array <System::Byte> ^ CryptDeriveKey(System::String ^ algname, System::String ^ alghashname, int keySize, cli::array <System::Byte> ^ rgbIV);
[System.Obsolete("Rfc2898DeriveBytes.CryptDeriveKey is obsolete and is not supported. Use PasswordDeriveBytes.CryptDeriveKey instead.", DiagnosticId="SYSLIB0033", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public byte[] CryptDeriveKey(string algname, string alghashname, int keySize, byte[] rgbIV);
public byte[] CryptDeriveKey(string algname, string alghashname, int keySize, byte[] rgbIV);
[<System.Obsolete("Rfc2898DeriveBytes.CryptDeriveKey is obsolete and is not supported. Use PasswordDeriveBytes.CryptDeriveKey instead.", DiagnosticId="SYSLIB0033", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.CryptDeriveKey : string * string * int * byte[] -> byte[]
member this.CryptDeriveKey : string * string * int * byte[] -> byte[]
Public Function CryptDeriveKey (algname As String, alghashname As String, keySize As Integer, rgbIV As Byte()) As Byte()
매개 변수
- algname
- String
키를 파생시킬 알고리즘 이름입니다.
- alghashname
- String
키를 파생하는 데 사용할 해시 알고리즘 이름입니다.
- keySize
- Int32
파생할 키의 크기(비트)입니다.
- rgbIV
- Byte[]
키를 파생하는 데 사용할 IV(초기화 벡터)입니다.
반품
파생 키입니다.
- 특성
예외
keySize 매개 변수가 잘못되었습니다.
-또는-
CSP(암호화 서비스 공급자)를 가져올 수 없습니다.
-또는-
algname 매개 변수가 유효한 알고리즘 이름이 아닙니다.
-또는-
alghashname 매개 변수가 유효한 해시 알고리즘 이름이 아닙니다.
설명
이 함수는 Crypto API 함수 CryptDeriveKey()에 대한 래퍼이며 Crypto API를 사용하는 애플리케이션과의 상호 운용성을 제공하기 위한 것입니다.
매개 변수를 keySize 0비트로 설정하면 지정된 알고리즘의 기본 키 크기가 사용됩니다.