306 Generate a SHA-1 hash value as defined in |
306 Generate a SHA-1 hash value as defined in |
307 NIST, FIPS PUB 180-1: Secure Hash Standard, April 1995. |
307 NIST, FIPS PUB 180-1: Secure Hash Standard, April 1995. |
308 This may be used as checksum or for generating cryptographic signatures. |
308 This may be used as checksum or for generating cryptographic signatures. |
309 |
309 |
310 Notice (2005): |
310 Notice (2005): |
311 Be aware that SHA-1 is considered broken and may not be appropriate in some applications. |
311 Be aware that SHA-1 is considered broken and may not be appropriate in some applications. |
312 Especially it should no longer be used for security stuff. |
312 Especially it should no longer be used for security stuff. |
313 |
313 |
314 performance: roughly |
314 performance: roughly |
315 47400 Kb/s on a 2Ghz Duo |
315 47400 Kb/s on a 2Ghz Duo |
316 9580 Kb/s on a 400Mhz PIII |
316 9580 Kb/s on a 400Mhz PIII |
317 3970 Kb/s on a 300Mhz Sparc |
317 3970 Kb/s on a 300Mhz Sparc |
318 |
318 |
319 [author:] |
319 [author:] |
320 Stefan Vogel |
320 Stefan Vogel |
321 |
321 |
322 [see also:] |
322 [see also:] |
323 MD5Stream SHA256Stream SHA512Stream |
323 MD5Stream |
|
324 SHA256Stream SHA512Stream (in libcrypt) |
324 |
325 |
325 [class variables:] |
326 [class variables:] |
326 HashSize size of returned hash value |
327 HashSize size of returned hash value |
327 ContextSize (implementation) size of hash context |
328 ContextSize (implementation) size of hash context |
328 |
329 |
329 [instance variables:] |
330 [instance variables:] |
330 hashContext (implementation) |
331 hashContext (implementation) |
331 internal buffer for computation of the hash value |
332 internal buffer for computation of the hash value |
332 " |
333 " |
333 ! |
334 ! |
334 |
335 |
335 examples |
336 examples |
336 " |
337 " |
573 ! ! |
574 ! ! |
574 |
575 |
575 !SHA1Stream class methodsFor:'documentation'! |
576 !SHA1Stream class methodsFor:'documentation'! |
576 |
577 |
577 version |
578 version |
578 ^ '$Header: /cvs/stx/stx/libbasic/SHA1Stream.st,v 1.31 2013-01-21 13:58:22 cg Exp $' |
579 ^ '$Header: /cvs/stx/stx/libbasic/SHA1Stream.st,v 1.32 2013-01-25 16:11:53 cg Exp $' |
579 ! |
580 ! |
580 |
581 |
581 version_CVS |
582 version_CVS |
582 ^ '$Header: /cvs/stx/stx/libbasic/SHA1Stream.st,v 1.31 2013-01-21 13:58:22 cg Exp $' |
583 ^ '$Header: /cvs/stx/stx/libbasic/SHA1Stream.st,v 1.32 2013-01-25 16:11:53 cg Exp $' |
583 ! ! |
584 ! ! |
|
585 |
584 |
586 |
585 SHA1Stream initialize! |
587 SHA1Stream initialize! |