A B C D E F G H I K L M O P R S T V W 
All Classes All Packages

A

AESCipherTest - Class in com.microej.crypto.test
Tests for AES cipher operations including CBC, CTR, and authenticated cipher modes (e.g.
AESCipherTest() - Constructor for class com.microej.crypto.test.AESCipherTest
 
AESGCMCipherTest - Class in com.microej.crypto.test
 
AESGCMCipherTest() - Constructor for class com.microej.crypto.test.AESGCMCipherTest
 
AESKeyWrapTest - Class in com.microej.crypto.test
Note: No 192-bit key tests, 192-bit AES is commonly unsupported on constrained platforms
AESKeyWrapTest() - Constructor for class com.microej.crypto.test.AESKeyWrapTest
 
AESNistVectorsTest - Class in com.microej.crypto.test
Checks AES/ECB and AES/CTR against the example vectors of NIST SP 800-38A.
AESNistVectorsTest() - Constructor for class com.microej.crypto.test.AESNistVectorsTest
 
AlgorithmResolutionTest - Class in com.microej.crypto.test
This test class can be used to validate that the algorithm lookup of a low-level cryptographic implementation allocates nothing.
AlgorithmResolutionTest() - Constructor for class com.microej.crypto.test.AlgorithmResolutionTest
 
alternatePublicKeyPath(int) - Static method in class com.microej.crypto.test.util.RsaTestResources
Gets the resource path of an X.509 DER public key of the given key size that is unrelated to the certificate.
alternatePublicKeyPath(String) - Static method in class com.microej.crypto.test.util.EcTestResources
Gets the resource path of an X.509 DER public key of the given curve that is unrelated to the certificate.
assertIvRoundTrips(String, String, byte[], byte[], int) - Static method in class com.microej.crypto.test.util.CipherAssertions
Asserts that a cipher initialized without parameters generates an initialization vector, returns it from Cipher.getIV() with the expected length, and that decrypting with that vector gives the plaintext back.
assertReinitMatchesFreshCipher(String, String, byte[], AlgorithmParameterSpec, byte[], AlgorithmParameterSpec, byte[]) - Static method in class com.microej.crypto.test.util.CipherAssertions
Asserts that a cipher initialized, fed one block, then initialized again with another key and other parameters encrypts as a freshly created cipher does, and that the result decrypts.
assertResultAt(String, byte[], int, byte[]) - Static method in class com.microej.crypto.test.util.OffsetAssertions
Asserts that the expected result sits at the given offset of the output, and that every byte before the offset and every byte past the result still holds the canary.
assertRoundTripAtOffsets(String, Cipher, Cipher, byte[], byte[]) - Static method in class com.microej.crypto.test.util.CipherAssertions
Asserts that encrypting from a sub-range into an offset produces the given ciphertext, that decrypting it back from a sub-range into an offset gives the plaintext, and that neither operation touches the bytes around its result.
assertUntouchedBefore(String, byte[], int) - Static method in class com.microej.crypto.test.util.OffsetAssertions
Asserts that every byte before the given offset still holds the canary.
assertUntouchedFrom(String, byte[], int) - Static method in class com.microej.crypto.test.util.OffsetAssertions
Asserts that every byte from the given index to the end of the output still holds the canary.

B

beforeClass() - Static method in class com.microej.crypto.test.CertificateTest
 

C

call() - Method in class com.microej.crypto.test.util.EnsureAsync
 
canaryFilled(int) - Static method in class com.microej.crypto.test.util.OffsetAssertions
Returns an array of the given length filled with the canary.
CertificateDataTest - Class in com.microej.crypto.test
 
CertificateDataTest() - Constructor for class com.microej.crypto.test.CertificateDataTest
 
certificatePath(int) - Static method in class com.microej.crypto.test.util.RsaTestResources
Gets the resource path of the DER self-signed certificate of the given key size.
certificatePath(String) - Static method in class com.microej.crypto.test.util.EcTestResources
Gets the resource path of the DER self-signed certificate of the given curve.
CertificateTest - Class in com.microej.crypto.test
 
CertificateTest() - Constructor for class com.microej.crypto.test.CertificateTest
 
CertPathValidatorTest - Class in com.microej.crypto.test
This test class can be used to validate the CertPathValidator low-level implementation.
CertPathValidatorTest() - Constructor for class com.microej.crypto.test.CertPathValidatorTest
 
checkKeyStoreIsProvisioned() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
Checks the entries these tests get are present, and reports which are missing when they are not.
checkValidityDoesNotThrowExceptionForValidCertificate() - Method in class com.microej.crypto.test.CertificateTest
Uses a known certificate valid for a long time, uses current time to check the certificate validity.
The test succeeds if there is no exception.
checkValidityThrowsExceptionForCertificateNotYetValid() - Method in class com.microej.crypto.test.CertificateTest
Uses a known valid in the future certificate, uses current time to check the certificate validity.
The test expects a CertificateNotYetValidException exception.
checkValidityThrowsExceptionForExpiredCertificate() - Method in class com.microej.crypto.test.CertificateTest
Uses a known old certificate, uses current time to check the certificate validity.
The test expects a CertificateExpiredException exception.
CipherAssertions - Class in com.microej.crypto.test.util
Assertions on Cipher shared by the cipher test classes.
com.microej.crypto.test - package com.microej.crypto.test
 
com.microej.crypto.test.util - package com.microej.crypto.test.util
Utility functions for tests.
Configuration - Class in com.microej.crypto.test.util
 
Configuration() - Constructor for class com.microej.crypto.test.util.Configuration
 
ConfigurationTest - Class in com.microej.crypto.test
Checks the guards of the algorithm list properties: a per-class list must be a subset of its global list, so that a misconfigured VEE Port fails loudly instead of running an unsupported algorithm, and an unset or empty per-class list means the whole global list.
ConfigurationTest() - Constructor for class com.microej.crypto.test.ConfigurationTest
 
CURVES_PROPERTY - Static variable in class com.microej.crypto.test.util.EcTestResources
Property listing the curves exercised by the test suite.

D

DATE_PROPERTY - Static variable in class com.microej.crypto.test.util.TestTime
Property overriding the date the suite runs at, as YYYY-MM-DD.
DEFAULT_CURVES - Static variable in class com.microej.crypto.test.util.EcTestResources
Default curves: the supported curves minus secp192r1, secp224r1 and secp256k1, which recent JDKs dropped.
DEFAULT_DATE - Static variable in class com.microej.crypto.test.util.TestTime
The date the suite runs at unless "date" says otherwise.
DEFAULT_KEY_SIZES - Static variable in class com.microej.crypto.test.util.RsaTestResources
Default key sizes: every size the test resources hold material for, hence every size RsaTestResources.KEY_SIZES_PROPERTY may list.
DESedeCipherTest - Class in com.microej.crypto.test
 
DESedeCipherTest() - Constructor for class com.microej.crypto.test.DESedeCipherTest
 

E

EcTestResources - Class in com.microej.crypto.test.util
Lists the elliptic curves exercised by the test suite and locates the pre-generated test material (key pairs, self-signed certificate and signature) of a curve.
EnsureAsync<T> - Class in com.microej.crypto.test.util
Decorator for Callable ensuring that the decorated interface runs in a way that let the VM run other green threads.
EnsureAsync(Callable<T>) - Constructor for class com.microej.crypto.test.util.EnsureAsync
 
ExternalKeyStoreTest - Class in com.microej.crypto.test
This test class validates a LLSEC-External-KeyStore Abstraction Layer implementation.
ExternalKeyStoreTest() - Constructor for class com.microej.crypto.test.ExternalKeyStoreTest
 

F

formatHex(byte[]) - Static method in class com.microej.crypto.test.util.HexFormat
 

G

getBase64(String, String) - Static method in class com.microej.crypto.test.util.Configuration
 
getBase64OrResource(String, String) - Static method in class com.microej.crypto.test.util.Configuration
Gets the Base64-decoded value of the given property, or the content of the given resource when the property is not set.
getBoolean(String, boolean) - Static method in class com.microej.crypto.test.util.Configuration
 
getBytes(SecureRandom, int) - Method in class com.microej.crypto.test.SecureRandomTest
 
getCurves() - Static method in class com.microej.crypto.test.util.EcTestResources
Gets the curves exercised by the test suite.
getHex(String, String) - Static method in class com.microej.crypto.test.util.Configuration
 
getInt(String, int) - Static method in class com.microej.crypto.test.util.Configuration
 
getInts(String, String) - Static method in class com.microej.crypto.test.util.Configuration
 
getKeyPairGeneratorCurves() - Static method in class com.microej.crypto.test.util.EcTestResources
Gets the curves generated by the key pair generation tests: EcTestResources.KEY_PAIR_GENERATOR_CURVES_PROPERTY when set, otherwise EcTestResources.getCurves().
getKeyPairGeneratorKeySizes() - Static method in class com.microej.crypto.test.util.RsaTestResources
Gets the key sizes generated by the key pair generation tests: RsaTestResources.KEY_PAIR_GENERATOR_KEY_SIZES_PROPERTY when set, otherwise RsaTestResources.getKeySizes().
getKeySizes() - Static method in class com.microej.crypto.test.util.RsaTestResources
Gets the key sizes exercised by the test suite.
getPassword(String, char[]) - Static method in class com.microej.crypto.test.util.Configuration
 
getString(String, String) - Static method in class com.microej.crypto.test.util.Configuration
 
getStrings(String, String) - Static method in class com.microej.crypto.test.util.Configuration
 
getSubset(String, String[], String) - Static method in class com.microej.crypto.test.util.Configuration
Gets an optional comma separated list that restricts another list.

H

HexFormat - Class in com.microej.crypto.test.util
Simplified version of java.util.HexFormat.

I

INPUT_OFFSET - Static variable in class com.microej.crypto.test.util.OffsetAssertions
The offset at which the payload starts in every input array.

K

KEY_PAIR_GENERATOR_CURVES_PROPERTY - Static variable in class com.microej.crypto.test.util.EcTestResources
Optional property restricting EcTestResources.CURVES_PROPERTY for the key pair generation tests.
KEY_PAIR_GENERATOR_KEY_SIZES_PROPERTY - Static variable in class com.microej.crypto.test.util.RsaTestResources
Optional property restricting RsaTestResources.KEY_SIZES_PROPERTY for the key pair generation tests.
KEY_SIZES_PROPERTY - Static variable in class com.microej.crypto.test.util.RsaTestResources
Property listing the key sizes exercised by the test suite.
KeyAgreementTest - Class in com.microej.crypto.test
This test class can be used to validate a KeyAgreement low-level implementation.
KeyAgreementTest() - Constructor for class com.microej.crypto.test.KeyAgreementTest
 
KeyFactoryTest - Class in com.microej.crypto.test
This test class can be used to validate a KeyFactory low-level implementation.
KeyFactoryTest() - Constructor for class com.microej.crypto.test.KeyFactoryTest
 
KeyGeneratorTest - Class in com.microej.crypto.test
 
KeyGeneratorTest() - Constructor for class com.microej.crypto.test.KeyGeneratorTest
 
KeyPairGeneratorTest - Class in com.microej.crypto.test
 
KeyPairGeneratorTest() - Constructor for class com.microej.crypto.test.KeyPairGeneratorTest
 

L

loadKeyPairs() - Static method in class com.microej.crypto.test.RSACipherTest
Loads the RSA key pair of every configured key size from the test material, so that the class measures the cipher only and runs on a backend without key pair generation.

M

MacReuseTest - Class in com.microej.crypto.test
Checks that a Mac is usable again after doFinal() without being re-initialized.
MacReuseTest() - Constructor for class com.microej.crypto.test.MacReuseTest
 
MacTest - Class in com.microej.crypto.test
To generate hmac with an hex key : - Use this site : https://cryptii.com/pipes/hmac - Or following openssl command : echo -n "Hi There" | openssl dgst -sha256 -mac HMAC -macopt hexkey:0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b
MacTest() - Constructor for class com.microej.crypto.test.MacTest
 
MessageDigestTest - Class in com.microej.crypto.test
Tests the MessageDigest supported algorithms.
MessageDigestTest() - Constructor for class com.microej.crypto.test.MessageDigestTest
 

O

OffsetAssertions - Class in com.microej.crypto.test.util
Buffers and assertions for the operations that take a byte-array offset, exercised at a non-zero offset.
OomGcRetryTest - Class in com.microej.crypto.test
Validates the retry-after-GC path of the library across the native JCA subsystems.
OomGcRetryTest() - Constructor for class com.microej.crypto.test.OomGcRetryTest
 
OUTPUT_OFFSET - Static variable in class com.microej.crypto.test.util.OffsetAssertions
The offset at which every result is asked to land.
outputFor(int) - Static method in class com.microej.crypto.test.util.OffsetAssertions
Returns a canary-filled output with room for a result of the given length at OffsetAssertions.OUTPUT_OFFSET and slack past it.

P

parseHex(String) - Static method in class com.microej.crypto.test.util.HexFormat
 
parseSubset(String, String, String[], String) - Static method in class com.microej.crypto.test.util.Configuration
Parses the value of a property that restricts another list, see Configuration.getSubset(String, String[], String).
PBES2CipherTest - Class in com.microej.crypto.test
 
PBES2CipherTest() - Constructor for class com.microej.crypto.test.PBES2CipherTest
 
PKCS12PBECipherTest - Class in com.microej.crypto.test
 
PKCS12PBECipherTest() - Constructor for class com.microej.crypto.test.PKCS12PBECipherTest
 
PKCS5PaddingCipherTest - Class in com.microej.crypto.test
Tests the PKCS#5 unpadding performed on decryption.
PKCS5PaddingCipherTest() - Constructor for class com.microej.crypto.test.PKCS5PaddingCipherTest
 
privateKeyPath(int) - Static method in class com.microej.crypto.test.util.RsaTestResources
Gets the resource path of the PKCS#8 DER private key that signed the certificate of the given key size.
privateKeyPath(String) - Static method in class com.microej.crypto.test.util.EcTestResources
Gets the resource path of the PKCS#8 DER private key that signed the certificate of the given curve.
PROPERTY_PREFIX - Static variable in class com.microej.crypto.test.util.Configuration
Prefix of every system property read by the test suite.
protectedPrivateKeyPath(int) - Static method in class com.microej.crypto.test.util.RsaTestResources
Gets the resource path of the private key of RsaTestResources.privateKeyPath(int), encrypted as PKCS#8 DER with the password changeit.
protectedPrivateKeyPath(String) - Static method in class com.microej.crypto.test.util.EcTestResources
Gets the resource path of the private key of EcTestResources.privateKeyPath(String), encrypted as PKCS#8 DER with the password changeit.
publicKeyPath(int) - Static method in class com.microej.crypto.test.util.RsaTestResources
Gets the resource path of the X.509 DER public key matching RsaTestResources.privateKeyPath(int).
publicKeyPath(String) - Static method in class com.microej.crypto.test.util.EcTestResources
Gets the resource path of the X.509 DER public key matching EcTestResources.privateKeyPath(String).

R

read(String) - Static method in class com.microej.crypto.test.util.Resources
Reads a whole test resource.
requireNotEmpty(String, String[]) - Static method in class com.microej.crypto.test.util.Configuration
Checks that a list read from a property is not empty: an empty list would make the tests looping over it pass without checking anything.
Resources - Class in com.microej.crypto.test.util
Reads the binary test material (keys, certificates, signatures, payloads) bundled with the test suite.
resultAt(byte[], int, int) - Static method in class com.microej.crypto.test.util.OffsetAssertions
Copies a result out of an output array.
RSACipherTest - Class in com.microej.crypto.test
 
RSACipherTest() - Constructor for class com.microej.crypto.test.RSACipherTest
 
RsaTestResources - Class in com.microej.crypto.test.util
Lists the RSA key sizes exercised by the test suite and locates the pre-generated test material (key pairs, self-signed certificate and signature) of a key size.

S

SecretFactoryTest - Class in com.microej.crypto.test
 
SecretFactoryTest() - Constructor for class com.microej.crypto.test.SecretFactoryTest
 
SecureRandomTest - Class in com.microej.crypto.test
Exercises SecureRandom with long generation loops.
SecureRandomTest() - Constructor for class com.microej.crypto.test.SecureRandomTest
 
setUp() - Static method in class com.microej.crypto.test.util.TestTime
Sets the application time to the configured date.
setUpClass() - Static method in class com.microej.crypto.test.CertPathValidatorTest
 
setUpTime() - Static method in class com.microej.crypto.test.CertificateDataTest
 
setUpTime() - Static method in class com.microej.crypto.test.ExternalKeyStoreTest
 
setUpTime() - Static method in class com.microej.crypto.test.SignatureTest
 
signaturePath(int) - Static method in class com.microej.crypto.test.util.RsaTestResources
Gets the resource path of the SHA256withRSA signature of the data4096.bin resource, computed with RsaTestResources.privateKeyPath(int).
signaturePath(String) - Static method in class com.microej.crypto.test.util.EcTestResources
Gets the resource path of the SHA256withECDSA signature of the data4096.bin resource, computed with EcTestResources.privateKeyPath(String).
SignatureTest - Class in com.microej.crypto.test
 
SignatureTest() - Constructor for class com.microej.crypto.test.SignatureTest
 
splitAndTrim(String, String) - Static method in class com.microej.crypto.test.util.Configuration
Splits the given string on the given delimiters, trimming each token and dropping the empty ones.
SUPPORTED_CURVES - Static variable in class com.microej.crypto.test.util.EcTestResources
Every curve the test resources hold material for, hence every curve EcTestResources.CURVES_PROPERTY may list.

T

tearDown() - Method in class com.microej.crypto.test.SignatureTest
 
test(SecureRandom) - Method in class com.microej.crypto.test.SecureRandomTest
 
testAES128_16bytes() - Method in class com.microej.crypto.test.AESCipherTest
Test encryption of 16 data bytes using a 128-bit AES key, and verify the output against a precomputed ciphertext.
testAES128_80bytes() - Method in class com.microej.crypto.test.AESCipherTest
Test encryption of 80 data bytes using a 128-bit AES key, and verify the output against a precomputed ciphertext.
testAES128GCM_16bytes() - Method in class com.microej.crypto.test.AESGCMCipherTest
Test encryption of one zero block under a zero 128-bit key and nonce, without AAD, against the published ciphertext and tag (test case 2).
testAES128GCM_64bytes() - Method in class com.microej.crypto.test.AESGCMCipherTest
Test encryption of 64 data bytes under a 128-bit key, without AAD, against the published ciphertext and tag (test case 3).
testAES256_16bytes() - Method in class com.microej.crypto.test.AESCipherTest
Test encryption of 16 data bytes using a 256-bit AES key, and verify the output against a precomputed ciphertext.
testAES256_80bytes() - Method in class com.microej.crypto.test.AESCipherTest
Test encryption of 80 data bytes using a 256-bit AES key, and verify the output against a precomputed ciphertext.
testAES256GCM_16bytes() - Method in class com.microej.crypto.test.AESGCMCipherTest
Test encryption of one zero block under a zero 256-bit key and nonce, without AAD, against the published ciphertext and tag (test case 14).
testAES256GCM_64bytes() - Method in class com.microej.crypto.test.AESGCMCipherTest
Test encryption of 64 data bytes under a 256-bit key, without AAD, against the published ciphertext and tag (test case 15).
testAesCbcCipherUnderNativePressure() - Method in class com.microej.crypto.test.OomGcRetryTest
Validates an AES/CBC cipher under native heap pressure.
testAESKeyGeneration() - Method in class com.microej.crypto.test.KeyGeneratorTest
 
testAESWrap128_unwrap128() - Method in class com.microej.crypto.test.AESKeyWrapTest
Test wrapping and unwrapping a 128-bit key using a 128-bit KEK.
testAESWrap128_wrap128() - Method in class com.microej.crypto.test.AESKeyWrapTest
Test wrapping a 128-bit key using a 128-bit KEK, and verify the output against the RFC 3394 test vector (section 4.1).
testAESWrap256_unwrap256() - Method in class com.microej.crypto.test.AESKeyWrapTest
Test wrapping and unwrapping a 256-bit key using a 256-bit KEK.
testAESWrap256_wrap128() - Method in class com.microej.crypto.test.AESKeyWrapTest
Test wrapping a 128-bit key using a 256-bit KEK, and verify the output against the RFC 3394 test vector (section 4.3).
testAESWrap256_wrap256() - Method in class com.microej.crypto.test.AESKeyWrapTest
Test wrapping a 256-bit key using a 256-bit KEK, and verify the output against the RFC 3394 test vector (section 4.6).
testAuthenticatedCipherDecrypt() - Method in class com.microej.crypto.test.AESCipherTest
 
testAuthenticatedCipherDecryptWithAad() - Method in class com.microej.crypto.test.AESCipherTest
 
testAuthenticatedCipherEncrypt() - Method in class com.microej.crypto.test.AESCipherTest
 
testAuthenticatedCipherEncryptWithAad() - Method in class com.microej.crypto.test.AESCipherTest
 
testAuthenticatedCipherRoundTripAtEveryTagLength() - Method in class com.microej.crypto.test.AESCipherTest
Encrypting and decrypting at every tag length the standard allows gives the plaintext back, and the tag is as long as it was asked to be.
testCanUsePrivateKeyFromKeyStoreForKeyAgreement() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
 
testCanUsePrivateKeyFromKeyStoreForSignatureAndVerifyItWithCertificate() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
 
testCanUsePrivateKeyFromKeyStoreForSignatureAndVerifyItWithCertificateWithPayload() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
 
testCanUseSecretKeyFromKeyStoreForCipher() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
 
testCertEC() - Method in class com.microej.crypto.test.CertificateTest
Checks that the encoded form of the certificate of every configured Elliptic Curve is the DER resource it was loaded from.
testCertificateFactoryGenerateCertPath() - Method in class com.microej.crypto.test.CertPathValidatorTest
 
testCertPathGetType() - Method in class com.microej.crypto.test.CertPathValidatorTest
 
testCertPathValidatorEmptyPathEmptyTrustStore() - Method in class com.microej.crypto.test.CertPathValidatorTest
 
testCertPathValidatorEmptyPathSingletonTrustStore() - Method in class com.microej.crypto.test.CertPathValidatorTest
 
testCertPathValidatorInvalidChainPathUnrelatedCertificates() - Method in class com.microej.crypto.test.CertPathValidatorTest
 
testCertPathValidatorInvalidChainPathWithCATrusted() - Method in class com.microej.crypto.test.CertPathValidatorTest
 
testCertPathValidatorInvalidChainPathWrongOrder() - Method in class com.microej.crypto.test.CertPathValidatorTest
 
testCertPathValidatorInvalidChainPathWrongOrder2() - Method in class com.microej.crypto.test.CertPathValidatorTest
 
testCertPathValidatorSingletonPathChildSingletonTrustStore() - Method in class com.microej.crypto.test.CertPathValidatorTest
 
testCertPathValidatorSingletonPathParentCASingletonTrustStore() - Method in class com.microej.crypto.test.CertPathValidatorTest
 
testCertPathValidatorSingletonPathParentNonCASingletonTrustStore() - Method in class com.microej.crypto.test.CertPathValidatorTest
 
testCertPathValidatorSingletonPathSameSingletonTrustStore() - Method in class com.microej.crypto.test.CertPathValidatorTest
 
testCertPathValidatorValidChainPathExcludingCASingletonTrustStore() - Method in class com.microej.crypto.test.CertPathValidatorTest
 
testCertPathValidatorValidChainPathIncludingCASingletonTrustStore1() - Method in class com.microej.crypto.test.CertPathValidatorTest
 
testCertPathValidatorValidChainPathIncludingCASingletonTrustStore2() - Method in class com.microej.crypto.test.CertPathValidatorTest
 
testCertPathValidatorValidChainPathIncludingNonCASingletonTrustStore() - Method in class com.microej.crypto.test.CertPathValidatorTest
 
testCertPem() - Method in class com.microej.crypto.test.CertificateTest
Checks that the encoded form of a certificate read in PEM is the PEM resource it was loaded from.
testCertRSA() - Method in class com.microej.crypto.test.CertificateTest
Checks that the encoded form of the certificate of every configured RSA key size is the DER resource it was loaded from.
testCheckEntryType() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
 
testCipherAtNonZeroOffsets() - Method in class com.microej.crypto.test.AESCipherTest
Encrypting from a sub-range into an offset produces the ciphertext of the same operation at offset zero, decrypting it back from a sub-range into an offset gives the plaintext, and neither operation touches the bytes around its result, on a block mode and a stream mode.
testCipherAtNonZeroOffsets() - Method in class com.microej.crypto.test.AESGCMCipherTest
Encrypting from a sub-range into an offset, with the additional authenticated data read from a sub-range too, produces the ciphertext and tag of the same operation at offset zero, and they decrypt back from a sub-range into an offset without touching the bytes around either result.
testCipherAtNonZeroOffsets() - Method in class com.microej.crypto.test.DESedeCipherTest
Encrypting from a sub-range into an offset produces the ciphertext of the same operation at offset zero, decrypting it back from a sub-range into an offset gives the plaintext, and neither operation touches the bytes around its result.
testCipherAtNonZeroOffsets() - Method in class com.microej.crypto.test.RSACipherTest
Encrypting from a sub-range into an offset and decrypting back from a sub-range into an offset round-trip the message for every configured key size, without touching the bytes around either result.
testCipherResolution() - Method in class com.microej.crypto.test.AlgorithmResolutionTest
Checks the cipher lookup.
testContainsAlias() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
 
testCtrDecryptMatchesNistVector() - Method in class com.microej.crypto.test.AESNistVectorsTest
Decrypting the appendix F.5 ciphertext with AES/CTR gives the plaintext back.
testCtrEncryptMatchesNistVector() - Method in class com.microej.crypto.test.AESNistVectorsTest
Encrypting the appendix F plaintext with AES/CTR gives the ciphertext of appendix F.5.
testDecryptRejectsTamperedCiphertext() - Method in class com.microej.crypto.test.RSACipherTest
A ciphertext whose bytes were altered does not decrypt, and the failure is the BadPaddingException that Cipher.doFinal(byte[]) declares.
testDeleteEntryInvalidAlias() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
 
testDESede_16bytes() - Method in class com.microej.crypto.test.DESedeCipherTest
Test encryption of 16 data bytes using a DESede key, and verify the output against a precomputed ciphertext.
testDESede_16bytes_no_IV() - Method in class com.microej.crypto.test.DESedeCipherTest
Test encryption of 16 data bytes using a DESede key without an initialization vector.
testDESede_80bytes() - Method in class com.microej.crypto.test.DESedeCipherTest
Test encryption of 80 data bytes using a DESede key, and verify the output against a precomputed ciphertext.
testDESede_80bytes_no_IV() - Method in class com.microej.crypto.test.DESedeCipherTest
Test encryption of 80 data bytes using a DESede key without an initialization vector.
testDifferentSecondMessageWithoutReinit() - Method in class com.microej.crypto.test.MacReuseTest
A different second message through the same object gives that message's MAC.
testDigestAtNonZeroOffsets() - Method in class com.microej.crypto.test.MessageDigestTest
A digest computed from a sub-range and written at an offset lands where it was asked to, is the published value, and leaves the rest of the output alone, for each algorithm.
testDoFinalWithoutInputAfterUpdate() - Method in class com.microej.crypto.test.AESGCMCipherTest
Passing the whole message to update() and then calling doFinal() with no argument gives the authentication tag, and the two outputs together decrypt.
testEcbDecryptMatchesNistVector() - Method in class com.microej.crypto.test.AESNistVectorsTest
Decrypting the appendix F.1 ciphertext with AES/ECB gives the plaintext back.
testEcbEncryptMatchesNistVector() - Method in class com.microej.crypto.test.AESNistVectorsTest
Encrypting the appendix F plaintext with AES/ECB gives the ciphertext of appendix F.1.
testECGeneratedKeyPairKeyAgreementCapabilities() - Method in class com.microej.crypto.test.KeyPairGeneratorTest
Checks that two generated EC key pairs of the same curve agree on an ECDH shared secret.
testECGeneratedKeyPairSigningCapabilities() - Method in class com.microej.crypto.test.KeyPairGeneratorTest
 
testECKeyPairGeneration() - Method in class com.microej.crypto.test.KeyPairGeneratorTest
 
testEcKeyPairGeneratorUnderNativePressure() - Method in class com.microej.crypto.test.OomGcRetryTest
Validates an EC P-256 key pair generation under native heap pressure.
testEcSignatureUnderNativePressure() - Method in class com.microej.crypto.test.OomGcRetryTest
Validates an EC key import through KeyFactory and an ECDSA sign and verify under native heap pressure.
testECValidateGeneratedKeyPairEncoding() - Method in class com.microej.crypto.test.KeyPairGeneratorTest
 
testEmptyPassword_PBKDF2WithHmacSHA256_generation() - Method in class com.microej.crypto.test.SecretFactoryTest
Test PBKDF2 with Hmac SHA256 empty password Hashing.
testEncryptDecryptWithAAD() - Method in class com.microej.crypto.test.AESGCMCipherTest
Test GCM mode specific encryption and authentication workflow on test case 4: the published ciphertext and tag, the decryption, and the AEAD failures after tampering on the ciphertext or the AAD.
testExportPrivateKeyToPkcs8() - Method in class com.microej.crypto.test.KeyFactoryTest
 
testGcConsistency() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
 
testGcmTagLengthBoundary() - Method in class com.microej.crypto.test.AESGCMCipherTest
Verifies the GCM authentication tag length boundary from both sides.
testGeneratePrivateRejectsInvalidEncoding() - Method in class com.microej.crypto.test.KeyFactoryTest
Encoded private key bytes the backend cannot decode are reported with the checked exception the JCA declares, not with a runtime exception an Application following the JCA contract would not catch.
testGeneratePublicKeyFromECNamedCurveAndAffineCoordinates() - Method in class com.microej.crypto.test.KeyFactoryTest
 
testGeneratePublicRejectsInvalidEncoding() - Method in class com.microej.crypto.test.KeyFactoryTest
Encoded public key bytes the backend cannot decode are reported with the checked exception the JCA declares.
testGeneratePublicRejectsUnknownCurve() - Method in class com.microej.crypto.test.KeyFactoryTest
A named-curve public key spec the backend cannot use is reported with the checked exception the JCA declares.
testGenerateSecret() - Method in class com.microej.crypto.test.SecretFactoryTest
Test all PBKDF2 with HMAC
testGenerateSecretFromPublicKeyExchange() - Method in class com.microej.crypto.test.KeyAgreementTest
 
testGenerateSeed() - Method in class com.microej.crypto.test.SecureRandomTest
Test that generateSeed returns a byte array of the right length
testGet256Bytes() - Method in class com.microej.crypto.test.SecureRandomTest
Test getting 256 bytes
testGet8192Bytes() - Method in class com.microej.crypto.test.SecureRandomTest
Test getting 8192 bytes
testGetCertificate() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
 
testGetCertificateChain() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
 
testGetCertificateChainForInvalidAliasReturnsNull() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
 
testGetCertificateChainForNonCertificateAliasReturnsNull() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
 
testGetCertificateForCertificateChainAliasReturnsFirstCertificate() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
 
testGetCertificateForInvalidAliasReturnsNull() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
 
testGetCertificateForNonCertificateAliasReturnsNull() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
 
testGetIvReturnsNullForEcb() - Method in class com.microej.crypto.test.AESCipherTest
ECB has no initialization vector, so getIV() reports none.
testGetIvRoundTripsOnCbcCtrAndGcm() - Method in class com.microej.crypto.test.AESCipherTest
A cipher initialized without parameters generates an initialization vector, returns it from getIV() with the length the transformation implies, and decrypting with it gives the plaintext back, under a 128-bit and a 256-bit key.
testGetKey() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
 
testGetKeyForInvalidAliasReturnsNull() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
 
testGetKeyForNonKeyAliasReturnsNull() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
 
testHmacMD5() - Method in class com.microej.crypto.test.MacTest
Test HmacMD5 algorithm with various messages and key sizes
testHmacSHA1() - Method in class com.microej.crypto.test.MacTest
Test HmacSHA1 algorithm with various messages and key sizes
testHmacSHA256() - Method in class com.microej.crypto.test.MacTest
Test HmacSHA256algorithm with various messages and key sizes
testHmacSha256UnderNativePressure() - Method in class com.microej.crypto.test.OomGcRetryTest
Validates an HmacSHA256 MAC under native heap pressure.
testImportedPrivateKeyFromDataIsUsable() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
Checks that a private key imported through KeyStore.setKeyEntry(String, byte[], Certificate[]) is usable, not merely retrievable.
testImportedPrivateKeyFromKeyObjectIsUsable() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
Checks that a private key imported through KeyStore.setKeyEntry(String, Key, char[], Certificate[]) is usable, not merely retrievable.
testInvalidAlgorithm() - Method in class com.microej.crypto.test.KeyGeneratorTest
Ensure invalid algorithms are handled correctly
testInvalidAlgorithm() - Method in class com.microej.crypto.test.KeyPairGeneratorTest
Ensure invalid algorithm are handled correctly
testInvalidPaddingIsRejected() - Method in class com.microej.crypto.test.PKCS5PaddingCipherTest
Every form of invalid PKCS#5 padding must be rejected with a BadPaddingException.
testInvalidParameter() - Method in class com.microej.crypto.test.KeyGeneratorTest
Ensure invalid parameters (key size in bits) are handled correctly
testInvalidVerifySHA256withECDSA() - Method in class com.microej.crypto.test.SignatureTest
Test invalid signature verification using SHA256withECDSA algorithm with every configured Elliptic Curve key
testInvalidVerifySHA256withRSA() - Method in class com.microej.crypto.test.SignatureTest
Test invalid signature verification using SHA256withRSA algorithm with every configured RSA key size
testIsCertificateEntryFollowsWhatIsSet() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
Checks that a certificate alias is reported as a certificate entry only while it holds a certificate.
testIssuer() - Method in class com.microej.crypto.test.CertificateDataTest
 
testKeyFactoryResolution() - Method in class com.microej.crypto.test.AlgorithmResolutionTest
Checks the key factory lookup.
testKeyGeneratorResolution() - Method in class com.microej.crypto.test.AlgorithmResolutionTest
Checks the key generator lookup.
testKeyPairGeneratorResolution() - Method in class com.microej.crypto.test.AlgorithmResolutionTest
Checks the key pair generator lookup, which is the one lookup this class cannot follow with an operation.
testListAliases() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
 
testListAliasesDoesNotLeakStaleBytes() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
 
testLoadWithWrongPasswordIsRejected() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
Loading the KeyStore with a wrong password fails with an IOException caused by an UnrecoverableKeyException, as KeyStore.load(InputStream, char[]) specifies, so a caller can tell a wrong password from any other load failure.
testMacAtNonZeroOffsets() - Method in class com.microej.crypto.test.MacTest
A MAC computed from a sub-range and written at an offset lands where it was asked to, is the published value, and leaves the rest of the output alone, for each algorithm.
testMacResolution() - Method in class com.microej.crypto.test.AlgorithmResolutionTest
Checks the MAC lookup.
testMalformedVerifySHA256withECDSA() - Method in class com.microej.crypto.test.SignatureTest
Test malformed signature verification using SHA256withECDSA algorithm with every configured Elliptic Curve key: the signature is shorter than a valid one and is not DER encoded.
testMalformedVerifySHA256withRSA() - Method in class com.microej.crypto.test.SignatureTest
Test malformed signature verification using SHA256withRSA algorithm with every configured RSA key size: the signature is one byte shorter than the modulus.
testManyGenerations() - Method in class com.microej.crypto.test.SecureRandomTest
Test that the PRNG can handle a large number of generations (e.g.
testMD5() - Method in class com.microej.crypto.test.MessageDigestTest
Tests MD5 algorithm with different data sizes.
testMessageDigestResolution() - Method in class com.microej.crypto.test.AlgorithmResolutionTest
Checks the message digest lookup.
testMultiBlockUpdateMatchesSinglePass() - Method in class com.microej.crypto.test.AESNistVectorsTest
Feeding the input one block at a time through update() gives the same output as one doFinal(), when encrypting and when decrypting.
testMultiPartCipherAndResetOnDoFinalNoPadding() - Method in class com.microej.crypto.test.AESCipherTest
 
testMultiPartCipherAtNonZeroOffsets() - Method in class com.microej.crypto.test.AESCipherTest
A multi-part operation whose update and doFinal both read from a sub-range and write at an offset produces, end to end, the ciphertext of the single-part operation at offset zero.
testMultipleSecureRandom() - Method in class com.microej.crypto.test.SecureRandomTest
Test creating multiple SecureRandoms
testNext() - Method in class com.microej.crypto.test.SecureRandomTest
Test that next returns ints with the right number of leading zeros
testNextBytes() - Method in class com.microej.crypto.test.SecureRandomTest
Test that nextBytes does not always return zeros
testParallelCipherEncryption() - Method in class com.microej.crypto.test.AESCipherTest
Test parallel Cipher initialization and encryption
testParallelCipherEncryption() - Method in class com.microej.crypto.test.AESGCMCipherTest
Test parallel Cipher initialization and encryption
testParallelCipherEncryption() - Method in class com.microej.crypto.test.DESedeCipherTest
Test parallel Cipher initialization and encryption
testParallelKeyWrap() - Method in class com.microej.crypto.test.AESKeyWrapTest
Test parallel Cipher initialization and key wrapping.
testPBES2_EmptyPassword_Fixed_Salt_ICount_IV_16Bytes() - Method in class com.microej.crypto.test.PBES2CipherTest
Test the all supported PBES2 ciphers with an empty password, fixed salt, iteration count and IV, encrypting 16 bytes of data.
testPBES2_EmptyPassword_Fixed_Salt_ICount_IV_1Byte() - Method in class com.microej.crypto.test.PBES2CipherTest
Test the all supported PBES2 ciphers with an empty password, fixed salt, iteration count and IV, encrypting 1 byte of data.
testPBES2_EmptyPassword_Fixed_Salt_ICount_IV_80Bytes() - Method in class com.microej.crypto.test.PBES2CipherTest
Test the all supported PBES2 ciphers with an empty password, fixed salt, iteration count and IV, encrypting 80 bytes of data.
testPBES2_Fixed_16BytesPassword_Fixed_Salt_ICount_IV_16Bytes() - Method in class com.microej.crypto.test.PBES2CipherTest
Test the all supported PBES2 ciphers with a fixed 16Bytes password, fixed salt, iteration count and IV, encrypting 16 bytes of data.
testPBES2_Fixed_16BytesPassword_Fixed_Salt_ICount_IV_1Byte() - Method in class com.microej.crypto.test.PBES2CipherTest
Test the all supported PBES2 ciphers with a fixed 16Bytes password, fixed salt, iteration count and IV, encrypting 1 byte of data.
testPBES2_Fixed_16BytesPassword_Fixed_Salt_ICount_IV_80Bytes() - Method in class com.microej.crypto.test.PBES2CipherTest
Test the all supported PBES2 ciphers with a fixed 16Bytes password, fixed salt, iteration count and IV, encrypting 80 bytes of data.
testPBES2_Fixed_1BytePassword_Fixed_Salt_ICount_IV_16Bytes() - Method in class com.microej.crypto.test.PBES2CipherTest
Test the all supported PBES2 ciphers with a fixed 1Byte password, fixed salt, iteration count and IV, encrypting 16 bytes of data.
testPBES2_Fixed_1BytePassword_Fixed_Salt_ICount_IV_1Byte() - Method in class com.microej.crypto.test.PBES2CipherTest
Test the all supported PBES2 ciphers with a fixed 1Byte password, fixed salt, iteration count and IV, encrypting 1 byte of data.
testPBES2_Fixed_1BytePassword_Fixed_Salt_ICount_IV_80Bytes() - Method in class com.microej.crypto.test.PBES2CipherTest
Test the all supported PBES2 ciphers with a fixed 1Byte password, fixed salt, iteration count and IV, encrypting 80 bytes of data.
testPBES2_Fixed_32BytesPassword_Fixed_Salt_ICount_IV_16Bytes() - Method in class com.microej.crypto.test.PBES2CipherTest
Test the all supported PBES2 ciphers with a fixed 32Bytes password, fixed salt, iteration count and IV, encrypting 16 bytes of data.
testPBES2_Fixed_32BytesPassword_Fixed_Salt_ICount_IV_1Byte() - Method in class com.microej.crypto.test.PBES2CipherTest
Test the all supported PBES2 ciphers with a fixed 32Bytes password, fixed salt, iteration count and IV, encrypting 1 byte of data.
testPBES2_Fixed_32BytesPassword_Fixed_Salt_ICount_IV_80Bytes() - Method in class com.microej.crypto.test.PBES2CipherTest
Test the all supported PBES2 ciphers with a fixed 32Bytes password, fixed salt, iteration count and IV, encrypting 80 bytes of data.
testPBES2_Fixed_64BytesPassword_Fixed_Salt_ICount_IV_16Bytes() - Method in class com.microej.crypto.test.PBES2CipherTest
Test the all supported PBES2 ciphers with a fixed 64Bytes password, fixed salt, iteration count and IV, encrypting 16 bytes of data.
testPBES2_Fixed_64BytesPassword_Fixed_Salt_ICount_IV_1Byte() - Method in class com.microej.crypto.test.PBES2CipherTest
Test the all supported PBES2 ciphers with a fixed 64Bytes password, fixed salt, iteration count and IV, encrypting 1 byte of data.
testPBES2_Fixed_64BytesPassword_Fixed_Salt_ICount_IV_80Bytes() - Method in class com.microej.crypto.test.PBES2CipherTest
Test the all supported PBES2 ciphers with a fixed 64Bytes password, fixed salt, iteration count and IV, encrypting 80 bytes of data.
testPBES2_No_Params() - Method in class com.microej.crypto.test.PBES2CipherTest
Test the all supported PBES2 ciphers without any parameters, encrypting 80 bytes of data (size irrelevant).
testPBES2_Random_16BytesPassword_Random_Salt_ICount_IV_16Bytes() - Method in class com.microej.crypto.test.PBES2CipherTest
Test the all supported PBES2 ciphers with a random 16Bytes password, random salt, iteration count and IV, encrypting 16 bytes of data.
testPBES2_Random_16BytesPassword_Random_Salt_ICount_IV_1Byte() - Method in class com.microej.crypto.test.PBES2CipherTest
Test the all supported PBES2 ciphers with a random 16Bytes password, random salt , iteration count and IV, encrypting 1 byte of data.
testPBES2_Random_16BytesPassword_Random_Salt_ICount_IV_80Bytes() - Method in class com.microej.crypto.test.PBES2CipherTest
Test the all supported PBES2 ciphers with a random 16Bytes password, random salt, iteration count and IV, encrypting 80 bytes of data.
testPBES2_Random_1BytePassword_Random_Salt_ICount_IV_16Bytes() - Method in class com.microej.crypto.test.PBES2CipherTest
Test the all supported PBES2 ciphers with a random 1Byte password, random salt, iteration count and IV, encrypting 16 bytes of data.
testPBES2_Random_1BytePassword_Random_Salt_ICount_IV_1Byte() - Method in class com.microej.crypto.test.PBES2CipherTest
Test the all supported PBES2 ciphers with a random 1Byte password, random salt, iteration count and IV, encrypting 1 byte of data.
testPBES2_Random_1BytePassword_Random_Salt_ICount_IV_80Bytes() - Method in class com.microej.crypto.test.PBES2CipherTest
Test the all supported PBES2 ciphers with a random 1Byte password, random salt, iteration count and IV, encrypting 80 bytes of data.
testPBES2_Random_32BytesPassword_Random_Salt_ICount_IV_16Bytes() - Method in class com.microej.crypto.test.PBES2CipherTest
Test the all supported PBES2 ciphers with a random 32Bytes password, random salt, iteration count and IV, encrypting 16 bytes of data.
testPBES2_Random_32BytesPassword_Random_Salt_ICount_IV_1Byte() - Method in class com.microej.crypto.test.PBES2CipherTest
Test the all supported PBES2 ciphers with a random 32Bytes password, random salt, iteration count and IV, encrypting 1 byte of data.
testPBES2_Random_32BytesPassword_Random_Salt_ICount_IV_80Bytes() - Method in class com.microej.crypto.test.PBES2CipherTest
Test the all supported PBES2 ciphers with a random 32Bytes password, random salt, iteration count and IV, encrypting 80 bytes of data.
testPBES2_Random_64BytesPassword_Random_Salt_ICount_IV_16Bytes() - Method in class com.microej.crypto.test.PBES2CipherTest
Test the all supported PBES2 ciphers with a random 64Bytes password, random salt, iteration count and IV, encrypting 16 bytes of data.
testPBES2_Random_64BytesPassword_Random_Salt_ICount_IV_1Byte() - Method in class com.microej.crypto.test.PBES2CipherTest
Test the all supported PBES2 ciphers with a random 64Bytes password, random salt, iteration count and IV, encrypting 1 byte of data.
testPBES2_Random_64BytesPassword_Random_Salt_ICount_IV_80Bytes() - Method in class com.microej.crypto.test.PBES2CipherTest
Test the all supported PBES2 ciphers with a random 64Bytes password, random salt, iteration count and IV, encrypting 80 bytes of data.
testPBES2_Wrong_Params() - Method in class com.microej.crypto.test.PBES2CipherTest
Test the all supported PBES2 ciphers with bad parameters.
testPbkdf2UnderNativePressure() - Method in class com.microej.crypto.test.OomGcRetryTest
Validates a PBKDF2WithHmacSHA256 key derivation under native heap pressure.
testPKCS12PBE_EmptyPassword_Fixed_Salt_ICount_16Bytes() - Method in class com.microej.crypto.test.PKCS12PBECipherTest
Test the all supported PKCS12 PBE ciphers with an empty password, fixed salt and iteration count, encrypting 16 bytes of data.
testPKCS12PBE_EmptyPassword_Fixed_Salt_ICount_1Byte() - Method in class com.microej.crypto.test.PKCS12PBECipherTest
Test the all supported PKCS12 PBE ciphers with an empty password, fixed salt and iteration count, encrypting 1 byte of data.
testPKCS12PBE_EmptyPassword_Fixed_Salt_ICount_80Bytes() - Method in class com.microej.crypto.test.PKCS12PBECipherTest
Test the all supported PKCS12 PBE ciphers with an empty password, fixed salt and iteration count, encrypting 80 bytes of data.
testPKCS12PBE_Fixed_16BytesPassword_Fixed_Salt_ICount_16Bytes() - Method in class com.microej.crypto.test.PKCS12PBECipherTest
Test the all supported PKCS12 PBE ciphers with a fixed 16Bytes password, fixed salt and iteration count, encrypting 16 bytes of data.
testPKCS12PBE_Fixed_16BytesPassword_Fixed_Salt_ICount_1Byte() - Method in class com.microej.crypto.test.PKCS12PBECipherTest
Test the all supported PKCS12 PBE ciphers with a fixed 16Bytes password, fixed salt and iteration count, encrypting 1 byte of data.
testPKCS12PBE_Fixed_16BytesPassword_Fixed_Salt_ICount_80Bytes() - Method in class com.microej.crypto.test.PKCS12PBECipherTest
Test the all supported PKCS12 PBE ciphers with a fixed 16Bytes password, fixed salt and iteration count, encrypting 80 bytes of data.
testPKCS12PBE_Fixed_1BytePassword_Fixed_Salt_ICount_16Bytes() - Method in class com.microej.crypto.test.PKCS12PBECipherTest
Test the all supported PKCS12 PBE ciphers with a fixed 1Byte password, fixed salt and iteration count, encrypting 16 bytes of data.
testPKCS12PBE_Fixed_1BytePassword_Fixed_Salt_ICount_1Byte() - Method in class com.microej.crypto.test.PKCS12PBECipherTest
Test the all supported PKCS12 PBE ciphers with a fixed 1Byte password, fixed salt and iteration count, encrypting 1 byte of data.
testPKCS12PBE_Fixed_1BytePassword_Fixed_Salt_ICount_80Bytes() - Method in class com.microej.crypto.test.PKCS12PBECipherTest
Test the all supported PKCS12 PBE ciphers with a fixed 1Byte password, fixed salt and iteration count, encrypting 80 bytes of data.
testPKCS12PBE_Fixed_32BytesPassword_Fixed_Salt_ICount_16Bytes() - Method in class com.microej.crypto.test.PKCS12PBECipherTest
Test the all supported PKCS12 PBE ciphers with a fixed 32Bytes password, fixed salt and iteration count, encrypting 16 bytes of data.
testPKCS12PBE_Fixed_32BytesPassword_Fixed_Salt_ICount_1Byte() - Method in class com.microej.crypto.test.PKCS12PBECipherTest
Test the all supported PKCS12 PBE ciphers with a fixed 32Bytes password, fixed salt and iteration count, encrypting 1 byte of data.
testPKCS12PBE_Fixed_32BytesPassword_Fixed_Salt_ICount_80Bytes() - Method in class com.microej.crypto.test.PKCS12PBECipherTest
Test the all supported PKCS12 PBE ciphers with a fixed 32Bytes password, fixed salt and iteration count, encrypting 80 bytes of data.
testPKCS12PBE_Fixed_64BytesPassword_Fixed_Salt_ICount_16Bytes() - Method in class com.microej.crypto.test.PKCS12PBECipherTest
Test the all supported PKCS12 PBE ciphers with a fixed 64Bytes password, fixed salt and iteration count, encrypting 16 bytes of data.
testPKCS12PBE_Fixed_64BytesPassword_Fixed_Salt_ICount_1Byte() - Method in class com.microej.crypto.test.PKCS12PBECipherTest
Test the all supported PKCS12 PBE ciphers with a fixed 64Bytes password, fixed salt and iteration count, encrypting 1 byte of data.
testPKCS12PBE_Fixed_64BytesPassword_Fixed_Salt_ICount_80Bytes() - Method in class com.microej.crypto.test.PKCS12PBECipherTest
Test the all supported PKCS12 PBE ciphers with a fixed 64Bytes password, fixed salt and iteration count, encrypting 80 bytes of data.
testPKCS12PBE_Fixed_Password_Fixed_Salt_ICount_IV() - Method in class com.microej.crypto.test.PKCS12PBECipherTest
Test the all supported PKCS12 PBE ciphers with a fixed 32Bytes password (size irrelevant), fixed salt and iteration count, encrypting 80 bytes of data (size irrelevant).
testPKCS12PBE_No_Params() - Method in class com.microej.crypto.test.PKCS12PBECipherTest
Test the all supported PKCS12 PBE ciphers without any parameters, encrypting 80 bytes of data (size irrelevant).
testPKCS12PBE_Random_16BytesPassword_Random_Salt_ICount_16Bytes() - Method in class com.microej.crypto.test.PKCS12PBECipherTest
Test the all supported PKCS12 PBE ciphers with a random 16Bytes password, random salt and iteration count, encrypting 16 bytes of data.
testPKCS12PBE_Random_16BytesPassword_Random_Salt_ICount_1Byte() - Method in class com.microej.crypto.test.PKCS12PBECipherTest
Test the all supported PKCS12 PBE ciphers with a random 16Bytes password, random salt and iteration count, encrypting 1 byte of data.
testPKCS12PBE_Random_16BytesPassword_Random_Salt_ICount_80Bytes() - Method in class com.microej.crypto.test.PKCS12PBECipherTest
Test the all supported PKCS12 PBE ciphers with a random 16Bytes password, random salt and iteration count, encrypting 80 bytes of data.
testPKCS12PBE_Random_1BytePassword_Random_Salt_ICount_16Bytes() - Method in class com.microej.crypto.test.PKCS12PBECipherTest
Test the all supported PKCS12 PBE ciphers with a random 1Byte password, random salt and iteration count, encrypting 16 bytes of data.
testPKCS12PBE_Random_1BytePassword_Random_Salt_ICount_1Byte() - Method in class com.microej.crypto.test.PKCS12PBECipherTest
Test the all supported PKCS12 PBE ciphers with a random 1Byte password, random salt and iteration count, encrypting 1 byte of data.
testPKCS12PBE_Random_1BytePassword_Random_Salt_ICount_80Bytes() - Method in class com.microej.crypto.test.PKCS12PBECipherTest
Test the all supported PKCS12 PBE ciphers with a random 1Byte password, random salt and iteration count, encrypting 80 bytes of data.
testPKCS12PBE_Random_32BytesPassword_Random_Salt_ICount_16Bytes() - Method in class com.microej.crypto.test.PKCS12PBECipherTest
Test the all supported PKCS12 PBE ciphers with a random 32Bytes password, random salt and iteration count, encrypting 16 bytes of data.
testPKCS12PBE_Random_32BytesPassword_Random_Salt_ICount_1Byte() - Method in class com.microej.crypto.test.PKCS12PBECipherTest
Test the all supported PKCS12 PBE ciphers with a random 32Bytes password, random salt and iteration count, encrypting 1 byte of data.
testPKCS12PBE_Random_32BytesPassword_Random_Salt_ICount_80Bytes() - Method in class com.microej.crypto.test.PKCS12PBECipherTest
Test the all supported PKCS12 PBE ciphers with a random 32Bytes password, random salt and iteration count, encrypting 80 bytes of data.
testPKCS12PBE_Random_64BytesPassword_Random_Salt_ICount_16Bytes() - Method in class com.microej.crypto.test.PKCS12PBECipherTest
Test the all supported PKCS12 PBE ciphers with a random 64Bytes password, random salt and iteration count, encrypting 16 bytes of data.
testPKCS12PBE_Random_64BytesPassword_Random_Salt_ICount_1Byte() - Method in class com.microej.crypto.test.PKCS12PBECipherTest
Test the all supported PKCS12 PBE ciphers with a random 64Bytes password, random salt and iteration count, encrypting 1 byte of data.
testPKCS12PBE_Random_64BytesPassword_Random_Salt_ICount_80Bytes() - Method in class com.microej.crypto.test.PKCS12PBECipherTest
Test the all supported PKCS12 PBE ciphers with a random 64Bytes password, random salt and iteration count, encrypting 80 bytes of data.
testPKCS12PBE_Wrong_Params() - Method in class com.microej.crypto.test.PKCS12PBECipherTest
Test the all supported PKCS12 PBE ciphers with bad parameters.
testPrivateKeyGetEncodedReturnsDefensiveCopy() - Method in class com.microej.crypto.test.KeyFactoryTest
Verifies that the PrivateKey returned by a KeyFactory hands back a fresh defensive copy from Key.getEncoded() on every call, so a caller that mutates the returned array cannot corrupt the key's cached encoding.
testPublicKeyGetEncodedReturnsDefensiveCopy() - Method in class com.microej.crypto.test.KeyFactoryTest
Verifies that the PublicKey returned by a KeyFactory hands back a fresh defensive copy from Key.getEncoded() on every call, so a caller that mutates the returned array cannot corrupt the key's cached encoding.
testReinitFromDecryptToEncryptStreamsAsFresh() - Method in class com.microej.crypto.test.AESGCMCipherTest
A GCM cipher initialized for decryption and then for encryption streams as a freshly created encrypting cipher does.
testReinitWithDifferentKek() - Method in class com.microej.crypto.test.AESKeyWrapTest
Initializing an already initialized key wrap cipher with another key-encryption key wraps as a freshly created cipher does, and the result unwraps.
testReinitWithDifferentKeyAndIv() - Method in class com.microej.crypto.test.AESCipherTest
Initializing an already initialized cipher with another key and another initialization vector gives a cipher that encrypts as a freshly created one does, on a block mode and a stream mode.
testReinitWithDifferentKeyAndNonce() - Method in class com.microej.crypto.test.AESGCMCipherTest
Initializing an already initialized GCM cipher with another key and another nonce gives a cipher that encrypts as a freshly created one does.
testRejectsKeyIvReuseOnReinit() - Method in class com.microej.crypto.test.AESGCMCipherTest
Verifies that re-initializing a GCM cipher for encryption with the same key and IV is rejected, preventing catastrophic nonce reuse.
testRepeatedGetCertificate() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
Gets the trusted certificate repeatedly, to catch a leak or a stale handle in the get path.
testRepeatedSetGetDeleteSecretKey() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
Checks that repeated set, get and delete cycles of a secret key keep returning the value set.
testRequireNotEmptyRejectsEmptyList() - Method in class com.microej.crypto.test.ConfigurationTest
 
testRequireNotEmptyReturnsValues() - Method in class com.microej.crypto.test.ConfigurationTest
 
testReusedMacFedInTwoParts() - Method in class com.microej.crypto.test.MacReuseTest
Feeding the reused object through update() before doFinal() gives the same MAC as one call.
testRoundTripVariousLengths() - Method in class com.microej.crypto.test.PKCS5PaddingCipherTest
Encrypting then decrypting must return the original plaintext for input lengths that span every padding value, including a length that is an exact multiple of the block size (which appends a full padding block).
testRSA_OAEP_params() - Method in class com.microej.crypto.test.RSACipherTest
Test the "RSA/ECB/OAEPWithdigestAndMGF1Padding" cipher with a single-part operation containing 1 byte of input data and explicit OAEP encryption parameters.
testRSA_OAEPWithSHA1AndMGF1Padding_MultiPart_16bytes() - Method in class com.microej.crypto.test.RSACipherTest
Test the "RSA/ECB/OAEPWithSHA-1AndMGF1Padding" cipher with a multi-part operation containing 16 bytes of input data.
testRSA_OAEPWithSHA1AndMGF1Padding_SinglePart_16bytes() - Method in class com.microej.crypto.test.RSACipherTest
Test the "RSA/ECB/OAEPWithSHA-1AndMGF1Padding" cipher with a single-part operation containing 16 bytes of input data.
testRSA_OAEPWithSHA1AndMGF1Padding_SinglePart_1byte() - Method in class com.microej.crypto.test.RSACipherTest
Test the "RSA/ECB/OAEPWithSHA-1AndMGF1Padding" cipher with a single-part operation containing 1 byte of input data.
testRSA_OAEPWithSHA1AndMGF1Padding_SinglePart_lengthError() - Method in class com.microej.crypto.test.RSACipherTest
Test the "RSA/ECB/OAEPWithSHA-1AndMGF1Padding" cipher with a single-part operation containing a big input data that is expected to throw an exception.
testRSA_OAEPWithSHA1AndMGF1Padding_SinglePart_maxBytes() - Method in class com.microej.crypto.test.RSACipherTest
Test the "RSA/ECB/OAEPWithSHA-1AndMGF1Padding" cipher with a single-part operation containing max bytes of input data.
testRSA_OAEPWithSHA256AndMGF1Padding_MultiPart_16bytes() - Method in class com.microej.crypto.test.RSACipherTest
Test the "RSA/ECB/OAEPWithSHA-256AndMGF1Padding" cipher with a multi-part operation containing 16 bytes of input data.
testRSA_OAEPWithSHA256AndMGF1Padding_SinglePart_16bytes() - Method in class com.microej.crypto.test.RSACipherTest
Test the "RSA/ECB/OAEPWithSHA-256AndMGF1Padding" cipher with a single-part operation containing 16 bytes of input data.
testRSA_OAEPWithSHA256AndMGF1Padding_SinglePart_1byte() - Method in class com.microej.crypto.test.RSACipherTest
Test the "RSA/ECB/OAEPWithSHA-256AndMGF1Padding" cipher with a single-part operation containing 1 byte of input data.
testRSA_OAEPWithSHA256AndMGF1Padding_SinglePart_lengthError() - Method in class com.microej.crypto.test.RSACipherTest
Test the "RSA/ECB/OAEPWithSHA-256AndMGF1Padding" cipher with a single-part operation containing a big input data that is expected to throw an exception.
testRSA_OAEPWithSHA256AndMGF1Padding_SinglePart_maxBytes() - Method in class com.microej.crypto.test.RSACipherTest
Test the "RSA/ECB/OAEPWithSHA-256AndMGF1Padding" cipher with a single-part operation containing max bytes of input data.
testRSA_PKCS1Padding_MultiPart_16bytes() - Method in class com.microej.crypto.test.RSACipherTest
Test the "RSA/ECB/PKCS1Padding" cipher with a multi-part operation containing 16 bytes of input data.
testRSA_PKCS1Padding_SinglePart_16bytes() - Method in class com.microej.crypto.test.RSACipherTest
Test the "RSA/ECB/PKCS1Padding" cipher with a single-part operation containing 16 bytes of input data.
testRSA_PKCS1Padding_SinglePart_1byte() - Method in class com.microej.crypto.test.RSACipherTest
Test the "RSA/ECB/PKCS1Padding" cipher with a single-part operation containing 1 byte of input data.
testRSA_PKCS1Padding_SinglePart_lengthError() - Method in class com.microej.crypto.test.RSACipherTest
Test the "RSA/ECB/PKCS1Padding" cipher with a single-part operation containing a big input data that is expected to throw an exception.
testRSA_PKCS1Padding_SinglePart_maxBytes() - Method in class com.microej.crypto.test.RSACipherTest
Test the "RSA/ECB/PKCS1Padding" cipher with a single-part operation containing max bytes of input data.
testRSAGeneratedKeyPairEncryptionCapabilities() - Method in class com.microej.crypto.test.KeyPairGeneratorTest
Checks that a generated RSA key pair encrypts and decrypts with every RSA padding scheme.
testRSAGeneratedKeyPairSigningCapabilities() - Method in class com.microej.crypto.test.KeyPairGeneratorTest
 
testRSAKeyPairGeneration() - Method in class com.microej.crypto.test.KeyPairGeneratorTest
 
testRSAValidateGeneratedKeyPairEncoding() - Method in class com.microej.crypto.test.KeyPairGeneratorTest
 
testSameMessageTwiceWithoutReinit() - Method in class com.microej.crypto.test.MacReuseTest
The same message twice through one object gives the same MAC twice.
testSecretKeyFactoryResolution() - Method in class com.microej.crypto.test.AlgorithmResolutionTest
Checks the secret key factory lookup.
testSecureRandomsWithDifferentSeeds() - Method in class com.microej.crypto.test.SecureRandomTest
Test that two SecureRandoms created using the different seeds return different lists of values
testSecureRandomsWithDifferentSeeds2() - Method in class com.microej.crypto.test.SecureRandomTest
Test that two SecureRandoms created using the different seeds return different lists of values
testSecureRandomUnderNativePressure() - Method in class com.microej.crypto.test.OomGcRetryTest
Validates SecureRandom under native heap pressure.
testSeedSupplement() - Method in class com.microej.crypto.test.SecureRandomTest
Test that setSeed() "supplements, rather than replaces, the existing seed"
testSetCertificateAndDeleteEntry() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
 
testSetCertificateEntry() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
 
testSetKeyEntryPrivateKeyAndCertificateChain() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
 
testSetKeyEntryPrivateKeyProtected() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
 
testSetKeyEntrySecretKey() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
 
testSetKeyEntryTwiceOnSameAlias() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
Checks that a second set into an alias that already holds an entry leaves the alias in a consistent state.
testSetKeyEntryWithUnencodableCertificateKeepsPreviousEntry() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
A failed setKeyEntry() on an alias that holds an entry leaves that entry as it was.
testSetKeyEntryWithUnencodableCertificateLeavesAliasFree() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
A key entry whose certificate chain cannot be fully handed over is not written: setKeyEntry() fails and the alias stays free.
testSetPrivateKeyProtectedAndDeleteEntry() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
 
testSetSecretKeyAndDeleteEntry() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
 
testSetSeed() - Method in class com.microej.crypto.test.SecureRandomTest
Test setting the seed
testSHA1() - Method in class com.microej.crypto.test.MessageDigestTest
Tests SHA-1 algorithm with different data sizes.
testSHA256() - Method in class com.microej.crypto.test.MessageDigestTest
Tests SHA-256 algorithm with different data sizes.
testSha256DigestUnderNativePressure() - Method in class com.microej.crypto.test.OomGcRetryTest
Validates a SHA-256 digest under native heap pressure.
testSHA512() - Method in class com.microej.crypto.test.MessageDigestTest
Tests SHA-512 algorithm with different data sizes.
testSignatureResolution() - Method in class com.microej.crypto.test.AlgorithmResolutionTest
Checks the signature lookup.
testSignSHA256withECDSA() - Method in class com.microej.crypto.test.SignatureTest
Test signature creation using SHA256withECDSA algorithm with every configured Elliptic Curve key
testSignSHA256withRSA() - Method in class com.microej.crypto.test.SignatureTest
Test signature creation using SHA256withRSA algorithm with every configured RSA key size.
testSizeFollowsSetAndDelete() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
Checks that size() follows what is set: one more after a set, back to the initial value after the delete, and always equal to the number of aliases enumerated.
testSubject() - Method in class com.microej.crypto.test.CertificateDataTest
 
testSubsetDefaultsToAllowedValuesWhenEmpty() - Method in class com.microej.crypto.test.ConfigurationTest
 
testSubsetDefaultsToAllowedValuesWhenUnset() - Method in class com.microej.crypto.test.ConfigurationTest
 
testSubsetRejectsValueOutsideAllowedValues() - Method in class com.microej.crypto.test.ConfigurationTest
 
testSubsetReturnsTrimmedListedValues() - Method in class com.microej.crypto.test.ConfigurationTest
 
TestTime - Class in com.microej.crypto.test.util
Sets the application time to a date at which every certificate of the test material behaves as its test expects.
testToInts() - Method in class com.microej.crypto.test.ConfigurationTest
 
testUnknownAliasIsNotAnEntry() - Method in class com.microej.crypto.test.ExternalKeyStoreTest
Checks that an unknown alias is reported as absent by every call that takes one.
testUnsupportedEcCurveIsRejected() - Method in class com.microej.crypto.test.KeyPairGeneratorTest
A curve the backend does not support is reported as an InvalidParameterException, not collapsed into a generic failure.
testUnsupportedRsaKeySizeIsRejected() - Method in class com.microej.crypto.test.KeyPairGeneratorTest
An RSA key size the backend does not support is reported as an InvalidParameterException.
testUnwrapRejectsAlteredBlob() - Method in class com.microej.crypto.test.AESKeyWrapTest
Unwrapping a blob whose bytes were altered fails with the InvalidKeyException that Cipher.unwrap(byte[], String, int) declares.
testVerifySHA256withECDSA() - Method in class com.microej.crypto.test.SignatureTest
Test signature verification using SHA256withECDSA algorithm with every configured Elliptic Curve key
testVerifySHA256withRSA() - Method in class com.microej.crypto.test.SignatureTest
Test signature verification using SHA256withRSA algorithm with every configured RSA key size
THRESHOLD_MS_DEFAULT - Static variable in class com.microej.crypto.test.util.EnsureAsync
 
THRESHOLD_MS_PROPERTY - Static variable in class com.microej.crypto.test.util.EnsureAsync
 
toInts(String[]) - Static method in class com.microej.crypto.test.util.Configuration
Parses a list of decimal integers.

V

verifyCertificateWithInvalidKey_EC() - Method in class com.microej.crypto.test.CertificateTest
Verifies the signature of a certificate using an unrelated public key.
verifyCertificateWithInvalidKey_RSA() - Method in class com.microej.crypto.test.CertificateTest
Verifies the signature of a certificate using an unrelated public key.
verifyCertificateWithValidKey_EC() - Method in class com.microej.crypto.test.CertificateTest
Verifies the signature of a certificate using the public part of the key that was used to sign it.
verifyCertificateWithValidKey_RSA() - Method in class com.microej.crypto.test.CertificateTest
Verifies the signature of a certificate using the public part of the key that was used to sign it.

W

withDecoysAround(byte[]) - Static method in class com.microej.crypto.test.util.OffsetAssertions
Surrounds the given bytes with decoy bytes, so that an operation reading from offset zero, or reading to the end of the array, processes something different rather than the same thing.
A B C D E F G H I K L M O P R S T V W 
All Classes All Packages