Deleted Added
full compact
padlock.h (160675) padlock.h (160784)
1/*-
2 * Copyright (c) 2005-2006 Pawel Jakub Dawidek <pjd@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2005-2006 Pawel Jakub Dawidek <pjd@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/crypto/via/padlock.h 160675 2006-07-25 19:06:54Z pjd $
26 * $FreeBSD: head/sys/crypto/via/padlock.h 160784 2006-07-28 14:46:19Z pjd $
27 */
28
29#ifndef _PADLOCK_H_
30#define _PADLOCK_H_
31
32#include <opencrypto/cryptodev.h>
33#include <crypto/rijndael/rijndael.h>
34

--- 32 unchanged lines hidden (view full) ---

67 uint8_t *ses_ictx;
68 uint8_t *ses_octx;
69 int ses_mlen;
70 int ses_used;
71 uint32_t ses_id;
72 TAILQ_ENTRY(padlock_session) ses_next;
73};
74
27 */
28
29#ifndef _PADLOCK_H_
30#define _PADLOCK_H_
31
32#include <opencrypto/cryptodev.h>
33#include <crypto/rijndael/rijndael.h>
34

--- 32 unchanged lines hidden (view full) ---

67 uint8_t *ses_ictx;
68 uint8_t *ses_octx;
69 int ses_mlen;
70 int ses_used;
71 uint32_t ses_id;
72 TAILQ_ENTRY(padlock_session) ses_next;
73};
74
75#define PADLOCK_ALIGN(p) (void *)((uintptr_t)(p) - (((uintptr_t)(p) - 1) % 16) + 15)
75#define PADLOCK_ALIGN(p) (void *)(roundup2((uintptr_t)(p), 16))
76
77int padlock_cipher_setup(struct padlock_session *ses,
78 struct cryptoini *encini);
79int padlock_cipher_process(struct padlock_session *ses,
80 struct cryptodesc *enccrd, struct cryptop *crp);
81int padlock_hash_setup(struct padlock_session *ses,
82 struct cryptoini *macini);
83int padlock_hash_process(struct padlock_session *ses,
84 struct cryptodesc *maccrd, struct cryptop *crp);
85void padlock_hash_free(struct padlock_session *ses);
86
87#endif /* !_PADLOCK_H_ */
76
77int padlock_cipher_setup(struct padlock_session *ses,
78 struct cryptoini *encini);
79int padlock_cipher_process(struct padlock_session *ses,
80 struct cryptodesc *enccrd, struct cryptop *crp);
81int padlock_hash_setup(struct padlock_session *ses,
82 struct cryptoini *macini);
83int padlock_hash_process(struct padlock_session *ses,
84 struct cryptodesc *maccrd, struct cryptop *crp);
85void padlock_hash_free(struct padlock_session *ses);
86
87#endif /* !_PADLOCK_H_ */