Tink가 FIPS 전용 모드로 빌드되었는지 런타임에 확인하려면
다음과 같은 상수를 제공하는 internal/fips_utils.h 헤더를 포함할 수 있습니다.
kUseOnlyFips입니다.
FIPS 전용 모드에서 Tink를 빌드하지 않아도일부 알고리즘에 대해 검증된 구현을 사용하되
사용할 수 있습니다
런타임에 사용 설정
FIPS 전용 모드에서 Tink를 빌드하는 대신
플래그를 설정하는 config/tink_fips.h의 crypto::tink::RestrictToFips()
FIPS 프리미티브에 대한 제한을 사용하도록 설정합니다.
경고: 런타임 옵션을 사용하는 경우 crypto::tink::RestrictToFips()
는 키 자료를 처리하거나 키 관리자를 등록하기 전에 호출되어야 합니다.
다른 Tink 기능입니다. 또한 BoringSSL에
BoringCrypto 모듈로 빌드되었습니다. 그렇지 않으면 Tink를 사용하여
모든 데이터를 처리합니다
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2024-08-21(UTC)"],[[["Tink supports using FIPS 140-2 approved cryptographic algorithms with validated implementations like BoringCrypto, although Tink itself is not FIPS validated."],["A FIPS-only mode in Tink (C++ only) restricts usage to approved algorithms and validated implementations, ensuring only FIPS-compliant keysets are used."],["In FIPS-only mode, Tink utilizes BoringCrypto for its validated cryptographic module, with limitations on certain algorithms like AES-CMAC and RSA key sizes."],["You can enable FIPS-only mode at compile time with a Bazel build flag or at runtime by calling `crypto::tink::RestrictToFips()` before any Tink operations."],["When not in FIPS-only mode, Tink can still leverage validated implementations for some algorithms without enforcing restrictions on others."]]],["Tink, while not FIPS 140-2 validated itself, supports several approved algorithms and can utilize validated modules like BoringCrypto in C++. In FIPS-only mode, enabled at compile or runtime, Tink restricts usage to validated algorithms. It checks for the BoringCrypto module, allowing only FIPS-approved keysets, algorithms and primitives. When using FIPS-only mode, specific algorithms like AES-CMAC are unavailable, and RSA is limited to 3072-bit modulus. Runtime enabling requires calling `crypto::tink::RestrictToFips()` before any Tink operations.\n"]]