git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
crypto/armv8: do not append digest
[dpdk.git]
/
drivers
/
crypto
/
armv8
/
rte_armv8_pmd_private.h
diff --git
a/drivers/crypto/armv8/rte_armv8_pmd_private.h
b/drivers/crypto/armv8/rte_armv8_pmd_private.h
index
0baa49f
..
fa31f0a
100644
(file)
--- a/
drivers/crypto/armv8/rte_armv8_pmd_private.h
+++ b/
drivers/crypto/armv8/rte_armv8_pmd_private.h
@@
-1,7
+1,7
@@
/*
* BSD LICENSE
*
/*
* BSD LICENSE
*
- * Copyright (C) Cavium
networks Ltd
. 2017.
+ * Copyright (C) Cavium
, Inc
. 2017.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@
-13,7
+13,7
@@
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
- * * Neither the name of Cavium
networks
nor the names of its
+ * * Neither the name of Cavium
, Inc
nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
@@
-69,6
+69,9
@@
do { \
#define NBBY 8 /* Number of bits in a byte */
#define BYTE_LENGTH(x) ((x) / NBBY) /* Number of bytes in x (round down) */
#define NBBY 8 /* Number of bits in a byte */
#define BYTE_LENGTH(x) ((x) / NBBY) /* Number of bytes in x (round down) */
+/* Maximum length for digest (SHA-256 needs 32 bytes) */
+#define DIGEST_LENGTH_MAX 32
+
/** ARMv8 operation order mode enumerator */
enum armv8_crypto_chain_order {
ARMV8_CRYPTO_CHAIN_CIPHER_AUTH,
/** ARMv8 operation order mode enumerator */
enum armv8_crypto_chain_order {
ARMV8_CRYPTO_CHAIN_CIPHER_AUTH,
@@
-147,6
+150,11
@@
struct armv8_crypto_qp {
/**< Queue pair statistics */
char name[RTE_CRYPTODEV_NAME_LEN];
/**< Unique Queue Pair Name */
/**< Queue pair statistics */
char name[RTE_CRYPTODEV_NAME_LEN];
/**< Unique Queue Pair Name */
+ uint8_t temp_digest[DIGEST_LENGTH_MAX];
+ /**< Buffer used to store the digest generated
+ * by the driver when verifying a digest provided
+ * by the user (using authentication verify operation)
+ */
} __rte_cache_aligned;
/** ARMv8 crypto private session structure */
} __rte_cache_aligned;
/** ARMv8 crypto private session structure */
@@
-198,8
+206,8
@@
struct armv8_crypto_session {
uint8_t o_key_pad[SHA_BLOCK_MAX]
__rte_cache_aligned;
/**< outer pad (max supported block length) */
uint8_t o_key_pad[SHA_BLOCK_MAX]
__rte_cache_aligned;
/**< outer pad (max supported block length) */
- uint8_t key[SHA_
AUTH_KEY
_MAX];
- /**< HMAC key (max supported length)*/
+ uint8_t key[SHA_
BLOCK
_MAX];
+ /**< HMAC key (max supported
block
length)*/
} hmac;
};
uint16_t digest_length;
} hmac;
};
uint16_t digest_length;