Lines Matching full:keyname
91 static size_t encode_key_length(const android::String8& keyName) {
92 const uint8_t* in = reinterpret_cast<const uint8_t*>(keyName.string());
93 size_t length = keyName.length();
102 static int encode_key(char* out, const android::String8& keyName) {
103 const uint8_t* in = reinterpret_cast<const uint8_t*>(keyName.string());
104 size_t length = keyName.length();
118 android::String8 KeyStore::getKeyName(const android::String8& keyName) {
119 char encoded[encode_key_length(keyName) + 1]; // add 1 for null char
120 encode_key(encoded, keyName);
124 android::String8 KeyStore::getKeyNameForUid(const android::String8& keyName, uid_t uid) {
125 char encoded[encode_key_length(keyName) + 1]; // add 1 for null char
126 encode_key(encoded, keyName);
130 android::String8 KeyStore::getKeyNameForUidWithDir(const android::String8& keyName, uid_t uid) {
131 char encoded[encode_key_length(keyName) + 1]; // add 1 for null char
132 encode_key(encoded, keyName);
486 ResponseCode KeyStore::getKeyForName(Blob* keyBlob, const android::String8& keyName,
488 android::String8 filepath8(getKeyNameForUidWithDir(keyName, uid));
499 filepath8 = getKeyNameForUidWithDir(keyName, euid);
507 android::String8 filename8 = getKeyName(keyName);