Lines Matching defs:key
516 * Generic EC key
538 static int ecdsa_verify_psa(unsigned char *key, size_t key_len,
561 status = psa_import_key(&attributes, key, key_len, &key_id);
608 unsigned char key[MBEDTLS_PK_MAX_EC_PUBKEY_RAW_LEN];
623 status = psa_export_public_key(pk->priv_id, key, sizeof(key), &key_len);
628 return ecdsa_verify_psa(key, key_len, curve, curve_bits,
654 unsigned char key[MBEDTLS_PSA_MAX_EC_PUBKEY_LENGTH];
661 &key_len, key, sizeof(key));
666 return ecdsa_verify_psa(key, key_len, curve, curve_bits,
693 * Instead of extracting key's properties in order to check which kind of ECDSA
991 // From now on prv_key_buf is used to store the public key of prv.
1119 .verify_func = ecdsa_verify_wrap, /* Compatible key structures */
1124 .sign_func = ecdsa_sign_wrap, /* Compatible key structures */
1148 * EC key restricted to ECDH
1159 .get_bitlen = eckey_get_bitlen, /* Same underlying key structure */
1174 .ctx_alloc_func = eckey_alloc_wrap, /* Same underlying key structure */
1175 .ctx_free_func = eckey_free_wrap, /* Same underlying key structure */
1177 .debug_func = eckey_debug, /* Same underlying key structure */
1241 .get_bitlen = eckey_get_bitlen, /* Compatible key structures */
1244 .verify_func = ecdsa_verify_wrap, /* Compatible key structures */
1249 .sign_func = ecdsa_sign_wrap, /* Compatible key structures */
1261 .check_pair_func = eckey_check_pair_wrap, /* Compatible key structures */
1266 .ctx_alloc_func = eckey_alloc_wrap, /* Compatible key structures */
1267 .ctx_free_func = eckey_free_wrap, /* Compatible key structures */
1269 .debug_func = eckey_debug, /* Compatible key structures */
1288 return 8 * rsa_alt->key_len_func(rsa_alt->key);
1304 *sig_len = rsa_alt->key_len_func(rsa_alt->key);
1312 return rsa_alt->sign_func(rsa_alt->key, f_rng, p_rng,
1326 if (ilen != rsa_alt->key_len_func(rsa_alt->key)) {
1330 return rsa_alt->decrypt_func(rsa_alt->key,