Esempio n. 1
0
        public static HmacSha256Key Decode(XdrDataInputStream stream)
        {
            HmacSha256Key decodedHmacSha256Key = new HmacSha256Key();
            int           keysize = 32;

            decodedHmacSha256Key.Key = new byte[keysize];
            stream.Read(decodedHmacSha256Key.Key, 0, keysize);
            return(decodedHmacSha256Key);
        }
Esempio n. 2
0
        public static void Encode(XdrDataOutputStream stream, HmacSha256Key encodedHmacSha256Key)
        {
            int keysize = encodedHmacSha256Key.Key.Length;

            stream.Write(encodedHmacSha256Key.Key, 0, keysize);
        }