mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:41:42 +00:00
b04163863c
Alternatively to the X9.62 encoding of ecdsa signatures, which uses ASN.1 and is already supported by the kernel, there's another common encoding called P1363. It stores r and s as the concatenation of two big endian, unsigned integers. The name originates from IEEE P1363. Add a P1363 template in support of the forthcoming SPDM library (Security Protocol and Data Model) for PCI device authentication. P1363 is prescribed by SPDM 1.2.1 margin no 44: "For ECDSA signatures, excluding SM2, in SPDM, the signature shall be the concatenation of r and s. The size of r shall be the size of the selected curve. Likewise, the size of s shall be the size of the selected curve. See BaseAsymAlgo in NEGOTIATE_ALGORITHMS for the size of r and s. The byte order for r and s shall be in big endian order. When placing ECDSA signatures into an SPDM signature field, r shall come first followed by s." Link: https://www.dmtf.org/sites/default/files/standards/documents/DSP0274_1.2.1.pdf Signed-off-by: Lukas Wunner <lukas@wunner.de> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Stefan Berger <stefanb@linux.ibm.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> |
||
---|---|---|
.. | ||
internal | ||
acompress.h | ||
aead.h | ||
aes.h | ||
akcipher.h | ||
algapi.h | ||
arc4.h | ||
aria.h | ||
authenc.h | ||
b128ops.h | ||
blake2b.h | ||
blake2s.h | ||
blowfish.h | ||
cast5.h | ||
cast6.h | ||
cast_common.h | ||
chacha20poly1305.h | ||
chacha.h | ||
cryptd.h | ||
ctr.h | ||
curve25519.h | ||
des.h | ||
dh.h | ||
drbg.h | ||
ecc_curve.h | ||
ecdh.h | ||
engine.h | ||
gcm.h | ||
gf128mul.h | ||
ghash.h | ||
hash_info.h | ||
hash.h | ||
hmac.h | ||
if_alg.h | ||
kdf_sp800108.h | ||
kpp.h | ||
md5.h | ||
nhpoly1305.h | ||
null.h | ||
padlock.h | ||
pcrypt.h | ||
pkcs7.h | ||
poly1305.h | ||
polyval.h | ||
public_key.h | ||
rng.h | ||
scatterwalk.h | ||
serpent.h | ||
sha1_base.h | ||
sha1.h | ||
sha2.h | ||
sha3.h | ||
sha256_base.h | ||
sha512_base.h | ||
sig.h | ||
skcipher.h | ||
sm3_base.h | ||
sm3.h | ||
sm4.h | ||
streebog.h | ||
twofish.h | ||
utils.h | ||
xts.h |