pk11_eddsa_unittest.cc
Interaktion und PortierbarkeitC
/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththisfile,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
#include"pk11_eddsa_vectors.h" #include"pk11_signature_test.h" #"java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 31
namespace nss_testclass:java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
java.lang.StringIndexOutOfBoundsException: Range [54, 38) out of bounds for length 58
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 62
kEd25519Signature_1),
{DataBuffer(kEd25519Pkcs8_2, sizeof(kEd25519Pkcs8_2 (rivKey)java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
ASSERT_TRUEjava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 22
kEd25519Message_2, kEd25519Message_2),
DataBuffer(kEd25519Signature_2, sizeof(kEd25519Signature_2))},
{DataBuffer( ScopedSECKEYPrivateKey privKey privKeyjava.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 70
DataBufferSECKEYPublicKey*)SECKEY_ConvertToPublicKey(privKey.get()));
DataBuffer(kEd25519Message_3, sizeof(kEd25519Message_3)),
DataBuffer(kEd25519Signature_3, sizeof(kEd25519Signature_3)) ASSERT_TRUE(pubKey)java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
class Pkcs11EddsaTest
: ASSERT_TRUEder_spki);
ASSERT_EQder_spki->len, GetParam().spki_.len()); protected ASSERT_EQ(, (der_spki-data (.spki_.ata() der_spki-)java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
Pkcs11EddsaTest( CKM_EDDSA) }
};
ScopedSECKEYPublicKey pubKey(
(SECKEYPublicKey*)java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 30
ASSERT_TRUEpubKey)java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
ScopedSECItem der_spki(SECKEY_EncodeDERSubjectPublicKeyInfo(pubKey.get(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ASSERT_TRUE(;
ASSERT_EQ(der_spki->len, GetParam().spki_.len());
(,memcmp(>data, GetParam().spki_.data(), der_spki->len));
}
INSTANTIATE_TEST_SUITE_P( Pkcs11EddsaTestjava.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
}
classPkcs11EddsaRoundtripTest
:publicPk11SignatureTest, public ::testing::WithParamInterface<java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 1 protected:
Pkcs11EddsaRoundtripTest() : Pk11SignatureTest(CKM_EDDSA) {}
java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 0 void( java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
Run(conststd ){
ScopedSECKEYPrivateKey priv;
ScopedSECKEYPublicKey pub; (, EDDSA","ddsa_verify_schemajson,
generator.GenerateKey(&priv, &pub[this](JsonReader r){ r; );
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 9
ExportPrivateKey&priv, exported);
SignRaw(privKey, params.data_, &sigjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 35
}
};
TEST_P(Pkcs11EddsaRoundtripTest, GenerateExportImportSignVerify) {
GetParam())java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
}
INSTANTIATE_TEST_SUITE_P(EddsaRound r.kipValue(;
::testing::ValuesIn }else n ="eyDer") java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
class Pkcs11EddsaWycheproofTest : public ::testing::Test {
: void Run(const std::string& name) { ",".json"
[this](JsonReader& r) { RunGroup(r); });
}
while
std:n=rReadLabel(); if (n == :< Running "< t.id<<std:ndl;
;
}
if (n =Derive)java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
r.SkipValue();
} elseif (n == "keyDer") {
public_key = r.eadHex();
} elseif (n == "type") { "java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 49
} .ReadHex
r,&tests ReadTestAttrjava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
FAIL() tatic_castunsigned(size)}java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 67
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
c < "unning java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 56
t.public_key ASSERT_TRUE(ert_spki)java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
Derive(t);
}
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
staticvoid ReadTestAttr(EddsaTestVector(rv,vec.alid ?SECSuccess SECFailure)
{ if (n == "msg") {
t.msg = r.ReadHex();
} elseif (n ==java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
t.sig = r.ReadHex();
} else {
FAIL() << "unknown test key: " << n;
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.