//
//  %@.h
//
//  Autogenerated by AtlasSecurity on %@.
//  Copyright © 2019 Apple Inc. All rights reserved.
//

#define %@PrivateBytes %@
#define %@PublicBytes %@
#define %@SymmetricBytes %@

#define %@GetKeyData(name, key) \
do { \
    uint8_t const key_array[] = { name }; \
    *key = [NSData dataWithBytes:key_array length:sizeof(key_array)]; \
} while(0)

#define %@GetKeyString(name, key) \
do { \
    uint8_t const key_array[] = { name }; \
    *key = [[NSString alloc] initWithBytes:key_array length:sizeof(key_array) encoding:NSUTF8StringEncoding]; \
} while(0)

#define %@PublicKey(key) %@GetKeyData(%@PublicBytes, key)
#define %@PrivateKey(key) %@GetKeyData(%@PrivateBytes, key)
#define %@SymmetricKey(key) %@GetKeyString(%@SymmetricBytes, key)
