Lines Matching refs:i
62 size_t i; in dummy_entropy() local
67 for (i = 0; i < len; i++) { in dummy_entropy()
69 output[i] = (unsigned char) rand(); in dummy_entropy()
243 for (int i = 0; i < 2; i++) { in key_opaque_set_alg_usage() local
244 if (strcmp(algs[i], "rsa-sign-pkcs1") == 0) { in key_opaque_set_alg_usage()
245 *psa_algs[i] = PSA_ALG_RSA_PKCS1V15_SIGN(PSA_ALG_ANY_HASH); in key_opaque_set_alg_usage()
247 } else if (strcmp(algs[i], "rsa-sign-pss") == 0) { in key_opaque_set_alg_usage()
248 *psa_algs[i] = PSA_ALG_RSA_PSS(PSA_ALG_ANY_HASH); in key_opaque_set_alg_usage()
250 } else if (strcmp(algs[i], "rsa-sign-pss-sha256") == 0) { in key_opaque_set_alg_usage()
251 *psa_algs[i] = PSA_ALG_RSA_PSS(PSA_ALG_SHA_256); in key_opaque_set_alg_usage()
253 } else if (strcmp(algs[i], "rsa-sign-pss-sha384") == 0) { in key_opaque_set_alg_usage()
254 *psa_algs[i] = PSA_ALG_RSA_PSS(PSA_ALG_SHA_384); in key_opaque_set_alg_usage()
256 } else if (strcmp(algs[i], "rsa-sign-pss-sha512") == 0) { in key_opaque_set_alg_usage()
257 *psa_algs[i] = PSA_ALG_RSA_PSS(PSA_ALG_SHA_512); in key_opaque_set_alg_usage()
259 } else if (strcmp(algs[i], "rsa-decrypt") == 0) { in key_opaque_set_alg_usage()
260 *psa_algs[i] = PSA_ALG_RSA_PKCS1V15_CRYPT; in key_opaque_set_alg_usage()
262 } else if (strcmp(algs[i], "ecdsa-sign") == 0) { in key_opaque_set_alg_usage()
263 *psa_algs[i] = PSA_ALG_ECDSA(PSA_ALG_ANY_HASH); in key_opaque_set_alg_usage()
265 } else if (strcmp(algs[i], "ecdh") == 0) { in key_opaque_set_alg_usage()
266 *psa_algs[i] = PSA_ALG_ECDH; in key_opaque_set_alg_usage()
268 } else if (strcmp(algs[i], "none") == 0) { in key_opaque_set_alg_usage()
269 *psa_algs[i] = PSA_ALG_NONE; in key_opaque_set_alg_usage()