Lines Matching refs:algorithm
41 NSNumber *algorithm = parseAlgorithm([query objectForKey:@"algorithm"]);
52 if(![self hasValidType:_type key:key issuer:issuer counter:counter algorithm:algorithm digits:_digits period:period backgroundColor:backgroundColor]) {
61 algorithm:algorithm.intValue
142 algorithm:(NSNumber *)algorithm
146 if (!algorithm || key.length == 0 || !digits || (issuer.length == 0) || !isValidBackgroundColor(backgroundColor)) {
176 algorithm:(CCHmacAlgorithm)algorithm
185 return [FRAHotpOathMechanism mechanismWithDatabase:database identityModel:identityModel secretKey:key HMACAlgorithm:algorithm codeLength:codeLength counter:counter];
187 return [FRATotpOathMechanism mechanismWithDatabase:database identityModel:identityModel secretKey:key HMACAlgorithm:algorithm codeLength:codeLength period:period];
241 static NSNumber* parseAlgorithm(const NSString *algorithm) {
242 if (algorithm.length == 0) {
251 return [supportedAlgorithms valueForKey:[algorithm lowercaseString]];