This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
const PACKAGE_NAME = 'com.your.bundle_id'; | |
const APPLE_TEAM_ID = 'ABCDEFGHIJK'; // 11 alphanumeric team ID | |
const ALLOW_DEV_ENVIRONMENT = true; | |
use CBOR\Decoder; | |
use CBOR\StringStream; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <openssl/evp.h> | |
#include <openssl/aes.h> | |
#include <openssl/bio.h> | |
#include <openssl/ssl.h> | |
#include <openssl/rsa.h> | |
void encrypt(EVP_PKEY **pub_key, FILE *ifp, FILE *ofp, unsigned char **key, int *ekl, unsigned char *ivec) { |