Skip to content

Commit b3f456a

Browse files
committed
totemcrypto: fix hmac key initialization
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com> Reviewed-by: Jan Friesse <jfriesse@redhat.com>
1 parent 6127be1 commit b3f456a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: exec/totemcrypto.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -478,8 +478,8 @@ static int init_nss_hash(struct crypto_instance *instance)
478478
}
479479

480480
hash_param.type = siBuffer;
481-
hash_param.data = 0;
482-
hash_param.len = 0;
481+
hash_param.data = instance->private_key;
482+
hash_param.len = instance->private_key_len;
483483

484484
hash_slot = PK11_GetBestSlot(hash_to_nss[instance->crypto_hash_type], NULL);
485485
if (hash_slot == NULL) {

0 commit comments

Comments
 (0)