Lines Matching defs:hash

821     /* If the policies are from the same hash-and-sign family, check
919 /* If policy_alg is a hash-and-sign with a wildcard for the hash,
920 * and requested_alg is the same hash-and-sign family with any hash,
2334 /* Don't require hash implementations to behave correctly on a
2353 uint8_t *hash,
2365 operation, hash, hash_size, hash_length);
2377 LOCAL_OUTPUT_DECLARE(hash_external, hash);
2379 LOCAL_OUTPUT_ALLOC(hash_external, hash_size, hash);
2380 status = psa_hash_finish_internal(operation, hash, hash_size, hash_length);
2385 LOCAL_OUTPUT_FREE(hash_external, hash);
2396 LOCAL_INPUT_DECLARE(hash_external, hash);
2412 LOCAL_INPUT_ALLOC(hash_external, hash_length, hash);
2413 if (mbedtls_ct_memcmp(hash, actual_hash, actual_hash_length) != 0) {
2422 LOCAL_INPUT_FREE(hash_external, hash);
2433 LOCAL_OUTPUT_DECLARE(hash_external, hash);
2441 LOCAL_OUTPUT_ALLOC(hash_external, hash_size, hash);
2443 hash, hash_size, hash_length);
2449 LOCAL_OUTPUT_FREE(hash_external, hash);
2462 LOCAL_INPUT_DECLARE(hash_external, hash);
2482 LOCAL_INPUT_ALLOC(hash_external, hash_length, hash);
2483 if (mbedtls_ct_memcmp(hash, actual_hash, actual_hash_length) != 0) {
2491 LOCAL_INPUT_FREE(hash_external, hash);
2668 /* Don't require hash implementations to behave correctly on a
2960 * to be a hash.) */
3063 uint8_t hash[PSA_HASH_MAX_SIZE];
3068 hash, sizeof(hash), &hash_length);
3076 alg, hash, hash_length,
3122 uint8_t hash[PSA_HASH_MAX_SIZE];
3127 hash, sizeof(hash), &hash_length);
3135 alg, hash, hash_length,
3170 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length,
3181 alg, hash, hash_length,
3195 alg, hash, hash_length,
3206 (void) hash;
3224 LOCAL_INPUT_DECLARE(hash_external, hash);
3227 LOCAL_INPUT_ALLOC(hash_external, hash_length, hash);
3229 status = psa_sign_internal(key, 0, alg, hash, hash_length, signature,
3235 LOCAL_INPUT_FREE(hash_external, hash);
3244 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length,
3255 alg, hash, hash_length,
3269 alg, hash, hash_length,
3280 (void) hash;
3296 LOCAL_INPUT_DECLARE(hash_external, hash);
3299 LOCAL_INPUT_ALLOC(hash_external, hash_length, hash);
3301 status = psa_verify_internal(key, 0, alg, hash, hash_length, signature,
3307 LOCAL_INPUT_FREE(hash_external, hash);
3487 LOCAL_INPUT_DECLARE(hash_external, hash);
3514 LOCAL_INPUT_ALLOC(hash_external, hash_length, hash);
3522 hash, hash_length);
3536 LOCAL_INPUT_FREE(hash_external, hash);
3646 LOCAL_INPUT_DECLARE(hash_external, hash);
3670 LOCAL_INPUT_ALLOC(hash_external, hash_length, hash);
3679 alg, hash, hash_length,
3696 LOCAL_INPUT_FREE(hash_external, hash);
3812 const uint8_t *hash, size_t hash_length)
3851 /* We only need to store the same length of hash as the private key size
3856 if (required_hash_length > sizeof(operation->hash)) {
3861 memcpy(operation->hash, hash, required_hash_length);
3871 (void) hash;
3914 operation->hash,
3930 operation->hash,
4026 const uint8_t *hash, size_t hash_length,
4093 /* We only need to store the same length of hash as the private key size
4098 if (required_hash_length > sizeof(operation->hash)) {
4103 memcpy(operation->hash, hash, required_hash_length);
4112 (void) hash;
4141 operation->hash,
5692 * PRF(secret, label, seed) = P_<hash>(secret, label + seed)
6577 /* Make sure that hash_alg is a supported hash algorithm. Otherwise
8406 PSA_ALG_IS_HASH(cipher_suite->hash) == 0) {