2019-09-10 18:55:24 +00:00
|
|
|
namespace Crypto {
|
|
|
|
|
|
|
|
public errordomain Error {
|
|
|
|
ILLEGAL_ARGUMENTS,
|
|
|
|
GCRYPT
|
|
|
|
}
|
|
|
|
|
2019-09-16 21:47:38 +00:00
|
|
|
internal void may_throw_gcrypt_error(GCrypt.Error e) throws Error {
|
2019-09-10 18:55:24 +00:00
|
|
|
if (((int)e) != 0) {
|
|
|
|
throw new Crypto.Error.GCRYPT(e.to_string());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|