Class ::crypto::HashFunctions (public)
::nx::Class ::crypto::HashFunctions
Defined in
- Testcases:
-
No testcase defined.
Source code:
namespace eval ::crypto {}
::nsf::object::alloc ::nx::Class ::crypto::HashFunctions {}
::crypto::HashFunctions public method readfile filename {
set F [open $filename]
fconfigure $F -encoding binary -translation binary
while (1) {
set block [read $F 32768]
:add $block
if {[string length $block] < 32768} {
break
}
}
close $F
return [:get]
}
::nx::slotObj -container slot ::crypto::HashFunctions
::nsf::object::alloc ::nx::VariableSlot ::crypto::HashFunctions::slot::digest {set :accessor none
set :configurable true
set :convert false
set :default sha256
set :defaultmethods {}
set :disposition alias
set :domain ::crypto::HashFunctions
set :incremental 0
set :manager ::crypto::HashFunctions::slot::digest
set :methodname digest
set :multiplicity 1..1
set :name digest
set :per-object false
set :position 0
set :required false
set :trace none
: init}
::nsf::object::alloc ::nx::VariableSlot ::crypto::HashFunctions::slot::ctx {set :accessor none
set :configurable false
set :convert false
set :defaultmethods {}
set :disposition alias
set :domain ::crypto::HashFunctions
set :incremental 0
set :manager ::crypto::HashFunctions::slot::ctx
set :methodname ctx
set :multiplicity 1..1
set :name ctx
set :per-object false
set :position 0
set :required false
set :trace none
: init}
XQL Not present:Generic, PostgreSQL, Oracle
[
hide source ]
| [
make this the default ]