CryptoSys API  6.22.1
Public Types | Static Public Member Functions | List of all members
crsysapi::Xof Class Reference

Extendable-output function (XOF). More...

Public Types

enum class  XofAlg
 Extendable-output function (XOF) algorithm. More...
 

Static Public Member Functions

static bvec_t Bytes (int numBytes, const bvec_t &message, XofAlg xofalg)
 Generate bytes using an extendable-output function (XOF). More...
 

Detailed Description

Extendable-output function (XOF).

Member Enumeration Documentation

◆ XofAlg

enum crsysapi::Xof::XofAlg
strong

Extendable-output function (XOF) algorithm.

Enumerator
Shake128 

SHAKE128 as per FIPS PUB 202.

Shake256 

SHAKE256 as per FIPS PUB 202.

Mgf1_Sha1 

MGF1-SHA-1 (as per PKCS#1)

Mgf1_Sha256 

MGF1-SHA-256 (as per PKCS#1)

Mgf1_Sha512 

MGF1-SHA-512 (as per PKCS#1)

Ascon_Xof 

ASCON-XOF extendable output function

Ascon_XofA 

ASCON-XOFA extendable output function

Member Function Documentation

◆ Bytes()

static bvec_t crsysapi::Xof::Bytes ( int  numBytes,
const bvec_t message,
XofAlg  xofalg 
)
static

Generate bytes using an extendable-output function (XOF).

Parameters
numBytesRequired number of output bytes.
messageInput message data.
xofalgXOF algorithm.
Returns
Output data in byte array.
Copyright © 2001-24 D.I. Management Services Pty Limited ABN 78 083 210 584 Australia. All rights reserved. <www.di-mgt.com.au> <www.cryptosys.net>. Generated on Sat Jan 6 2024 18:00:07 by Doxygen 1.9.1.