Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for _goboringcrypto_HMAC_Init (0.29 sec)

  1. src/crypto/internal/boring/hmac.go

    		// to make sure h is not collected (and finalized) before the cgo
    		// call returns.
    		runtime.SetFinalizer(h, (*boringHMAC).finalize)
    	}
    	C._goboringcrypto_HMAC_CTX_init(&h.ctx)
    
    	if C._goboringcrypto_HMAC_Init(&h.ctx, unsafe.Pointer(base(h.key)), C.int(len(h.key)), h.md) == 0 {
    		panic("boringcrypto: HMAC_Init failed")
    	}
    	if int(C._goboringcrypto_HMAC_size(&h.ctx)) != h.size {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 17:51:31 UTC 2023
    - 4K bytes
    - Viewed (0)
Back to top