瀏覽代碼

Enable AES on machines with AES in hardware.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 4 年之前
父節點
當前提交
f923b0c50a
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      fastd/fastd.conf

+ 3 - 3
fastd/fastd.conf

@@ -6,10 +6,10 @@ log to syslog level info;
 
 interface "{{ site }}_{{ network }}";
 
-{%- if 'aes' in grains['cpu_flags'] %}
-method "aes128-ctr+umac";
+{%- if 'aes' in grains.cpu_flags and grains.oscodename not in [ "stretch" ] %}
+method "aes128-gcm";
 {%- else %}
-#method "aes128-ctr+umac";	# Not supported by CPU on this machine
+#method "aes128-gcm";	# - Not supported by CPU on this machine 
 {%- endif %}
 method "salsa2012+umac";