Home | History | Annotate | Download | only in keystore

Lines Matching defs:responseCode

497     ResponseCode writeBlob(const char* filename, AES_KEY *aes_key, State state, Entropy* entropy) {
560 ResponseCode readBlob(const char* filename, AES_KEY *aes_key, State state) {
683 ResponseCode initialize(const android::String8& pw, Entropy* entropy) {
687 ResponseCode response = writeMasterKey(pw, entropy);
695 ResponseCode writeMasterKey(const android::String8& pw, Entropy* entropy) {
704 ResponseCode readMasterKey(const android::String8& pw, Entropy* entropy) {
729 ResponseCode response = masterKeyBlob.readBlob(mMasterKeyFile, &passwordAesKey,
897 ResponseCode initialize() {
910 ResponseCode initializeUser(const android::String8& pw, uid_t uid) {
915 ResponseCode writeMasterKey(const android::String8& pw, uid_t uid) {
921 ResponseCode readMasterKey(const android::String8& pw, uid_t uid) {
995 ResponseCode get(const char* filename, Blob* keyBlob, const BlobType type, uid_t uid) {
997 ResponseCode rc = keyBlob->readBlob(filename, userState->getDecryptionKey(),
1025 ResponseCode imported = importKey(keyBlob->getValue(), keyBlob->getLength(), filename,
1043 ResponseCode put(const char* filename, Blob* keyBlob, uid_t uid) {
1076 ResponseCode
1126 ResponseCode getKeyForName(Blob* keyBlob, const android::String8& keyName, const uid_t uid,
1130 ResponseCode responseCode = get(filepath8.string(), keyBlob, type, uid);
1131 if (responseCode == NO_ERROR) {
1132 return responseCode;
1139 responseCode = get(filepath8.string(), keyBlob, type, uid);
1140 if (responseCode == NO_ERROR) {
1141 return responseCode;
1155 return responseCode;
1283 ResponseCode importBlobAsKey(Blob* blob, const char* filename, uid_t uid) {
1311 ResponseCode rc = importKey(pkcs8key.get(), len, filename, uid,
1459 ResponseCode responseCode = mKeyStore->getKeyForName(&keyBlob, name8, callingUid,
1461 if (responseCode != ::NO_ERROR) {
1465 return responseCode;
1521 ResponseCode responseCode = mKeyStore->get(filename.string(), &keyBlob, TYPE_GENERIC,
1523 if (responseCode != ::NO_ERROR) {
1524 return responseCode;
1614 ResponseCode rc = mKeyStore->reset(callingUid) ? ::NO_ERROR : ::SYSTEM_ERROR;
1903 ResponseCode responseCode = mKeyStore->getKeyForName(&keyBlob, name8, callingUid,
1905 if (responseCode != ::NO_ERROR) {
1906 return responseCode;
1957 ResponseCode responseCode = mKeyStore->getKeyForName(&keyBlob, name8, callingUid,
1959 if (responseCode != ::NO_ERROR) {
1960 return responseCode;
2013 ResponseCode responseCode = mKeyStore->getKeyForName(&keyBlob, name8, callingUid,
2015 if (responseCode != ::NO_ERROR) {
2016 return responseCode;
2061 ResponseCode responseCode = mKeyStore->get(filename.string(), &keyBlob, ::TYPE_KEY_PAIR,
2063 if (responseCode != ::NO_ERROR) {
2064 return responseCode;
2067 ResponseCode rc = ::NO_ERROR;
2217 ResponseCode responseCode = mKeyStore->get(sourceFile.string(), &keyBlob, TYPE_ANY,
2219 if (responseCode != ::NO_ERROR) {
2220 return responseCode;
2259 ResponseCode rc = ::NO_ERROR;