Пример #1
0
        public KdfResult DeriveKey(BitString z, int keyDataLength, BitString otherInfo, BitString salt)
        {
            // change the z prior to passing to the KDF
            z[0] += 2;

            return(_kdf.DeriveKey(z, keyDataLength, otherInfo, salt));
        }
Пример #2
0
        public KdfResult DeriveKey(BitString z, int keyDataLength, BitString otherInfo, BitString salt)
        {
            var dkmResult = _kdf.DeriveKey(z, keyDataLength, otherInfo, salt);

            // Change the DKM prior to returning
            dkmResult.DerivedKey[0] += 2;

            return(dkmResult);
        }