mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
814c1adec7
commit
10035cb4bc
5 changed files with 9 additions and 9 deletions
|
@ -509,7 +509,7 @@ rb_digest_class_init(VALUE self)
|
|||
* typedef int (*rb_digest_hash_init_func_t)(void *);
|
||||
* typedef void (*rb_digest_hash_update_func_t)(void *, unsigned char *, size_t);
|
||||
* typedef int (*rb_digest_hash_finish_func_t)(void *, unsigned char *);
|
||||
*
|
||||
*
|
||||
* typedef struct {
|
||||
* int api_version;
|
||||
* size_t digest_len;
|
||||
|
@ -651,7 +651,7 @@ rb_digest_base_reset(VALUE self)
|
|||
}
|
||||
|
||||
/*
|
||||
* call-seq:
|
||||
* call-seq:
|
||||
* digest_base.update(string) -> digest_base
|
||||
* digest_base << string -> digest_base
|
||||
*
|
||||
|
|
|
@ -31,7 +31,7 @@ static const rb_digest_metadata_t md5 = {
|
|||
*
|
||||
* == Examples
|
||||
* require 'digest'
|
||||
*
|
||||
*
|
||||
* # Compute a complete digest
|
||||
* Digest::MD5.hexdigest 'abc' #=> "90015098..."
|
||||
*
|
||||
|
|
|
@ -29,7 +29,7 @@ static const rb_digest_metadata_t rmd160 = {
|
|||
*
|
||||
* == Examples
|
||||
* require 'digest'
|
||||
*
|
||||
*
|
||||
* # Compute a complete digest
|
||||
* Digest::RMD160.hexdigest 'abc' #=> "8eb208f7..."
|
||||
*
|
||||
|
|
|
@ -33,7 +33,7 @@ static const rb_digest_metadata_t sha1 = {
|
|||
*
|
||||
* == Examples
|
||||
* require 'digest'
|
||||
*
|
||||
*
|
||||
* # Compute a complete digest
|
||||
* Digest::SHA1.hexdigest 'abc' #=> "a9993e36..."
|
||||
*
|
||||
|
|
|
@ -28,18 +28,18 @@ module Digest
|
|||
#
|
||||
# ==Examples
|
||||
# require 'digest'
|
||||
#
|
||||
#
|
||||
# # Compute a complete digest
|
||||
# Digest::SHA2.hexdigest 'abc' # => "ba7816bf8..."
|
||||
# Digest::SHA2.new(256).hexdigest 'abc' # => "ba7816bf8..."
|
||||
# Digest::SHA256.hexdigest 'abc' # => "ba7816bf8..."
|
||||
#
|
||||
#
|
||||
# Digest::SHA2.new(384).hexdigest 'abc' # => "cb00753f4..."
|
||||
# Digest::SHA384.hexdigest 'abc' # => "cb00753f4..."
|
||||
#
|
||||
#
|
||||
# Digest::SHA2.new(512).hexdigest 'abc' # => "ddaf35a19..."
|
||||
# Digest::SHA512.hexdigest 'abc' # => "ddaf35a19..."
|
||||
#
|
||||
#
|
||||
# # Compute digest by chunks
|
||||
# sha2 = Digest::SHA2.new # =>#<Digest::SHA2:256>
|
||||
# sha2.update "ab"
|
||||
|
|
Loading…
Add table
Reference in a new issue