Lines Matching defs:info
126 static int aead_prepare(const char *info,
134 if (strcmp(info, "aes128-gcm") == 0) {
137 } else if (strcmp(info, "aes256-gcm") == 0) {
140 } else if (strcmp(info, "aes128-gcm_8") == 0) {
143 } else if (strcmp(info, "chachapoly") == 0) {
172 const mbedtls_cipher_info_t *info = mbedtls_cipher_info_from_type(type);
173 const char *ciph = mbedtls_cipher_info_get_name(info);
220 * AEAD demo: set up key/alg, print out info, encrypt messages.
222 static int aead_demo(const char *info)
231 CHK(aead_prepare(info, &ctx, &tag_len));