Lines Matching defs:alg
3630 cose_alg_t alg;
3641 get_hash_alg(cose_alg_t alg, size_t *length) {
3645 if (hashs[idx].alg == alg) {
3650 coap_log_debug("get_hash_alg: COSE hash %d not supported\n", alg);
3655 coap_crypto_hash(cose_alg_t alg,
3664 if ((evp_md = get_hash_alg(alg, &hash_length)) == NULL) {
3665 coap_log_debug("coap_crypto_hash: algorithm %d not supported\n", alg);
3713 cose_alg_t alg;
3720 get_cipher_alg(cose_alg_t alg) {
3724 if (ciphers[idx].alg == alg)
3727 coap_log_debug("get_cipher_alg: COSE cipher %d not supported\n", alg);
3758 coap_crypto_check_cipher_alg(cose_alg_t alg) {
3759 return get_cipher_alg(alg) != NULL;
3791 if (!params || ((cipher = get_cipher_alg(params->alg)) == NULL)) {
3795 /* TODO: set evp_md depending on params->alg */
3853 if (!params || ((cipher = get_cipher_alg(params->alg)) == NULL)) {