N: SIO Command 'H' Set Hash Type - FujiNetWIFI/fujinet-firmware GitHub Wiki

N: SIO Command SET HASH MODE ['H']

This is a command for Devices $71-$78 - The N: Device (see SIO-Commands-for-Device-IDs-$71-to-$78).

Description

Set the hash type to be used for the Hash channel mode.

Parameters

DCB Value
DDEVIC $71
DUNIT $01 - $04
DCOMND 'H'
DSTATS $00
DBUF NULL
DTIMLO $0F
DBYT 0
DAUX1 12 or similar
DAUX2 Hash table type

Aux2 values

AUX2 Description
0 MD5
1 SHA1
2 SHA256
3 SHA224
4 SHA384
5 SHA512
6 RIPEMD160
7 MD4
8 MD2

Examples

CC65

OS.dcb.ddevic=0x71;
OS.dcb.dunit=1;
OS.dcb.dcomnd='H';
OS.dcb.dstats=0x00;
OS.dcb.dbuf=NULL;
OS.dcb.dtimlo=0x0f;
OS.dcb.dbyt=0;
OS.dcb.daux1=12;
OS.dcb.daux2=1; // Set to SHA1
siov();

Atari BASIC

XIO ASC('H'),#1,12,1,"N:":REM SET Hash mode to 1

See Also

Put other related command links here.