Whamcloud - gitweb
LU-3289 gss: Add Shared key and GSS Null functionality
[fs/lustre-release.git] / lustre / include / lustre / lustre_user.h
index b6605b2..cda6237 100644 (file)
@@ -1422,6 +1422,27 @@ struct ladvise_hdr {
 
 #define LAH_COUNT_MAX  (1024)
 
-/** @} lustreuser */
+/* Shared key */
+enum sk_crypt_alg {
+       SK_CRYPT_AES_CTR        = 0,
+       SK_CRYPT_MAX            = 1,
+};
 
+enum sk_hmac_alg {
+       SK_HMAC_SHA256  = 0,
+       SK_HMAC_SHA512  = 1,
+       SK_HMAC_MAX     = 2,
+};
+
+struct sk_crypt_type {
+       char    *sct_name;
+       size_t   sct_bytes;
+};
+
+struct sk_hmac_type {
+       char    *sht_name;
+       size_t   sht_bytes;
+};
+
+/** @} lustreuser */
 #endif /* _LUSTRE_USER_H */