Method: S3SwfUpload::Signature#sha1_ft
- Defined in:
- lib/s3_swf_upload/signature.rb
#sha1_ft(t, b, c, d) ⇒ Object
Perform the appropriate triplet combination function for the current iteration
90 91 92 93 94 95 |
# File 'lib/s3_swf_upload/signature.rb', line 90 def sha1_ft(t, b, c, d) return (b & c) | ((~b) & d) if(t < 20) return b ^ c ^ d if(t < 40) return (b & c) | (b & d) | (c & d) if(t < 60) return b ^ c ^ d; end |