07-03-2010
In theory they should be the same. However,we cannot really help you unless you show us your code.
10 More Discussions You Might Find Interesting
1. Programming
hi
i want to generate MD5 hash of string in unix (hp) i have the algorithm which takes file as argument and returns hash of file but when i tried to generate hash of "a" result was "60b725f10c9c85c70d97880dfe8191b3" hash but actually it should have been "0cc175b9c0f1b6a831c399e269772661" now i... (4 Replies)
Discussion started by: zedex
4 Replies
2. Shell Programming and Scripting
I have a script with dynamic hash of hashes , and I want to print the entire hash (with all other hashes).
Itried to do it recursively by checking if the current key is a hash and if yes call the current function again with refference to the sub hash.
Most of the printing seems to be OK but in... (1 Reply)
Discussion started by: Alalush
1 Replies
3. Shell Programming and Scripting
I have a file, not really a csv, but containing delineated data just the same. Lets call that file "raw_data.txt". It contains data in the format of company name:fein number like this:
first company name:123456789
second company name:987654321
what i need to do is read this file, apply... (11 Replies)
Discussion started by: FreddyG
11 Replies
4. Shell Programming and Scripting
Can Someone explain me why even using Tie::IxHash I can not get the output data in the same order that it was inserted? See code below.
#!/usr/bin/perl
use warnings;
use Tie::IxHash;
use strict;
tie (my %programs, "Tie::IxHash");
while (my $line = <DATA>) {
chomp $line;
my(... (1 Reply)
Discussion started by: jgfcoimbra
1 Replies
5. Shell Programming and Scripting
Hi,
In Perl, is it possible to use a range of numbers with '..' as a key in a hash?
Something in like:
%hash = (
'768..1536' => '1G',
'1537..2560' => '2G'
);
That is, the range operation is evaluated, and all members of the range are... (3 Replies)
Discussion started by: dsw
3 Replies
6. Shell Programming and Scripting
What is the unix shell scripting equivalent of the following php code? I have tried to reproduce it, but I haven't been able to.
<?php
sha1(sha1(strtolower($user) . $pass) . $sessionid);
?> (12 Replies)
Discussion started by: locoroco
12 Replies
7. Shell Programming and Scripting
Hi,
I have an hashes of hash, where hash is dynamic, it can be n number of hash. i need to compare data_count values of all .
my %result (
$abc => {
'data_count' => '10',
'ID' => 'ABC122',
}
$def => {
'data_count' => '20',
'ID' => 'defASe',
... (1 Reply)
Discussion started by: asak
1 Replies
8. Shell Programming and Scripting
Hello gurus, Iam trying to parse following BibTex file (bibliography.bib):
@book{Lee2000a,
abstract = {Abstract goes here},
author = {Lee, Wenke and Stolfo, Salvatore J},
title = {{Data mining approaches for intrusion detection}},
year = {2000}
}
@article{Forrest1996,
abstract =... (0 Replies)
Discussion started by: wakatana
0 Replies
9. Shell Programming and Scripting
Hi, I have a hash of hash where it has
name, activities and count
i have data like this -
$result->{$name}->{$activities} = $value;
content of that are -
name - robert tom cat peter
activities - running, eating, sleeping , drinking, work
i need to print output as below
... (3 Replies)
Discussion started by: asak
3 Replies
10. OS X (Apple)
Hi guys!
Me again! ...
I'm trying to build (on MacOS directly) a bash script that will help me verify a SHA1 digest (to verify downloads and so on and so forth).
So first off, here's my version of BASH under OSX:
bash-4.4$
And here's my version of Sierra (macOS):
10.12.3 (16D32)
... (2 Replies)
Discussion started by: Ardzii
2 Replies
LEARN ABOUT DEBIAN
tspi_hash_sethashvalue
Tspi_Hash_SetHashValue(3) Library Functions Manual Tspi_Hash_SetHashValue(3)
TCG Software Stack Developer's Reference
NAME
Tspi_Hash_SetHashValue - Sets the hash value of a hash object for non-SHA1 hash objects.
SYNOPSIS
#include <tss/platform.h>
#include <tss/tcpa_defines.h>
#include <tss/tcpa_typedef.h>
#include <tss/tcpa_struct.h>
#include <tss/tss_typedef.h>
#include <tss/tss_structs.h>
#include <tss/tspi.h>
TSS_RESULT Tspi_Hash_SetHashValue(TSS_HHASH hHash, UINT32 ulHashValueLength, BYTE* rgbHashValue);
DESCRIPTION
Tspi_Hash_SetHashValue sets the hash value of a hash object. If the object was created with the flag TSS_HASH_OTHER, then the hash identi-
fier has to be set by calling Tspi_SetAttribData to perform the sign operation.
PARAMETERS
hHash
The handle to the hash object instance whose hash value should be signed.
ulHashValueLength
Indicates the length of the hash value data provided at the parameter rgbHashValue.
rgbHashValue
A pointer to the hash value data.
RETURN CODES
Tspi_Hash_SetHashValue returns TSS_SUCCESS on success, otherwise one of the following values is returned:
TSS_E_INVALID_HANDLE
hHash is not a valid handle.
TSS_E_INTERNAL_ERROR
An internal SW error has been detected.
TSS_E_BAD_PARAMETER
One or more parameters is bad.
TSS_E_HASH_INVALID_LENGTH
Hash length is inconsistent with hash algorithm.
TSS_E_HASH_NO_DATA
Hash object has no internal hash value.
CONFORMING TO
Tspi_Hash_SetHashValue conforms to the Trusted Computing Group Software Specification version 1.1 Golden
SEE ALSO
Tspi_Hash_UpdateHash(3), Tspi_Hash_Sign(3), Tspi_Hash_GetHashValue(3).
TSS 1.1 2004-05-25 Tspi_Hash_SetHashValue(3)