]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/netinet6/esp.h
xnu-3789.51.2.tar.gz
[apple/xnu.git] / bsd / netinet6 / esp.h
index 04aa45077e0f9af719f05f9745bcf3890425c75e..b2deaa2f3f95d29c99403ef459537935923247c1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008 Apple Inc. All rights reserved.
+ * Copyright (c) 2008-2013 Apple Inc. All rights reserved.
  *
  * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  * 
@@ -95,7 +95,7 @@ struct esptail {
        /*variable size, 32bit bound*/  /* Authentication data (new IPsec)*/
 };
 
-#ifdef KERNEL_PRIVATE
+#ifdef BSD_KERNEL_PRIVATE
 struct secasvar;
 
 struct esp_algorithm {
@@ -117,6 +117,10 @@ struct esp_algorithm {
                struct secasvar *, u_int8_t *, u_int8_t *);
        int (*blockencrypt)(const struct esp_algorithm *,
                struct secasvar *, u_int8_t *, u_int8_t *);
+       /* For Authenticated Encryption Methods */
+       size_t icvlen;
+       int (*finalizedecrypt)(struct secasvar *, u_int8_t *, uint);
+       int (*finalizeencrypt)(struct secasvar *, u_int8_t *, uint);
 };
 
 extern const struct esp_algorithm *esp_algorithm_lookup(int);
@@ -130,6 +134,6 @@ extern size_t esp_hdrsiz(struct ipsecrequest *);
 extern int esp_schedule(const struct esp_algorithm *, struct secasvar *);
 extern int esp_auth(struct mbuf *, size_t, size_t,
        struct secasvar *, u_char *);
-#endif /* KERNEL_PRIVATE */
+#endif /* BSD_KERNEL_PRIVATE */
 
 #endif /* _NETINET6_ESP_H_ */