Skip to content
Permalink
Browse files Browse the repository at this point in the history
totemcrypto: fix hmac key initialization
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
  • Loading branch information
fabbione committed Jan 14, 2013
1 parent 6127be1 commit b3f456a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exec/totemcrypto.c
Expand Up @@ -478,8 +478,8 @@ static int init_nss_hash(struct crypto_instance *instance)
}

hash_param.type = siBuffer;
hash_param.data = 0;
hash_param.len = 0;
hash_param.data = instance->private_key;
hash_param.len = instance->private_key_len;

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

0 comments on commit b3f456a

Please sign in to comment.