Add mod_session support
[mod_auth_gssapi.git] / src / crypto.h
1 /* Copyright (C) 2014 mod_auth_gssapi authors - See COPYING for (C) terms */
2
3 #include <apr_errno.h>
4 #include <apr_pools.h>
5
6 struct seal_key;
7
8 struct databuf {
9     unsigned char *value;
10     int length;
11 };
12
13 apr_status_t SEAL_KEY_CREATE(struct seal_key **skey);
14 apr_status_t SEAL_BUFFER(apr_pool_t *p, struct seal_key *skey,
15                          struct databuf *plain, struct databuf *cipher);
16 apr_status_t UNSEAL_BUFFER(apr_pool_t *p, struct seal_key *skey,
17                            struct databuf *cipher, struct databuf *plain);