aboutsummaryrefslogtreecommitdiff
path: root/plugins/crypto-vala/src/cipher.vala
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2019-09-16 23:47:38 +0200
committerMarvin W <git@larma.de>2019-09-16 23:57:48 +0200
commit9daf18f031058ae4c1f13edbf62624bc0345c96f (patch)
tree6dc4d43bc7c4a5681e3814aa95da2c9a24f3268c /plugins/crypto-vala/src/cipher.vala
parent392cb472abcdff9424197c8504175ee79c22dde5 (diff)
downloaddino-9daf18f031058ae4c1f13edbf62624bc0345c96f.tar.gz
dino-9daf18f031058ae4c1f13edbf62624bc0345c96f.zip
Fix warnings and compilation with older valac
Diffstat (limited to 'plugins/crypto-vala/src/cipher.vala')
-rw-r--r--plugins/crypto-vala/src/cipher.vala24
1 files changed, 12 insertions, 12 deletions
diff --git a/plugins/crypto-vala/src/cipher.vala b/plugins/crypto-vala/src/cipher.vala
index b5236314..75e5d26e 100644
--- a/plugins/crypto-vala/src/cipher.vala
+++ b/plugins/crypto-vala/src/cipher.vala
@@ -11,18 +11,18 @@ public class SymmetricCipher {
private static unowned string mode_to_string(GCrypt.Cipher.Mode mode) {
switch (mode) {
- case ECB: return "ECB";
- case CFB: return "CFB";
- case CBC: return "CBC";
- case STREAM: return "STREAM";
- case OFB: return "OFB";
- case CTR: return "CTR";
- case AESWRAP: return "AESWRAP";
- case GCM: return "GCM";
- case POLY1305: return "POLY1305";
- case OCB: return "OCB";
- case CFB8: return "CFB8";
- case XTS: return "XTS";
+ case GCrypt.Cipher.Mode.ECB: return "ECB";
+ case GCrypt.Cipher.Mode.CFB: return "CFB";
+ case GCrypt.Cipher.Mode.CBC: return "CBC";
+ case GCrypt.Cipher.Mode.STREAM: return "STREAM";
+ case GCrypt.Cipher.Mode.OFB: return "OFB";
+ case GCrypt.Cipher.Mode.CTR: return "CTR";
+ case GCrypt.Cipher.Mode.AESWRAP: return "AESWRAP";
+ case GCrypt.Cipher.Mode.GCM: return "GCM";
+ case GCrypt.Cipher.Mode.POLY1305: return "POLY1305";
+ case GCrypt.Cipher.Mode.OCB: return "OCB";
+ case GCrypt.Cipher.Mode.CFB8: return "CFB8";
+ case GCrypt.Cipher.Mode.XTS: return "XTS";
}
return "NONE";
}