*
* @since_tizen 3.0
*
+ * @remarks yaca_simple_encrypt() doesn't support #YACA_BCM_GCM and #YACA_BCM_CCM
+ *
* @remarks The @a ciphertext should be freed using yaca_free()
*
* @param[in] algo Encryption algorithm (select #YACA_ENCRYPT_AES if unsure)
*
* @since_tizen 3.0
*
+ * @remarks yaca_simple_decrypt() doesn't support #YACA_BCM_GCM and #YACA_BCM_CCM
+ *
* @remarks The @a plaintext should be freed using yaca_free()
*
* @param[in] algo Decryption algorithm that was used to encrypt the data
if (plaintext == NULL || plaintext_len == 0 ||
ciphertext == NULL || ciphertext_len == NULL ||
- sym_key == YACA_KEY_NULL)
+ sym_key == YACA_KEY_NULL ||
+ bcm == YACA_BCM_CCM || bcm == YACA_BCM_GCM)
return YACA_ERROR_INVALID_PARAMETER;
ret = yaca_encrypt_initialize(&ctx, algo, bcm, sym_key, iv);
if (ciphertext == NULL || ciphertext_len == 0 ||
plaintext == NULL || plaintext_len == NULL ||
- sym_key == YACA_KEY_NULL)
+ sym_key == YACA_KEY_NULL ||
+ bcm == YACA_BCM_CCM || bcm == YACA_BCM_GCM)
return YACA_ERROR_INVALID_PARAMETER;
ret = yaca_decrypt_initialize(&ctx, algo, bcm, sym_key, iv);