SymmetricSecurityKey.GenerateDerivedKey Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived class, generates a derived key using the specified cryptographic algorithm and parameters for the current key.
public:
abstract cli::array <System::Byte> ^ GenerateDerivedKey(System::String ^ algorithm, cli::array <System::Byte> ^ label, cli::array <System::Byte> ^ nonce, int derivedKeyLength, int offset);
public abstract byte[] GenerateDerivedKey (string algorithm, byte[] label, byte[] nonce, int derivedKeyLength, int offset);
abstract member GenerateDerivedKey : string * byte[] * byte[] * int * int -> byte[]
Public MustOverride Function GenerateDerivedKey (algorithm As String, label As Byte(), nonce As Byte(), derivedKeyLength As Integer, offset As Integer) As Byte()
Parameters
- algorithm
- String
A URI that represents the cryptographic algorithm to use to generate the derived key.
- derivedKeyLength
- Int32
The size of the derived key.
- offset
- Int32
The position at which the derived key is located in the byte array that is returned from this method.
Returns
An array of Byte that contains the derived key.
Remarks
To specify P-SHA1 as the cryptographic algorithm, use the Psha1KeyDerivation field.
Due to collision problems with SHA1, Microsoft recommends a security model based on SHA256 or better.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기