Lines Matching refs:vectors
116 vectors = []
141 vectors.append(KeyedHashVector(msg, md, key))
146 vectors.append(HashVector(msg, md))
151 return vectors
164 vectors = []
241 vectors.append(
285 return vectors
355 vectors = []
363 vectors.append({'p': int(line.split("=")[1], 16)})
365 vectors[-1]['q'] = int(line.split("=")[1], 16)
367 vectors[-1]['g'] = int(line.split("=")[1], 16)
368 elif line.startswith("X") and 'x' not in vectors[-1]:
369 vectors[-1]['x'] = int(line.split("=")[1], 16)
370 elif line.startswith("X") and 'x' in vectors[-1]:
371 vectors.append({'p': vectors[-1]['p'],
372 'q': vectors[-1]['q'],
373 'g': vectors[-1]['g'],
377 vectors[-1]['y'] = int(line.split("=")[1], 16)
379 return vectors
386 vectors = []
407 vectors.append({'p': int(value, 16),
410 vectors[-1]['q'] = int(value, 16)
412 vectors[-1]['g'] = int(value, 16)
413 elif name == "Msg" and 'msg' not in vectors[-1]:
415 vectors[-1]['msg'] = binascii.unhexlify(hexmsg)
416 elif name == "Msg" and 'msg' in vectors[-1]:
418 vectors.append({'p': vectors[-1]['p'],
419 'q': vectors[-1]['q'],
420 'g': vectors[-1]['g'],
422 vectors[-1]['digest_algorithm'],
425 vectors[-1]['x'] = int(value, 16)
427 vectors[-1]['y'] = int(value, 16)
429 vectors[-1]['r'] = int(value, 16)
431 vectors[-1]['s'] = int(value, 16)
433 vectors[-1]['result'] = value.split("(")[0].strip()
435 return vectors
465 vectors = []
478 vectors.append(key_data)
492 vectors.append(key_data)
494 return vectors
501 vectors = []
518 vectors.append(data)
543 vectors.append(data)
544 return vectors
554 vectors = []
593 vectors.append(data)
603 return vectors
623 vectors = []
704 vectors.append(data)
711 return vectors
719 vectors = []
756 vectors.append(vector)
759 return vectors
766 vectors = []
788 vectors.append(test_data)
796 return vectors