Puppet Class: crypto_win::hashes::sha256

Defined in:
manifests/hashes/sha256.pp

Overview

Class: crypto_win::hashes::sha256



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'manifests/hashes/sha256.pp', line 2

class crypto_win::hashes::sha256 {

  if $crypto_win::sha256 {
    $sha256_enabled = 0xFFFFFFFF
  } else {
    $sha256_enabled = 0
  }

  registry_key { 'sha256':
    ensure => present,
    path   => 'HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Hashes\SHA256',
  }
  registry_value { 'sha256_enabled':
    ensure  => present,
    path    => 'HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Hashes\SHA256\Enabled',
    type    => dword,
    data    => $sha256_enabled,
    require => Registry_key['sha256'],
  }

}