iwasakims commented on pull request #2847:
URL: https://github.com/apache/hadoop/pull/2847#issuecomment-811653214


   JceSm4CtrCryptoCodec instead of OpensslSm4CtrCryptoCodec is used for 
'SM4/CTR/NoPadding' since SM4 is not enabled in openssl.
   ```
   $ openssl version
   OpenSSL 1.1.1g FIPS  21 Apr 2020
   $ openssl enc -ciphers | grep -i sm4
   
   $ bin/hadoop key create key-sm4 -cipher 'SM4/CTR/NoPadding'
   $ bin/hdfs dfs -mkdir /zone-sm4
   $ bin/hdfs crypto -createZone -path /zone-sm4 -keyName key-sm4
   $ bin/hdfs dfs -put README.txt /zone-sm4/
   2021-04-01 05:26:43,137 DEBUG util.NativeCodeLoader: Trying to load the 
custom-built native-hadoop library...
   2021-04-01 05:26:43,138 DEBUG util.NativeCodeLoader: Loaded the 
native-hadoop library
   2021-04-01 05:26:43,818 DEBUG util.PerformanceAdvisory: Both short-circuit 
local reads and UNIX domain socket are disabled.
   2021-04-01 05:26:44,447 DEBUG util.PerformanceAdvisory: Crypto codec 
org.apache.hadoop.crypto.OpensslSm4CtrCryptoCodec is not available.
   2021-04-01 05:26:44,447 DEBUG util.PerformanceAdvisory: Using crypto codec 
org.apache.hadoop.crypto.JceSm4CtrCryptoCodec.
   ...
   
   $ bin/hdfs dfs -cat README.txt /zone-sm4/README.txt
   2021-04-01 05:27:11,450 DEBUG util.NativeCodeLoader: Trying to load the 
custom-built native-hadoop library...
   2021-04-01 05:27:11,451 DEBUG util.NativeCodeLoader: Loaded the 
native-hadoop library
   2021-04-01 05:27:12,170 DEBUG util.PerformanceAdvisory: Both short-circuit 
local reads and UNIX domain socket are disabled.
   cat: `README.txt': No such file or directory
   2021-04-01 05:27:12,662 DEBUG kms.KMSClientProvider: KMSClientProvider 
created for KMS url: http://localhost:9600/kms/v1/ delegation token service: 
kms://http@localhost:9600/kms canonical service: 127.0.0.1:9600.
   2021-04-01 05:27:12,665 DEBUG kms.LoadBalancingKMSClientProvider: Created 
LoadBalancingKMSClientProvider for KMS url: kms://http@localhost:9600/kms with 
1 providers. delegation token service: kms://http@localhost:9600/kms, canonical 
service: 127.0.0.1:9600
   2021-04-01 05:27:12,686 DEBUG util.PerformanceAdvisory: Crypto codec 
org.apache.hadoop.crypto.OpensslSm4CtrCryptoCodec is not available.
   2021-04-01 05:27:12,686 DEBUG util.PerformanceAdvisory: Using crypto codec 
org.apache.hadoop.crypto.JceSm4CtrCryptoCodec.
   ...
   
   For the latest information about Hadoop, please visit our website at:
   
      http://hadoop.apache.org/
   
   and our wiki, at:
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to