in source/kms.c [63:86]
static bool s_aws_encryption_algorithm_from_aws_string(
const struct aws_string *str,
enum aws_encryption_algorithm *encryption_algorithm) {
AWS_PRECONDITION(aws_string_c_str(str));
AWS_PRECONDITION(encryption_algorithm);
if (aws_string_compare(str, s_ea_symmetric_default) == 0) {
*encryption_algorithm = AWS_EA_SYMMETRIC_DEFAULT;
return true;
}
if (aws_string_compare(str, s_ea_rsaes_oaep_sha_1) == 0) {
*encryption_algorithm = AWS_EA_RSAES_OAEP_SHA_1;
return true;
}
if (aws_string_compare(str, s_ea_rsaes_oaep_sha_256) == 0) {
*encryption_algorithm = AWS_EA_RSAES_OAEP_SHA_256;
return true;
}
return false;
}