diff options
Diffstat (limited to 'ext/sha1/sha1.txt')
-rw-r--r-- | ext/sha1/sha1.txt | 38 |
1 files changed, 22 insertions, 16 deletions
diff --git a/ext/sha1/sha1.txt b/ext/sha1/sha1.txt index 24bf0d4244..dd13993d53 100644 --- a/ext/sha1/sha1.txt +++ b/ext/sha1/sha1.txt @@ -1,33 +1,36 @@ -Class SHA1 +.\" sha1.doc - -*- Indented-Text -*- created at: Thu Mat 17 06:51:50 JST 2001 - A class to implement the SHA1 Secure Hash Algorithm by NIST (the US' - National Institute of Standards and Technology), described in FIPS PUB - 180-1. +** SHA1(Class) + +A class to implement the SHA1 Secure Hash Algorithm by NIST (the US' +National Institute of Standards and Technology), described in FIPS PUB +180-1. Superclass: Object Class Methods: - new([str]) - sha1([str]) + new([str]) + sha1([str]) Creates a new SHA1 object. If a string argument is given, it is added to the object. (see update.) Methods: - clone + clone Copies the SHA1 object. - digest + digest - Returns the SHA1 hash of the added strings as a string of 20 bytes. + Returns the SHA1 hash of the added strings as a string of 20 + bytes. - hexdigest + hexdigest Returns the SHA1 hash of the added strings as a string of 40 - hexadecimal digits. This method is equal to: + hexadecimal digits. This method is equal to: def hexdigest ret = '' @@ -35,8 +38,8 @@ Methods: ret end - update(str) - << str + update(str) + << str Updates the SHA1 object with string str. Repeated calls are equivalent to a single call with the concatenation of all the @@ -45,6 +48,9 @@ Methods: Copyright: - README and sha1-ruby.c are derived from the Ruby source and so fall - under the same license as Ruby. The rest of this package is in the - public domain. + sha1.c is in the public domain. + +------------------------------------------------------- +Local variables: +fill-column: 70 +end: |