src/AWSSDK.Extensions.CognitoAuthentication/Util/AuthenticationHelper.cs
/// <summary>
/// Internal method for generating k for the input key material to HKDF
/// </summary>
/// <returns>Returns the BigInteger k value for the HKDF protocol's ikm</returns>
Internal method for generating k for the input key material to HKDF
Internal method for generating k for the input key material to HKDF
internal static BigInteger CreateKForGeneratingIkm()
        {
            byte[] content = Util.CombineBytes(new byte[][] { N.ToByteArray(), g.ToByteArray() });
            byte[] messageDigest = Util.Sha256.ComputeHash(content);
           return new BigInteger(1, messageDigest);
        }
internal static BigInteger CreateKForGeneratingIkm ( ) { byte [ ] content = Util . CombineBytes ( new byte [ ] [ ] { N . ToByteArray ( ) , g . ToByteArray ( ) } ) ; byte [ ] messageDigest = Util . Sha256 . ComputeHash ( content ) ; return new BigInteger ( 1 , messageDigest ) ; }
Internal method for generating k for the input key material to HKDF
Internal method for generating k for the input key material to HKDF
// Create k for generating the ikm S
Returns the BigInteger k value for the HKDF protocol's ikm
Returns the BigInteger k value for the HKDF protocol ' s ikm