YACA_ERROR_NONE = TIZEN_ERROR_NONE,
YACA_ERROR_INVALID_ARGUMENT = TIZEN_ERROR_INVALID_PARAMETER,
- YACA_ERROR_NOT_IMPLEMENTED = TIZEN_ERROR_YACA | 0x01,
YACA_ERROR_INTERNAL = TIZEN_ERROR_YACA | 0x02,
YACA_ERROR_TOO_BIG_ARGUMENT = TIZEN_ERROR_YACA | 0x03,
YACA_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_YACA | 0x04,
case YACA_KEY_TYPE_DH_PUB:
case YACA_KEY_TYPE_EC_PRIV:
case YACA_KEY_TYPE_EC_PUB:
- ret = YACA_ERROR_NOT_IMPLEMENTED;
- goto free_bio;
-
+ //TODO NOT_IMPLEMENTED
default:
ret = YACA_ERROR_INVALID_ARGUMENT;
goto free_bio;
case YACA_KEY_TYPE_DH_PUB:
case YACA_KEY_TYPE_EC_PRIV:
case YACA_KEY_TYPE_EC_PUB:
- ret = YACA_ERROR_NOT_IMPLEMENTED;
- goto free_bio;
-
+ //TODO NOT_IMPLEMENTED
default:
ret = YACA_ERROR_INVALID_ARGUMENT;
goto free_bio;
case YACA_KEY_TYPE_DH_PRIV:
case YACA_KEY_TYPE_EC_PUB:
case YACA_KEY_TYPE_EC_PRIV:
- return YACA_ERROR_NOT_IMPLEMENTED;
+ //TODO NOT_IMPLEMENTED
default:
return YACA_ERROR_INVALID_ARGUMENT;
}
evp_key != NULL)
return export_evp(evp_key, key_file_fmt, password, data, data_len);
- if (key_fmt == YACA_KEY_FORMAT_PKCS8)
- return YACA_ERROR_NOT_IMPLEMENTED;
+ if (key_fmt == YACA_KEY_FORMAT_PKCS8) {
+ //TODO NOT_IMPLEMENTED
+ }
return YACA_ERROR_INVALID_ARGUMENT;
}
case YACA_KEY_TYPE_DH_PRIV:
case YACA_KEY_TYPE_EC_PRIV:
- return YACA_ERROR_NOT_IMPLEMENTED;
+ //TODO NOT_IMPLEMENTED
default:
return YACA_ERROR_INVALID_ARGUMENT;
}
const yaca_key_h pub_key,
yaca_key_h *sym_key)
{
- return YACA_ERROR_NOT_IMPLEMENTED;
+ //TODO NOT_IMPLEMENTED
+ return YACA_ERROR_INVALID_ARGUMENT;
}
API int yaca_key_derive_kea(const yaca_key_h prv_key,
const yaca_key_h pub_key_auth,
yaca_key_h *sym_key)
{
- return YACA_ERROR_NOT_IMPLEMENTED;
+ //TODO NOT_IMPLEMENTED
+ return YACA_ERROR_INVALID_ARGUMENT;
}
API int yaca_key_derive_pbkdf2(const char *password,
case YACA_KEY_TYPE_DSA_PRIV:
break;
case YACA_KEY_TYPE_EC_PRIV:
- return YACA_ERROR_NOT_IMPLEMENTED;
+ //TODO NOT_IMPLEMENTED
default:
return YACA_ERROR_INVALID_ARGUMENT;
}
case YACA_KEY_TYPE_DSA_PUB:
break;
case YACA_KEY_TYPE_EC_PUB:
- return YACA_ERROR_NOT_IMPLEMENTED;
+ //TODO NOT_IMPLEMENTED
default:
return YACA_ERROR_INVALID_ARGUMENT;
}