Sponsored Content
Special Forums UNIX and Linux Applications Cryotography -Linux API for HMAC-SHA256 algorithm Post 302335783 by pludi on Monday 20th of July 2009 12:15:08 PM
Old 07-20-2009
I don't know of any read-to-use utility, but the OpenSSL library provides a hmac function, which might be what you need.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

algorithm

PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP 21444 tomusr 213M 61M sleep 29 10 1:20:46 0.1% java/43 21249 root 93M 44M sleep 29 10 1:07:19 0.2% java/56 is there anyway i can use a command to get the total of the SIZE? 306M (Derive from... (5 Replies)
Discussion started by: filthymonk
5 Replies

2. Shell Programming and Scripting

An algorithm to be written in linux command

Hi All, I wrote the following script in R. However, i can not run it. Because the data file is so big. Therefore, i need to write it in shell script. Could you please help me? ###################################### data=as.matrix(read.table("data.txt"))... (3 Replies)
Discussion started by: senayasma
3 Replies

3. Shell Programming and Scripting

Need to run an API from a script and extract fields from output of API

Hi, I need to call an API (GetUsageDetails)from inside a shell script which takes an input argument acct_nbr. The output of API will be like : <usageAccum accumId="450" accumCaptn="PM_125" inclUnits="1410.00" inclUnitsUsed="744.00" shared="true" pooled="false" prorated="false"... (1 Reply)
Discussion started by: rkrish
1 Replies

4. Shell Programming and Scripting

Append sha256 column to a file

Hi, My file looks like below: 1 abc@xyz.com 2 klm@klm.com There are two fields separated by tab. i want to append a third field which will be the sha256 hash of the email address field. Anyone have any solution? Note: I have already tried with while read line .... but the... (1 Reply)
Discussion started by: Mihir Ray
1 Replies

5. AIX

Disable any 96-bit HMAC Algorithms

Received a vulnerability - SSH INSECURE HMAC ALGORITHMS ENABLED. The solution was to Disable any 96-bit HMAC Algorithms. Disable any MD5-based HMAC Algorithms. Can someone please tell me how to disable in AIX 5.3? Thanks, Sudo (1 Reply)
Discussion started by: sudo su
1 Replies

6. Solaris

BART tool on Solaris 10 - enable SHA256

Hi all, I am attempting to create a BART manifest on a Solaris 10 box; however, I need it to be hashed with SHA256. Normally, at the beginning of a "bart create" command, the version and date appear along with the type of encryption listed. When I run the command though I receive the... (3 Replies)
Discussion started by: Derk Berk
3 Replies

7. UNIX for Beginners Questions & Answers

Sha256 , copy file to new filename

Hello, i want to create a sha256 hash for a file and copy the source file under new filename as : sha256hash_sourcefilename Input : sha256sum FILE Example : sha156sum mounttest.123 Output HASH_FILE How to do this ? e.g.: ... (1 Reply)
Discussion started by: bdittmar
1 Replies

8. Web Development

Face-api.js — JavaScript API for Face Recognition in the Browser with tensorflow.js

Ref: https://itnext.io/face-api-js-javascript-api-for-face-recognition-in-the-browser-with-tensorflow-js-bcc2a6c4cf07 (0 Replies)
Discussion started by: Neo
0 Replies

9. Programming

[Python] replicating "sha256 -C checksum_file.txt file.txt"

Hello everyone, Since my python knowledge is limimted, I've challenged myself to learn as much as possible to help me with my carrere. I'm currently trying to convert a shell script to python, just to give myself a task. There is one section of the script that I'm having issues converting and... (2 Replies)
Discussion started by: da1
2 Replies
CCHMAC(3)						   BSD Library Functions Manual 						 CCHMAC(3)

NAME
CCHmacInit, CCHmacUpdate, CCHmacFinal, CCHmac -- Common HMAC Algorithm Interfaces LIBRARY
These functions are found in libSystem. SYNOPSIS
#include <CommonCrypto/CommonHMAC.h> void CCHmacInit(CCHmacContext *ctx, CCHmacAlgorithm algorithm, const void *key, size_t keyLength); void CCHmacUpdate(CCHmacContext *ctx, const void *data, size_t dataLength); void CCHmacFinal(CCHmacContext *ctx, void *macOut); void CCHmac(CCHmacAlgorithm algorithm, const void *key, size_t keyLength, const void *data, size_t dataLength, void *macOut); DESCRIPTION
This interface provides access to a number of HMAC algorithms. The following algorithms are available: kCCHmacAlgSHA1 - HMAC with SHA1 digest kCCHmacAlgMD5 - HMAC with MD5 digest kCCHmacAlgSHA256 - HMAC with SHA256 digest kCCHmacAlgSHA384 - HMAC with SHA384 digest kCCHmacAlgSHA224 - HMAC with SHA224 digest kCCHmacAlgSHA512 - HMAC with SHA512 digest The object declared in this interface, CCHmacContext, provides a handle for use with the CCHmacInit() CCHmacUpdate() and CCHmacFinal() calls to complete the HMAC operation. In addition there is a one shot function, CCHmac() that performs a complete HMAC on a single piece of data. HISTORY
These functions are available in OS X 10.5 and later. SEE ALSO
CC_MD5(3cc), CC_SHA(3cc), CC_crypto(3cc), CCCrypto(3cc) BSD
March 22, 2007 BSD
All times are GMT -4. The time now is 01:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy