TSKPublicKeyAlgorithm.h 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. TSKPublicKeyAlgorithm.h
  3. TrustKit
  4. Copyright 2015 The TrustKit Project Authors
  5. Licensed under the MIT license, see associated LICENSE file for terms.
  6. See AUTHORS file for the list of project authors.
  7. */
  8. #ifndef TSKPublicKeyAlgorithm_h
  9. #define TSKPublicKeyAlgorithm_h
  10. #if __has_feature(modules)
  11. @import Foundation;
  12. #else
  13. #import <Foundation/Foundation.h>
  14. #endif
  15. // The internal enum we use for public key algorithms; not to be confused with the exported TSKSupportedAlgorithm
  16. typedef NS_ENUM(NSInteger, TSKPublicKeyAlgorithm)
  17. {
  18. // Some assumptions are made about this specific ordering in public_key_utils.m
  19. TSKPublicKeyAlgorithmRsa2048 = 0,
  20. TSKPublicKeyAlgorithmRsa4096 = 1,
  21. TSKPublicKeyAlgorithmEcDsaSecp256r1 = 2,
  22. TSKPublicKeyAlgorithmEcDsaSecp384r1 = 3,
  23. TSKPublicKeyAlgorithmLast = TSKPublicKeyAlgorithmEcDsaSecp384r1
  24. } __deprecated_msg("Starting with TrustKit 1.6.0, key algorithms no longer need to be specified; remove TSKPublicKeyAlgorithms from your configuration.");
  25. #endif /* TSKPublicKeyAlgorithm_h */