Mercurial > dropbear
comparison src/prngs/yarrow.c @ 209:39d5d58461d6 libtomcrypt-orig LTC_1.05
Import of libtomcrypt 1.05
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 06 Jul 2005 03:53:40 +0000 |
parents | 1c15b283127b |
children |
comparison
equal
deleted
inserted
replaced
191:1c15b283127b | 209:39d5d58461d6 |
---|---|
184 | 184 |
185 if ((err = ctr_start(prng->yarrow.cipher, /* what cipher to use */ | 185 if ((err = ctr_start(prng->yarrow.cipher, /* what cipher to use */ |
186 prng->yarrow.pool, /* IV */ | 186 prng->yarrow.pool, /* IV */ |
187 prng->yarrow.pool, ks, /* KEY and key size */ | 187 prng->yarrow.pool, ks, /* KEY and key size */ |
188 0, /* number of rounds */ | 188 0, /* number of rounds */ |
189 CTR_COUNTER_LITTLE_ENDIAN, /* little endian counter */ | |
189 &prng->yarrow.ctr)) != CRYPT_OK) { | 190 &prng->yarrow.ctr)) != CRYPT_OK) { |
190 return err; | 191 return err; |
191 } | 192 } |
192 return CRYPT_OK; | 193 return CRYPT_OK; |
193 } | 194 } |
308 #endif | 309 #endif |
309 } | 310 } |
310 | 311 |
311 #endif | 312 #endif |
312 | 313 |
314 | |
315 /* $Source: /cvs/libtom/libtomcrypt/src/prngs/yarrow.c,v $ */ | |
316 /* $Revision: 1.5 $ */ | |
317 /* $Date: 2005/05/05 14:35:59 $ */ |