This file contains hidden or 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
+(NSString *)createDownloadLinkForVaultID:(NSString *)vaultID blobID:(NSString *)blobID accessKey:(NSString *)accessKey secretKey:(NSString *)secretKey expiration:(NSDate *)expirationDate{ | |
NSString *expiration = @"2015-03-26T01:01:00+00:00"; | |
NSString *key = secretKey; | |
NSString *data = expiration; | |
const char *cKey = [key cStringUsingEncoding:NSUTF8StringEncoding]; | |
const char *cData = [data cStringUsingEncoding:NSUTF8StringEncoding]; | |
unsigned char cHMAC[CC_SHA256_DIGEST_LENGTH]; | |
CCHmac(kCCHmacAlgSHA256, cKey, strlen(cKey), cData, strlen(cData), cHMAC); | |
NSData *hash = [[NSData alloc] initWithBytes:cHMAC length:sizeof(cHMAC)]; |
This file contains hidden or 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
@interface HWQuestionControl : UIControl{ | |
} | |
@property(nonatomic, strong)UILabel *titleLabel; | |
@property(nonatomic, strong)UIImageView *imageView; | |
@end | |
@interface HWQuestionControl (){ | |
This file contains hidden or 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
.container-fixed { | |
bottom: 0; | |
position: fixed; | |
left: 0; | |
right: 0; | |
top: 0; | |
} | |
.container-fixed .col { | |
height: 100%; |