diff options
Diffstat (limited to 'firmware/2lib/include/2sha.h')
-rw-r--r-- | firmware/2lib/include/2sha.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/2lib/include/2sha.h b/firmware/2lib/include/2sha.h index 0077f379..38b8a816 100644 --- a/firmware/2lib/include/2sha.h +++ b/firmware/2lib/include/2sha.h @@ -133,6 +133,15 @@ void vb2_sha256_finalize(struct vb2_sha256_context *ctx, uint8_t *digest); void vb2_sha512_finalize(struct vb2_sha512_context *ctx, uint8_t *digest); /** + * Hash-extend data + * + * @param from Hash to be extended. It has to be the hash size. + * @param by Block to be extended by. It has to be the hash block size. + * @param to Destination for extended data + */ +void vb2_sha256_extend(const uint8_t *from, const uint8_t *by, uint8_t *to); + +/** * Convert vb2_crypto_algorithm to vb2_hash_algorithm. * * @param algorithm Crypto algorithm (vb2_crypto_algorithm) |