/
niceSOFT
/
nss
ОбзорДокументацияВойти
/
niceSOFT
/
nss
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
ДокументацияПоддержка
Политика конфиденциальностиПользовательское соглашениеПолитика использования «cookies»Согласие субъекта персональных данных
2026 ©
nss/
.../bltest/tests/
..
aes_cbc

Bug 992343: Add longer AES CBC test vectors from NIST AES Multiblock Message Test (MMT) Sample Vectors. r=rrelyea.

12 лет назад
aes_ctr

Bug 845556, reorganize NSS directory layout, moving files, very large changeset! r=wtc

13 лет назад
aes_cts

Bug 845556, reorganize NSS directory layout, moving files, very large changeset! r=wtc

13 лет назад
aes_ecb

Bug 992343: Add two AES ECB test vectors for each key size from NIST. They are the first two test vectors in ECBGFSbox128.rsp, ECBGFSbox192.rsp, and ECBGFSbox256.rsp. r=rrelyea.

12 лет назад
aes_gcm

Bug 1254918 - clang-format NSS: cmd, r=kaie

10 лет назад
camellia_cbc

Bug 845556, reorganize NSS directory layout, moving files, very large changeset! r=wtc

13 лет назад
camellia_ecb

Bug 845556, reorganize NSS directory layout, moving files, very large changeset! r=wtc

13 лет назад
chacha20_poly1305

Bug 917571 - Add missing AAD and IV files for ChaCha20/Poly1305 bltests r=me

11 лет назад
des3_cbc

Bug 845556, reorganize NSS directory layout, moving files, very large changeset! r=wtc

13 лет назад
des3_ecb

Bug 845556, reorganize NSS directory layout, moving files, very large changeset! r=wtc

13 лет назад
des_cbc

Bug 845556, reorganize NSS directory layout, moving files, very large changeset! r=wtc

13 лет назад
des_ecb

Bug 845556, reorganize NSS directory layout, moving files, very large changeset! r=wtc

13 лет назад
dsa

Bug 845556, reorganize NSS directory layout, moving files, very large changeset! r=wtc

13 лет назад
ecdsa

Bug 1743302 - Add ECDSA test vectors to the bltest command line tool r=nss-reviewers,bbeurdouche

5 лет назад
md2

Bug 845556, reorganize NSS directory layout, moving files, very large changeset! r=wtc

13 лет назад
md5

Bug 845556, reorganize NSS directory layout, moving files, very large changeset! r=wtc

13 лет назад
rc2_cbc

Bug 845556, reorganize NSS directory layout, moving files, very large changeset! r=wtc

13 лет назад
rc2_ecb

Bug 845556, reorganize NSS directory layout, moving files, very large changeset! r=wtc

13 лет назад
rc4

Bug 845556, reorganize NSS directory layout, moving files, very large changeset! r=wtc

13 лет назад
rc5_cbc

Bug 845556, reorganize NSS directory layout, moving files, very large changeset! r=wtc

13 лет назад
rc5_ecb

Bug 845556, reorganize NSS directory layout, moving files, very large changeset! r=wtc

13 лет назад
rsa

Bug 845556, reorganize NSS directory layout, moving files, very large changeset! r=wtc

13 лет назад
rsa_oaep

Bug 2017987 Need "partial public key validation" for RSA OAEP in FIPS mode.

9 месяцев назад
rsa_pss

Bug 1805907 - Extending RSA-PSS bltest test coverage (Adding SHA-256 and SHA-384) r=nss-reviewers,bbeurdouche

4 года назад
seed_cbc

Bug 845556, reorganize NSS directory layout, moving files, very large changeset! r=wtc

13 лет назад
seed_ecb

Bug 845556, reorganize NSS directory layout, moving files, very large changeset! r=wtc

13 лет назад
sha1

Bug 845556, reorganize NSS directory layout, moving files, very large changeset! r=wtc

13 лет назад
sha224

Bug 845556, reorganize NSS directory layout, moving files, very large changeset! r=wtc

13 лет назад
sha256

Bug 845556, reorganize NSS directory layout, moving files, very large changeset! r=wtc

13 лет назад
sha384

Bug 845556, reorganize NSS directory layout, moving files, very large changeset! r=wtc

13 лет назад
sha3_224

Bug 1753026: HACL SHA3, r=jschanck

3 года назад
sha3_256

Bug 1753026: HACL SHA3, r=jschanck

3 года назад
sha3_384

Bug 1753026: HACL SHA3, r=jschanck

3 года назад
sha3_512

Bug 1753026: HACL SHA3, r=jschanck

3 года назад
sha512

Bug 845556, reorganize NSS directory layout, moving files, very large changeset! r=wtc

13 лет назад
README

BUG 158747: Add PSS and OAEP tests from the RSA test vectors

13 лет назад
README
This directory contains a set of tests for each cipher supported by
BLAPI. Each subdirectory contains known plaintext and ciphertext pairs
(and keys and/or iv's if needed). The tests can be run as a full set
with:
bltest -T
or as subsets, for example:
bltest -T -m des_ecb,md2,rsa
 
In each subdirectory, the plaintext, key, and iv are ascii, and treated
as such. The ciphertext is base64-encoded to avoid the hassle of binary
files.
 
To add a test, incremement the value in the numtests file. Create a
plaintext, key, and iv file, such that the name of the file is
incrememted one from the last set of tests. For example, if you are
adding the second test, put your data in files named plaintext1, key1,
and iv1 (ignoring key and iv if they are not needed, of course). Make
sure your key and iv are the correct number of bytes for your cipher (a
trailing \n is okay, but any other trailing bytes will be used!). Once
you have your input data, create output data by running bltest on a
trusted implementation. For example, for a new DES ECB test, run
bltest -E -m des_ecb -i plaintext1 -k key1 -o ciphertext1 -a in the
tests/des_ecb directory. Then run
bltest -T des_ecb from the cmd/bltest directory in the tree of the
implementation you want to test.
 
Note that the -a option above is important, it tells bltest to expect
the input to be straight ASCII, and not base64 encoded binary!
 
Special cases:
 
RC5:
RC5 can take additional parameters, the number of rounds to perform and
the wordsize to use. The number of rounds is between is between 0 and
255, and the wordsize is either is either 16, 32, or 64 bits (at this
time only 32-bit is supported). These parameters are specified in a
paramsN file, where N is an index as above. The format of the file is
"rounds=R\nwordsize=W\n".
 
public key modes (RSA and DSA):
Asymmetric key ciphers use keys with special properties, so creating a
key file with "Mozilla!" in it will not get you very far! To create a
public key, run bltest with the plaintext you want to encrypt, using a
trusted implementation. bltest will generate a key and store it in
"tmp.key", rename that file to keyN. For example:
bltest -E -m rsa -i plaintext0 -o ciphertext0 -e 65537 -g 32 -a
mv tmp.key key0
 
RSA-OAEP/RSA-PSS:
RSA-OAEP and RSA-PSS have a number of additional parameters to feed in.
- "seedN": The seed or salt to use when encrypting/signing
- "hashN" / "maskhashN" - The base digest algorithm and the digest algorithm
to use with MGF1, respectively. This should be an ASCII string specifying
one of the hash algorithms recognized by bltest (eg: "sha1", "sha256")
 
[note: specifying a keysize (-g) when using RSA is important!]