AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Functions
alexaClientSDK::pkcs11::test Namespace Reference

Test cases for Hardware Security Module Functions. More...

Functions

 TEST (ErrorCleanupGuardTest, test_executeOnFailure)
 
 TEST (ErrorCleanupGuardTest, test_executeOnSuccess)
 
 TEST (PKCS11ConfigTest, test_defaultConfig)
 
 TEST (PKCS11FunctionsTest, test_badFunction)
 Test that the constructor with a nullptr doesn't segfault. More...
 
 TEST (PKCS11FunctionsTest, test_initHsm)
 
 TEST (PKCS11FunctionsTest, test_listSlotsNoTokens)
 
 TEST (PKCS11FunctionsTest, test_listSlotsWithTokens)
 
 TEST (PKCS11FunctionsTest, test_findTestSlot)
 
 TEST (PKCS11FunctionsTest, test_findOtherSlot)
 
 TEST (PKCS11KeyStoreTest, test_create)
 
 TEST (PKCS11KeyStoreTest, test_createBadConfig)
 
 TEST (PKCS11KeyStoreTest, test_encryptDecrypt)
 
 TEST (PKCS11KeyStoreTest, test_encryptWithWrongAlgorithm)
 
 TEST (PKCS11KeyStoreTest, test_decryptWithWrongAlgorithm)
 
 TEST (PKCS11KeyStoreTest, test_createOrLoadKeyTwiceUsesTheSameKey)
 
 TEST (PKCS11KeyTest, test_encryptDecryptAes256Cbc)
 
 TEST (PKCS11KeyTest, test_encryptDecryptErrors)
 
 TEST (PKCS11KeyTest, test_encryptDecryptAes256CbcPad)
 
 TEST (PKCS11KeyTest, test_encryptDecryptAes256Gcm)
 
 TEST (PKCS11KeyTest, test_getKeyAttributes)
 
 TEST (PKCS11SessionTest, test_loginLogout)
 Test that the constructor with a nullptr doesn't segfault. More...
 
 TEST (PKCS11SessionTest, test_keySessionOps)
 
 TEST (PKCS11SlotTest, test_findSlot)
 Test that the constructor with a nullptr doesn't segfault. More...
 
 TEST (PKCS11SlotTest, test_openSession)
 

Detailed Description

Test cases for Hardware Security Module Functions.

See also
Hardware Security Module Functions

Function Documentation

◆ TEST() [1/24]

alexaClientSDK::pkcs11::test::TEST ( ErrorCleanupGuardTest  ,
test_executeOnFailure   
)

◆ TEST() [2/24]

alexaClientSDK::pkcs11::test::TEST ( PKCS11FunctionsTest  ,
test_badFunction   
)

Test that the constructor with a nullptr doesn't segfault.

◆ TEST() [3/24]

alexaClientSDK::pkcs11::test::TEST ( PKCS11SlotTest  ,
test_findSlot   
)

Test that the constructor with a nullptr doesn't segfault.

◆ TEST() [4/24]

alexaClientSDK::pkcs11::test::TEST ( PKCS11SessionTest  ,
test_loginLogout   
)

Test that the constructor with a nullptr doesn't segfault.

◆ TEST() [5/24]

alexaClientSDK::pkcs11::test::TEST ( PKCS11FunctionsTest  ,
test_initHsm   
)

◆ TEST() [6/24]

alexaClientSDK::pkcs11::test::TEST ( ErrorCleanupGuardTest  ,
test_executeOnSuccess   
)

◆ TEST() [7/24]

alexaClientSDK::pkcs11::test::TEST ( PKCS11FunctionsTest  ,
test_listSlotsNoTokens   
)

◆ TEST() [8/24]

alexaClientSDK::pkcs11::test::TEST ( PKCS11SlotTest  ,
test_openSession   
)

◆ TEST() [9/24]

alexaClientSDK::pkcs11::test::TEST ( PKCS11ConfigTest  ,
test_defaultConfig   
)

◆ TEST() [10/24]

alexaClientSDK::pkcs11::test::TEST ( PKCS11KeyTest  ,
test_encryptDecryptAes256Cbc   
)

◆ TEST() [11/24]

alexaClientSDK::pkcs11::test::TEST ( PKCS11SessionTest  ,
test_keySessionOps   
)

◆ TEST() [12/24]

alexaClientSDK::pkcs11::test::TEST ( PKCS11FunctionsTest  ,
test_listSlotsWithTokens   
)

◆ TEST() [13/24]

alexaClientSDK::pkcs11::test::TEST ( PKCS11FunctionsTest  ,
test_findTestSlot   
)

◆ TEST() [14/24]

alexaClientSDK::pkcs11::test::TEST ( PKCS11KeyStoreTest  ,
test_create   
)

◆ TEST() [15/24]

alexaClientSDK::pkcs11::test::TEST ( PKCS11FunctionsTest  ,
test_findOtherSlot   
)

◆ TEST() [16/24]

alexaClientSDK::pkcs11::test::TEST ( PKCS11KeyStoreTest  ,
test_createBadConfig   
)

◆ TEST() [17/24]

alexaClientSDK::pkcs11::test::TEST ( PKCS11KeyStoreTest  ,
test_encryptDecrypt   
)

◆ TEST() [18/24]

alexaClientSDK::pkcs11::test::TEST ( PKCS11KeyTest  ,
test_encryptDecryptErrors   
)

◆ TEST() [19/24]

alexaClientSDK::pkcs11::test::TEST ( PKCS11KeyStoreTest  ,
test_encryptWithWrongAlgorithm   
)

◆ TEST() [20/24]

alexaClientSDK::pkcs11::test::TEST ( PKCS11KeyStoreTest  ,
test_decryptWithWrongAlgorithm   
)

◆ TEST() [21/24]

alexaClientSDK::pkcs11::test::TEST ( PKCS11KeyTest  ,
test_encryptDecryptAes256CbcPad   
)

◆ TEST() [22/24]

alexaClientSDK::pkcs11::test::TEST ( PKCS11KeyStoreTest  ,
test_createOrLoadKeyTwiceUsesTheSameKey   
)

◆ TEST() [23/24]

alexaClientSDK::pkcs11::test::TEST ( PKCS11KeyTest  ,
test_encryptDecryptAes256Gcm   
)

◆ TEST() [24/24]

alexaClientSDK::pkcs11::test::TEST ( PKCS11KeyTest  ,
test_getKeyAttributes   
)

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0