summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/engine/hw_cryptodev.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/engine/hw_cryptodev.c')
-rw-r--r--src/lib/libcrypto/engine/hw_cryptodev.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/libcrypto/engine/hw_cryptodev.c b/src/lib/libcrypto/engine/hw_cryptodev.c
index 0ca442af8a..41184b6786 100644
--- a/src/lib/libcrypto/engine/hw_cryptodev.c
+++ b/src/lib/libcrypto/engine/hw_cryptodev.c
@@ -93,7 +93,7 @@ static int open_dev_crypto(void);
93static int get_dev_crypto(void); 93static int get_dev_crypto(void);
94static struct dev_crypto_cipher *cipher_nid_to_cryptodev(int nid); 94static struct dev_crypto_cipher *cipher_nid_to_cryptodev(int nid);
95static int get_cryptodev_ciphers(const int **cnids); 95static int get_cryptodev_ciphers(const int **cnids);
96static int get_cryptodev_digests(const int **cnids); 96/*static int get_cryptodev_digests(const int **cnids);*/
97static int cryptodev_usable_ciphers(const int **nids); 97static int cryptodev_usable_ciphers(const int **nids);
98static int cryptodev_usable_digests(const int **nids); 98static int cryptodev_usable_digests(const int **nids);
99static int cryptodev_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, 99static int cryptodev_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
@@ -150,6 +150,7 @@ static struct dev_crypto_cipher ciphers[] = {
150 { 0, NID_undef, 0, 0, }, 150 { 0, NID_undef, 0, 0, },
151}; 151};
152 152
153#if 0 /* UNUSED */
153static struct { 154static struct {
154 int id; 155 int id;
155 int nid; 156 int nid;
@@ -162,6 +163,7 @@ static struct {
162 { CRYPTO_SHA1, NID_undef, }, 163 { CRYPTO_SHA1, NID_undef, },
163 { 0, NID_undef, }, 164 { 0, NID_undef, },
164}; 165};
166#endif
165 167
166/* 168/*
167 * Return a fd if /dev/crypto seems usable, -1 otherwise. 169 * Return a fd if /dev/crypto seems usable, -1 otherwise.
@@ -297,6 +299,7 @@ get_cryptodev_ciphers(const int **cnids)
297 * returning them here is harmless, as long as we return NULL 299 * returning them here is harmless, as long as we return NULL
298 * when asked for a handler in the cryptodev_engine_digests routine 300 * when asked for a handler in the cryptodev_engine_digests routine
299 */ 301 */
302#if 0 /* UNUSED */
300static int 303static int
301get_cryptodev_digests(const int **cnids) 304get_cryptodev_digests(const int **cnids)
302{ 305{
@@ -326,6 +329,7 @@ get_cryptodev_digests(const int **cnids)
326 *cnids = NULL; 329 *cnids = NULL;
327 return (count); 330 return (count);
328} 331}
332#endif
329 333
330/* 334/*
331 * Find the useable ciphers|digests from dev/crypto - this is the first 335 * Find the useable ciphers|digests from dev/crypto - this is the first
@@ -832,7 +836,7 @@ static int
832bn2crparam(const BIGNUM *a, struct crparam *crp) 836bn2crparam(const BIGNUM *a, struct crparam *crp)
833{ 837{
834 int i, j, k; 838 int i, j, k;
835 ssize_t words, bytes, bits; 839 ssize_t bytes, bits;
836 u_char *b; 840 u_char *b;
837 841
838 crp->crp_p = NULL; 842 crp->crp_p = NULL;