• Home
  • Raw
  • Download

Lines Matching refs:key

75 static int TSS_rawhmac(unsigned char *digest, const unsigned char *key,  in TSS_rawhmac()  argument
90 ret = crypto_shash_setkey(hmacalg, key, keylen); in TSS_rawhmac()
122 int TSS_authhmac(unsigned char *digest, const unsigned char *key, in TSS_authhmac() argument
165 ret = TSS_rawhmac(digest, key, keylen, SHA1_DIGEST_SIZE, in TSS_authhmac()
180 const unsigned char *key, in TSS_checkhmac1() argument
245 ret = TSS_rawhmac(testhmac, key, keylen, SHA1_DIGEST_SIZE, paramdigest, in TSS_checkhmac1()
399 const unsigned char *key, uint16_t type, uint32_t handle) in osap() argument
426 return TSS_rawhmac(s->secret, key, SHA1_DIGEST_SIZE, TPM_NONCE_SIZE, in osap()
679 p->key[p->key_len] = p->migratable; in key_seal()
682 p->key, p->key_len + 1, p->blob, &p->blob_len, in key_seal()
705 o->blobauth, p->key, &p->key_len); in key_unseal()
710 p->migratable = p->key[--p->key_len]; in key_unseal()
961 static struct trusted_key_payload *trusted_payload_alloc(struct key *key) in trusted_payload_alloc() argument
966 ret = key_payload_reserve(key, sizeof *p); in trusted_payload_alloc()
984 static int trusted_instantiate(struct key *key, in trusted_instantiate() argument
1014 payload = trusted_payload_alloc(key); in trusted_instantiate()
1047 ret = tpm_get_random(chip, payload->key, key_len); in trusted_instantiate()
1073 rcu_assign_keypointer(key, payload); in trusted_instantiate()
1090 static int trusted_update(struct key *key, struct key_preparsed_payload *prep) in trusted_update() argument
1099 if (key_is_negative(key)) in trusted_update()
1101 p = key->payload.data[0]; in trusted_update()
1115 new_p = trusted_payload_alloc(key); in trusted_update()
1139 memcpy(new_p->key, p->key, p->key_len); in trusted_update()
1157 rcu_assign_keypointer(key, new_p); in trusted_update()
1169 static long trusted_read(const struct key *key, char *buffer, in trusted_read() argument
1176 p = dereference_key_locked(key); in trusted_read()
1191 static void trusted_destroy(struct key *key) in trusted_destroy() argument
1193 kfree_sensitive(key->payload.data[0]); in trusted_destroy()