Wiki Home >> N:-SIO-Command-'H'---Set-Hash-Type

N:-SIO-Command-'H'---Set-Hash-Type


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

DCBValue
DDEVIC$71
DUNIT$01 - $04
DCOMND'H'
DSTATS$00
DBUFNULL
DTIMLO$0F
DBYT0
DAUX112 or similar
DAUX2Hash table type

Aux2 values

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

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.


Wiki content is mirrored from the FujiNet Github Wiki