crypt-blowfish.c (3b8f08459569bf0faa21473e5cec2491e95c9349) | crypt-blowfish.c (185e05ee1a28a5fd897416874d5c71eb69198341) |
---|---|
1/* $OpenBSD: bcrypt.c,v 1.29 2014/02/24 19:45:43 tedu Exp $ */ 2 3/* 4 * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 135 unchanged lines hidden (view full) --- 144 size_t key_len; 145 u_int8_t salt_len, logr, minr; 146 u_int8_t ciphertext[4 * BCRYPT_BLOCKS] = "OrpheanBeholderScryDoubt"; 147 u_int8_t csalt[BCRYPT_MAXSALT]; 148 u_int32_t cdata[BCRYPT_BLOCKS]; 149 char arounds[3]; 150 151 /* Defaults */ | 1/* $OpenBSD: bcrypt.c,v 1.29 2014/02/24 19:45:43 tedu Exp $ */ 2 3/* 4 * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 135 unchanged lines hidden (view full) --- 144 size_t key_len; 145 u_int8_t salt_len, logr, minr; 146 u_int8_t ciphertext[4 * BCRYPT_BLOCKS] = "OrpheanBeholderScryDoubt"; 147 u_int8_t csalt[BCRYPT_MAXSALT]; 148 u_int32_t cdata[BCRYPT_BLOCKS]; 149 char arounds[3]; 150 151 /* Defaults */ |
152 minr = 'a'; | 152 minr = 'b'; |
153 logr = BCRYPT_MINLOGROUNDS; 154 rounds = 1U << logr; 155 156 if (*salt == '$') { 157 /* Discard "$" identifier */ 158 salt++; 159 160 if (*salt > BCRYPT_VERSION) { --- 165 unchanged lines hidden --- | 153 logr = BCRYPT_MINLOGROUNDS; 154 rounds = 1U << logr; 155 156 if (*salt == '$') { 157 /* Discard "$" identifier */ 158 salt++; 159 160 if (*salt > BCRYPT_VERSION) { --- 165 unchanged lines hidden --- |