19261079b7
Some notable changes, from upstream's release notes: - sshd(8): Remove support for obsolete "host/port" syntax. - ssh(1): When prompting whether to record a new host key, accept the key fingerprint as a synonym for "yes". - ssh-keygen(1): when acting as a CA and signing certificates with an RSA key, default to using the rsa-sha2-512 signature algorithm. - ssh(1), sshd(8), ssh-keygen(1): this release removes the "ssh-rsa" (RSA/SHA1) algorithm from those accepted for certificate signatures. - ssh-sk-helper(8): this is a new binary. It is used by the FIDO/U2F support to provide address-space isolation for token middleware libraries (including the internal one). - ssh(1): this release enables UpdateHostkeys by default subject to some conservative preconditions. - scp(1): this release changes the behaviour of remote to remote copies (e.g. "scp host-a:/path host-b:") to transfer through the local host by default. - scp(1): experimental support for transfers using the SFTP protocol as a replacement for the venerable SCP/RCP protocol that it has traditionally used. Additional integration work is needed to support FIDO/U2F in the base system. Deprecation Notice ------------------ OpenSSH will disable the ssh-rsa signature scheme by default in the next release. Reviewed by: imp MFC after: 1 month Relnotes: Yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D29985
67 lines
1.2 KiB
C
67 lines
1.2 KiB
C
/* $OpenBSD: xmss_hash_address.c,v 1.2 2018/02/26 03:56:44 dtucker Exp $ */
|
|
/*
|
|
hash_address.c version 20160722
|
|
Andreas Hülsing
|
|
Joost Rijneveld
|
|
Public domain.
|
|
*/
|
|
#include "includes.h"
|
|
#ifdef WITH_XMSS
|
|
|
|
#ifdef HAVE_STDINT_H
|
|
# include <stdint.h>
|
|
#endif
|
|
#include "xmss_hash_address.h" /* prototypes */
|
|
|
|
void setLayerADRS(uint32_t adrs[8], uint32_t layer){
|
|
adrs[0] = layer;
|
|
}
|
|
|
|
void setTreeADRS(uint32_t adrs[8], uint64_t tree){
|
|
adrs[1] = (uint32_t) (tree >> 32);
|
|
adrs[2] = (uint32_t) tree;
|
|
}
|
|
|
|
void setType(uint32_t adrs[8], uint32_t type){
|
|
adrs[3] = type;
|
|
int i;
|
|
for(i = 4; i < 8; i++){
|
|
adrs[i] = 0;
|
|
}
|
|
}
|
|
|
|
void setKeyAndMask(uint32_t adrs[8], uint32_t keyAndMask){
|
|
adrs[7] = keyAndMask;
|
|
}
|
|
|
|
// OTS
|
|
|
|
void setOTSADRS(uint32_t adrs[8], uint32_t ots){
|
|
adrs[4] = ots;
|
|
}
|
|
|
|
void setChainADRS(uint32_t adrs[8], uint32_t chain){
|
|
adrs[5] = chain;
|
|
}
|
|
|
|
void setHashADRS(uint32_t adrs[8], uint32_t hash){
|
|
adrs[6] = hash;
|
|
}
|
|
|
|
// L-tree
|
|
|
|
void setLtreeADRS(uint32_t adrs[8], uint32_t ltree){
|
|
adrs[4] = ltree;
|
|
}
|
|
|
|
// Hash Tree & L-tree
|
|
|
|
void setTreeHeight(uint32_t adrs[8], uint32_t treeHeight){
|
|
adrs[5] = treeHeight;
|
|
}
|
|
|
|
void setTreeIndex(uint32_t adrs[8], uint32_t treeIndex){
|
|
adrs[6] = treeIndex;
|
|
}
|
|
#endif /* WITH_XMSS */
|