summaryrefslogtreecommitdiff
path: root/src/mscorlib/src/System/Security/Cryptography/HMACRIPEMD160.cs
blob: bfd2a0e306d21c691c431d746b04711ba630acfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace System.Security.Cryptography {
    [System.Runtime.InteropServices.ComVisible(true)]
    public class HMACRIPEMD160 : HMAC {
        //
        // public constructors
        //

        public HMACRIPEMD160 () : this (Utils.GenerateRandom(64)) {}

        public HMACRIPEMD160 (byte[] key) {
            m_hashName = "RIPEMD160";
            m_hash1 = new RIPEMD160Managed();
            m_hash2 = new RIPEMD160Managed();
            HashSizeValue = 160;
            base.InitializeKey(key);
        }
    }
}