No empty .Rs/.Re
[netbsd-mini2440.git] / sys / dev / pci / n8 / common / api / commands / n8_cb_pk_ops.h
blobf195016f2a1c7582e8cbd21151ef8cb51f1d5689
1 /*-
2 * Copyright (C) 2001-2003 by NBMK Encryption Technologies.
3 * All rights reserved.
5 * NBMK Encryption Technologies provides no support of any kind for
6 * this software. Questions or concerns about it may be addressed to
7 * the members of the relevant open-source community at
8 * <tech-crypto@netbsd.org>.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions are
12 * met:
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions and the following disclaimer.
17 * 2. Redistributions in binary form must reproduce the above
18 * copyright notice, this list of conditions and the following
19 * disclaimer in the documentation and/or other materials provided
20 * with the distribution.
22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35 /*****************************************************************************
36 *****************************************************************************/
38 /*****************************************************************************/
39 /** @file n8_cb_pk_ops.h
40 * @brief PKE Base Operation command generators.
42 * Command block generators for all PKE Base Operations.
44 *****************************************************************************/
46 /*****************************************************************************
47 * Revision history:
48 * 05/07/02 bac Original version.
49 ****************************************************************************/
50 #ifndef N8_CB_PK_OPS_H
51 #define N8_CB_PK_OPS_H
53 #include "n8_common.h"
54 #include "n8_pub_pk.h"
55 #include "n8_pk_common.h"
56 #include "n8_enqueue_common.h"
58 /* Define the number of commands required per operation */
59 #define N8_CB_PK_OP_NUMCMDS 5
61 /* Prototypes for external interfaces */
62 N8_Status_t cb_pk_op(API_Request_t *req_p,
63 const uint32_t shifted_opcode,
64 const uint32_t a_a,
65 const unsigned int a_length_bytes,
66 const uint32_t b_a,
67 const unsigned int b_length_bytes,
68 const uint32_t modulus_a,
69 const unsigned int mod_length_bytes,
70 const unsigned int max_length_bytes,
71 const uint32_t result_a,
72 PK_CMD_BLOCK_t *cb_p,
73 PK_CMD_BLOCK_t **next_cb_pp);
74 #endif /* N8_CB_PK_OPS_H */