/crypto/asymmetric_keys/ |
D | asym_tpm.c | 34 static int tpm_loadkey2(struct tpm_buf *tb, in tpm_loadkey2() argument 50 ret = oiap(tb, &authhandle, enonce); in tpm_loadkey2() 71 INIT_BUF(tb); in tpm_loadkey2() 72 store16(tb, TPM_TAG_RQU_AUTH1_COMMAND); in tpm_loadkey2() 73 store32(tb, TPM_LOADKEY2_SIZE + keybloblen); in tpm_loadkey2() 74 store32(tb, TPM_ORD_LOADKEY2); in tpm_loadkey2() 75 store32(tb, keyhandle); in tpm_loadkey2() 76 storebytes(tb, keyblob, keybloblen); in tpm_loadkey2() 77 store32(tb, authhandle); in tpm_loadkey2() 78 storebytes(tb, nonceodd, TPM_NONCE_SIZE); in tpm_loadkey2() [all …]
|
/crypto/ |
D | algboss.c | 24 struct rtattr *tb[CRYPTO_MAX_ATTRS + 2]; member 70 err = tmpl->create(tmpl, param->tb); in cryptomgr_probe() 74 inst = tmpl->alloc(param->tb); in cryptomgr_probe() 157 param->tb[i + 1] = ¶m->attrs[i].attr; in cryptomgr_schedule_probe() 173 param->tb[i + 1] = NULL; in cryptomgr_schedule_probe() 179 param->tb[0] = ¶m->type.attr; in cryptomgr_schedule_probe()
|
D | seqiv.c | 138 static int seqiv_aead_create(struct crypto_template *tmpl, struct rtattr **tb) in seqiv_aead_create() argument 143 inst = aead_geniv_alloc(tmpl, tb, 0, 0); in seqiv_aead_create() 173 static int seqiv_create(struct crypto_template *tmpl, struct rtattr **tb) in seqiv_create() argument 177 algt = crypto_get_attr_type(tb); in seqiv_create() 184 return seqiv_aead_create(tmpl, tb); in seqiv_create()
|
D | cryptd.c | 194 static inline void cryptd_check_internal(struct rtattr **tb, u32 *type, in cryptd_check_internal() argument 199 algt = crypto_get_attr_type(tb); in cryptd_check_internal() 397 struct rtattr **tb, in cryptd_create_skcipher() argument 411 cryptd_check_internal(tb, &type, &mask); in cryptd_create_skcipher() 413 name = crypto_attr_alg_name(tb[1]); in cryptd_create_skcipher() 669 static int cryptd_create_hash(struct crypto_template *tmpl, struct rtattr **tb, in cryptd_create_hash() argument 680 cryptd_check_internal(tb, &type, &mask); in cryptd_create_hash() 682 salg = shash_attr_alg(tb[1], type, mask); in cryptd_create_hash() 853 struct rtattr **tb, in cryptd_create_aead() argument 864 cryptd_check_internal(tb, &type, &mask); in cryptd_create_aead() [all …]
|
D | ccm.c | 455 struct rtattr **tb, in crypto_ccm_create_common() argument 467 algt = crypto_get_attr_type(tb); in crypto_ccm_create_common() 564 static int crypto_ccm_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ccm_create() argument 570 cipher_name = crypto_attr_alg_name(tb[1]); in crypto_ccm_create() 582 return crypto_ccm_create_common(tmpl, tb, ctr_name, mac_name); in crypto_ccm_create() 586 struct rtattr **tb) in crypto_ccm_base_create() argument 591 ctr_name = crypto_attr_alg_name(tb[1]); in crypto_ccm_base_create() 595 mac_name = crypto_attr_alg_name(tb[2]); in crypto_ccm_base_create() 599 return crypto_ccm_create_common(tmpl, tb, ctr_name, mac_name); in crypto_ccm_base_create() 745 struct rtattr **tb) in crypto_rfc4309_create() argument [all …]
|
D | pcrypt.c | 214 static int pcrypt_create_aead(struct crypto_template *tmpl, struct rtattr **tb, in pcrypt_create_aead() argument 224 algt = crypto_get_attr_type(tb); in pcrypt_create_aead() 228 name = crypto_attr_alg_name(tb[1]); in pcrypt_create_aead() 279 static int pcrypt_create(struct crypto_template *tmpl, struct rtattr **tb) in pcrypt_create() argument 283 algt = crypto_get_attr_type(tb); in pcrypt_create() 289 return pcrypt_create_aead(tmpl, tb, algt->type, algt->mask); in pcrypt_create()
|
D | gcm.c | 583 struct rtattr **tb, in crypto_gcm_create_common() argument 595 algt = crypto_get_attr_type(tb); in crypto_gcm_create_common() 692 static int crypto_gcm_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_gcm_create() argument 697 cipher_name = crypto_attr_alg_name(tb[1]); in crypto_gcm_create() 705 return crypto_gcm_create_common(tmpl, tb, ctr_name, "ghash"); in crypto_gcm_create() 709 struct rtattr **tb) in crypto_gcm_base_create() argument 714 ctr_name = crypto_attr_alg_name(tb[1]); in crypto_gcm_base_create() 718 ghash_name = crypto_attr_alg_name(tb[2]); in crypto_gcm_base_create() 722 return crypto_gcm_create_common(tmpl, tb, ctr_name, ghash_name); in crypto_gcm_base_create() 867 struct rtattr **tb) in crypto_rfc4106_create() argument [all …]
|
D | cbc.c | 51 static int crypto_cbc_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_cbc_create() argument 57 inst = skcipher_alloc_instance_simple(tmpl, tb, &alg); in crypto_cbc_create()
|
D | ctr.c | 126 static int crypto_ctr_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ctr_create() argument 132 inst = skcipher_alloc_instance_simple(tmpl, tb, &alg); in crypto_ctr_create() 263 struct rtattr **tb) in crypto_rfc3686_create() argument 274 algt = crypto_get_attr_type(tb); in crypto_rfc3686_create() 281 cipher_name = crypto_attr_alg_name(tb[1]); in crypto_rfc3686_create()
|
D | ecb.c | 61 static int crypto_ecb_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ecb_create() argument 67 inst = skcipher_alloc_instance_simple(tmpl, tb, &alg); in crypto_ecb_create()
|
D | ofb.c | 52 static int crypto_ofb_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ofb_create() argument 58 inst = skcipher_alloc_instance_simple(tmpl, tb, &alg); in crypto_ofb_create()
|
D | chacha20poly1305.c | 562 static int chachapoly_create(struct crypto_template *tmpl, struct rtattr **tb, in chachapoly_create() argument 577 algt = crypto_get_attr_type(tb); in chachapoly_create() 584 chacha_name = crypto_attr_alg_name(tb[1]); in chachapoly_create() 587 poly_name = crypto_attr_alg_name(tb[2]); in chachapoly_create() 681 static int rfc7539_create(struct crypto_template *tmpl, struct rtattr **tb) in rfc7539_create() argument 683 return chachapoly_create(tmpl, tb, "rfc7539", 12); in rfc7539_create() 686 static int rfc7539esp_create(struct crypto_template *tmpl, struct rtattr **tb) in rfc7539esp_create() argument 688 return chachapoly_create(tmpl, tb, "rfc7539esp", 8); in rfc7539esp_create()
|
D | hmac.c | 170 static int hmac_create(struct crypto_template *tmpl, struct rtattr **tb) in hmac_create() argument 179 err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_SHASH); in hmac_create() 183 salg = shash_attr_alg(tb[1], 0, 0); in hmac_create()
|
D | xcbc.c | 188 static int xcbc_create(struct crypto_template *tmpl, struct rtattr **tb) in xcbc_create() argument 195 err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_SHASH); in xcbc_create() 199 alg = crypto_get_attr_alg(tb, CRYPTO_ALG_TYPE_CIPHER, in xcbc_create()
|
D | cmac.c | 222 static int cmac_create(struct crypto_template *tmpl, struct rtattr **tb) in cmac_create() argument 229 err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_SHASH); in cmac_create() 233 alg = crypto_get_attr_alg(tb, CRYPTO_ALG_TYPE_CIPHER, in cmac_create()
|
D | echainiv.c | 113 struct rtattr **tb) in echainiv_aead_create() argument 118 inst = aead_geniv_alloc(tmpl, tb, 0, 0); in echainiv_aead_create()
|
D | keywrap.c | 263 static int crypto_kw_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_kw_create() argument 269 inst = skcipher_alloc_instance_simple(tmpl, tb, &alg); in crypto_kw_create()
|
D | adiantum.c | 500 static int adiantum_create(struct crypto_template *tmpl, struct rtattr **tb) in adiantum_create() argument 514 algt = crypto_get_attr_type(tb); in adiantum_create() 521 streamcipher_name = crypto_attr_alg_name(tb[1]); in adiantum_create() 525 blockcipher_name = crypto_attr_alg_name(tb[2]); in adiantum_create() 529 nhpoly1305_name = crypto_attr_alg_name(tb[3]); in adiantum_create()
|
D | lrw.c | 298 static int create(struct crypto_template *tmpl, struct rtattr **tb) in create() argument 308 algt = crypto_get_attr_type(tb); in create() 315 cipher_name = crypto_attr_alg_name(tb[1]); in create()
|
D | pcbc.c | 153 static int crypto_pcbc_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_pcbc_create() argument 159 inst = skcipher_alloc_instance_simple(tmpl, tb, &alg); in crypto_pcbc_create()
|
D | authenc.c | 383 struct rtattr **tb) in crypto_authenc_create() argument 394 algt = crypto_get_attr_type(tb); in crypto_authenc_create() 401 auth = ahash_attr_alg(tb[1], CRYPTO_ALG_TYPE_HASH, in crypto_authenc_create() 409 enc_name = crypto_attr_alg_name(tb[2]); in crypto_authenc_create()
|
D | authencesn.c | 401 struct rtattr **tb) in crypto_authenc_esn_create() argument 412 algt = crypto_get_attr_type(tb); in crypto_authenc_esn_create() 419 auth = ahash_attr_alg(tb[1], CRYPTO_ALG_TYPE_HASH, in crypto_authenc_esn_create() 427 enc_name = crypto_attr_alg_name(tb[2]); in crypto_authenc_esn_create()
|
D | cfb.c | 200 static int crypto_cfb_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_cfb_create() argument 206 inst = skcipher_alloc_instance_simple(tmpl, tb, &alg); in crypto_cfb_create()
|
D | cts.c | 328 static int crypto_cts_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_cts_create() argument 337 algt = crypto_get_attr_type(tb); in crypto_cts_create() 344 cipher_name = crypto_attr_alg_name(tb[1]); in crypto_cts_create()
|
D | essiv.c | 456 static int essiv_create(struct crypto_template *tmpl, struct rtattr **tb) in essiv_create() argument 474 algt = crypto_get_attr_type(tb); in essiv_create() 478 inner_cipher_name = crypto_attr_alg_name(tb[1]); in essiv_create() 482 shash_name = crypto_attr_alg_name(tb[2]); in essiv_create()
|