keyspec_class.py 794 B

12345678910111213141516171819202122232425
  1. # Copyright 2014 Baidu, Inc.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License") you may not use this file
  4. # except in compliance with the License. You may obtain a copy of the License at
  5. #
  6. # http://www.apache.org/licenses/LICENSE-2.0
  7. #
  8. # Unless required by applicable law or agreed to in writing, software distributed under the
  9. # License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
  10. # either express or implied. See the License for the specific language governing permissions
  11. # and limitations under the License.
  12. """
  13. The type of KeySpec
  14. """
  15. BAIDU_AES_256 = 'BAIDU_AES_256'
  16. AES_128 = 'AES_128'
  17. AES_256 = 'AES_256'
  18. SM1_128 = 'SM1_128'
  19. SM2_256 = 'SM2_256'
  20. SM4_128 = 'SM4_128'
  21. RSA_1024 = 'RSA_1024'
  22. RSA_2048 = 'RSA_2048'
  23. RSA_4096 = 'RSA_4096'