Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b1042e7 authored by Kenny Root's avatar Kenny Root Committed by Android Git Automerger
Browse files

am 2570d0ad: Merge "keystore: remove old APIs" into jb-mr2-dev

* commit '2570d0ad':
  keystore: remove old APIs
parents 7919ea98 2570d0ad
Loading
Loading
Loading
Loading
+0 −24
Original line number Diff line number Diff line
@@ -103,14 +103,6 @@ public class KeyStore {
        }
    }

    public boolean put(String key, byte[] value, int uid) {
        return put(key, value, uid, FLAG_ENCRYPTED);
    }

    public boolean put(String key, byte[] value) {
        return put(key, value, UID_SELF);
    }

    public boolean delete(String key, int uid) {
        try {
            return mBinder.del(key, uid) == NO_ERROR;
@@ -205,14 +197,6 @@ public class KeyStore {
        }
    }

    public boolean generate(String key, int uid) {
        return generate(key, uid, FLAG_ENCRYPTED);
    }

    public boolean generate(String key) {
        return generate(key, UID_SELF);
    }

    public boolean importKey(String keyName, byte[] key, int uid, int flags) {
        try {
            return mBinder.import_key(keyName, key, uid, flags) == NO_ERROR;
@@ -222,14 +206,6 @@ public class KeyStore {
        }
    }

    public boolean importKey(String keyName, byte[] key, int uid) {
        return importKey(keyName, key, uid, FLAG_ENCRYPTED);
    }

    public boolean importKey(String keyName, byte[] key) {
        return importKey(keyName, key, UID_SELF);
    }

    public byte[] getPubkey(String key) {
        try {
            return mBinder.get_pubkey(key);