Sponsored Content
Full Discussion: Cksum file1 confusion
Top Forums Shell Programming and Scripting Cksum file1 confusion Post 302331552 by TeamUSA on Monday 6th of July 2009 02:02:33 PM
Old 07-06-2009
I've been using both cksum and md5 and neither will output the checksum that i want. I am quite positive that the file is correct, but these checksums do not match.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

cksum question

Hi there, I have a query about cksum. I'm running a script on the Unix box and in a script the cksum result differs from when I run it manually. As far as I can see the file is not being changed, is there any other times that the cksum would be different. (4 Replies)
Discussion started by: rjsha1
4 Replies

2. Shell Programming and Scripting

The cksum Problem

Hi, I have a working script, well it works on my machine but when I try it on others the cksum section does not work properly (I know the scripting is not of a high quality but I'm just trying to get it working) Heres the script: #!/bin/sh case $# in 0) echo "usage: enshar filename... (7 Replies)
Discussion started by: Dim-Wit
7 Replies

3. Shell Programming and Scripting

using cksum

hi, I am trying to use the cksum feature in unix. when i make a call to it i get returned something along the lines of: 4603435 14 file3 how do i get the first part of this response only; i.e: 4603435 I'm trying to use at a way without the use of sed and creating temp... (4 Replies)
Discussion started by: leeRoberts2007
4 Replies

4. UNIX for Advanced & Expert Users

Cksum dependencies

Hi, On what factors does the cksum depend. If i build 2 machines exactly the same, then can i get the checksum of 2 compiled files same. Thanks (3 Replies)
Discussion started by: vibhor_agarwali
3 Replies

5. Shell Programming and Scripting

EEPROM CKSUM? what is this?

Hi all, So I have a binary file and I need to generate an expected EEPROM checksum for it. Ideally, I would like to input the file (with the path) and output a computed checksum. Ive been using (cksum file1) with no avail and I was just curious as to whether there is such thing as EEPROM cksum,... (1 Reply)
Discussion started by: TeamUSA
1 Replies

6. Solaris

cat file1 > file1

I have file1 with the contents this is file1 when i do cat file1 , the output is this is file1 when i run cat file1 > file1 , I receive the following message cat: input file1 is output (3 Replies)
Discussion started by: asalman.qazi
3 Replies

7. UNIX for Dummies Questions & Answers

if matching strings in file1 and file2, add column from file1 to file2

I have very limited coding skills but I'm wondering if someone could help me with this. There are many threads about matching strings in two files, but I have no idea how to add a column from one file to another based on a matching string. I'm looking to match column1 in file1 to the number... (3 Replies)
Discussion started by: pathunkathunk
3 Replies

8. UNIX for Dummies Questions & Answers

Compare file1 and file2, print matching lines in same order as file1

I want to print only the lines in file2 that match file1, in the same order as they appear in file 1 file1 file2 desired output: I'm getting the lines to match awk 'FNR==NR {a++}; FNR!=NR && a' file1 file2 but they are in sorted order, which is not what I want: Can anyone... (4 Replies)
Discussion started by: pathunkathunk
4 Replies

9. Shell Programming and Scripting

awk to search field2 in file2 using range of fields file1 and using match to another field in file1

I am trying to use awk to find all the $2 values in file2 which is ~30MB and tab-delimited, that are between $2 and $3 in file1 which is ~2GB and tab-delimited. I have just found out that I need to use $1 and $2 and $3 from file1 and $1 and $2of file2 must match $1 of file1 and be in the range... (6 Replies)
Discussion started by: cmccabe
6 Replies
NAME(3) 						   BSD Library Functions Manual 						   NAME(3)

NAME
krb5_checksum, krb5_checksum_disable, krb5_checksum_is_collision_proof, krb5_checksum_is_keyed, krb5_checksumsize, krb5_cksumtype_valid, krb5_copy_checksum, krb5_create_checksum, krb5_crypto_get_checksum_type krb5_free_checksum, krb5_free_checksum_contents, krb5_hmac, krb5_verify_checksum -- creates, handles and verifies checksums LIBRARY
Kerberos 5 Library (libkrb5, -lkrb5) SYNOPSIS
#include <krb5.h> typedef Checksum krb5_checksum; void krb5_checksum_disable(krb5_context context, krb5_cksumtype type); krb5_boolean krb5_checksum_is_collision_proof(krb5_context context, krb5_cksumtype type); krb5_boolean krb5_checksum_is_keyed(krb5_context context, krb5_cksumtype type); krb5_error_code krb5_cksumtype_valid(krb5_context context, krb5_cksumtype ctype); krb5_error_code krb5_checksumsize(krb5_context context, krb5_cksumtype type, size_t *size); krb5_error_code krb5_create_checksum(krb5_context context, krb5_crypto crypto, krb5_key_usage usage, int type, void *data, size_t len, Checksum *result); krb5_error_code krb5_verify_checksum(krb5_context context, krb5_crypto crypto, krb5_key_usage usage, void *data, size_t len, Checksum *cksum); krb5_error_code krb5_crypto_get_checksum_type(krb5_context context, krb5_crypto crypto, krb5_cksumtype *type); void krb5_free_checksum(krb5_context context, krb5_checksum *cksum); void krb5_free_checksum_contents(krb5_context context, krb5_checksum *cksum); krb5_error_code krb5_hmac(krb5_context context, krb5_cksumtype cktype, const void *data, size_t len, unsigned usage, krb5_keyblock *key, Checksum *result); krb5_error_code krb5_copy_checksum(krb5_context context, const krb5_checksum *old, krb5_checksum **new); DESCRIPTION
The krb5_checksum structure holds a Kerberos checksum. There is no component inside krb5_checksum that is directly referable. The functions are used to create and verify checksums. krb5_create_checksum() creates a checksum of the specified data, and puts it in result. If crypto is NULL, usage_or_type specifies the checksum type to use; it must not be keyed. Otherwise crypto is an encryption context created by krb5_crypto_init(), and usage_or_type specifies a key-usage. krb5_verify_checksum() verifies the checksum against the provided data. krb5_checksum_is_collision_proof() returns true is the specified checksum is collision proof (that it's very unlikely that two strings has the same hash value, and that it's hard to find two strings that has the same hash). Examples of collision proof checksums are MD5, and SHA1, while CRC32 is not. krb5_checksum_is_keyed() returns true if the specified checksum type is keyed (that the hash value is a function of both the data, and a sep- arate key). Examples of keyed hash algorithms are HMAC-SHA1-DES3, and RSA-MD5-DES. The ``plain'' hash functions MD5, and SHA1 are not keyed. krb5_crypto_get_checksum_type() returns the checksum type that will be used when creating a checksum for the given crypto context. This function is useful in combination with krb5_checksumsize() when you want to know the size a checksum will use when you create it. krb5_cksumtype_valid() returns 0 or an error if the checksumtype is implemented and not currently disabled in this kerberos library. krb5_checksumsize() returns the size of the outdata of checksum function. krb5_copy_checksum() returns a copy of the checksum krb5_free_checksum() should use used to free the new checksum. krb5_free_checksum() free the checksum and the content of the checksum. krb5_free_checksum_contents() frees the content of checksum in cksum. krb5_hmac() calculates the HMAC over data (with length len) using the keyusage usage and keyblock key. Note that keyusage is not always used in checksums. krb5_checksum_disable globally disables the checksum type. SEE ALSO
krb5_crypto_init(3), krb5_c_encrypt(3), krb5_encrypt(3) HEIMDAL
August 12, 2005 HEIMDAL
All times are GMT -4. The time now is 06:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy