SyoSil ApS UVM Scoreboard
1.0.3.0
|
Class which defines the base concept of a hash algorithm. More...
Public Types | |
typedef bit< HASH_DIGEST_WIDTH-1:0 > | tp_hash_digest |
Typedef for a bitstream of HASH_DIGEST_WIDTH bits. | |
typedef bit< HASH_DIGEST_WIDTH-1:0 > | tp_hash_digest |
Typedef for a bitstream of HASH_DIGEST_WIDTH bits. | |
Public Member Functions | |
virtual tp_hash_digest | hash (cl_syoscb_item item) |
Hash API: Hashes a cl_syoscb_item, returning its hash value More... | |
virtual tp_hash_digest | hash_str (string str) |
Hash API: Hashes a string, returning its hash value More... | |
Protected Member Functions | |
virtual tp_hash_digest | do_hash (bit ser []) |
Hash API: Returns the hash value of the given bitstream. More... | |
Protected Attributes | |
cl_syoscb_cfg | cfg |
Handle to the configuration object. | |
cl_syoscb_hash_packer | packer |
Handle to a packer suited for this hash algorithm. More... | |
Class which defines the base concept of a hash algorithm.
All hash functions must extend this class and implement the hash API.
HASH_DIGEST_WIDTH | The number of bits in the hash digest for that hashing algorithm |
Definition at line 4 of file cl_syoscb_hash_base.svh.
|
protectedvirtual |
Hash API: Returns the hash value of the given bitstream.
The bitstream must comply with the chosen hash algorithm's requirements.
ser | The bitstream to generate the hash for |
Reimplemented in cl_syoscb_hash_md5, and cl_syoscb_hash_md5.
Definition at line 54 of file cl_syoscb_hash_base.svh.
Referenced by cl_syoscb_hash_base< pk_syoscb::MD5_HASH_DIGEST_WIDTH >::hash(), and cl_syoscb_hash_base< pk_syoscb::MD5_HASH_DIGEST_WIDTH >::hash_str().
|
virtual |
Hash API: Hashes a cl_syoscb_item, returning its hash value
item | The item to hash |
Definition at line 83 of file cl_syoscb_hash_base.svh.
|
virtual |
Hash API: Hashes a string, returning its hash value
str | The string to hash |
Definition at line 62 of file cl_syoscb_hash_base.svh.
|
protected |
Handle to a packer suited for this hash algorithm.
The packer should be set in the implementing class' constructor
Definition at line 16 of file cl_syoscb_hash_base.svh.
Referenced by cl_syoscb_hash_base< pk_syoscb::MD5_HASH_DIGEST_WIDTH >::hash(), and cl_syoscb_hash_base< pk_syoscb::MD5_HASH_DIGEST_WIDTH >::hash_str().
![]() |
Project: SyoSil ApS UVM Scoreboard, Revision: 1.0.3.0 Copyright 2014-2022 SyoSil ApS All Rights Reserved Worldwide Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. |
![]() Doxygen Version: 1.8.14 Generated with IDV SV Filter Version: 2.6.3 Fri Sep 2 2022 14:41:05 |