AGUtil Class Reference
Inherits from | NSObject |
Declared in | AGUtil.h AGUtil.m |
Class Methods
hexString:
Convert the provided data to hex.
+ (NSString *)hexString:(NSData *)data
Parameters
- data
The NSData to be converted to hex representation.
Return Value
An NSString object with the result of the conversion.
Discussion
Convert the provided data to hex.
Declared In
AGUtil.h
hexStringToBytes:
Convert the provided hex string to bytes.
+ (NSData *)hexStringToBytes:(NSString *)data
Parameters
- data
The hex string to be converted.
Return Value
An NSData object with the result of the conversion.
Discussion
Convert the provided hex string to bytes.
Declared In
AGUtil.h
prependZeros:msg:
Append zeros to the message provided.
+ (NSMutableData *)prependZeros:(NSUInteger)n msg:(NSData *)message
Parameters
- n
Number of zeros.
- message
The provided message.
Return Value
An NSData object that holds the result.
Discussion
Append zeros to the message provided.
Declared In
AGUtil.h