Mistake on this page?
Report an issue in GitHub or email us
compliance_crypto/test_c023/test_data.h
Go to the documentation of this file.
1 /** @file
2  * Copyright (c) 2019, Arm Limited or its affiliates. All rights reserved.
3  * SPDX-License-Identifier : Apache-2.0
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16 **/
17 
18 #include "val_crypto.h"
19 
20 typedef struct {
21  char test_desc[75];
22  psa_key_usage_t usage;
23  psa_algorithm_t key_alg;
24 } test_data;
25 
26 static test_data check1[] = {
27 #ifdef ARCH_TEST_HKDF
28 #ifdef ARCH_TEST_SHA256
29 {"Test psa_key_policy_get_usage with usage as encrypt\n",
30  PSA_KEY_USAGE_ENCRYPT, PSA_ALG_HKDF(PSA_ALG_SHA_256),
31 },
32 
33 {"Test psa_key_policy_get_usage with usage as decrypt\n",
34  PSA_KEY_USAGE_DECRYPT, PSA_ALG_HKDF(PSA_ALG_SHA_256),
35 },
36 
37 {"Test psa_key_policy_get_usage with usage as derive\n",
38  PSA_KEY_USAGE_DERIVE, PSA_ALG_HKDF(PSA_ALG_SHA_256),
39 },
40 
41 {"Test psa_key_policy_get_usage with usage as export\n",
42  PSA_KEY_USAGE_EXPORT, PSA_ALG_HKDF(PSA_ALG_SHA_256),
43 },
44 
45 {"Test psa_key_policy_get_usage with usage as sign\n",
46  PSA_KEY_USAGE_SIGN, PSA_ALG_HKDF(PSA_ALG_SHA_256),
47 },
48 
49 {"Test psa_key_policy_get_usage with usage as verify\n",
50  PSA_KEY_USAGE_VERIFY, PSA_ALG_HKDF(PSA_ALG_SHA_256),
51 },
52 #endif
53 #endif
54 
55 };
Copyright (c) 2018-2019, Arm Limited or its affiliates.
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.