SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 61402: Using the ENCRYPT data masking function with the AES algorithm yields poor performance

DetailsHotfixAboutRate It

In SAS® Federation Server, using the ENCRYPT data masking function with the AES algorithm might yield poor performance. For example, you might encounter this issue when you run code similar to the following:

SYSCAT.DM.MASK ('ENCRYPT',<data column>, 'ALG', 'AES', 'DETERMINISTIC', 'YES',EXPAND_PREC', 'YES')

Using ENCRYPT results in much slower performance than using other encryption methods. As a workaround, you can use another encryption method.

If you want to use AES, then you need to install the hot fix. Click the Hot Fix tab in this note to access the hot fix for this issue.

The hot fix requires that you set a configuration option:

 <Option type="Boolean" name="env:SYSCAT.SQFDM.AES_TO_AES_PBE">1</Option>

This option maps the AES algorithm to the new AES_PBE algorithm, which performs better.

Additional ENCRYPT and DECRYPT parameters for the new method are as follows:

MAC_KEY, <MAC key string constant>
When DETERMINISTIC is true, this parameter is used to generate an AES salt and 16-byte initialization vector. The salt is generated once per invocation for all column values. The IV is generated per column value. A default is used if not specified, but that is not recommended.

SALT_LEN, <integer in [1,16]>
This parameter sets the octet length of the salt values used with the encryption. The default is 8.

There is an additional DM package configuration option, which you set as follows:

alter server {options PACKAGE(name 'DM', set MAC_KEY '<mac key>')};

The option is the default for the MAC_KEY function argument.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Federation ServerMicrosoft® Windows® for x644.24.29.4 TS1M49.4 TS1M4
Microsoft Windows 8 Enterprise 32-bit4.24.29.4 TS1M49.4 TS1M4
Microsoft Windows 8 Enterprise x644.24.29.4 TS1M49.4 TS1M4
Microsoft Windows 8 Pro 32-bit4.24.29.4 TS1M49.4 TS1M4
Microsoft Windows 8 Pro x644.24.29.4 TS1M49.4 TS1M4
Microsoft Windows 8.1 Enterprise 32-bit4.24.29.4 TS1M49.4 TS1M4
Microsoft Windows 8.1 Enterprise x644.24.29.4 TS1M49.4 TS1M4
Microsoft Windows 8.1 Pro 32-bit4.24.29.4 TS1M49.4 TS1M4
Microsoft Windows 8.1 Pro x644.24.29.4 TS1M49.4 TS1M4
Microsoft Windows 104.24.29.4 TS1M49.4 TS1M4
Microsoft Windows Server 20084.24.29.4 TS1M49.4 TS1M4
Microsoft Windows Server 2008 R24.24.29.4 TS1M49.4 TS1M4
Microsoft Windows Server 2008 for x644.24.29.4 TS1M49.4 TS1M4
Microsoft Windows Server 2012 Datacenter4.24.29.4 TS1M49.4 TS1M4
Microsoft Windows Server 2012 R2 Datacenter4.24.29.4 TS1M49.4 TS1M4
Microsoft Windows Server 2012 R2 Std4.24.29.4 TS1M49.4 TS1M4
Microsoft Windows Server 2012 Std4.24.29.4 TS1M49.4 TS1M4
Windows 7 Enterprise 32 bit4.24.29.4 TS1M49.4 TS1M4
Windows 7 Enterprise x644.24.29.4 TS1M49.4 TS1M4
Windows 7 Home Premium 32 bit4.24.29.4 TS1M49.4 TS1M4
Windows 7 Home Premium x644.24.29.4 TS1M49.4 TS1M4
Windows 7 Professional 32 bit4.24.29.4 TS1M49.4 TS1M4
Windows 7 Professional x644.24.29.4 TS1M49.4 TS1M4
Windows 7 Ultimate 32 bit4.24.29.4 TS1M49.4 TS1M4
Windows 7 Ultimate x644.24.29.4 TS1M49.4 TS1M4
64-bit Enabled AIX4.24.29.4 TS1M49.4 TS1M4
64-bit Enabled Solaris4.24.29.4 TS1M49.4 TS1M4
HP-UX IPF4.24.29.4 TS1M49.4 TS1M4
Linux for x644.24.29.4 TS1M49.4 TS1M4
Solaris for x644.24.29.4 TS1M49.4 TS1M4
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.