본문 바로가기

개발 및 운영/프로그래밍30

Golang: 상속 관련 참고 golangkorea.github.io/post/go-start/object-oriented/ Go와 객체지향 객체지향 프로그래밍 Go는 클래스(Class)가 없다!! Struct가 Class의 역할을 수행 할 수 있기는 하지만 메서드도 구조체로부터 분리되는 구성을 가지고 있다. 단일 상속도 없고 당연히 다중 상속도 없 golangkorea.github.io 상속관련해서 설명이 잘 되어 있는 글이다! 2021. 1. 12.
When should AccessController.doPrivileged() be used? stackoverflow.com/questions/2233761/when-should-accesscontroller-doprivileged-be-used 2021. 1. 11.
FIPS 인증을 위한 모듈 개발 (boringssl) github.com/google/boringssl/blob/c37e64cba55256dff3ca4575dfcac1cfb2aa111e/crypto/fipsmodule/FIPS.md google/boringssl Mirror of BoringSSL. Contribute to google/boringssl development by creating an account on GitHub. github.com OpenSSL의 경우 static linking할 경우 FIPS 인증된 모듈을 지원하지 않으며, shared library으로써 만들어진 파일을 주소를 고정하여 로드(ASLR 비활성화)하여 그 상태로 해시값을 자체적으로 평가(self-test) 하여 무결성을 확인한다. 단점은 Delayed Load할 경우 .. 2020. 10. 15.
WIMCreateFile에서 FILE_SHARE_READ 적용하기 (WIMCreateFile분석) WIMCreateFile에는 CreateFile와는 달리 dwShareMode옵션이 없다. 이를 사용할 수 있는지 확인해 보기 위해 분석을 시도한다. volatile const void* p_WIMCreateFile = WIMCreateFile; const void* p_CreateFileW = CreateFileW; HANDLE hTemp = CreateFileW(_T("E:\\ISO\\boot.wim"), GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL); CloseHandle(hTemp); HANDLE hWim = WIMCreateFile(_T("E:\\ISO\\boot.wim"), WIM_GENERIC_READ, WIM_OPEN_EXIST.. 2020. 4. 4.
C++에서 Node.JS 사용하기 (node모듈아님) https://github.com/jc-lab/node-app jc-lab/node-app Embed node.js application with VFS(Virtual File System) - jc-lab/node-app github.com 삽질의 결과!ㅠㅠ 결과는 간단한데 과정이 힘들었음.. 2019. 10. 21.
[C++11] std::bind 로 unique_ptr 넘기기 될줄 알았죠? 안돼요...ㅠㅠ 이 글을 보면 해결책이 있을줄 알았죠? 없어요...^^ 최소한 C++ 자체 라이브러리 안에서는....ㅠㅠ 아래와 같이 따로 만들면은 됩니다! #include #include #include #include class Caller { public: virtual void run() = 0; }; template class Binder : public Caller { protected: F f_; std::size_t args_count_ = std::tuple_size::value; Tuple tuple_; public: Binder(F f, Tuple&& tuple) : f_(f), tuple_(std::move(tuple)) { std::cout 2019. 9. 4.
반응형