@@ -319,6 +319,10 @@ QCryptoHashAlgorithm qcrypto_block_get_kdf_hash(QCryptoBlock *block)
return block->kdfhash;
}
+void qcrypto_block_set_payload_offset(QCryptoBlock *block, uint64_t offset)
+{
+ block->payload_offset = offset;
+}
uint64_t qcrypto_block_get_payload_offset(QCryptoBlock *block)
{
@@ -312,4 +312,5 @@ void qcrypto_block_free(QCryptoBlock *block);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(QCryptoBlock, qcrypto_block_free)
+void qcrypto_block_set_payload_offset(QCryptoBlock *block, uint64_t offset);
#endif /* QCRYPTO_BLOCK_H */
Implement the payload offset set function for Gluks. Signed-off-by: Hyman Huang <yong.huang@smartx.com> --- crypto/block.c | 4 ++++ include/crypto/block.h | 1 + 2 files changed, 5 insertions(+)