diff options
| author | Marvin W <git@larma.de> | 2026-08-22 19:03:26 +0200 |
|---|---|---|
| committer | Marvin W <git@larma.de> | 2026-10-23 16:58:30 +0200 |
| commit | b0456e13ed35e6ebf684b3a7f4d1cb4b6ec352cc (patch) | |
| tree | 5ecd70a986a08c1cf9984bdda97a9cc8c05255af /crypto-vala/src/gcrypt.vala | |
| parent | 76a91fca2fc7dd5975e8ff0e6695f27c98539dba (diff) | |
Move crypto-vala inside libdino
Diffstat (limited to 'crypto-vala/src/gcrypt.vala')
| -rw-r--r-- | crypto-vala/src/gcrypt.vala | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/crypto-vala/src/gcrypt.vala b/crypto-vala/src/gcrypt.vala deleted file mode 100644 index 1997a5e1..00000000 --- a/crypto-vala/src/gcrypt.vala +++ /dev/null @@ -1,21 +0,0 @@ -namespace Crypto { - -public static void randomize(uint8[] buffer) { - GCrypt.Random.randomize(buffer); -} - -internal void may_throw_gcrypt_error(GCrypt.Error e) throws Error { - if (((int)e) != 0) { - throw new Crypto.Error.GCRYPT(e.to_string()); - } -} - -public SymmetricCipherEncryption create_symmetric_cipher_encryption(string algo_name) throws Error { - return new SymmetricCipherGcrypt(algo_name); -} - -public SymmetricCipherDecryption create_symmetric_cipher_decryption(string algo_name) throws Error { - return new SymmetricCipherGcrypt(algo_name); -} - -} |
