• Home
  • Raw
  • Download

Lines Matching refs:key

76 static int TSS_rawhmac(unsigned char *digest, const unsigned char *key,  in TSS_rawhmac()  argument
91 ret = crypto_shash_setkey(hmacalg, key, keylen); in TSS_rawhmac()
123 static int TSS_authhmac(unsigned char *digest, const unsigned char *key, in TSS_authhmac() argument
163 ret = TSS_rawhmac(digest, key, keylen, SHA1_DIGEST_SIZE, in TSS_authhmac()
177 const unsigned char *key, in TSS_checkhmac1() argument
239 ret = TSS_rawhmac(testhmac, key, keylen, SHA1_DIGEST_SIZE, paramdigest, in TSS_checkhmac1()
394 const unsigned char *key, uint16_t type, uint32_t handle) in osap() argument
421 return TSS_rawhmac(s->secret, key, SHA1_DIGEST_SIZE, TPM_NONCE_SIZE, in osap()
672 p->key[p->key_len] = p->migratable; in key_seal()
675 p->key, p->key_len + 1, p->blob, &p->blob_len, in key_seal()
698 o->blobauth, p->key, &p->key_len); in key_unseal()
703 p->migratable = p->key[--p->key_len]; in key_unseal()
875 static struct trusted_key_payload *trusted_payload_alloc(struct key *key) in trusted_payload_alloc() argument
880 ret = key_payload_reserve(key, sizeof *p); in trusted_payload_alloc()
898 static int trusted_instantiate(struct key *key, in trusted_instantiate() argument
923 payload = trusted_payload_alloc(key); in trusted_instantiate()
948 ret = tpm_get_random(TPM_ANY_NUM, payload->key, key_len); in trusted_instantiate()
967 rcu_assign_keypointer(key, payload); in trusted_instantiate()
984 static int trusted_update(struct key *key, struct key_preparsed_payload *prep) in trusted_update() argument
993 if (test_bit(KEY_FLAG_NEGATIVE, &key->flags)) in trusted_update()
995 p = key->payload.data; in trusted_update()
1009 new_p = trusted_payload_alloc(key); in trusted_update()
1027 memcpy(new_p->key, p->key, p->key_len); in trusted_update()
1045 rcu_assign_keypointer(key, new_p); in trusted_update()
1057 static long trusted_read(const struct key *key, char __user *buffer, in trusted_read() argument
1065 p = rcu_dereference_key(key); in trusted_read()
1089 static void trusted_destroy(struct key *key) in trusted_destroy() argument
1091 kzfree(key->payload.data); in trusted_destroy()