/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/common/ |
D | common_crypto_sym.c | 50 UTIL_LOG_ERR("ilegal input\n"); in CC_CommonAesCtrEncrypt() 59 UTIL_LOG_ERR("\n AES_set_encrypt_key failed"); in CC_CommonAesCtrEncrypt() 97 UTIL_LOG_ERR("ilegal input\n"); in CC_CommonAesCbcDecrypt() 104 UTIL_LOG_ERR("Failed to retrieve pwd\n"); in CC_CommonAesCbcDecrypt() 114 UTIL_LOG_ERR("EVP_get_cipherbyname failed\n"); in CC_CommonAesCbcDecrypt() 121 UTIL_LOG_ERR("EVP_get_digestbyname failed\n"); in CC_CommonAesCbcDecrypt() 129 UTIL_LOG_ERR("EVP_BytesToKey failed\n"); in CC_CommonAesCbcDecrypt() 143 UTIL_LOG_ERR("\n AES_set_encrypt_key failed"); in CC_CommonAesCbcDecrypt() 187 UTIL_LOG_ERR("ilegal input\n"); in CC_CommonAesCbcMacEncrypt() 195 UTIL_LOG_ERR("malloc failed\n"); in CC_CommonAesCbcMacEncrypt() [all …]
|
D | common_crypto_asym.c | 60 UTIL_LOG_ERR("ilegal input\n"); in Sign_v15() 67 UTIL_LOG_ERR("failed to EVP_PKEY_new\n"); in Sign_v15() 72 UTIL_LOG_ERR("failed to EVP_PKEY_assign_RSA\n"); in Sign_v15() 79 UTIL_LOG_ERR("failed to EVP_MD_CTX_create\n"); in Sign_v15() 84 UTIL_LOG_ERR("failed to EVP_SignInit\n"); in Sign_v15() 89 UTIL_LOG_ERR("failed to EVP_SignUpdate\n"); in Sign_v15() 94 UTIL_LOG_ERR("failed to EVP_SignFinal\n"); in Sign_v15() 101 UTIL_LOG_ERR("failed to BIO_new\n"); in Sign_v15() 106 UTIL_LOG_ERR("failed to RSA_new\n"); in Sign_v15() 110 UTIL_LOG_ERR("failed to PEM_write_bio_RSA_PUBKEY\n"); in Sign_v15() [all …]
|
D | common_util_files.c | 35 UTIL_LOG_ERR( "ilegal parameters for %s\n", __func__); in CC_CommonUtilCopyDataFromRawTextFile() 39 UTIL_LOG_ERR( "ilegal outBuffLen \n"); in CC_CommonUtilCopyDataFromRawTextFile() 44 UTIL_LOG_ERR( "failed to open file %s for reading\n", fileName); in CC_CommonUtilCopyDataFromRawTextFile() 53 UTIL_LOG_ERR( "ftell error actualFileLen == -1\n"); in CC_CommonUtilCopyDataFromRawTextFile() 62 UTIL_LOG_ERR( "ilegal maxBytesToRead == 0\n"); in CC_CommonUtilCopyDataFromRawTextFile() 114 UTIL_LOG_ERR( "ilegal parameters for %s\n", __func__); in CC_CommonUtilCopyDataFromTextFile() 118 UTIL_LOG_ERR( "ilegal outBuffLen \n"); in CC_CommonUtilCopyDataFromTextFile() 123 UTIL_LOG_ERR( "failed to open file %s for reading\n", fileName); in CC_CommonUtilCopyDataFromTextFile() 132 UTIL_LOG_ERR( "ftell error actualFileLen == -1\n"); in CC_CommonUtilCopyDataFromTextFile() 141 UTIL_LOG_ERR( "ilegal maxBytesToRead == 0\n"); in CC_CommonUtilCopyDataFromTextFile() [all …]
|
D | common_rsa_keypair.c | 40 UTIL_LOG_ERR("Illegal RSA key pair or pwd file name\n"); in CC_CommonGetKeyPair() 46 UTIL_LOG_ERR("Cannot open RSA file %s\n", PemEncryptedFileName_ptr); in CC_CommonGetKeyPair() 52 UTIL_LOG_ERR("Cannot read RSA private key\n"); in CC_CommonGetKeyPair() 77 UTIL_LOG_ERR("Illegal RSA file name\n"); in CC_CommonGetPubKey() 83 UTIL_LOG_ERR("Cannot open RSA file %s\n", PemEncryptedFileName_ptr); in CC_CommonGetPubKey() 89 UTIL_LOG_ERR("Cannot read RSA public key\n"); in CC_CommonGetPubKey() 116 UTIL_LOG_ERR("Illegal input\n"); in CC_CommonRsaCalculateNp() 123 UTIL_LOG_ERR("failed to malloc.\n"); in CC_CommonRsaCalculateNp() 128 UTIL_LOG_ERR("failed to BN_new.\n"); in CC_CommonRsaCalculateNp() 139 UTIL_LOG_ERR("BN_hex2bn failed.\n"); in CC_CommonRsaCalculateNp() [all …]
|
D | common_crypto_x509.c | 73 UTIL_LOG_ERR("ilegal input\n"); in CC_CommonX509Free() 108 UTIL_LOG_ERR("ilegal input\n"); in CC_CommonX509CreateAndSetHeader() 115 UTIL_LOG_ERR("failed to X509_new\n"); in CC_CommonX509CreateAndSetHeader() 122 UTIL_LOG_ERR("failed to X509_set_version\n"); in CC_CommonX509CreateAndSetHeader() 132 UTIL_LOG_ERR("failed to set CC_CommonRandBytes\n"); in CC_CommonX509CreateAndSetHeader() 140 UTIL_LOG_ERR("failed to set X509_get_serialNumber\n"); in CC_CommonX509CreateAndSetHeader() 150 UTIL_LOG_ERR("failed set X509_get_notBefore\n"); in CC_CommonX509CreateAndSetHeader() 159 UTIL_LOG_ERR("failed set X509_get_notAfter\n"); in CC_CommonX509CreateAndSetHeader() 175 UTIL_LOG_ERR("failed to set X509_get_subject_name\n"); in CC_CommonX509CreateAndSetHeader() 191 UTIL_LOG_ERR("failed to set X509_get_issuer_name\n"); in CC_CommonX509CreateAndSetHeader() [all …]
|
D | common_crypto_encode.c | 55 UTIL_LOG_ERR("ilegal inputs\n"); in CC_CommonBase64Encode() 59 UTIL_LOG_ERR("ilegal outBuffLen %d \n", *pEecBuffLen); in CC_CommonBase64Encode() 67 UTIL_LOG_ERR("failed to open mem\n"); in CC_CommonBase64Encode() 72 UTIL_LOG_ERR("failed to BIO_new\n"); in CC_CommonBase64Encode() 78 UTIL_LOG_ERR("failed to BIO_new_fp\n"); in CC_CommonBase64Encode() 87 UTIL_LOG_ERR("failed to BIO_write buffLen %d = actualWritten %d\n", buffLen, actualWritten); in CC_CommonBase64Encode() 131 UTIL_LOG_ERR("ilegal inputs\n"); in CC_CommonBase64Decode() 145 UTIL_LOG_ERR("ilegal inputs outBuffLen %d expDecBuffLen %d\n", *pDecBuffLen, expDecBuffLen); in CC_CommonBase64Decode() 154 UTIL_LOG_ERR("failed to open mem\n"); in CC_CommonBase64Decode() 161 UTIL_LOG_ERR("failed to BIO_new\n"); in CC_CommonBase64Decode() [all …]
|
D | common_rsa_keypair_util.c | 65 UTIL_LOG_ERR("Failed to retrieve pwd\n"); in CC_CommonGetNbuffFromKeyPair() 72 UTIL_LOG_ERR("Failed RSA_new\n"); in CC_CommonGetNbuffFromKeyPair() 76 UTIL_LOG_ERR("Cannot read RSA public key.\n"); in CC_CommonGetNbuffFromKeyPair() 133 UTIL_LOG_ERR("Failed to retrieve pwd %s\n", pwdFileName); in CC_CommonGetNAndNpFromKeyPair() 141 UTIL_LOG_ERR("Failed RSA_new\n"); in CC_CommonGetNAndNpFromKeyPair() 145 UTIL_LOG_ERR("Cannot read RSA public key.\n"); in CC_CommonGetNAndNpFromKeyPair() 154 UTIL_LOG_ERR("Failed creating Np\n"); in CC_CommonGetNAndNpFromKeyPair() 205 UTIL_LOG_ERR("Failed RSA_new\n"); in CC_CommonGetNAndNpFromPubKey() 209 UTIL_LOG_ERR("Cannot read RSA public key.\n"); in CC_CommonGetNAndNpFromPubKey() 218 UTIL_LOG_ERR("Failed creating Np\n"); in CC_CommonGetNAndNpFromPubKey() [all …]
|
D | common_util_log.h | 19 #define UTIL_LOG_ERR(format, args...) \ macro 23 #define UTIL_LOG_INFO UTIL_LOG_ERR 27 UTIL_LOG_ERR("\nprinting %s, %lu bytes", str, (unsigned long)size);\ 39 UTIL_LOG_ERR("\nprinting %s, %lu words", str, (unsigned long)wordSize);\
|
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/dmpu_asset_pkg_util/icv_key_response/lib/ |
D | main.c | 40 UTIL_LOG_ERR("Ilegal token in cert 0x%x\n", pCertStruct->token); in verifyCert() 44 UTIL_LOG_ERR("Ilegal version in cert 0x%x\n", pCertStruct->version); in verifyCert() 48 UTIL_LOG_ERR("Ilegal length in cert 0x%x\n", pCertStruct->size); in verifyCert() 59 UTIL_LOG_ERR( "failed to CC_CommonRsaVerify() for certificate, rc %d\n", rc); in verifyCert() 62 UTIL_LOG_ERR("verifyCert: OK\n"); in verifyCert() 99 UTIL_LOG_ERR( "Invalid inputs\n"); in generateIcvKeyRespPkg() 109 UTIL_LOG_ERR( "failed to verifyCert() for Krtl, rc %d\n", rc); in generateIcvKeyRespPkg() 117 UTIL_LOG_ERR( "failed to CC_CommonAesCbcDecrypt() for Krtl, rc %d\n", rc); in generateIcvKeyRespPkg() 128 UTIL_LOG_ERR( "failed to CC_CommonCalcHash() for Krtl, rc %d\n", rc); in generateIcvKeyRespPkg() 139 UTIL_LOG_ERR( "failed to AesCmacKeyDerivation() for Ktmp, rc %d\n", rc); in generateIcvKeyRespPkg() [all …]
|
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/cc3x_asset_prov_rt/lib/ |
D | main.c | 101 UTIL_LOG_ERR( "failed to CC_CommonAesCmacEncrypt(), rc %d\n", rc); in AesCmacKeyDerivation() 134 UTIL_LOG_ERR( "encKeyBuffSize %d\n", encKeyBuffSize); in build_asset_blob() 140 UTIL_LOG_ERR( "Invalid inputs\n"); in build_asset_blob() 155 UTIL_LOG_ERR( "failed to CC_CommonRandBytes() for nonce, rc %d\n", rc); in build_asset_blob() 162 UTIL_LOG_ERR( "calling CC_CommonAesCbcDecrypt() pKeyPwdFileName %s\n", pKeyPwdFileName); in build_asset_blob() 165 UTIL_LOG_ERR( "failed to CC_CommonAesCbcDecrypt() for Kpicv, rc %d\n", rc); in build_asset_blob() 172 UTIL_LOG_ERR( "calling AesCmacKeyDerivation\n"); in build_asset_blob() 178 UTIL_LOG_ERR( "failed to AesCmacKeyDerivation() for Kprov, rc %d\n", rc); in build_asset_blob() 184 UTIL_LOG_ERR( "calling CC_CommonAesCcmEncrypt\n"); in build_asset_blob() 192 UTIL_LOG_ERR( "failed to CC_CommonAesCmacEncrypt() for Kprov, rc %d\n", rc); in build_asset_blob() [all …]
|
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/dmpu_asset_pkg_util/oem_asset_package/lib/ |
D | main.c | 58 UTIL_LOG_ERR( "encKeyBuffSize %d\n", encKeyBuffSize); in build_oem_asset_pkg() 67 UTIL_LOG_ERR( "Invalid inputs\n"); in build_oem_asset_pkg() 81 UTIL_LOG_ERR( "failed to CC_CommonRandBytes() for nonce, rc %d\n", rc); in build_oem_asset_pkg() 92 UTIL_LOG_ERR( "failed to CC_CommonRsaDecrypt() for key temp, rc %d\n", rc); in build_oem_asset_pkg() 110 UTIL_LOG_ERR( "failed to AesCmacKeyDerivation() for Kprov, rc %d\n", rc); in build_oem_asset_pkg() 123 UTIL_LOG_ERR( "failed to CC_CommonAesCmacEncrypt() for Kprov, rc %d\n", rc); in build_oem_asset_pkg() 131 UTIL_LOG_ERR( "failed to CC_CommonUtilCopyBuffToBinFile(), rc %d\n", rc); in build_oem_asset_pkg() 138 UTIL_LOG_ERR( "End rc %d\n", rc); in build_oem_asset_pkg()
|
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/cmpu_asset_pkg_util/lib/ |
D | main.c | 92 UTIL_LOG_ERR( "Invalid inputs\n"); in AesCmacKeyDerivation() 113 UTIL_LOG_ERR( "failed to CC_CommonAesCmacEncrypt(), rc %d\n", rc); in AesCmacKeyDerivation() 152 UTIL_LOG_ERR( "encKeyBuffSize %d\n", encKeyBuffSize); in build_asset_pkg() 161 UTIL_LOG_ERR( "Invalid inputs\n"); in build_asset_pkg() 175 UTIL_LOG_ERR( "failed to CC_CommonRandBytes() for nonce, rc %d\n", rc); in build_asset_pkg() 184 UTIL_LOG_ERR( "failed to CC_CommonAesCbcDecrypt() for Krtl, rc %d\n", rc); in build_asset_pkg() 203 UTIL_LOG_ERR( "failed to AesCmacKeyDerivation() for Ktmp, rc %d\n", rc); in build_asset_pkg() 214 UTIL_LOG_ERR( "failed to AesCmacKeyDerivation() for Ktmp, rc %d\n", rc); in build_asset_pkg() 227 UTIL_LOG_ERR( "failed to CC_CommonAesCmacEncrypt() for Kprov, rc %d\n", rc); in build_asset_pkg() 235 UTIL_LOG_ERR( "failed to CC_CommonUtilCopyBuffToBinFile(), rc %d\n", rc); in build_asset_pkg() [all …]
|
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/cc3x_boot_cert/x509cert_lib/ |
D | main.c | 464 UTIL_LOG_ERR("failed to CC_CommonX509CreateAndSetHeader \n"); in SBU_x509_CreateAndSetHeader() 495 UTIL_LOG_ERR("invalid input\n"); in SBU_x509_AddPubKeyNpBuffExtension() 502 …UTIL_LOG_ERR("failed to CC_CommonGetNAndNpFromKeyPair %s pwd %s\n", pKeyPairFileName, pwdFileName); in SBU_x509_AddPubKeyNpBuffExtension() 509 UTIL_LOG_ERR("failed to CC_CommonX509AddStringExtension \n"); in SBU_x509_AddPubKeyNpBuffExtension() 539 UTIL_LOG_ERR("invalid input\n"); in SBU_x509_AddPropHeaderExtension() 546 UTIL_LOG_ERR("failed to CC_CommonX509AddStringExtension \n"); in SBU_x509_AddPropHeaderExtension() 575 UTIL_LOG_ERR("invalid input\n"); in SBU_x509_AddKeyCertBodyExtension() 583 UTIL_LOG_ERR("failed to CC_CommonCalcHBKFromFile \n"); in SBU_x509_AddKeyCertBodyExtension() 590 UTIL_LOG_ERR("failed to CC_CommonX509AddStringExtension \n"); in SBU_x509_AddKeyCertBodyExtension() 631 UTIL_LOG_ERR("invalid input\n"); in SBU_x509_AddContentCertBodyExtension() [all …]
|
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/dmpu_asset_pkg_util/common/ |
D | dmpu_common.c | 91 UTIL_LOG_ERR( "Invalid inputs\n"); in AesCmacKeyDerivation() 112 UTIL_LOG_ERR( "failed to CC_CommonAesCmacEncrypt(), rc %d\n", rc); in AesCmacKeyDerivation()
|