summaryrefslogtreecommitdiff
path: root/third_party/srtp/crypto/include/crypto.h
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-01-23 20:17:42 +0000
committerBenny Prijono <bennylp@teluu.com>2008-01-23 20:17:42 +0000
commit78a92f35ea2593b35b1aa1312aeab4999a0811cf (patch)
tree302edf3b1c571fa11a169ae3d74eb7f2d30a523b /third_party/srtp/crypto/include/crypto.h
parent19ab0113d44a93f576eabe71bd966603fc4c81ef (diff)
Ticket #61: imported libsrtp into third_party directory (backported from srtp branch)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1730 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'third_party/srtp/crypto/include/crypto.h')
-rw-r--r--third_party/srtp/crypto/include/crypto.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/third_party/srtp/crypto/include/crypto.h b/third_party/srtp/crypto/include/crypto.h
new file mode 100644
index 00000000..0e9667da
--- /dev/null
+++ b/third_party/srtp/crypto/include/crypto.h
@@ -0,0 +1,43 @@
+/*
+ * crypto.h
+ *
+ * API for libcrypto
+ *
+ * David A. McGrew
+ * Cisco Systems, Inc.
+ */
+
+#ifndef CRYPTO_H
+#define CRYPTO_H
+
+/**
+ * @brief A cipher_type_id_t is an identifier for a particular cipher
+ * type.
+ *
+ * A cipher_type_id_t is an integer that represents a particular
+ * cipher type, e.g. the Advanced Encryption Standard (AES). A
+ * NULL_CIPHER is avaliable; this cipher leaves the data unchanged,
+ * and can be selected to indicate that no encryption is to take
+ * place.
+ *
+ * @ingroup Ciphers
+ */
+typedef uint32_t cipher_type_id_t;
+
+/**
+ * @brief An auth_type_id_t is an identifier for a particular authentication
+ * function.
+ *
+ * An auth_type_id_t is an integer that represents a particular
+ * authentication function type, e.g. HMAC-SHA1. A NULL_AUTH is
+ * avaliable; this authentication function performs no computation,
+ * and can be selected to indicate that no authentication is to take
+ * place.
+ *
+ * @ingroup Authentication
+ */
+typedef uint32_t auth_type_id_t;
+
+#endif /* CRYPTO_H */
+
+