Home | History | Annotate | Download | only in keystore

Lines Matching full:responsecode

198     ResponseCode encryptBlob(const char* filename, AES_KEY *aes_key, Entropy* entropy) {
243 ResponseCode decryptBlob(const char* filename, AES_KEY *aes_key) {
307 ResponseCode initialize(Value* pw) {
311 ResponseCode response = writeMasterKey(pw);
319 ResponseCode writeMasterKey(Value* pw) {
328 ResponseCode readMasterKey(Value* pw) {
353 ResponseCode response = masterKeyBlob.decryptBlob(MASTER_KEY_FILE, &passwordAesKey);
424 ResponseCode get(const char* filename, Blob* keyBlob) {
428 ResponseCode put(const char* filename, Blob* keyBlob) {
562 static const ResponseCode NO_ERROR_RESPONSE_CODE_SENT = (ResponseCode) 0;
564 static ResponseCode test(KeyStore* keyStore, int sock, uid_t uid, Value*, Value*) {
565 return (ResponseCode) keyStore->getState();
568 static ResponseCode get(KeyStore* keyStore, int sock, uid_t uid, Value* keyName, Value*) {
572 ResponseCode responseCode = keyStore->get(filename, &keyBlob);
573 if (responseCode != NO_ERROR) {
574 return responseCode;
581 static ResponseCode insert(KeyStore* keyStore, int sock, uid_t uid, Value* keyName, Value* val) {
588 static ResponseCode del(KeyStore* keyStore, int sock, uid_t uid, Value* keyName, Value*) {
594 static ResponseCode exist(KeyStore* keyStore, int sock, uid_t uid, Value* keyName, Value*) {
603 static ResponseCode saw(KeyStore* keyStore, int sock, uid_t uid, Value* keyPrefix, Value*) {
624 static ResponseCode reset(KeyStore* keyStore, int sock, uid_t uid, Value*, Value*) {
634 static ResponseCode password(KeyStore* keyStore, int sock, uid_t uid, Value* pw, Value*) {
652 static ResponseCode lock(KeyStore* keyStore, int sock, uid_t uid, Value*, Value*) {
657 static ResponseCode unlock(KeyStore* keyStore, int sock, uid_t uid, Value* pw, Value* unused) {
661 static ResponseCode zero(KeyStore* keyStore, int sock, uid_t uid, Value*, Value*) {
686 ResponseCode (*run)(KeyStore* keyStore, int sock, uid_t uid, Value* param1, Value* param2);
718 static ResponseCode process(KeyStore* keyStore, int sock, uid_t uid, int8_t code) {
736 return (ResponseCode) keyStore->getState();
793 ResponseCode response = process(&keyStore, sock, cred.uid, request);