<commit_before>//  File: convert_aik_to_openssl.cc
//  Author: <NAME> <<EMAIL>>
//
//  Description: Produces an OpenSSL public key file for the AIK given the AIK
//  blob from the TPM
//
//  Copyright (c) 2013, Google Inc.  All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include <string>

#include <gflags/gflags.h>
#include <glog/logging.h>
#include <keyczar/base/file_util.h>
#include <openssl/pem.h>
#include <openssl/sha.h>
#include <openssl/x509.h>
#include <tss/platform.h>
#include <tss/tspi.h>
#include <tss/tss_defines.h>
#include <tss/tss_error.h>
#include <tss/tss_structs.h>
#include <tss/tss_typedef.h>

#include <trousers/trousers.h>

#include "tao/attestation.pb.h"
#include "tao/tao.h"
#include "tao/tao_domain.h"
#include "tao/util.h"

using std::string;

using keyczar::base::ReadFileToString;
using keyczar::base::WriteStringToFile;

using tao::Statement;
using tao::TaoDomain;

DEFINE_string(config_path, "tao.config", "Location of tao configuration");
DEFINE_string(policy_pass, "<PASSWORD>", "A password for the policy private key");
DEFINE_string(
    aik_blob_file, "tpm/aikblob",
    "A file containing an AIK blob that has been loaded into the TPM");
DEFINE_string(
    aik_attest_file, "tpm/aik.attest",
    "A serialized attestation to the AIK, signed by the policy private key");<commit_msg>Do not put password in code<commit_after>//  File: convert_aik_to_openssl.cc
//  Author: <NAME> <<EMAIL>>
//
//  Description: Produces an OpenSSL public key file for the AIK given the AIK
//  blob from the TPM
//
//  Copyright (c) 2013, Google Inc.  All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include <string>

#include <gflags/gflags.h>
#include <glog/logging.h>
#include <keyczar/base/file_util.h>
#include <openssl/pem.h>
#include <openssl/sha.h>
#include <openssl/x509.h>
#include <tss/platform.h>
#include <tss/tspi.h>
#include <tss/tss_defines.h>
#include <tss/tss_error.h>
#include <tss/tss_structs.h>
#include <tss/tss_typedef.h>

#include <trousers/trousers.h>

#include "tao/attestation.pb.h"
#include "tao/tao.h"
#include "tao/tao_domain.h"
#include "tao/util.h"

using std::string;

using keyczar::base::ReadFileToString;
using keyczar::base::WriteStringToFile;

using tao::Statement;
using tao::TaoDomain;

DEFINE_string(config_path, "tao.config", "Location of tao configuration");
DEFINE_string(policy_pass, "", "A password for the policy private key");
DEFINE_string(
    aik_blob_file, "tpm/aikblob",
    "A file containing an AIK blob that has been loaded into the TPM");
DEFINE_string(
    aik_attest_file, "tpm/aik.attest",
    "A serialized attestation to the AIK, signed by the policy private key");
{'fraction_non_alphanumeric': 0.12452830188679245, 'fraction_numerical': 0.005929919137466307, 'mean_word_length': 4.347262247838617, 'pattern_counts': {'":': 0, '<': 38, '<?xml version=': 0, '>': 38, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7189017', 'n_tokens_mistral': 1283, 'n_tokens_neox': 1244, 'n_words': 405}