Searched refs:sdata (Results 1 – 10 of 10) sorted by relevance
/optee_os/core/drivers/crypto/crypto_api/acipher/ |
A D | ecc.c | 171 sdata.algo = algo; in ecc_sign() 172 sdata.key = key; in ecc_sign() 173 sdata.size_sec = size_bytes; in ecc_sign() 179 ret = ecc->sign(&sdata); in ecc_sign() 234 sdata.algo = algo; in ecc_verify() 235 sdata.key = key; in ecc_verify() 236 sdata.size_sec = size_bytes; in ecc_verify() 242 ret = ecc->verify(&sdata); in ecc_verify() 302 sdata.key_pub = public_key; in ecc_shared_secret() 303 sdata.size_sec = size_bytes; in ecc_shared_secret() [all …]
|
A D | dsa.c | 159 sdata.algo = algo; in crypto_acipher_dsa_sign() 160 sdata.key = key; in crypto_acipher_dsa_sign() 161 sdata.size_sec = n_bytes; in crypto_acipher_dsa_sign() 163 sdata.message.length = msg_len; in crypto_acipher_dsa_sign() 164 sdata.signature.data = sig; in crypto_acipher_dsa_sign() 165 sdata.signature.length = *sig_len; in crypto_acipher_dsa_sign() 213 sdata.algo = algo; in crypto_acipher_dsa_verify() 214 sdata.key = key; in crypto_acipher_dsa_verify() 215 sdata.size_sec = n_bytes; in crypto_acipher_dsa_verify() 217 sdata.message.length = msg_len; in crypto_acipher_dsa_verify() [all …]
|
A D | dh.c | 63 struct drvcrypt_secret_data sdata = { }; in crypto_acipher_dh_shared_secret() local 74 sdata.secret.length = crypto_bignum_num_bytes(public_key); in crypto_acipher_dh_shared_secret() 75 secret_buf = malloc(sdata.secret.length); in crypto_acipher_dh_shared_secret() 80 sdata.key_priv = private_key; in crypto_acipher_dh_shared_secret() 81 sdata.key_pub = public_key; in crypto_acipher_dh_shared_secret() 82 sdata.secret.data = secret_buf; in crypto_acipher_dh_shared_secret() 84 ret = dh->shared_secret(&sdata); in crypto_acipher_dh_shared_secret() 87 sdata.secret.length, secret); in crypto_acipher_dh_shared_secret()
|
/optee_os/core/drivers/crypto/caam/acipher/ |
A D | caam_ecc.c | 330 struct ecc_keypair *inkey = sdata->key; in do_sign() 364 sdata->message.length); in do_sign() 373 ECC_DUMPBUF("Message", sdata->message.data, sdata->message.length); in do_sign() 383 sign_len = ROUNDUP(sdata->size_sec, 16) + sdata->size_sec; in do_sign() 395 ROUNDUP(sdata->size_sec, 16)); in do_sign() 435 sdata->signature.length); in do_sign() 498 sdata->message.length); in do_verify() 513 sdata->signature.length); in do_verify() 522 sdata->size_sec); in do_verify() 640 sdata->secret.length, sdata->size_sec); in do_shared_secret() [all …]
|
A D | caam_dsa.c | 489 struct dsa_keypair *inkey = sdata->key; in do_sign() 518 sdata->message.length); in do_sign() 527 DSA_DUMPBUF("Message", sdata->message.data, sdata->message.length); in do_sign() 537 sign_len = ROUNDUP(sdata->size_sec, 16) + sdata->size_sec; in do_sign() 540 sdata->signature.length, sign_len); in do_sign() 549 ROUNDUP(sdata->size_sec, 16)); in do_sign() 594 sign_c.orig.length = 2 * sdata->size_sec; in do_sign() 598 sdata->signature.length); in do_sign() 658 sdata->message.length); in do_verify() 673 sdata->signature.length); in do_verify() [all …]
|
A D | caam_dh.c | 378 static TEE_Result do_shared_secret(struct drvcrypt_secret_data *sdata) in do_shared_secret() argument 382 struct dh_keypair *inkeypair = sdata->key_priv; in do_shared_secret() 403 ret = caam_dmaobj_output_sgtbuf(&secret, sdata->secret.data, in do_shared_secret() 404 sdata->secret.length, in do_shared_secret() 405 sdata->secret.length); in do_shared_secret() 422 retstatus = do_keypub_conv(&caam_dh_key, sdata->key_pub); in do_shared_secret() 457 sdata->secret.length = caam_dmaobj_copy_to_orig(&secret); in do_shared_secret() 459 DH_DUMPBUF("Secret", sdata->secret.data, sdata->secret.length); in do_shared_secret()
|
/optee_os/core/lib/libtomcrypt/src/misc/ssh/ |
A D | ssh_encode_sequence_multi.c | 34 const char *sdata; in ssh_encode_sequence_multi() local 62 sdata = va_arg(args, char*); in ssh_encode_sequence_multi() 64 size += strlen(sdata); in ssh_encode_sequence_multi() 122 sdata = va_arg(args, char*); in ssh_encode_sequence_multi() 123 size = strlen(sdata); in ssh_encode_sequence_multi() 126 XMEMCPY(out, sdata, size); in ssh_encode_sequence_multi()
|
A D | ssh_decode_sequence_multi.c | 34 char *sdata; in ssh_decode_sequence_multi() local 119 sdata = va_arg(args, char*); in ssh_decode_sequence_multi() 126 XSTRNCPY(sdata, (const char *)in, size); in ssh_decode_sequence_multi() 127 sdata[size] = '\0'; /* strncpy doesn't NUL-terminate */ in ssh_decode_sequence_multi() 129 *sdata = '\0'; in ssh_decode_sequence_multi()
|
/optee_os/core/drivers/crypto/se050/core/ |
A D | ecc.c | 604 sdata->key_pub, in do_shared_secret() 605 sdata->secret.data, in do_shared_secret() 611 return sign(sdata->algo, in do_sign() 612 sdata->key, in do_sign() 613 sdata->message.data, in do_sign() 614 sdata->message.length, in do_sign() 615 sdata->signature.data, in do_sign() 621 return verify(sdata->algo, in do_verify() 622 sdata->key, in do_verify() 623 sdata->message.data, in do_verify() [all …]
|
/optee_os/core/drivers/crypto/crypto_api/include/ |
A D | drvcrypt_acipher.h | 149 TEE_Result (*sign)(struct drvcrypt_sign_data *sdata); 151 TEE_Result (*verify)(struct drvcrypt_sign_data *sdata); 153 TEE_Result (*shared_secret)(struct drvcrypt_secret_data *sdata); 176 TEE_Result (*shared_secret)(struct drvcrypt_secret_data *sdata); 203 TEE_Result (*sign)(struct drvcrypt_sign_data *sdata, size_t l_bytes, 206 TEE_Result (*verify)(struct drvcrypt_sign_data *sdata, size_t l_bytes,
|
Completed in 14 milliseconds