interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / native / omega / allen / tests / tls-crypto-x25519-iter.om

24 lines · 607 bytes Raw Blame History
1note SPDX-License-Identifier: AGPL-3.0-or-later
2note RFC7748 section5.2 official 1000-iteration X25519 vector, separate from short fixtures.
3note https://www.rfc-editor.org/rfc/rfc7748 ; attribution/license in tls-crypto-fixture.om.
4text Viter "684cf59ba83309552800ef566f2f4d3c1c3887c49360e3875f2eb94d99532c51"
5fn main to int
6tcwipe
7put Tcxpriv 0 9
8put Tcxpeer 0 9
9for j ulong 1000
10tvcheck tcx25519 1
11for i ulong 32
12put Tcxpeer i get Tcxpriv i
13put Tcxpriv i get Tcxshare i
14end
15end
16for i ulong 32
17p = mul i 2
18v = tvbyte get Viter p get Viter add p 1
19tvcheck eq get Tcxpriv i v 2
20end
21tcwipe
22tvscrub
23ret 0
24end