constants.go 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // Package keyusage provides Kerberos 5 key usage assigned numbers.
  2. package keyusage
  3. // Key usage numbers.
  4. const (
  5. AS_REQ_PA_ENC_TIMESTAMP = 1
  6. KDC_REP_TICKET = 2
  7. AS_REP_ENCPART = 3
  8. TGS_REQ_KDC_REQ_BODY_AUTHDATA_SESSION_KEY = 4
  9. TGS_REQ_KDC_REQ_BODY_AUTHDATA_SUB_KEY = 5
  10. TGS_REQ_PA_TGS_REQ_AP_REQ_AUTHENTICATOR_CHKSUM = 6
  11. TGS_REQ_PA_TGS_REQ_AP_REQ_AUTHENTICATOR = 7
  12. TGS_REP_ENCPART_SESSION_KEY = 8
  13. TGS_REP_ENCPART_AUTHENTICATOR_SUB_KEY = 9
  14. AP_REQ_AUTHENTICATOR_CHKSUM = 10
  15. AP_REQ_AUTHENTICATOR = 11
  16. AP_REP_ENCPART = 12
  17. KRB_PRIV_ENCPART = 13
  18. KRB_CRED_ENCPART = 14
  19. KRB_SAFE_CHKSUM = 15
  20. KERB_NON_KERB_SALT = 16
  21. KERB_NON_KERB_CKSUM_SALT = 17
  22. //18. Reserved for future use in Kerberos and related protocols.
  23. AD_KDC_ISSUED_CHKSUM = 19
  24. //20-21. Reserved for future use in Kerberos and related protocols.
  25. GSSAPI_ACCEPTOR_SEAL = 22
  26. GSSAPI_ACCEPTOR_SIGN = 23
  27. GSSAPI_INITIATOR_SEAL = 24
  28. GSSAPI_INITIATOR_SIGN = 25
  29. KEY_USAGE_FAST_REQ_CHKSUM = 50
  30. KEY_USAGE_FAST_ENC = 51
  31. KEY_USAGE_FAST_REP = 52
  32. KEY_USAGE_FAST_FINISHED = 53
  33. KEY_USAGE_ENC_CHALLENGE_CLIENT = 54
  34. KEY_USAGE_ENC_CHALLENGE_KDC = 55
  35. KEY_USAGE_AS_REQ = 56
  36. //26-511. Reserved for future use in Kerberos and related protocols.
  37. //512-1023. Reserved for uses internal to a Kerberos implementation.
  38. //1024. Encryption for application use in protocols that do not specify key usage values
  39. //1025. Checksums for application use in protocols that do not specify key usage values
  40. //1026-2047. Reserved for application use.
  41. )