| 820 | } |
| 821 | |
| 822 | uint32_t |
| 823 | sctp_get_hmac_digest_len(uint16_t hmac_algo) |
| 824 | { |
| 825 | switch (hmac_algo) { |
| 826 | case SCTP_AUTH_HMAC_ID_SHA1: |
| 827 | return (SCTP_AUTH_DIGEST_LEN_SHA1); |
| 828 | case SCTP_AUTH_HMAC_ID_SHA256: |
| 829 | return (SCTP_AUTH_DIGEST_LEN_SHA256); |
| 830 | default: |
| 831 | /* unknown HMAC algorithm: can't do anything */ |
| 832 | return (0); |
| 833 | } /* end switch */ |
| 834 | } |
| 835 | |
| 836 | static inline int |
| 837 | sctp_get_hmac_block_len(uint16_t hmac_algo) |
no outgoing calls
no test coverage detected