Searched refs:algType (Results 1 - 4 of 4) sorted by relevance
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/properties/ |
H A D | hash.cpp | 64 HASH_ALGORITHM_TYPE algType = GetHashAlgorithm(alg, algLen); in GetHashArgs() local 65 if (algType == HASH_ALGORITHM_TYPE_UNSUPPORTED) { in GetHashArgs() 76 return { true, move(path), algType, isPromise }; in GetHashArgs() 87 auto [succ, fpath, algType, isPromise] = GetHashArgs(env, funcArg); in Async() 93 auto cbExec = [fpath = string(fpath.release()), arg, algType = algType](napi_env env) -> UniError { in Async() 96 if (algType == HASH_ALGORITHM_TYPE_MD5) { in Async() 98 } else if (algType == HASH_ALGORITHM_TYPE_SHA1) { in Async() 100 } else if (algType == HASH_ALGORITHM_TYPE_SHA256) { in Async()
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_hash/ |
H A D | hash.cpp | 54 HASH_ALGORITHM_TYPE algType = GetHashAlgorithm(alg.get()); in GetHashArgs() local 55 if (algType == HASH_ALGORITHM_TYPE_UNSUPPORTED) { in GetHashArgs() 68 return { true, move(path), algType, isPromise }; in GetHashArgs() 80 auto [succ, fpath, algType, isPromise] = GetHashArgs(env, funcArg); in Async() 87 auto cbExec = [fpath = string(fpath.release()), arg, algType = algType, env = env]() -> NError { in Async() 90 if (algType == HASH_ALGORITHM_TYPE_MD5) { in Async() 92 } else if (algType == HASH_ALGORITHM_TYPE_SHA1) { in Async() 94 } else if (algType == HASH_ALGORITHM_TYPE_SHA256) { in Async()
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_hash/class_hashstream/ |
H A D | hashstream_n_exporter.cpp | 54 static napi_value SetHsEntity(napi_env env, NFuncArg &funcArg, HASH_ALGORITHM_TYPE algType) in SetHsEntity() argument 63 hsEntity->algType = algType; in SetHsEntity() 65 switch (algType) { in SetHsEntity() 111 HASH_ALGORITHM_TYPE algType = GetHashAlgorithm(alg.get()); in Constructor() local 112 if (algType == HASH_ALGORITHM_TYPE_UNSUPPORTED) { in Constructor() 118 return SetHsEntity(env, funcArg, algType); in Constructor() 137 switch (hsEntity->algType) { in Digest() 186 switch (hsEntity->algType) { in Update()
|
H A D | hashstream_entity.h | 32 HASH_ALGORITHM_TYPE algType = HASH_ALGORITHM_TYPE_UNSUPPORTED; member
|
Completed in 2 milliseconds