Assets/Scripts/BIP39/RFC2898_PBDF2_HMAC-SHA512.cs
/// <summary>
/// A static publicly exposed version of GetDerivedKeyBytes_PBKDF2_HMACSHA512 which matches the exact specification in Rfc2898 PBKDF2 using HMACSHA512
/// </summary>
/// <param name="P">Password passed as a Byte Array</param>
/// <param name="S">Salt passed as a Byte Array</param>
/// <param name="c">Iterations to perform the underlying PRF over</param>
/// <param name="dkLen">Length of Bytes to return, an AES 256 key wold require 32 Bytes</param>
/// <returns>Derived Key in Byte Array form ready for use by chosen encryption function</returns>
A static publicly exposed version of GetDerivedKeyBytes_PBKDF2_HMACSHA512 which matches the exact specification in Rfc2898 PBKDF2 using HMACSHA512
A static publicly exposed version of GetDerivedKeyBytes_PBKDF2_HMACSHA512 which matches the exact specification in Rfc2898 PBKDF2 using HMACSHA512
public static Byte[] PBKDF2(Byte[] P, Byte[] S, int c = CMinIterations, int dkLen = hLen)
        {
            Rfc2898_pbkdf2_hmacsha512 rfcObj = new Rfc2898_pbkdf2_hmacsha512(P, S, c);
            return rfcObj.GetDerivedKeyBytes_PBKDF2_HMACSHA512(dkLen);
        }
public static Byte [ ] PBKDF2 ( Byte [ ] P , Byte [ ] S , int c = CMinIterations , int dkLen = hLen ) { Rfc2898_pbkdf2_hmacsha512 rfcObj = new Rfc2898_pbkdf2_hmacsha512 ( P , S , c ) ; return rfcObj . GetDerivedKeyBytes_PBKDF2_HMACSHA512 ( dkLen ) ; }
A static publicly exposed version of GetDerivedKeyBytes_PBKDF2_HMACSHA512 which matches the exact specification in Rfc2898 PBKDF2 using HMACSHA512
A static publicly exposed version of GetDerivedKeyBytes_PBKDF2_HMACSHA512 which matches the exact specification in Rfc2898 PBKDF2 using HMACSHA512
Derived Key in Byte Array form ready for use by chosen encryption function
Derived Key in Byte Array form ready for use by chosen encryption function
P
Byte[]
Password passed as a Byte Array
Password passed as a Byte Array
S
Byte[]
Salt passed as a Byte Array
Salt passed as a Byte Array
c
int
Iterations to perform the underlying PRF over
Iterations to perform the underlying PRF over
dkLen
int
Length of Bytes to return, an AES 256 key wold require 32 Bytes
Length of Bytes to return an AES 256 key wold require 32 Bytes