Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
r58Playz committed Mar 8, 2023
1 parent 18d38ac commit 28a6d38
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
policy/policyfile*
Binary file modified policy/patchpolicy
Binary file not shown.
10 changes: 10 additions & 0 deletions policy/patchpolicy.cc
Expand Up @@ -31,6 +31,11 @@ using namespace std;
* lib that i need (it's the next day)
*/

/*
* r58 update 3: i stopped working on this for a while and seem to have another breakthrough!!! woow!!
* i also need to write to owner.key lol
*/


// Signing key test data in DER-encoded PKCS8 format.
const uint8_t kSigningKey[] = {
Expand Down Expand Up @@ -191,6 +196,11 @@ int main(int argc, char *argv[]) {
ofstream output(infile, ios::out | ios::binary);
PFR.SerializeToOstream(&output);
output.close();

ofstream keyout(infile+".key", ios::out | ios::binary);
keyout << pubkey;
keyout.close();
std::cout << "wrote pubkey to file" << std::endl;
} else {
std::cerr << "invalid 2nd argument " << argv[2] << std::endl;
help();
Expand Down

0 comments on commit 28a6d38

Please sign in to comment.