Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: third_party/fips181/fips181.h

Issue 308503002: [Password Generation] Start using pronouncable passwords (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unnecessary includes Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/fips181/convert.cc ('k') | third_party/fips181/fips181.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/fips181/fips181.h
diff --git a/third_party/fips181/fips181.h b/third_party/fips181/fips181.h
index bc9270b5ef7cdeb72ecf6f99db1d14f5d1cffc40..524da59beb6a353a126b0e371be7a886131a0bc2 100644
--- a/third_party/fips181/fips181.h
+++ b/third_party/fips181/fips181.h
@@ -41,10 +41,6 @@
#include "owntypes.h"
#endif /* APG_OWN_TYPES_H */
-#ifndef APG_RND_H
-#include "rnd.h"
-#endif /* APG_RND_H */
-
#define RULE_SIZE (sizeof(rules)/sizeof(struct unit))
#define ALLOWED(flag) (digram[units_in_syllable[current_unit -1]][unit] & (flag))
@@ -67,17 +63,21 @@
#define NOT_END 01
#define ANY_COMBINATION 0
-extern int gen_pron_pass (char *word, char *hyphenated_word, USHORT minlen,
- USHORT maxlen, unsigned int pass_mode);
+#define S_NB 0x01 /* Numeric */
+#define S_SS 0x02 /* Special */
+#define S_CL 0x04 /* Capital */
+#define S_SL 0x08 /* Small */
+#define S_RS 0x10 /* Restricted Symbol*/
+extern int gen_pron_pass (char *word, char* hypenated_word,
+ USHORT minlen, USHORT maxlen, unsigned int pass_mode);
USHORT random_unit (USHORT type);
USHORT get_random (USHORT minlen, USHORT maxlen);
boolean have_initial_y (USHORT *units, USHORT unit_size);
boolean illegal_placement (USHORT *units, USHORT pwlen);
boolean improper_word (USHORT *units, USHORT word_size);
boolean have_final_split (USHORT *units, USHORT unit_size);
-int gen_word (char *word, char *hyphenated_word, USHORT pwlen,
- unsigned int pass_mode);
+int gen_word (char *word, char *hyphenated_word, USHORT pwlen, unsigned int pass_mode);
char *gen_syllable(char *syllable, USHORT pwlen, USHORT *units_in_syllable,
USHORT *syllable_length);
« no previous file with comments | « third_party/fips181/convert.cc ('k') | third_party/fips181/fips181.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698