PKCS#11 Tutorial for Beginners | Video-10 : Encrypting and Decrypting Data.

Опубликовано: 26 Февраль 2026
на канале: Cyber Hashira
1,286
27

#pkcs11 #softhsm2 #softhsm #hsm #encryption

This video guides you on utilizing the PKCS#11 API for encryption. Learn about eight new functions in pkcs11 dedicated to encrypting and decrypting data. I'll demonstrate through C++ code how to perform encryption using both Symmetric and Asymmetric algorithms.


Notes / Samples -
https://cyberhashira.github.io/
https://github.com/CyberHashira

PKCS11 Manual
https://www.cryptsoft.com/pkcs11doc/S...


Video Timelines -
0:00 - Intro.
0:36 - C_EncryptInit.
1:59 - C_Encrypt.
3:20 - Single-part and Multi-part.
4:24 - C_EncryptUpdate.
5:45 - C_EncryptFinal.
6:30 - C_DecryptInit.
7:13 - C_Decrypt.
8:12 - C_DecryptUpdate.
9:01 - C_DecryptFinal.
9:50 - Sample code review - CKM_DES3_ECB.
17:59 - Sample code review - CKM_AES_CBC_PAD.
25:10 - Sample code review - CKM_RSA_PKCS.
31:42 - Sample code review - CKM_RSA_PKCS_OAEP.






Music from #Uppbeat (free for Creators!):
https://uppbeat.io/t/kem/nu-day
https://uppbeat.io/t/tecnosine/time