...

Text file src/github.com/in-toto/in-toto-golang/test/data/README.md

Documentation: github.com/in-toto/in-toto-golang/test/data

     1# Test Data
     2
     3## How to generate the test data
     4
     5We load keys from disk only in PKCS8, PKCS1 or PKCX format.
     6The next sections describe, how you can generate such keys via openssl.
     7Currently only keys **without password protection** are supported.
     8
     9### RSA
    10
    11TODO: write description for RSA key generation
    12
    13### ECDSA
    14
    15First you need to generate an ecdsa key in traditional ec key format via:
    16
    17`$ openssl ecparam -name secp521r1 -genkey -noout -out <filename>.ec`
    18
    19Then you can transform this key into PKCS8 format via:
    20
    21`$ openssl pkcs8 -topk8 -nocrypt -in <filename>.ec -out <filename>`
    22
    23Next generate the public key via:
    24
    25`$ openssl ec -in <filename> -pubout -out <filename>.pub`
    26
    27
    28### ED25519
    29
    30Private key:
    31
    32`$ openssl genpkey -algorithm ed25519 -outform PEM -out <filename>`
    33
    34Public key:
    35
    36`$ openssl pkey -in <filename>  -pubout > <filename>.pub`
    37
    38## Go Specifics
    39
    40### ECDSA
    41
    42The Go ecdsa library only supports FIPS 186-3.
    43The following curves are supported:
    44
    45* secp521r1
    46* ...
    47
    48The following curves are for example **not** supported:
    49
    50* secp256k1
    51* ...
    52
    53## Test Data Overview
    54
    55| file | comment |
    56|------|---------|
    57| alice.pub | RSA public key |
    58| canonical-test.link | .. |
    59| carol | ed25519 key as PKCS8 |
    60| carol.pub | pub key of carol |
    61| dan | RSA private key |
    62| dan.pub | pub key of dan |
    63| erin | EC private Key (secp256k1) |
    64| erin.pub | EC public key of erin|
    65| frank | EC private key PKCS8 (secp521r1) |
    66| frank.pub | EC public key of frank |
    67| grace | EC private key (secp384r1) |
    68| grace.pub | EC public key of grace |
    69| heidi | EC private key (secp224r1) |
    70| heidi.pub | EC public key of heidi |
    71| foo.2f89b927.link | .. |
    72| foo.776a00e2.link | .. |
    73| foo.tar.gz | .. |
    74| package.2f89b927.link | .. |
    75| sub_layout.556caebd.link | .. |
    76| super.layout | .. |
    77| write-code.776a00e2.link | .. |

View as plain text