Beispiel #1
0
        public override void Initialize()
        {
            var hmacHandle = CreateHashHMAC(ProviderType, CryptoApiHelper.GetProviderHandle(ProviderType), _keyAlgorithm.GetSafeHandle());

            _hmacHandle.TryDispose();
            _hmacHandle = hmacHandle;
        }
Beispiel #2
0
        private void InitializeHmac()
        {
            var hashHmacHandle = CryptoApiHelper.CreateHashHmac(CryptoApiHelper.ProviderHandle, _key.InternalKeyHandle, GostCryptoConfig.ProviderType == ProviderTypes.VipNet ? Constants.CALG_GR3411_HMAC34 : Constants.CALG_GR3411_HMAC);

            _hashHmacHandle.TryDispose();

            _hashHmacHandle = hashHmacHandle;
        }
        public override void Initialize()
        {
            var hashHmacHandle = CryptoApiHelper.CreateHashHmac(CryptoApiHelper.ProviderHandle, _keyAlgorithm.InternalKeyHandle, Constants.CALG_GR3411_2012_256_HMAC);

            _hashHandle.TryDispose();

            _hashHandle = hashHmacHandle;
        }
Beispiel #4
0
        private void InitializeHmac()
        {
            var hashHmacHandle = CryptoApiHelper.CreateHashHmac(CryptoApiHelper.ProviderHandle, _key.InternalKeyHandle, Constants.CALG_GR3411_2012_512_HMAC);

            _hashHmacHandle.TryDispose();

            _hashHmacHandle = hashHmacHandle;
        }
        private void InitializeHmac()
        {
            var hashHmacHandle = CryptoApiHelper.CreateHashHmac(CryptoApiHelper.ProviderHandle, _key.InternalKeyHandle);

            _hashHmacHandle.TryDispose();

            _hashHmacHandle = hashHmacHandle;
        }
Beispiel #6
0
        public override void Initialize()
        {
            var hashHmacHandle = CryptoApiHelper.CreateHashHmac(CryptoApiHelper.ProviderHandle, _keyAlgorithm.InternalKeyHandle);

            _hashHandle.TryDispose();

            _hashHandle = hashHmacHandle;
        }
 public override void Initialize()
 {
     _hashHandle.TryDispose();
     _hashHandle = CreateHashHandle();
 }
 public override void Initialize()
 {
     _hashHandle.TryDispose();
     _hashHandle = null;
 }